deployments 0.1.6 → 0.1.7

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -62,7 +62,7 @@ Request params:
62
62
  },
63
63
  :env => "staging",
64
64
  :version => "1.0.1",
65
- :domain => "staging.example.com"
65
+ :host_name => "staging.example.com"
66
66
  },
67
67
  :api_key => "account api key"
68
68
  }
@@ -76,6 +76,13 @@ Also you can use capistrano recipes of the gem, you need to add:
76
76
  It will add capistrano hook "after 'deploy'" for pushing deployment details to
77
77
  the server after deploy.
78
78
 
79
+ Now you can get request version.txt file from public folder, it will show the
80
+ latest tag name of the project.
81
+
82
+ ```
83
+ http://your-site/version.txt
84
+ ```
85
+
79
86
  ## Contributing
80
87
 
81
88
  1. Fork it
@@ -16,7 +16,7 @@ module Deployments
16
16
  :env => env,
17
17
  :version => tag,
18
18
  :commit_attributes => commits,
19
- :domain => domain
19
+ :host_name => domain
20
20
  },
21
21
  :api_key => api_key
22
22
  }
@@ -1,3 +1,3 @@
1
1
  module Deployments
2
- VERSION = "0.1.6"
2
+ VERSION = "0.1.7"
3
3
  end
data/spec/build_spec.rb CHANGED
@@ -24,7 +24,7 @@ describe Build do
24
24
 
25
25
  it "should return domain by env" do
26
26
  build.should_receive(:domain).and_return("staging.example.com")
27
- params[:domain].should == "staging.example.com"
27
+ params[:host_name].should == "staging.example.com"
28
28
  end
29
29
 
30
30
  it "should return api key dedicated to the env" 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.1.6
4
+ version: 0.1.7
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-06-15 00:00:00.000000000 Z
12
+ date: 2012-06-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: curb