thor-scmversion 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +0 -1
- data/Thorfile +27 -0
- data/lib/thor/scmversion.rb +1 -0
- metadata +18 -17
data/Rakefile
CHANGED
data/Thorfile
CHANGED
@@ -3,4 +3,31 @@ require 'thor'
|
|
3
3
|
require 'thor-scmversion'
|
4
4
|
|
5
5
|
class ThorSCMVersion < Thor
|
6
|
+
namespace 'scmver'
|
7
|
+
|
8
|
+
desc "build", "Build the gem"
|
9
|
+
def build
|
10
|
+
system("gem build -V 'thor-scmversion.gemspec'")
|
11
|
+
FileUtils.mkdir_p(File.join(File.dirname(__FILE__), 'pkg'))
|
12
|
+
FileUtils.mv("thor-scmversion-#{current_version}.gem", 'pkg')
|
13
|
+
end
|
14
|
+
|
15
|
+
desc "install", "Build and install latest to system gems"
|
16
|
+
def install
|
17
|
+
invoke "build", []
|
18
|
+
system("gem install pkg/thor-scmversion-#{current_version}.gem}")
|
19
|
+
end
|
20
|
+
|
21
|
+
desc "release TYPE", "Bump version, make a build, and push to Rubygems"
|
22
|
+
def release(type)
|
23
|
+
# @current_version = nil
|
24
|
+
# invoke "version:bump", [type]
|
25
|
+
invoke "build", []
|
26
|
+
system("gem push pkg/thor-scmversion-#{current_version}.gem}")
|
27
|
+
end
|
28
|
+
|
29
|
+
private
|
30
|
+
def current_version
|
31
|
+
@current_version ||= ::ThorSCMVersion.versioner.from_path
|
32
|
+
end
|
6
33
|
end
|
@@ -0,0 +1 @@
|
|
1
|
+
require 'thor-scmversion'
|
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.0.
|
4
|
+
version: 0.0.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -15,7 +15,7 @@ date: 2012-06-25 00:00:00.000000000Z
|
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: thor
|
18
|
-
requirement: &
|
18
|
+
requirement: &70274814343120 !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: *
|
26
|
+
version_requirements: *70274814343120
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: webmock
|
29
|
-
requirement: &
|
29
|
+
requirement: &70274814342700 !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: *
|
37
|
+
version_requirements: *70274814342700
|
38
38
|
- !ruby/object:Gem::Dependency
|
39
39
|
name: geminabox
|
40
|
-
requirement: &
|
40
|
+
requirement: &70274814342280 !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: *
|
48
|
+
version_requirements: *70274814342280
|
49
49
|
- !ruby/object:Gem::Dependency
|
50
50
|
name: spork
|
51
|
-
requirement: &
|
51
|
+
requirement: &70274814341860 !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: *
|
59
|
+
version_requirements: *70274814341860
|
60
60
|
- !ruby/object:Gem::Dependency
|
61
61
|
name: simplecov
|
62
|
-
requirement: &
|
62
|
+
requirement: &70274814341440 !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: *
|
70
|
+
version_requirements: *70274814341440
|
71
71
|
- !ruby/object:Gem::Dependency
|
72
72
|
name: vcr
|
73
|
-
requirement: &
|
73
|
+
requirement: &70274814341020 !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: *
|
81
|
+
version_requirements: *70274814341020
|
82
82
|
- !ruby/object:Gem::Dependency
|
83
83
|
name: aruba
|
84
|
-
requirement: &
|
84
|
+
requirement: &70274814340600 !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: *
|
92
|
+
version_requirements: *70274814340600
|
93
93
|
- !ruby/object:Gem::Dependency
|
94
94
|
name: rspec
|
95
|
-
requirement: &
|
95
|
+
requirement: &70274814340180 !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: *
|
103
|
+
version_requirements: *70274814340180
|
104
104
|
description: Thor tasks to manage a VERSION file based on SCM tags
|
105
105
|
email:
|
106
106
|
- ivey@gweezlebur.com
|
@@ -126,6 +126,7 @@ files:
|
|
126
126
|
- lib/thor-scmversion/scm_version.rb
|
127
127
|
- lib/thor-scmversion/shell_utils.rb
|
128
128
|
- lib/thor-scmversion/version.rb
|
129
|
+
- lib/thor/scmversion.rb
|
129
130
|
- spec/lib/scm_version_spec.rb
|
130
131
|
- spec/spec_helper.rb
|
131
132
|
- thor-scmversion.gemspec
|