jeweler 2.2.1 → 2.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.semver +2 -2
- data/Gemfile.lock +10 -10
- data/jeweler.gemspec +3 -4
- data/lib/jeweler/generator/rspec_mixin.rb +1 -1
- metadata +2 -3
- data/lib/jeweler/gemspec_helper.rb.orig +0 -91
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0b26e88f67ad81c5e85efe307aa9639f01f1b15c
|
4
|
+
data.tar.gz: 01114a849a26fb617e98f1848c15663366894e32
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5e31143d436e38e2756959967dc0f7d33bcea3afba9ad5fb058ab4c3b4289438e728c87fb40e37767d0c045c88071d61c4e78c88756c9f4f07bd3d48fede3e4d
|
7
|
+
data.tar.gz: bc5d0288badc3b595deb5caa943c07a90c4b39e3385b1913284eca230296b66f34ec860dea303349f1fce73eeb51347a59a9b726440e1311ea0c57d8938e04e5
|
data/.semver
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
jeweler (2.
|
4
|
+
jeweler (2.3.0)
|
5
5
|
builder
|
6
6
|
bundler (>= 1.0)
|
7
7
|
git (>= 1.2.5)
|
@@ -23,12 +23,12 @@ GEM
|
|
23
23
|
public_suffix (~> 2.0, >= 2.0.2)
|
24
24
|
bluecloth (2.2.0)
|
25
25
|
builder (3.2.2)
|
26
|
-
coveralls (0.8.
|
26
|
+
coveralls (0.8.17)
|
27
27
|
json (>= 1.8, < 3)
|
28
28
|
simplecov (~> 0.12.0)
|
29
29
|
term-ansicolor (~> 1.3)
|
30
30
|
thor (~> 0.19.1)
|
31
|
-
tins (
|
31
|
+
tins (~> 1.6)
|
32
32
|
cucumber (2.4.0)
|
33
33
|
builder (>= 2.1.2)
|
34
34
|
cucumber-core (~> 1.5.0)
|
@@ -68,7 +68,7 @@ GEM
|
|
68
68
|
metaclass (~> 0.0.1)
|
69
69
|
multi_json (1.12.1)
|
70
70
|
multi_test (0.1.2)
|
71
|
-
multi_xml (0.
|
71
|
+
multi_xml (0.6.0)
|
72
72
|
multipart-post (2.0.0)
|
73
73
|
nokogiri (1.6.8.1)
|
74
74
|
mini_portile2 (~> 2.1.0)
|
@@ -78,11 +78,11 @@ GEM
|
|
78
78
|
multi_json (~> 1.3)
|
79
79
|
multi_xml (~> 0.5)
|
80
80
|
rack (>= 1.2, < 3)
|
81
|
-
power_assert (0.
|
82
|
-
psych (2.2.
|
81
|
+
power_assert (0.4.1)
|
82
|
+
psych (2.2.1)
|
83
83
|
public_suffix (2.0.4)
|
84
84
|
rack (2.0.1)
|
85
|
-
rake (
|
85
|
+
rake (12.0.0)
|
86
86
|
rdoc (5.0.0)
|
87
87
|
redgreen (1.2.2)
|
88
88
|
rr (1.2.0)
|
@@ -100,16 +100,16 @@ GEM
|
|
100
100
|
simplecov-html (0.10.0)
|
101
101
|
term-ansicolor (1.4.0)
|
102
102
|
tins (~> 1.0)
|
103
|
-
test-unit (3.2.
|
103
|
+
test-unit (3.2.3)
|
104
104
|
power_assert
|
105
105
|
test-unit-rr (1.0.5)
|
106
106
|
rr (>= 1.1.1)
|
107
107
|
test-unit (>= 2.5.2)
|
108
108
|
test_construct (2.0.1)
|
109
|
-
thor (0.19.
|
109
|
+
thor (0.19.4)
|
110
110
|
thread_safe (0.3.5)
|
111
111
|
timecop (0.8.1)
|
112
|
-
tins (1.
|
112
|
+
tins (1.13.0)
|
113
113
|
yard (0.9.5)
|
114
114
|
|
115
115
|
PLATFORMS
|
data/jeweler.gemspec
CHANGED
@@ -2,16 +2,16 @@
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
3
|
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
|
-
# stub: jeweler 2.
|
5
|
+
# stub: jeweler 2.3.0 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "jeweler".freeze
|
9
|
-
s.version = "2.
|
9
|
+
s.version = "2.3.0"
|
10
10
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
|
12
12
|
s.require_paths = ["lib".freeze]
|
13
13
|
s.authors = ["Fred Mitchell".freeze, "Josh Nichols".freeze, "Yusuke Murata".freeze]
|
14
|
-
s.date = "2016-
|
14
|
+
s.date = "2016-12-08"
|
15
15
|
s.description = "Simple and opinionated helper for creating Rubygem projects on GitHub".freeze
|
16
16
|
s.email = ["fred.mitchell@gmx.de".freeze, "fred.mitchell@gmx.com".freeze, "info@muratayusuke.com".freeze]
|
17
17
|
s.executables = ["jeweler".freeze]
|
@@ -74,7 +74,6 @@ Gem::Specification.new do |s|
|
|
74
74
|
"lib/jeweler/errors.rb",
|
75
75
|
"lib/jeweler/gemcutter_tasks.rb",
|
76
76
|
"lib/jeweler/gemspec_helper.rb",
|
77
|
-
"lib/jeweler/gemspec_helper.rb.orig",
|
78
77
|
"lib/jeweler/generator.rb",
|
79
78
|
"lib/jeweler/generator/application.rb",
|
80
79
|
"lib/jeweler/generator/bacon_mixin.rb",
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jeweler
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Fred Mitchell
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2016-
|
13
|
+
date: 2016-12-08 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rake
|
@@ -274,7 +274,6 @@ files:
|
|
274
274
|
- lib/jeweler/errors.rb
|
275
275
|
- lib/jeweler/gemcutter_tasks.rb
|
276
276
|
- lib/jeweler/gemspec_helper.rb
|
277
|
-
- lib/jeweler/gemspec_helper.rb.orig
|
278
277
|
- lib/jeweler/generator.rb
|
279
278
|
- lib/jeweler/generator/application.rb
|
280
279
|
- lib/jeweler/generator/bacon_mixin.rb
|
@@ -1,91 +0,0 @@
|
|
1
|
-
class Jeweler
|
2
|
-
class GemSpecHelper
|
3
|
-
attr_accessor :spec, :base_dir
|
4
|
-
|
5
|
-
def initialize(spec, base_dir = nil)
|
6
|
-
self.spec = spec
|
7
|
-
self.base_dir = base_dir || ''
|
8
|
-
|
9
|
-
yield spec if block_given?
|
10
|
-
end
|
11
|
-
|
12
|
-
def valid?
|
13
|
-
parse
|
14
|
-
true
|
15
|
-
rescue
|
16
|
-
false
|
17
|
-
end
|
18
|
-
|
19
|
-
def write
|
20
|
-
File.open(path, 'w') do |f|
|
21
|
-
f.write to_ruby
|
22
|
-
end
|
23
|
-
end
|
24
|
-
|
25
|
-
def to_ruby
|
26
|
-
normalize_files(:files)
|
27
|
-
normalize_files(:extra_rdoc_files)
|
28
|
-
|
29
|
-
gemspec_ruby = @spec.to_ruby
|
30
|
-
gemspec_ruby = prettyify_array(gemspec_ruby, :files)
|
31
|
-
gemspec_ruby = prettyify_array(gemspec_ruby, :extra_rdoc_files)
|
32
|
-
gemspec_ruby = <<-END
|
33
|
-
# Generated by jeweler
|
34
|
-
# DO NOT EDIT THIS FILE DIRECTLY
|
35
|
-
# Instead, edit Jeweler::Tasks in #{Rake.application.rakefile}, and run 'rake gemspec'
|
36
|
-
#{gemspec_ruby}
|
37
|
-
END
|
38
|
-
end
|
39
|
-
|
40
|
-
def path
|
41
|
-
denormalized_path = File.join(@base_dir, "#{@spec.name}.gemspec")
|
42
|
-
absolute_path = File.expand_path(denormalized_path)
|
43
|
-
absolute_path.gsub(Dir.getwd + File::SEPARATOR, '')
|
44
|
-
end
|
45
|
-
|
46
|
-
PARSE_SAFE = (RUBY_VERSION >= '2.3') ? 1 : 3
|
47
|
-
|
48
|
-
def parse
|
49
|
-
data = to_ruby
|
50
|
-
parsed_gemspec = nil
|
51
|
-
<<<<<<< HEAD
|
52
|
-
Thread.new { parsed_gemspec = eval("$SAFE = 1\n#{data}", binding, path) }.join
|
53
|
-
=======
|
54
|
-
Thread.new { parsed_gemspec = eval("$SAFE = #{PARSE_SAFE}\n#{data}", binding, path) }.join
|
55
|
-
>>>>>>> 1d6f8d13d012c584ad37b496c999edfb0127aadc
|
56
|
-
parsed_gemspec
|
57
|
-
end
|
58
|
-
|
59
|
-
def normalize_files(array_attribute)
|
60
|
-
array = @spec.send(array_attribute)
|
61
|
-
# only keep files, no directories, and sort
|
62
|
-
array = array.select do |path|
|
63
|
-
File.file? File.join(@base_dir, path)
|
64
|
-
end.sort
|
65
|
-
|
66
|
-
@spec.send("#{array_attribute}=", array)
|
67
|
-
end
|
68
|
-
|
69
|
-
# Adds extra space when outputting an array. This helps create better version control diffs, because otherwise it is all on the same line.
|
70
|
-
def prettyify_array(gemspec_ruby, array_name)
|
71
|
-
gemspec_ruby.gsub(/s\.#{array_name.to_s} = \[.+?\]/) do |match|
|
72
|
-
leadin, files = match[0..-2].split('[')
|
73
|
-
|
74
|
-
leadin + "[\n #{files.gsub(%(", "), %(",\n "))}\n ]"
|
75
|
-
end
|
76
|
-
end
|
77
|
-
|
78
|
-
def gem_path
|
79
|
-
File.join(@base_dir, 'pkg', parse.file_name)
|
80
|
-
end
|
81
|
-
|
82
|
-
def update_version(version)
|
83
|
-
@spec.version = version.to_s
|
84
|
-
end
|
85
|
-
|
86
|
-
# Checks whether it uses the version helper or the users defined version.
|
87
|
-
def has_version?
|
88
|
-
!@spec.version.nil?
|
89
|
-
end
|
90
|
-
end
|
91
|
-
end
|