jeweler2 2.0.8 → 2.0.9
Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,15 @@
|
|
1
|
+
class Jeweler
|
2
|
+
module Commands
|
3
|
+
module ReleaseCommon
|
4
|
+
|
5
|
+
|
6
|
+
def clean_staging_area?
|
7
|
+
# surprisingly simpler than ruby-git
|
8
|
+
# `git ls-files --deleted --modified --others --exclude-standard` == ""
|
9
|
+
`git ls-files --deleted --modified --exclude-standard` == ""
|
10
|
+
end
|
11
|
+
|
12
|
+
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
@@ -1,8 +1,12 @@
|
|
1
1
|
require 'pathname'
|
2
|
+
require_relative 'release_common'
|
2
3
|
|
3
4
|
class Jeweler
|
4
5
|
module Commands
|
5
6
|
class ReleaseGemspec
|
7
|
+
|
8
|
+
include ReleaseCommon
|
9
|
+
|
6
10
|
attr_accessor :gemspec, :version, :repo, :output, :gemspec_helper, :base_dir
|
7
11
|
|
8
12
|
def initialize(attributes = {})
|
@@ -29,11 +33,6 @@ class Jeweler
|
|
29
33
|
repo.push('origin', branch)
|
30
34
|
end
|
31
35
|
|
32
|
-
def clean_staging_area?
|
33
|
-
# surprisingly simpler than ruby-git
|
34
|
-
`git ls-files --deleted --modified --others --exclude-standard` == ""
|
35
|
-
end
|
36
|
-
|
37
36
|
def commit_gemspec!
|
38
37
|
gemspec_gitpath = working_subdir.join(gemspec_helper.path)
|
39
38
|
repo.add(gemspec_gitpath.to_s)
|
@@ -1,6 +1,11 @@
|
|
1
|
+
|
2
|
+
require_relative 'release_common'
|
3
|
+
|
1
4
|
class Jeweler
|
2
5
|
module Commands
|
3
6
|
class ReleaseToGit
|
7
|
+
include ReleaseCommon
|
8
|
+
|
4
9
|
attr_accessor :gemspec, :version, :repo, :output, :gemspec_helper, :base_dir
|
5
10
|
|
6
11
|
def initialize(attributes = {})
|
@@ -31,10 +36,6 @@ class Jeweler
|
|
31
36
|
end
|
32
37
|
end
|
33
38
|
|
34
|
-
def clean_staging_area?
|
35
|
-
`git ls-files --deleted --modified --others --exclude-standard` == ""
|
36
|
-
end
|
37
|
-
|
38
39
|
def release_tag
|
39
40
|
"v#{version}"
|
40
41
|
end
|
data/lib/jeweler/temp.rb
ADDED
File without changes
|
data/lib/jeweler/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jeweler2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.9
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2011-11-
|
12
|
+
date: 2011-11-07 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: git
|
16
|
-
requirement: &
|
16
|
+
requirement: &13128460 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: 1.2.5
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *13128460
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: shoulda
|
27
|
-
requirement: &
|
27
|
+
requirement: &13127980 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: '0'
|
33
33
|
type: :development
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *13127980
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: rr
|
38
|
-
requirement: &
|
38
|
+
requirement: &13127500 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ! '>='
|
@@ -43,10 +43,10 @@ dependencies:
|
|
43
43
|
version: '0'
|
44
44
|
type: :development
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *13127500
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: mocha
|
49
|
-
requirement: &
|
49
|
+
requirement: &13126980 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
52
|
- - ! '>='
|
@@ -54,10 +54,10 @@ dependencies:
|
|
54
54
|
version: '0'
|
55
55
|
type: :development
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
57
|
+
version_requirements: *13126980
|
58
58
|
- !ruby/object:Gem::Dependency
|
59
59
|
name: redgreen
|
60
|
-
requirement: &
|
60
|
+
requirement: &13126480 !ruby/object:Gem::Requirement
|
61
61
|
none: false
|
62
62
|
requirements:
|
63
63
|
- - ! '>='
|
@@ -65,10 +65,10 @@ dependencies:
|
|
65
65
|
version: '0'
|
66
66
|
type: :development
|
67
67
|
prerelease: false
|
68
|
-
version_requirements: *
|
68
|
+
version_requirements: *13126480
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: test-construct
|
71
|
-
requirement: &
|
71
|
+
requirement: &13142220 !ruby/object:Gem::Requirement
|
72
72
|
none: false
|
73
73
|
requirements:
|
74
74
|
- - ! '>='
|
@@ -76,10 +76,10 @@ dependencies:
|
|
76
76
|
version: '0'
|
77
77
|
type: :development
|
78
78
|
prerelease: false
|
79
|
-
version_requirements: *
|
79
|
+
version_requirements: *13142220
|
80
80
|
- !ruby/object:Gem::Dependency
|
81
81
|
name: yard
|
82
|
-
requirement: &
|
82
|
+
requirement: &13140960 !ruby/object:Gem::Requirement
|
83
83
|
none: false
|
84
84
|
requirements:
|
85
85
|
- - ! '>='
|
@@ -87,10 +87,10 @@ dependencies:
|
|
87
87
|
version: '0'
|
88
88
|
type: :development
|
89
89
|
prerelease: false
|
90
|
-
version_requirements: *
|
90
|
+
version_requirements: *13140960
|
91
91
|
- !ruby/object:Gem::Dependency
|
92
92
|
name: bluecloth
|
93
|
-
requirement: &
|
93
|
+
requirement: &13139700 !ruby/object:Gem::Requirement
|
94
94
|
none: false
|
95
95
|
requirements:
|
96
96
|
- - ! '>='
|
@@ -98,10 +98,10 @@ dependencies:
|
|
98
98
|
version: '0'
|
99
99
|
type: :development
|
100
100
|
prerelease: false
|
101
|
-
version_requirements: *
|
101
|
+
version_requirements: *13139700
|
102
102
|
- !ruby/object:Gem::Dependency
|
103
103
|
name: cucumber
|
104
|
-
requirement: &
|
104
|
+
requirement: &13139040 !ruby/object:Gem::Requirement
|
105
105
|
none: false
|
106
106
|
requirements:
|
107
107
|
- - ! '>='
|
@@ -109,10 +109,10 @@ dependencies:
|
|
109
109
|
version: '0'
|
110
110
|
type: :development
|
111
111
|
prerelease: false
|
112
|
-
version_requirements: *
|
112
|
+
version_requirements: *13139040
|
113
113
|
- !ruby/object:Gem::Dependency
|
114
114
|
name: rcov
|
115
|
-
requirement: &
|
115
|
+
requirement: &13138540 !ruby/object:Gem::Requirement
|
116
116
|
none: false
|
117
117
|
requirements:
|
118
118
|
- - ! '>='
|
@@ -120,10 +120,10 @@ dependencies:
|
|
120
120
|
version: '0'
|
121
121
|
type: :development
|
122
122
|
prerelease: false
|
123
|
-
version_requirements: *
|
123
|
+
version_requirements: *13138540
|
124
124
|
- !ruby/object:Gem::Dependency
|
125
125
|
name: timecop
|
126
|
-
requirement: &
|
126
|
+
requirement: &13138040 !ruby/object:Gem::Requirement
|
127
127
|
none: false
|
128
128
|
requirements:
|
129
129
|
- - ! '>='
|
@@ -131,10 +131,10 @@ dependencies:
|
|
131
131
|
version: '0'
|
132
132
|
type: :development
|
133
133
|
prerelease: false
|
134
|
-
version_requirements: *
|
134
|
+
version_requirements: *13138040
|
135
135
|
- !ruby/object:Gem::Dependency
|
136
136
|
name: activesupport
|
137
|
-
requirement: &
|
137
|
+
requirement: &13137560 !ruby/object:Gem::Requirement
|
138
138
|
none: false
|
139
139
|
requirements:
|
140
140
|
- - ~>
|
@@ -142,7 +142,7 @@ dependencies:
|
|
142
142
|
version: '3'
|
143
143
|
type: :development
|
144
144
|
prerelease: false
|
145
|
-
version_requirements: *
|
145
|
+
version_requirements: *13137560
|
146
146
|
description: Simple and opinionated helper for creating Rubygem projects on GitHub
|
147
147
|
email: josh@technicalpickles.com
|
148
148
|
executables:
|
@@ -157,6 +157,7 @@ files:
|
|
157
157
|
- lib/jeweler/commands/build_gem.rb
|
158
158
|
- lib/jeweler/commands/check_dependencies.rb
|
159
159
|
- lib/jeweler/commands/install_gem.rb
|
160
|
+
- lib/jeweler/commands/release_common.rb
|
160
161
|
- lib/jeweler/commands/release_gemspec.rb
|
161
162
|
- lib/jeweler/commands/release_to_git.rb
|
162
163
|
- lib/jeweler/commands/release_to_rubygems.rb
|
@@ -190,6 +191,7 @@ files:
|
|
190
191
|
- lib/jeweler/rubygems_tasks.rb
|
191
192
|
- lib/jeweler/specification.rb
|
192
193
|
- lib/jeweler/tasks.rb
|
194
|
+
- lib/jeweler/temp.rb
|
193
195
|
- lib/jeweler/version.rb
|
194
196
|
- lib/jeweler/version_helper.rb
|
195
197
|
- lib/jeweler2.rb
|
@@ -212,7 +214,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
212
214
|
version: '0'
|
213
215
|
segments:
|
214
216
|
- 0
|
215
|
-
hash: -
|
217
|
+
hash: -3105669259854254672
|
216
218
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
217
219
|
none: false
|
218
220
|
requirements:
|
@@ -221,7 +223,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
221
223
|
version: '0'
|
222
224
|
requirements: []
|
223
225
|
rubyforge_project:
|
224
|
-
rubygems_version: 1.8.
|
226
|
+
rubygems_version: 1.8.8
|
225
227
|
signing_key:
|
226
228
|
specification_version: 3
|
227
229
|
summary: Opinionated tool for creating and managing RubyGem projects
|