gem-stats 1.0.4 → 1.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2009 Danny Tatom
1
+ Copyright (c) 2010 Danny Tatom
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining a copy
4
4
  of this software and associated documentation files (the "Software"), to deal
data/README.md CHANGED
@@ -1,28 +1,31 @@
1
1
  # gem-stats
2
2
 
3
- View gemcutter stastics for any given gem.
3
+ View stastics for any gem.
4
4
 
5
5
  ## Installation
6
6
 
7
- If you already have gemcutter as a source, it's as easy as:
8
-
9
7
  sudo gem install gem-stats
10
8
 
11
- Otherwise, you'll need to install by source
9
+ ## Usage
12
10
 
13
- sudo gem install gem-stats --source http://gemcutter.org
11
+ > gem stats sinatra
14
12
 
15
- ## Usage
13
+ sinatra by Blake Mizerany
14
+ http://gemcutter.org/gems/sinatra
16
15
 
17
- > gem stats goldfish
16
+ Total Downloads 34621
17
+ Version Downloads 29578
18
+ Current Version 0.9.4
18
19
 
19
- goldfish by Robert Gleeson
20
- --------------------------
21
- http://gemcutter.org/gems/goldfish
20
+ Runtime Dependencies
21
+ rack >= 0.9.1
22
+ shotgun >= 0.2, < 1.0
23
+ rack-test >= 0.3.0
22
24
 
23
- Downloads: 142
24
- Current version: 0.1.3
25
+ Development Dependencies
26
+ shotgun >= 0.2, < 1.0
27
+ rack-test >= 0.3.0
25
28
 
26
29
  ## Copyright
27
30
 
28
- Copyright (c) 2009 Danny Tatom. See LICENSE for details.
31
+ Copyright (c) 2010 Danny Tatom. See LICENSE for details.
@@ -3,7 +3,7 @@ require 'json'
3
3
 
4
4
  class Gem::Commands::StatsCommand < Gem::Command
5
5
  def initialize
6
- super 'stats', 'View gemcutter statistics for any given gem'
6
+ super 'stats', 'View statistics for gems'
7
7
  end
8
8
 
9
9
  def arguments
@@ -23,7 +23,7 @@ class Gem::Commands::StatsCommand < Gem::Command
23
23
  end
24
24
 
25
25
  begin
26
- open "http://gemcutter.org/api/v1/gems/#{gem}.json" do |results|
26
+ open "http://rubygems.org/api/v1/gems/#{gem}.json" do |results|
27
27
  results.each do |result|
28
28
  stats = JSON.parse result
29
29
 
metadata CHANGED
@@ -1,7 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gem-stats
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.4
4
+ prerelease: false
5
+ segments:
6
+ - 1
7
+ - 0
8
+ - 5
9
+ version: 1.0.5
5
10
  platform: ruby
6
11
  authors:
7
12
  - Danny Tatom
@@ -9,11 +14,34 @@ autorequire:
9
14
  bindir: bin
10
15
  cert_chain: []
11
16
 
12
- date: 2010-02-12 00:00:00 -08:00
17
+ date: 2010-03-04 00:00:00 -08:00
13
18
  default_executable:
14
- dependencies: []
15
-
16
- description: View gemcutter statistics for any given gem.
19
+ dependencies:
20
+ - !ruby/object:Gem::Dependency
21
+ name: turn
22
+ prerelease: false
23
+ requirement: &id001 !ruby/object:Gem::Requirement
24
+ requirements:
25
+ - - ">="
26
+ - !ruby/object:Gem::Version
27
+ segments:
28
+ - 0
29
+ version: "0"
30
+ type: :development
31
+ version_requirements: *id001
32
+ - !ruby/object:Gem::Dependency
33
+ name: contest
34
+ prerelease: false
35
+ requirement: &id002 !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - ">="
38
+ - !ruby/object:Gem::Version
39
+ segments:
40
+ - 0
41
+ version: "0"
42
+ type: :development
43
+ version_requirements: *id002
44
+ description: View statistics for given gems.
17
45
  email: dannytatom@gmail.com
18
46
  executables: []
19
47
 
@@ -39,20 +67,22 @@ required_ruby_version: !ruby/object:Gem::Requirement
39
67
  requirements:
40
68
  - - ">="
41
69
  - !ruby/object:Gem::Version
70
+ segments:
71
+ - 0
42
72
  version: "0"
43
- version:
44
73
  required_rubygems_version: !ruby/object:Gem::Requirement
45
74
  requirements:
46
75
  - - ">="
47
76
  - !ruby/object:Gem::Version
77
+ segments:
78
+ - 0
48
79
  version: "0"
49
- version:
50
80
  requirements: []
51
81
 
52
82
  rubyforge_project:
53
- rubygems_version: 1.3.5
83
+ rubygems_version: 1.3.6
54
84
  signing_key:
55
85
  specification_version: 3
56
- summary: View gemcutter statistics for any given gem.
86
+ summary: View statistics for gems.
57
87
  test_files: []
58
88