git-trend 0.0.9 → 0.1.0
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/CHANGELOG.md +5 -1
- data/lib/git_trend/cli.rb +5 -3
- data/lib/git_trend/version.rb +1 -1
- data/spec/fixtures/trending?since= +1938 -0
- data/spec/fixtures/trending?since=daily +1938 -0
- data/spec/git_trend/cli_spec.rb +19 -8
- metadata +5 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e60d2aff615718e254916a3452f9591e77299f71
|
4
|
+
data.tar.gz: ebdddf2b117c7bb2b95280022db09689f05f08da
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 123c1f1b95bb41ac963e6c586d8b8f1e6fe13f16a36a59c62015dafc15590a8284e3c2bed3af20b32512537e078e7f01ae4acb64aaf878bcfe62580ca1874c32
|
7
|
+
data.tar.gz: 776d5b5060d146ea2c66995653e8e95f940fe682cb0c0e279417609bffef46847af5825829035477100f15cb19d0f4b3d2fb9a4373b2ccffa3079b69316d4d05
|
data/CHANGELOG.md
CHANGED
data/lib/git_trend/cli.rb
CHANGED
@@ -15,10 +15,12 @@ module GitTrend
|
|
15
15
|
end
|
16
16
|
|
17
17
|
desc :list, "\033[32m(DEFAULT COMMAND)\e[0m List Trending repository on github [-l, -s, -d]"
|
18
|
-
option :language, aliases: '-l', required: false
|
19
|
-
option :since, aliases: '-s', required: false
|
20
|
-
option :description, aliases: '-d', required: false
|
18
|
+
option :language, aliases: '-l', required: false, desc: 'Specify a language'
|
19
|
+
option :since, aliases: '-s', required: false, desc: 'Enable: [daily, weekly, monthly]'
|
20
|
+
option :description, aliases: '-d', required: false, type: :boolean, desc: 'Dislpay descriptions'
|
21
|
+
option :help, aliases: '-h', required: false, type: :boolean
|
21
22
|
def list
|
23
|
+
help(:list) and return if options[:help]
|
22
24
|
scraper = Scraper.new
|
23
25
|
projects = scraper.get(options[:language], options[:since])
|
24
26
|
render(projects, !!options[:description])
|
data/lib/git_trend/version.rb
CHANGED