n3bulous-amiruby19 1.0.1 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
data/README.textile CHANGED
@@ -25,6 +25,10 @@ Please note that this doesn't guarantee any gem will or will not work. It merel
25
25
 
26
26
  Another fine gem created with the help of "simple-gem":http://github.com/reagent/simple-gem. Your definition of fine may differ, but simple-gem is pretty good and simple.
27
27
 
28
+ h2. Be Nice
29
+
30
+ I have no idea what Is it Ruby 1.9 is using for hosting, but don't overdo it if only to be nice to their servers.
31
+
28
32
  h2. Requirements
29
33
 
30
34
  *Am I Ruby 1.9* is "tested" with Ruby 1.8.[67], and requires the following gem:
@@ -1,3 +1,6 @@
1
+ #
2
+ # Yes, this script is a quick utility hack.
3
+ #
1
4
  require 'rubygems'
2
5
  require 'json'
3
6
  require 'open-uri'
@@ -12,24 +15,30 @@ isit19_url = "http://isitruby19.com"
12
15
  isit19_file = "comments.json"
13
16
 
14
17
  installed_gems = %x[gem list].split("\n")
18
+
19
+ puts "Found #{installed_gems.size} installed gem(s)."
20
+
15
21
  installed_gems.each do |g|
22
+ $stdout.print "."
23
+ $stdout.flush
24
+
16
25
  gem_name = g.split(" ")[0]
17
26
  url = isit19_url + "/" + gem_name + "/" + isit19_file
18
27
 
19
28
  begin
20
- doc = open(url).read
29
+ json_data = open(url).read
21
30
  rescue
22
31
  missing << gem_name
23
32
  next
24
33
  end
25
34
 
26
- json = JSON.parse(doc)
35
+ gem_comments = JSON.parse(json_data)
27
36
 
28
- if json.size == 0
37
+ if gem_comments.size == 0
29
38
  untested << gem_name
30
39
  else
31
40
  sum = 0
32
- recent = json[0..4]
41
+ recent = gem_comments[0..4]
33
42
 
34
43
  recent.each do |r|
35
44
  if r["comment"]["works_for_me"]
@@ -50,17 +59,19 @@ installed_gems.each do |g|
50
59
  end
51
60
  end
52
61
 
53
- puts "WORKS\n-----"
62
+ puts "\nFinished!\n\n"
63
+
64
+ puts "WORKS (#{works.size})\n-----"
54
65
  puts works.keys.join(" ")
55
66
 
56
- puts "\nMAY WORK\n--------"
67
+ puts "\nMAY WORK (#{may_work.size})\n--------"
57
68
  puts may_work.keys.join(" ")
58
69
 
59
- puts "\nFAILS\n-----"
70
+ puts "\nFAILS (#{fails.size})\n-----"
60
71
  puts fails.keys.join(" ")
61
72
 
62
- puts "\nUNTESTED\n--------"
73
+ puts "\nUNTESTED (#{untested.size})\n--------"
63
74
  puts untested.join(" ")
64
75
 
65
- puts "\nMISSING\n-------"
76
+ puts "\nMISSING (#{missing.size})\n-------"
66
77
  puts missing.join(" ")
@@ -2,8 +2,8 @@ module Amiruby19
2
2
  module Version
3
3
 
4
4
  MAJOR = 1
5
- MINOR = 0
6
- TINY = 1
5
+ MINOR = 1
6
+ TINY = 0
7
7
 
8
8
  def self.to_s # :nodoc:
9
9
  [MAJOR, MINOR, TINY].join('.')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: n3bulous-amiruby19
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin McFadden