Skip to content

Commit

Permalink
Merge pull request #1 from basecamp/fix-docker-build
Browse files Browse the repository at this point in the history
Require Rake only when it's needed
  • Loading branch information
Wintereise authored Jan 14, 2025
2 parents edc232e + 2646c54 commit a332022
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 2 additions & 1 deletion Rakefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
begin
require 'cucumber'
require 'rake'
require 'cucumber/rake/task'

Cucumber::Rake::Task.new(:features) do |t|
Expand All @@ -12,4 +13,4 @@ rescue LoadError
task :features do
abort 'Cucumber rake task is not available. Be sure to install cucumber as a gem or plugin'
end
end
end
3 changes: 1 addition & 2 deletions netconf.gemspec
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
$LOAD_PATH.unshift 'lib'
require 'rake'
require 'net/netconf/version'

Gem::Specification.new do |s|
Expand All @@ -11,7 +10,7 @@ Gem::Specification.new do |s|
s.homepage = 'https://github.com/Juniper/net-netconf'
s.authors = ["Jeremy Schulman", "Ankit Jain", "David Gethings"]
s.email = '[email protected]'
s.files = FileList['lib/net/**/*.rb', 'examples/**/*.rb']
s.files = Dir['lib/net/**/*.rb', 'examples/**/*.rb']
s.required_ruby_version = '>= 2.1.0'
s.add_runtime_dependency('nokogiri')
s.add_runtime_dependency('net-ssh')
Expand Down

0 comments on commit a332022

Please sign in to comment.