rg_stats 1.1.2 → 1.1.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: ba58450208a26a0e2159b43bdd09db9c19d4d5e9
4
+ data.tar.gz: 26e0f2ba8aef7c16624666bee3e52a3f53f481bf
5
+ SHA512:
6
+ metadata.gz: 11cb8b16790e28ffec45348ae9dc85dc7b9a16ba5c92a67a387b29e7c25bf699ff38544f1acc29d432b1e05023b8459d9cc6c1653ead8e17356f6abc35c82540
7
+ data.tar.gz: a3c155ea2e373a229afa21aac67a4f62f533c0eda7e98ea8b27d2bad01b75bf36bdbc699dd32db28cf5207f009c040860ae0c65afbc0df803f3ad3915fb2df95
@@ -0,0 +1,5 @@
1
+ language: ruby
2
+ rvm:
3
+ - 1.9.3
4
+ - jruby-19mode # JRuby in 1.9 mode
5
+ - rbx-19mode
data/Gemfile CHANGED
@@ -4,6 +4,7 @@ source 'https://rubygems.org'
4
4
  gemspec
5
5
 
6
6
  gem "json"
7
+ gem "rake"
7
8
 
8
9
  group :development do
9
10
  gem "rspec", '~> 2.9.0'
@@ -1,13 +1,14 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rg_stats (1.1.1)
4
+ rg_stats (1.1.2)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
8
8
  specs:
9
9
  diff-lcs (1.1.3)
10
10
  json (1.6.5)
11
+ rake (0.9.2.2)
11
12
  rspec (2.9.0)
12
13
  rspec-core (~> 2.9.0)
13
14
  rspec-expectations (~> 2.9.0)
@@ -22,5 +23,6 @@ PLATFORMS
22
23
 
23
24
  DEPENDENCIES
24
25
  json
26
+ rake
25
27
  rg_stats!
26
28
  rspec (~> 2.9.0)
data/README.md CHANGED
@@ -1,4 +1,5 @@
1
1
  # RubyGems Statistic
2
+ [![Build Status](https://travis-ci.org/drKreso/rg_stats.png)](https://travis-ci.org/drKreso/rg_stats)
2
3
 
3
4
  Get download statistic of your gems on RubyGems with a push of a button and stop wasting time looking it up in browser...
4
5
 
data/Rakefile CHANGED
@@ -1,2 +1,10 @@
1
1
  #!/usr/bin/env rake
2
2
  require "bundler/gem_tasks"
3
+
4
+ require 'rspec/core'
5
+ require 'rspec/core/rake_task'
6
+ RSpec::Core::RakeTask.new(:spec) do |spec|
7
+ spec.pattern = FileList['spec/**/*_spec.rb']
8
+ end
9
+
10
+ task :default => :spec
@@ -1,9 +1,18 @@
1
1
  #!/usr/bin/env ruby
2
2
  require 'open-uri'
3
3
  require 'yaml'
4
+ require 'openssl'
4
5
 
5
6
  require_relative '../lib/rg_stats/statistic'
6
7
 
8
+ def with_warnings(flag)
9
+ old_verbose, $VERBOSE = $VERBOSE, flag
10
+ yield
11
+ ensure
12
+ $VERBOSE = old_verbose
13
+ end
14
+ with_warnings(nil) { OpenSSL::SSL.const_set(:VERIFY_PEER, OpenSSL::SSL::VERIFY_NONE) }
15
+
7
16
  class PersistDataBetweenSessions
8
17
 
9
18
  HOME_FOLDER = "#{ENV['HOME']}/.rg_stats"
@@ -39,6 +48,7 @@ ARGV.each do |user_name|
39
48
  url = "https://rubygems.org/api/v1/owners/#{user_name}/gems.json"
40
49
  begin
41
50
  data_as_json = open(url)
51
+
42
52
  rescue SocketError => e
43
53
  puts "It seems connection is not available. (#{e.message})"
44
54
  exit
@@ -1,3 +1,3 @@
1
1
  module RgStats
2
- VERSION = "1.1.2"
2
+ VERSION = "1.1.3"
3
3
  end
metadata CHANGED
@@ -1,15 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rg_stats
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.2
5
- prerelease:
4
+ version: 1.1.3
6
5
  platform: ruby
7
6
  authors:
8
7
  - drKreso
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2012-05-12 00:00:00.000000000Z
11
+ date: 2014-10-22 00:00:00.000000000 Z
13
12
  dependencies: []
14
13
  description: Get download statistic of yours gems on RubyGems
15
14
  email:
@@ -19,8 +18,9 @@ executables:
19
18
  extensions: []
20
19
  extra_rdoc_files: []
21
20
  files:
22
- - .gitignore
23
- - .rspec
21
+ - ".gitignore"
22
+ - ".rspec"
23
+ - ".travis.yml"
24
24
  - Gemfile
25
25
  - Gemfile.lock
26
26
  - LICENSE
@@ -35,29 +35,27 @@ files:
35
35
  - spec/rg_stats/test_data.rb
36
36
  homepage: https://github.com/drKreso/rg_stats
37
37
  licenses: []
38
+ metadata: {}
38
39
  post_install_message:
39
40
  rdoc_options: []
40
41
  require_paths:
41
42
  - lib
42
43
  required_ruby_version: !ruby/object:Gem::Requirement
43
- none: false
44
44
  requirements:
45
- - - ! '>='
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
48
  required_rubygems_version: !ruby/object:Gem::Requirement
49
- none: false
50
49
  requirements:
51
- - - ! '>='
50
+ - - ">="
52
51
  - !ruby/object:Gem::Version
53
52
  version: '0'
54
53
  requirements: []
55
54
  rubyforge_project:
56
- rubygems_version: 1.8.10
55
+ rubygems_version: 2.2.0
57
56
  signing_key:
58
- specification_version: 3
57
+ specification_version: 4
59
58
  summary: I am wasting half of my day on checking stats...
60
59
  test_files:
61
60
  - spec/rg_stats/statistic_spec.rb
62
61
  - spec/rg_stats/test_data.rb
63
- has_rdoc: