rubygems-mini_mirror 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/Changelog ADDED
@@ -0,0 +1,4 @@
1
+ 2011-12-13 Hallelujah - Ramihajamalala Hery <hery@rails-royce.org> [1.0.2]
2
+
3
+ * Fixes fetching all dependencies : issue #1
4
+ * Implement gem command
data/TODO.md CHANGED
@@ -2,6 +2,5 @@
2
2
 
3
3
  * Implement downloading gems
4
4
  * Implement caching
5
- * Implement gem command plugin
6
5
  * Make tests
7
6
  * Add documentation
@@ -9,7 +9,7 @@ module Gem
9
9
 
10
10
  def fetch_deps(dep)
11
11
  with_sources dep.sources do
12
- found, errors = @spec_fetcher.fetch_with_errors dep, dep.respond_to?(:all) ? dep.all? : false , false
12
+ found, errors = @spec_fetcher.fetch_with_errors dep, dep.respond_to?(:all?) ? dep.all? : false , false
13
13
  found.each do |spec,source_uri|
14
14
  next if is_in_specs?(spec)
15
15
  add_to_specs(spec,source_uri)
@@ -31,7 +31,7 @@ module Gem
31
31
  end
32
32
 
33
33
  def is_in_specs?(spec)
34
- @specs_list.key?(spec.platform.to_s) && @specs_list[spec.platform.to_s].key?(spec.name.to_s) && @specs_list[spec.platform.to_s][spec.name.to_s].has_key?(spec.version.to_s)
34
+ @specs_list[spec.platform.to_s][spec.name.to_s].key?(spec.version.to_s) rescue false
35
35
  end
36
36
 
37
37
  def add_to_deps(*deps)
@@ -1,5 +1,5 @@
1
1
  module Gem
2
2
  module MiniMirror
3
- VERSION = "1.0.1"
3
+ VERSION = "1.0.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubygems-mini_mirror
3
3
  version: !ruby/object:Gem::Version
4
- hash: 21
4
+ hash: 19
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 1
10
- version: 1.0.1
9
+ - 2
10
+ version: 1.0.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Ramihajamalala Hery
@@ -15,13 +15,12 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-09-27 00:00:00 +02:00
18
+ date: 2011-12-13 00:00:00 +01:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
22
22
  name: net-http-persistent
23
- prerelease: false
24
- requirement: &id001 !ruby/object:Gem::Requirement
23
+ version_requirements: &id001 !ruby/object:Gem::Requirement
25
24
  none: false
26
25
  requirements:
27
26
  - - ">="
@@ -32,12 +31,12 @@ dependencies:
32
31
  - 2
33
32
  - 5
34
33
  version: 1.2.5
34
+ prerelease: false
35
+ requirement: *id001
35
36
  type: :runtime
36
- version_requirements: *id001
37
37
  - !ruby/object:Gem::Dependency
38
38
  name: rake
39
- prerelease: false
40
- requirement: &id002 !ruby/object:Gem::Requirement
39
+ version_requirements: &id002 !ruby/object:Gem::Requirement
41
40
  none: false
42
41
  requirements:
43
42
  - - ">="
@@ -46,8 +45,9 @@ dependencies:
46
45
  segments:
47
46
  - 0
48
47
  version: "0"
48
+ prerelease: false
49
+ requirement: *id002
49
50
  type: :development
50
- version_requirements: *id002
51
51
  description: "\n Mirror some version of gems with Gem::Version DSL\n Create a mini_gem file and add this to it :\n source :gemcutter\n gem 'rails', ['~> 1.2.0', '>= 3.0']\n\n or\n source :gemcutter\n resource :path => '/your_path/mini_gem.yml'\n\n # /your_path/mini_gem.yml\n\n gem:\n - rails:\n -\n - '~> 1.2.0'\n - '>= 3.0'\n\n It will solve the dependencies for you so you don't have to write an exhaustive list of the gems you want to mirror\n "
52
52
  email:
53
53
  - hery@rails-royce.org
@@ -59,6 +59,7 @@ extra_rdoc_files: []
59
59
 
60
60
  files:
61
61
  - .gitignore
62
+ - Changelog
62
63
  - Gemfile
63
64
  - LICENSE
64
65
  - README.md