auto_tagger 0.2.8 → 0.2.9

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,3 +1,6 @@
1
+ 2013-04-07
2
+ - Make #fetch public (thanks James Hart)
3
+
1
4
  2012-08-29
2
5
  - Fix bug where refs wouldn't be pushed in capistrano because of setting nil values instead of allow defaults (elliterate)
3
6
 
data/README.md CHANGED
@@ -4,6 +4,8 @@ This creates and pushes tags to your git repository, please use with caution.
4
4
 
5
5
  # AutoTagger
6
6
 
7
+ [![Build Status](https://secure.travis-ci.org/zilkey/auto_tagger.png)](http://travis-ci.org/zilkey/auto_tagger)
8
+
7
9
  AutoTagger is a gem that helps you automatically create a date-stamped tag for each stage of your deployment, and deploy from the last tag from the previous environment.
8
10
 
9
11
  Let's say you have the following workflow:
@@ -181,24 +183,44 @@ You can store options in an options file, which is .auto_tagger by default. You
181
183
  --ref-path=autotags
182
184
  --refs-to-keep=5
183
185
 
184
- ## Running tests:
186
+ ## Testing
185
187
 
186
- You must be able to ssh into your box via localhost (remote login). To make this easier, add your own key to your own account:
188
+ ### Setup
187
189
 
188
- cat ~/.ssh/id_rsa.pub >>~/.ssh/authorized_keys
189
-
190
- To ensure that this has worked, try this:
190
+ 1. Authorize your local SSH keys to access your local machine:
191
191
 
192
- ssh localhost
193
-
194
- If it asks you for a password, you've done something wrong.
192
+ ```sh
193
+ ./script/configure-ssh-localhost.sh
194
+ ```
195
+
196
+ To verify, you should be able to connect to localhost without supplying a password:
197
+
198
+ ```sh
199
+ ssh localhost
200
+ ```
201
+
202
+ 2. Install bundler:
203
+
204
+ ```sh
205
+ gem install bundler
206
+ ```
207
+
208
+ 3. Install the project's bundle:
209
+
210
+ ```sh
211
+ bundle install
212
+ ```
213
+
214
+ ### Running
215
+
216
+ To run the entire suite:
217
+
218
+ rake
195
219
 
196
- To run the specs, do the following:
220
+ To run individual test suites:
197
221
 
198
- gem install bundler
199
- bundle install
200
- rspec spec
201
- cucumber features
222
+ rake spec
223
+ rake features
202
224
 
203
225
  ## Releasing
204
226
 
@@ -36,18 +36,16 @@ module AutoTagger
36
36
  new_tag
37
37
  end
38
38
 
39
+ def fetch
40
+ repo.refs.fetch(pattern, configuration.remote) if configuration.fetch_refs?
41
+ end
42
+
39
43
  def pattern
40
44
  "refs/#{configuration.ref_path}/*"
41
45
  end
42
46
 
43
47
  private :pattern
44
48
 
45
- def fetch
46
- repo.refs.fetch(pattern, configuration.remote) if configuration.fetch_refs?
47
- end
48
-
49
- private :fetch
50
-
51
49
  def push
52
50
  repo.refs.push(pattern, configuration.remote) if configuration.push_refs?
53
51
  end
@@ -41,6 +41,11 @@ Capistrano::Configuration.instance(:must_exist).load do
41
41
  end
42
42
  end
43
43
 
44
+ desc %Q{Fetches tags from remote server}
45
+ task :fetch, :roles => :app do
46
+ auto_tagger.fetch
47
+ end
48
+
44
49
  desc %Q{DEPRECATED: Prints the most current tags from all stages}
45
50
  task :print_latest_refs, :roles => :app do
46
51
  log_auto_tagger "release tag history is:"
@@ -1,3 +1,3 @@
1
1
  module AutoTagger
2
- VERSION = "0.2.8"
2
+ VERSION = "0.2.9"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: auto_tagger
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.8
4
+ version: 0.2.9
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -20,11 +20,11 @@ authors:
20
20
  autorequire:
21
21
  bindir: bin
22
22
  cert_chain: []
23
- date: 2011-09-15 00:00:00.000000000Z
23
+ date: 2011-09-15 00:00:00.000000000 Z
24
24
  dependencies:
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: capistrano
27
- requirement: &70248314650400 !ruby/object:Gem::Requirement
27
+ requirement: !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,7 +32,12 @@ dependencies:
32
32
  version: 2.5.3
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *70248314650400
35
+ version_requirements: !ruby/object:Gem::Requirement
36
+ none: false
37
+ requirements:
38
+ - - ! '>='
39
+ - !ruby/object:Gem::Version
40
+ version: 2.5.3
36
41
  description:
37
42
  email: jeff@zilkey.com
38
43
  executables:
@@ -82,6 +87,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
82
87
  - - ! '>='
83
88
  - !ruby/object:Gem::Version
84
89
  version: '0'
90
+ segments:
91
+ - 0
92
+ hash: 2598900398828212021
85
93
  required_rubygems_version: !ruby/object:Gem::Requirement
86
94
  none: false
87
95
  requirements:
@@ -90,7 +98,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
90
98
  version: '0'
91
99
  requirements: []
92
100
  rubyforge_project:
93
- rubygems_version: 1.8.10
101
+ rubygems_version: 1.8.25
94
102
  signing_key:
95
103
  specification_version: 3
96
104
  summary: Helps you automatically create tags for each stage in a multi-stage deploment