juwelier 2.1.2 → 2.1.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7ddcd31ad89706d0a9a116f06ac6acdc20c1a933
4
- data.tar.gz: d9e9ecf5e8bbb75656de4b6845b040252f81960e
3
+ metadata.gz: 6c8879502d283b92e5f3cdcef8120a242254c0b1
4
+ data.tar.gz: 1d31e2ea36636578a10d962279e1582d2fd4097c
5
5
  SHA512:
6
- metadata.gz: 8ef8e80a3206f437568222a82125994826754f3bcb52253f289f7166e062ca15cee59eafc081030203c1126029a8afa33ed1af666af2e5fb9ff27deac732b604
7
- data.tar.gz: 4d0cc1f08d6ddd214280f35269898ae1b9a23e9ba23cd2d861eadf7e4fa365df644fe49037209c91c621eb8f95386c0c77b4539e36e512b6afb39117fd12cef8
6
+ metadata.gz: 34a8c52873c04de22e072e803fba7e1737389e37c32e22f0bd506fefea80d737917d1236ccf81fa2dd3642a2e1314bf66013ad2c364ab690f0095c67044c73d4
7
+ data.tar.gz: 45650272fdb367245558a4a5b5496ab508486c3da89e602dd568258d87f14b0d1f5644725aff4a851aeabbae41788e91b91b13b6e93626516340efb116e0fb27
data/.semver CHANGED
@@ -1,5 +1,5 @@
1
1
  ---
2
2
  :major: 2
3
3
  :minor: 1
4
- :patch: 2
4
+ :patch: 3
5
5
  :special: ''
@@ -1,3 +1,7 @@
1
+ # juwelier 2.1.3, 2016-10-22
2
+ * Forward ported patches from Jewler 2.1.2
3
+ * Updated dependencies
4
+
1
5
  # juwelier 2.1.0, 2016-02-06
2
6
 
3
7
  * Forked from the unmaintained Jeweler
data/Gemfile CHANGED
@@ -5,7 +5,7 @@ gem "git", ">= 1.2.5"
5
5
  gem "nokogiri", ">= 1.5.10"
6
6
  gem "github_api"
7
7
  gem "highline", ">= 1.6.15"
8
- gem "bundler", ">= 1.0"
8
+ gem "bundler", ">= 1.13"
9
9
  gem "rdoc"
10
10
  gem "builder"
11
11
  gem "semver"
@@ -29,13 +29,6 @@ group :test do
29
29
  gem 'coveralls', :require => false
30
30
  end
31
31
 
32
- # yo dawg, i herd u lieked juwelier
33
- group :xzibit do
34
- # steal a page from bundler's gemspec:
35
- # add this directory as juwelier, in order to bundle exec juwelier and use the current working directory
36
- gem 'juwelier', :path => '.'
37
- end
38
-
39
32
  group :debug do
40
33
  gem 'test-unit'
41
34
  end
data/Rakefile CHANGED
@@ -17,6 +17,7 @@ rescue Bundler::BundlerError => e
17
17
  end
18
18
 
19
19
  require 'rake'
20
+ $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), 'lib'))
20
21
  require 'juwelier'
21
22
 
22
23
  Juwelier::Tasks.new do |gem|
@@ -2,16 +2,16 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Juwelier::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: juwelier 2.1.2 ruby lib
5
+ # stub: juwelier 2.1.3 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "juwelier"
9
- s.version = "2.1.2"
9
+ s.version = "2.1.3"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
12
  s.require_paths = ["lib"]
13
13
  s.authors = ["Fred Mitchell", "Josh Nichols", "Yusuke Murata"]
14
- s.date = "2016-05-29"
14
+ s.date = "2016-10-22"
15
15
  s.description = "Simple and opinionated helper for creating Rubygem projects on GitHub"
16
16
  s.email = ["fred.mitchell@gmx.de", "fred.mitchell@gmx.com", "info@muratayusuke.com"]
17
17
  s.executables = ["juwelier"]
@@ -200,7 +200,7 @@ Gem::Specification.new do |s|
200
200
  s.add_runtime_dependency(%q<nokogiri>, [">= 1.5.10"])
201
201
  s.add_runtime_dependency(%q<github_api>, [">= 0"])
202
202
  s.add_runtime_dependency(%q<highline>, [">= 1.6.15"])
203
- s.add_runtime_dependency(%q<bundler>, [">= 1.0"])
203
+ s.add_runtime_dependency(%q<bundler>, [">= 1.13"])
204
204
  s.add_runtime_dependency(%q<rdoc>, [">= 0"])
205
205
  s.add_runtime_dependency(%q<builder>, [">= 0"])
206
206
  s.add_runtime_dependency(%q<semver>, [">= 0"])
@@ -214,7 +214,7 @@ Gem::Specification.new do |s|
214
214
  s.add_dependency(%q<nokogiri>, [">= 1.5.10"])
215
215
  s.add_dependency(%q<github_api>, [">= 0"])
216
216
  s.add_dependency(%q<highline>, [">= 1.6.15"])
217
- s.add_dependency(%q<bundler>, [">= 1.0"])
217
+ s.add_dependency(%q<bundler>, [">= 1.13"])
218
218
  s.add_dependency(%q<rdoc>, [">= 0"])
219
219
  s.add_dependency(%q<builder>, [">= 0"])
220
220
  s.add_dependency(%q<semver>, [">= 0"])
@@ -229,7 +229,7 @@ Gem::Specification.new do |s|
229
229
  s.add_dependency(%q<nokogiri>, [">= 1.5.10"])
230
230
  s.add_dependency(%q<github_api>, [">= 0"])
231
231
  s.add_dependency(%q<highline>, [">= 1.6.15"])
232
- s.add_dependency(%q<bundler>, [">= 1.0"])
232
+ s.add_dependency(%q<bundler>, [">= 1.13"])
233
233
  s.add_dependency(%q<rdoc>, [">= 0"])
234
234
  s.add_dependency(%q<builder>, [">= 0"])
235
235
  s.add_dependency(%q<semver>, [">= 0"])
@@ -69,12 +69,12 @@ class Juwelier
69
69
 
70
70
  if File.exist?('Gemfile')
71
71
  require 'bundler'
72
- bundler = Bundler.load
73
- bundler.dependencies_for(:default, :runtime).each do |dependency|
74
- self.add_dependency dependency.name, *dependency.requirement.as_list
72
+ bundler_runtime = Bundler.load
73
+ bundler_dependencies_for(bundler_runtime, :default, :runtime).each do |dependency|
74
+ add_dependency dependency.name, *dependency.requirement.as_list
75
75
  end
76
- bundler.dependencies_for(:development).each do |dependency|
77
- self.add_development_dependency dependency.name, *dependency.requirement.as_list
76
+ bundler_dependencies_for(bundler_runtime, :development).each do |dependency|
77
+ add_development_dependency dependency.name, *dependency.requirement.as_list
78
78
  end
79
79
  end
80
80
 
@@ -89,8 +89,20 @@ class Juwelier
89
89
  end
90
90
  end
91
91
 
92
- private
93
-
92
+ private
93
+
94
+ # Backported (or rather forward-ported) from Bunder::Runtime#dependencies_for.
95
+ # This method was available until Bundler 1.13, and then removed. We need it
96
+ # to be able to tell which gems are listed in the Gemfile without loading
97
+ # those gems first.
98
+ def bundler_dependencies_for(bundler_runtime, *groups)
99
+ if groups.empty?
100
+ bundler_runtime.dependencies
101
+ else
102
+ bundler_runtime.dependencies.select {|d| (groups & d.groups).any? }
103
+ end
104
+ end
105
+
94
106
  def blank?(value)
95
107
  value.nil? || value.empty?
96
108
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: juwelier
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.2
4
+ version: 2.1.3
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-05-29 00:00:00.000000000 Z
13
+ date: 2016-10-22 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rake
@@ -88,14 +88,14 @@ dependencies:
88
88
  requirements:
89
89
  - - ">="
90
90
  - !ruby/object:Gem::Version
91
- version: '1.0'
91
+ version: '1.13'
92
92
  type: :runtime
93
93
  prerelease: false
94
94
  version_requirements: !ruby/object:Gem::Requirement
95
95
  requirements:
96
96
  - - ">="
97
97
  - !ruby/object:Gem::Version
98
- version: '1.0'
98
+ version: '1.13'
99
99
  - !ruby/object:Gem::Dependency
100
100
  name: rdoc
101
101
  requirement: !ruby/object:Gem::Requirement