thor-scmversion 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -10,6 +10,10 @@ module ThorSCMVersion
10
10
  version_tags.collect { |tag| new(*tag.split('.')) }.sort.reverse
11
11
  end
12
12
  end
13
+
14
+ def retrieve_tags
15
+ ShellUtils.sh("git fetch --all")
16
+ end
13
17
  end
14
18
 
15
19
  def tag
@@ -16,9 +16,13 @@ module ThorSCMVersion
16
16
  VERSION_FORMAT = /^(?<major>\d+)\.(?<minor>\d+)\.(?<patch>\d+)$/
17
17
  class << self
18
18
  def from_path(path = '.')
19
- ShellUtils.sh("git fetch --all") # TODO: this won't work for p4
19
+ retrieve_tags
20
20
  all_from_path(path).first || new(0,0,1)
21
21
  end
22
+
23
+ def retrieve_tags
24
+ # noop
25
+ end
22
26
  end
23
27
  attr_accessor :major
24
28
  attr_accessor :minor
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: thor-scmversion
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -11,11 +11,11 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2012-07-31 00:00:00.000000000Z
14
+ date: 2012-09-06 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: thor
18
- requirement: &70273681662460 !ruby/object:Gem::Requirement
18
+ requirement: &70359496362800 !ruby/object:Gem::Requirement
19
19
  none: false
20
20
  requirements:
21
21
  - - ! '>='
@@ -23,10 +23,10 @@ dependencies:
23
23
  version: '0'
24
24
  type: :runtime
25
25
  prerelease: false
26
- version_requirements: *70273681662460
26
+ version_requirements: *70359496362800
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: webmock
29
- requirement: &70273681661740 !ruby/object:Gem::Requirement
29
+ requirement: &70359496362360 !ruby/object:Gem::Requirement
30
30
  none: false
31
31
  requirements:
32
32
  - - ! '>='
@@ -34,10 +34,10 @@ dependencies:
34
34
  version: '0'
35
35
  type: :development
36
36
  prerelease: false
37
- version_requirements: *70273681661740
37
+ version_requirements: *70359496362360
38
38
  - !ruby/object:Gem::Dependency
39
39
  name: geminabox
40
- requirement: &70273681661100 !ruby/object:Gem::Requirement
40
+ requirement: &70359496361940 !ruby/object:Gem::Requirement
41
41
  none: false
42
42
  requirements:
43
43
  - - ! '>='
@@ -45,10 +45,10 @@ dependencies:
45
45
  version: '0'
46
46
  type: :development
47
47
  prerelease: false
48
- version_requirements: *70273681661100
48
+ version_requirements: *70359496361940
49
49
  - !ruby/object:Gem::Dependency
50
50
  name: spork
51
- requirement: &70273681660460 !ruby/object:Gem::Requirement
51
+ requirement: &70359496361520 !ruby/object:Gem::Requirement
52
52
  none: false
53
53
  requirements:
54
54
  - - ! '>='
@@ -56,10 +56,10 @@ dependencies:
56
56
  version: '0'
57
57
  type: :development
58
58
  prerelease: false
59
- version_requirements: *70273681660460
59
+ version_requirements: *70359496361520
60
60
  - !ruby/object:Gem::Dependency
61
61
  name: simplecov
62
- requirement: &70273681659780 !ruby/object:Gem::Requirement
62
+ requirement: &70359496361100 !ruby/object:Gem::Requirement
63
63
  none: false
64
64
  requirements:
65
65
  - - ! '>='
@@ -67,10 +67,10 @@ dependencies:
67
67
  version: '0'
68
68
  type: :development
69
69
  prerelease: false
70
- version_requirements: *70273681659780
70
+ version_requirements: *70359496361100
71
71
  - !ruby/object:Gem::Dependency
72
72
  name: vcr
73
- requirement: &70273681659120 !ruby/object:Gem::Requirement
73
+ requirement: &70359496360680 !ruby/object:Gem::Requirement
74
74
  none: false
75
75
  requirements:
76
76
  - - ! '>='
@@ -78,10 +78,10 @@ dependencies:
78
78
  version: '0'
79
79
  type: :development
80
80
  prerelease: false
81
- version_requirements: *70273681659120
81
+ version_requirements: *70359496360680
82
82
  - !ruby/object:Gem::Dependency
83
83
  name: aruba
84
- requirement: &70273681658200 !ruby/object:Gem::Requirement
84
+ requirement: &70359496360260 !ruby/object:Gem::Requirement
85
85
  none: false
86
86
  requirements:
87
87
  - - ! '>='
@@ -89,10 +89,10 @@ dependencies:
89
89
  version: '0'
90
90
  type: :development
91
91
  prerelease: false
92
- version_requirements: *70273681658200
92
+ version_requirements: *70359496360260
93
93
  - !ruby/object:Gem::Dependency
94
94
  name: rspec
95
- requirement: &70273681657360 !ruby/object:Gem::Requirement
95
+ requirement: &70359496359840 !ruby/object:Gem::Requirement
96
96
  none: false
97
97
  requirements:
98
98
  - - ! '>='
@@ -100,7 +100,7 @@ dependencies:
100
100
  version: '0'
101
101
  type: :development
102
102
  prerelease: false
103
- version_requirements: *70273681657360
103
+ version_requirements: *70359496359840
104
104
  description: Thor tasks to manage a VERSION file based on SCM tags
105
105
  email:
106
106
  - ivey@gweezlebur.com
@@ -143,21 +143,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
143
143
  - - ! '>='
144
144
  - !ruby/object:Gem::Version
145
145
  version: '0'
146
- segments:
147
- - 0
148
- hash: -455863252809093395
149
146
  required_rubygems_version: !ruby/object:Gem::Requirement
150
147
  none: false
151
148
  requirements:
152
149
  - - ! '>='
153
150
  - !ruby/object:Gem::Version
154
151
  version: '0'
155
- segments:
156
- - 0
157
- hash: -455863252809093395
158
152
  requirements: []
159
153
  rubyforge_project:
160
- rubygems_version: 1.8.10
154
+ rubygems_version: 1.8.11
161
155
  signing_key:
162
156
  specification_version: 3
163
157
  summary: A small set of Thor tasks you can include in your build scripts to manage
@@ -171,3 +165,4 @@ test_files:
171
165
  - features/support/env.rb
172
166
  - spec/lib/scm_version_spec.rb
173
167
  - spec/spec_helper.rb
168
+ has_rdoc: