gh-trending 1.0.2 → 1.0.3
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.
- checksums.yaml +4 -4
- data/gh-trending.gemspec +4 -12
- data/lib/gh_trending/developers.rb +2 -2
- data/lib/gh_trending/repositories.rb +2 -2
- data/lib/gh_trending/version.rb +1 -1
- metadata +6 -19
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 172985c41d0f31a3bae9edf3b0be0e95349efbe5
|
4
|
+
data.tar.gz: 247dc1a8f571ec548d5839f6f02627979ec20b55
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 15608e27b6272958ca3568fc077c2e8dfc1d3d00c31021ff4fb751552baec998810005cf5b9b4adab760f8df99b7bf86cde898f612f1845c44f6fdd77a366190
|
7
|
+
data.tar.gz: '09ab7924f4a4b3d2d1a8d4d54a9803e260692e7177b3f14122aa9c4059fb2529ab68de5c70d31646aaff48284735d3d70b5b969393f3cf770d1f192402c4f88b'
|
data/gh-trending.gemspec
CHANGED
@@ -11,21 +11,14 @@ Gem::Specification.new do |spec|
|
|
11
11
|
|
12
12
|
spec.summary = %q{Fetch trending repositories/developers from the github's trending page}
|
13
13
|
spec.description = %q{
|
14
|
-
Fetches the trending repositories and developers from the github's trending page
|
15
|
-
|
14
|
+
Fetches the trending repositories and developers from the github's trending page.
|
15
|
+
|
16
|
+
You can also filter the trending repositories and developers by your favorite language and by time period
|
17
|
+
(last day, last week and last month).
|
16
18
|
}
|
17
19
|
spec.homepage = "https://github.com/luispcosta/gh-trending"
|
18
20
|
spec.license = "MIT"
|
19
21
|
|
20
|
-
# Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
|
21
|
-
# to allow pushing to a single host or delete this section to allow pushing to any host.
|
22
|
-
if spec.respond_to?(:metadata)
|
23
|
-
spec.metadata['allowed_push_host'] = "https://rubygems.org/"
|
24
|
-
else
|
25
|
-
raise "RubyGems 2.0 or newer is required to protect against " \
|
26
|
-
"public gem pushes."
|
27
|
-
end
|
28
|
-
|
29
22
|
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
30
23
|
f.match(%r{^(test|spec|features)/})
|
31
24
|
end
|
@@ -38,7 +31,6 @@ Gem::Specification.new do |spec|
|
|
38
31
|
spec.add_development_dependency "bundler", "~> 1.14"
|
39
32
|
spec.add_development_dependency "rake", "~> 10.0"
|
40
33
|
spec.add_development_dependency "rspec"
|
41
|
-
spec.add_development_dependency "mechanize"
|
42
34
|
spec.add_development_dependency "pry-byebug"
|
43
35
|
spec.add_development_dependency "faker"
|
44
36
|
end
|
@@ -18,8 +18,8 @@ module Gh
|
|
18
18
|
def get(*args)
|
19
19
|
parse_args = Gh::Trending::Parsers::ParserArguments.new(*args)
|
20
20
|
developers_list.clear
|
21
|
-
|
22
|
-
developers_list.
|
21
|
+
|
22
|
+
developers_list.push *@parser.parse(parse_args).to_a.compact
|
23
23
|
end
|
24
24
|
|
25
25
|
def [](idx)
|
@@ -19,8 +19,8 @@ module Gh
|
|
19
19
|
def get(*args)
|
20
20
|
parse_args = Gh::Trending::Parsers::ParserArguments.new(*args)
|
21
21
|
repos_list.clear
|
22
|
-
|
23
|
-
repos_list.
|
22
|
+
|
23
|
+
repos_list.push *@parser.parse(parse_args).to_a.compact
|
24
24
|
end
|
25
25
|
|
26
26
|
def [](idx)
|
data/lib/gh_trending/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gh-trending
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- luispcosta
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-06-
|
11
|
+
date: 2017-06-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mechanize
|
@@ -66,20 +66,6 @@ dependencies:
|
|
66
66
|
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
|
-
- !ruby/object:Gem::Dependency
|
70
|
-
name: mechanize
|
71
|
-
requirement: !ruby/object:Gem::Requirement
|
72
|
-
requirements:
|
73
|
-
- - ">="
|
74
|
-
- !ruby/object:Gem::Version
|
75
|
-
version: '0'
|
76
|
-
type: :development
|
77
|
-
prerelease: false
|
78
|
-
version_requirements: !ruby/object:Gem::Requirement
|
79
|
-
requirements:
|
80
|
-
- - ">="
|
81
|
-
- !ruby/object:Gem::Version
|
82
|
-
version: '0'
|
83
69
|
- !ruby/object:Gem::Dependency
|
84
70
|
name: pry-byebug
|
85
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -109,7 +95,9 @@ dependencies:
|
|
109
95
|
- !ruby/object:Gem::Version
|
110
96
|
version: '0'
|
111
97
|
description: "\n Fetches the trending repositories and developers from the github's
|
112
|
-
trending page
|
98
|
+
trending page.\n\n You can also filter the trending repositories and developers
|
99
|
+
by your favorite language and by time period\n (last day, last week and last
|
100
|
+
month).\n "
|
113
101
|
email:
|
114
102
|
- luispcosta18@gmail.com
|
115
103
|
executables: []
|
@@ -142,8 +130,7 @@ files:
|
|
142
130
|
homepage: https://github.com/luispcosta/gh-trending
|
143
131
|
licenses:
|
144
132
|
- MIT
|
145
|
-
metadata:
|
146
|
-
allowed_push_host: https://rubygems.org/
|
133
|
+
metadata: {}
|
147
134
|
post_install_message:
|
148
135
|
rdoc_options: []
|
149
136
|
require_paths:
|