deployments 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -49,6 +49,16 @@ to the deployment environment like 'staging' or 'development':
49
49
  end
50
50
  ```
51
51
 
52
+ Request params:
53
+ ```ruby
54
+ {
55
+ :author => "author",
56
+ :commits => ["commits", "between", "tags"],
57
+ :env => "staging",
58
+ :version => "1.0.1",
59
+ :domain => "staging.example.com"
60
+ }
61
+ ```
52
62
 
53
63
  ## Contributing
54
64
 
@@ -11,9 +11,9 @@ module Deployments
11
11
 
12
12
  def to_params
13
13
  {
14
- :username => username,
14
+ :author => username,
15
15
  :env => env,
16
- :tag => tag,
16
+ :version => tag,
17
17
  :commits => commits,
18
18
  :domain => domain
19
19
  }
@@ -1,3 +1,3 @@
1
1
  module Deployments
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
data/spec/build_spec.rb CHANGED
@@ -8,7 +8,7 @@ describe Build do
8
8
  describe "interface for getting build information as json params" do
9
9
  it "should return deployer name information" do
10
10
  Etc.should_receive(:getlogin).and_return("john.smith")
11
- build.to_params[:username].should == "john.smith"
11
+ build.to_params[:author].should == "john.smith"
12
12
  end
13
13
 
14
14
  it "should return env" do
@@ -33,7 +33,7 @@ describe Build do
33
33
  end
34
34
 
35
35
  it "should return current tag of the git project" do
36
- build.to_params[:tag].should == "0.0.1"
36
+ build.to_params[:version].should == "0.0.1"
37
37
  end
38
38
 
39
39
  it "should return commits of the git project between the latests tags" do
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.4
4
+ version: 0.0.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-05-24 00:00:00.000000000 Z
12
+ date: 2012-05-31 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: curb