deployments 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -18,7 +18,7 @@ module Deployments
18
18
 
19
19
  def fields
20
20
  build.to_params.map do |key, value|
21
- Curl::PostField.content(key, value)
21
+ Curl::PostField.content(key, value.to_s)
22
22
  end
23
23
  end
24
24
  end
@@ -1,3 +1,3 @@
1
1
  module Deployments
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
@@ -7,7 +7,7 @@ namespace :deployments do
7
7
 
8
8
  desc "Push deployments details to the server"
9
9
  task :push do
10
- build = Build.new(ENV['deployment_env'])
10
+ build = Deployments::Build.new(ENV['app_env'])
11
11
  dispatcher = Deployments::Dispatcher.new(build)
12
12
  dispatcher.run
13
13
  end
@@ -40,6 +40,15 @@ describe Dispatcher do
40
40
  dispatcher.run.should be_false
41
41
  end
42
42
  end
43
+
44
+ context "with invalid data" do
45
+ let(:fields) { { :key => nil } }
46
+ let(:response) { double('response', :response_code => 500) }
47
+
48
+ it "should unlucky send" do
49
+ dispatcher.run.should be_false
50
+ end
51
+ end
43
52
  end
44
53
 
45
54
  def curl_fields
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: deployments
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: