outdated-gems 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.0
1
+ 0.2.0
data/lib/outdated-gems.rb CHANGED
@@ -1,3 +1,4 @@
1
+ require 'thread'
1
2
  require 'yaml'
2
3
  require 'versionomy'
3
4
  require 'gemcutter_json'
@@ -15,6 +16,7 @@ if File.exists?(file)
15
16
  end
16
17
 
17
18
  outdated_gems = {}
19
+ m = Mutex.new
18
20
 
19
21
  hydra = Typhoeus::Hydra.new(:max_concurrency => 20)
20
22
  gemcutter = GemcutterJson.new(hydra)
@@ -25,7 +27,7 @@ if File.exists?(file)
25
27
  raise "Error fetching version for #{name} gem."
26
28
  else
27
29
  if Versionomy.parse(v_current) < Versionomy.parse(v_latest)
28
- outdated_gems[name] = "#{v_current} => #{v_latest}"
30
+ m.synchronize { outdated_gems[name] = "#{v_current} => #{v_latest}" }
29
31
  end
30
32
  end
31
33
  end
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{outdated-gems}
8
- s.version = "0.1.0"
8
+ s.version = "0.2.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Aaron Gibralter"]
metadata CHANGED
@@ -4,9 +4,9 @@ version: !ruby/object:Gem::Version
4
4
  prerelease: false
5
5
  segments:
6
6
  - 0
7
- - 1
7
+ - 2
8
8
  - 0
9
- version: 0.1.0
9
+ version: 0.2.0
10
10
  platform: ruby
11
11
  authors:
12
12
  - Aaron Gibralter