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.
- checksums.yaml +7 -0
- data/.travis.yml +5 -0
- data/Gemfile +1 -0
- data/Gemfile.lock +3 -1
- data/README.md +1 -0
- data/Rakefile +8 -0
- data/bin/rg_stats +10 -0
- data/lib/rg_stats/version.rb +1 -1
- metadata +10 -12
checksums.yaml
ADDED
@@ -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
|
data/.travis.yml
ADDED
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,13 +1,14 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
rg_stats (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
data/Rakefile
CHANGED
data/bin/rg_stats
CHANGED
@@ -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
|
data/lib/rg_stats/version.rb
CHANGED
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.
|
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:
|
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:
|
55
|
+
rubygems_version: 2.2.0
|
57
56
|
signing_key:
|
58
|
-
specification_version:
|
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:
|