bin/wally in wally-0.0.45 vs bin/wally in wally-0.0.46
- old
+ new
@@ -17,10 +17,10 @@
puts "Contents:"
puts File.read(feature_path)
end
features << {:path => feature_path, :gherkin => gherkin}
end
- RestClient.put "#{ARGV[1]}/features/?authentication_code=#{File.read(".wally")}", features.to_json, {:content_type => :json, :accept => :json}
+ RestClient.put "#{ARGV[1]}/features/?authentication_code=#{File.read(".wally").strip}", features.to_json, {:content_type => :json, :accept => :json}
elsif ARGV[0] == "destroy"
require "restclient"
- RestClient.delete ARGV[1]
-end
+ RestClient.delete "#{ARGV[1]}?authentication_code=#{File.read(".wally").strip}"
+end
\ No newline at end of file