bundler 1.8.4 → 1.8.5
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of bundler might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/lib/bundler/cli/gem.rb +11 -12
- data/lib/bundler/settings.rb +9 -4
- data/lib/bundler/templates/newgem/newgem.gemspec.tt +6 -4
- data/lib/bundler/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bd9cd2a859f1af1500763f43966145161f3ae948
|
4
|
+
data.tar.gz: 7c6e684d16889f20d8f23f957a22c90e0ee33c21
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e35cce86ced240aaba9dea510d7960e5809020fa950cf72cf10c238f21199d262487cb8a1929db266ea722c356a2894417ca1ce007e972489dc4bd7684cd96df
|
7
|
+
data.tar.gz: 5504d5b6d31351943f466cdc743202e68135de21309135a8f8ab6d074cba0aa125677e5c172525c571a13f5ac7484b70266ca12e0fdfdc45c9819b86fea1567d
|
data/CHANGELOG.md
CHANGED
data/lib/bundler/cli/gem.rb
CHANGED
@@ -26,7 +26,7 @@ module Bundler
|
|
26
26
|
git_user_name = `git config user.name`.chomp
|
27
27
|
git_user_email = `git config user.email`.chomp
|
28
28
|
|
29
|
-
|
29
|
+
config = {
|
30
30
|
:name => name,
|
31
31
|
:underscored_name => underscored_name,
|
32
32
|
:namespaced_path => namespaced_path,
|
@@ -67,6 +67,7 @@ module Bundler
|
|
67
67
|
"for free as long as they admit you created it. You can read more about the MIT license " \
|
68
68
|
"at choosealicense.com/licenses/mit."
|
69
69
|
)
|
70
|
+
config[:mit] = true
|
70
71
|
templates.merge!("LICENSE.txt.tt" => "LICENSE.txt")
|
71
72
|
end
|
72
73
|
|
@@ -99,7 +100,7 @@ module Bundler
|
|
99
100
|
end
|
100
101
|
|
101
102
|
templates.each do |src, dst|
|
102
|
-
thor.template("newgem/#{src}", target.join(dst),
|
103
|
+
thor.template("newgem/#{src}", target.join(dst), config)
|
103
104
|
end
|
104
105
|
|
105
106
|
Bundler.ui.info "Initializing git repo in #{target}"
|
@@ -118,17 +119,15 @@ module Bundler
|
|
118
119
|
end
|
119
120
|
|
120
121
|
def ask_and_set(key, header, message)
|
121
|
-
|
122
|
-
if !Bundler.settings.all.include?("gem.#{key}")
|
123
|
-
if result.nil?
|
124
|
-
Bundler.ui.confirm header
|
125
|
-
result = Bundler.ui.ask("#{message} y/(n):") == "y"
|
126
|
-
end
|
122
|
+
choice = options[key] || Bundler.settings["gem.#{key}"]
|
127
123
|
|
128
|
-
|
124
|
+
if choice.nil?
|
125
|
+
Bundler.ui.confirm header
|
126
|
+
choice = (Bundler.ui.ask("#{message} y/(n):") =~ /y|yes/)
|
127
|
+
Bundler.settings.set_global("gem.#{key}", choice)
|
129
128
|
end
|
130
129
|
|
131
|
-
|
130
|
+
choice
|
132
131
|
end
|
133
132
|
|
134
133
|
def validate_ext_name
|
@@ -143,6 +142,7 @@ module Bundler
|
|
143
142
|
|
144
143
|
def ask_and_set_test_framework
|
145
144
|
test_framework = options[:test] || Bundler.settings["gem.test"]
|
145
|
+
|
146
146
|
if test_framework.nil?
|
147
147
|
Bundler.ui.confirm "Do you want to generate tests with your gem?"
|
148
148
|
result = Bundler.ui.ask "Type 'rspec' or 'minitest' to generate those test files now and " \
|
@@ -150,7 +150,7 @@ module Bundler
|
|
150
150
|
if result =~ /rspec|minitest/
|
151
151
|
test_framework = result
|
152
152
|
else
|
153
|
-
test_framework =
|
153
|
+
test_framework = false
|
154
154
|
end
|
155
155
|
end
|
156
156
|
|
@@ -158,7 +158,6 @@ module Bundler
|
|
158
158
|
Bundler.settings.set_global("gem.test", test_framework)
|
159
159
|
end
|
160
160
|
|
161
|
-
return if test_framework == "false"
|
162
161
|
test_framework
|
163
162
|
end
|
164
163
|
|
data/lib/bundler/settings.rb
CHANGED
@@ -10,10 +10,15 @@ module Bundler
|
|
10
10
|
@global_config = load_config(global_config_file)
|
11
11
|
end
|
12
12
|
|
13
|
-
def [](
|
14
|
-
|
15
|
-
value = (@local_config[
|
16
|
-
|
13
|
+
def [](name)
|
14
|
+
key = key_for(name)
|
15
|
+
value = (@local_config[key] || ENV[key] || @global_config[key])
|
16
|
+
|
17
|
+
if !value.nil? && is_bool(name)
|
18
|
+
to_bool(value)
|
19
|
+
else
|
20
|
+
value
|
21
|
+
end
|
17
22
|
end
|
18
23
|
|
19
24
|
def []=(key, value)
|
@@ -9,14 +9,12 @@ Gem::Specification.new do |spec|
|
|
9
9
|
spec.authors = [<%=config[:author].inspect%>]
|
10
10
|
spec.email = [<%=config[:email].inspect%>]
|
11
11
|
|
12
|
-
if spec.respond_to?(:metadata)
|
13
|
-
spec.metadata['allowed_push_host'] = "TODO: Set to 'http://mygemserver.com' to prevent pushes to rubygems.org, or delete to allow pushes to any server."
|
14
|
-
end
|
15
|
-
|
16
12
|
spec.summary = %q{TODO: Write a short summary, because Rubygems requires one.}
|
17
13
|
spec.description = %q{TODO: Write a longer description or delete this line.}
|
18
14
|
spec.homepage = "TODO: Put your gem's website or public repo URL here."
|
15
|
+
<%- if config[:mit] -%>
|
19
16
|
spec.license = "MIT"
|
17
|
+
<%- end -%>
|
20
18
|
|
21
19
|
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
22
20
|
spec.bindir = "exe"
|
@@ -26,6 +24,10 @@ Gem::Specification.new do |spec|
|
|
26
24
|
spec.extensions = ["ext/<%=config[:underscored_name]%>/extconf.rb"]
|
27
25
|
<%- end -%>
|
28
26
|
|
27
|
+
if spec.respond_to?(:metadata)
|
28
|
+
spec.metadata['allowed_push_host'] = "TODO: Set to 'http://mygemserver.com' to prevent pushes to rubygems.org, or delete to allow pushes to any server."
|
29
|
+
end
|
30
|
+
|
29
31
|
spec.add_development_dependency "bundler", "~> <%= Bundler::VERSION.split(".")[0..1].join(".") %>"
|
30
32
|
spec.add_development_dependency "rake", "~> 10.0"
|
31
33
|
<%- if config[:ext] -%>
|
data/lib/bundler/version.rb
CHANGED
@@ -2,5 +2,5 @@ module Bundler
|
|
2
2
|
# We're doing this because we might write tests that deal
|
3
3
|
# with other versions of bundler and we are unsure how to
|
4
4
|
# handle this better.
|
5
|
-
VERSION = "1.8.
|
5
|
+
VERSION = "1.8.5" unless defined?(::Bundler::VERSION)
|
6
6
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bundler
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.8.
|
4
|
+
version: 1.8.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- André Arko
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2015-03-
|
14
|
+
date: 2015-03-11 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: mustache
|