deployments 0.0.4 → 0.0.5
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.
- data/README.md +10 -0
- data/lib/deployments/build.rb +2 -2
- data/lib/deployments/version.rb +1 -1
- data/spec/build_spec.rb +2 -2
- metadata +2 -2
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
|
|
data/lib/deployments/build.rb
CHANGED
data/lib/deployments/version.rb
CHANGED
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[:
|
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[:
|
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
|
+
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-
|
12
|
+
date: 2012-05-31 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: curb
|