Rakefile in dkron-rb-0.9.2 vs Rakefile in dkron-rb-0.10.0
- old
+ new
@@ -1,6 +1,12 @@
-require "bundler/gem_tasks"
-task :default => :spec
+begin
+ require 'rspec/core/rake_task'
+ RSpec::Core::RakeTask.new(:spec)
+ task default: :spec
+rescue LoadError
+ # no rspec available
+end
+
task(:codegen) do
- sh('swagger-codegen', 'generate', '-i', 'http://dkron.io/swagger.yaml', '-l', 'ruby', '-o', '.', '-c', 'config.json')
+ sh('swagger-codegen', 'generate', '-i', 'https://dkron.io/swagger.yaml', '-l', 'ruby', '-o', '.', '-c', 'config.json')
end