gem-dependent 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- gem-dependent (0.2.1)
4
+ gem-dependent (0.2.2)
5
5
 
6
6
  GEM
7
7
  remote: http://rubygems.org/
data/Readme.md CHANGED
@@ -38,7 +38,6 @@ Output
38
38
 
39
39
  TODO
40
40
  =====
41
- - NOTE: Dependency.new w/ a regexp is deprecated. Dependency.new called from gem-dependent/lib/rubygems/dependent.rb:70
42
41
  - include nested dependencies (a > b > c --> a = [b,c])
43
42
  - add tests for cli interface
44
43
  - add `--type development` support
@@ -66,7 +66,7 @@ module Gem
66
66
  all = true
67
67
  matching_platform = false
68
68
  prerelease = false
69
- matcher = Gem::Dependency.new(//, Gem::Requirement.default) # any name, any version
69
+ matcher = without_deprecation_warning { Gem::Dependency.new(//, Gem::Requirement.default) } # any name, any version
70
70
  specs_and_sources = fetcher.find_matching matcher, all, matching_platform, prerelease
71
71
 
72
72
  if options[:all_versions]
@@ -76,6 +76,14 @@ module Gem
76
76
  end
77
77
  end
78
78
 
79
+ def self.without_deprecation_warning(&block)
80
+ previous = Gem::Deprecate.skip
81
+ Gem::Deprecate.skip = true
82
+ yield
83
+ ensure
84
+ Gem::Deprecate.skip = previous
85
+ end
86
+
79
87
  # get unique elements from an array (last found is used)
80
88
  # http://drawohara.com/post/146659159/ruby-enumerable-uniq-by
81
89
  def self.uniq_by(array, &block)
@@ -1,5 +1,5 @@
1
1
  module Gem
2
2
  class Dependent
3
- VERSION = Version = '0.2.1'
3
+ VERSION = Version = '0.2.2'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gem-dependent
3
3
  version: !ruby/object:Gem::Version
4
- hash: 21
4
+ hash: 19
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 1
10
- version: 0.2.1
9
+ - 2
10
+ version: 0.2.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Michael Grosser
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-05-26 00:00:00 Z
18
+ date: 2012-07-15 00:00:00 Z
19
19
  dependencies: []
20
20
 
21
21
  description: