git-trend 0.0.8 → 0.0.9

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f57110a790f167885bd1f37c5d6ab482e26f223b
4
- data.tar.gz: 5b5dc73682fb47665d72651800df82270d45884a
3
+ metadata.gz: 48d5082fc2e5e19ac182b5229c355e85de6e441b
4
+ data.tar.gz: f930442f2467d37a73032d153853b7052b7078a8
5
5
  SHA512:
6
- metadata.gz: 35bcff208b8e7939bba39db0a4550d1c0577dcdd9a719fe6310df5745af195c483f3f5727ea3e826e41ac9ef8bcde1ee593f4b98de27e405ef4e03a26bb69ff2
7
- data.tar.gz: 63d649e9d633ccc5878a25cbd17c1c27ffb5433cf6bf035999f749a76da7a32750e7779b738b3b76cd4fef18ff5a0bc4c2e3747e35e62cbab6143d8e342bf885
6
+ metadata.gz: dd73c0e8f4fc8e5ba6d93ef09142ee6a7a2a21e89594b04a8475790754990b4408a964cccec7082aaeb6779816b75dbe7c596f7c4fa0eaba1e3adc192d1eb8ac
7
+ data.tar.gz: 32db91ecc0c2eab578e7ada52ac4e7fc8d6f89d3fa9294b266218af708c43771cb9e549aede9880104712a82c1aa02a6487c53da1ef35f7ee97322120a8b5011
@@ -1,34 +1,38 @@
1
+ ## v0.0.9
2
+
3
+ * Change a name of option from `all_language` to `language`. [114e425]
4
+
1
5
  ## v0.0.8
2
6
 
3
- * Upgrade simplecov 0.9.0 (5fbcbab)
4
- * Fix gemspec homepage typo (9bd6b48)
7
+ * Upgrade simplecov 0.9.0 [5fbcbab]
8
+ * Fix gemspec homepage typo [9bd6b48]
5
9
 
6
10
  ## v0.0.7
7
11
 
8
- * Tweak help message.(Accent a green color in help) (9da3e5e)
12
+ * Tweak help message.(Accent a green color in help) [9da3e5e]
9
13
 
10
14
  ## v0.0.6
11
15
 
12
- * Implement terminal width is not enough, does not display description. (7754a71)
16
+ * Implement terminal width is not enough, does not display description. [7754a71]
13
17
 
14
18
 
15
19
  ## v0.0.5
16
20
 
17
- * Fix lack of addressable gem when installing (54ca275)
21
+ * Fix lack of addressable gem when installing [54ca275]
18
22
 
19
23
 
20
24
  ## v0.0.4
21
25
 
22
- * Implement descrition option (4587e56)
26
+ * Implement descrition option [4587e56]
23
27
 
24
28
  ## v0.0.3
25
29
 
26
- * Implement since option (04f1978)
27
- * Fix star count is incorrect (ce6e07a)
30
+ * Implement since option [04f1978]
31
+ * Fix star count is incorrect [ce6e07a]
28
32
 
29
33
  ## v0.0.2
30
34
 
31
- * Implement display lang field (96e4b9c)
35
+ * Implement display lang field [96e4b9c]
32
36
 
33
37
  ## v0.0.1
34
38
 
data/README.md CHANGED
@@ -184,12 +184,12 @@ No. Name Lang Star Fork
184
184
 
185
185
  ### show languages
186
186
 
187
- git trend all_languages
187
+ git trend languages
188
188
 
189
189
  e.g.:
190
190
 
191
191
  ```
192
- $ git trend all_languages
192
+ $ git trend languages
193
193
  abap
194
194
  as3
195
195
  ada
@@ -27,11 +27,11 @@ module GitTrend
27
27
  say e.message
28
28
  end
29
29
 
30
- desc :all_languages, 'Show selectable languages'
31
- def all_languages
30
+ desc :languages, 'Show selectable languages'
31
+ def languages
32
32
  scraper = Scraper.new
33
- languages = scraper.list_all_languages
34
- render_all_languages(languages)
33
+ languages = scraper.list_languages
34
+ render_languages(languages)
35
35
  end
36
36
  end
37
37
  end
@@ -16,7 +16,7 @@ module GitTrend
16
16
  render_to_body(projects)
17
17
  end
18
18
 
19
- def render_all_languages(languages)
19
+ def render_languages(languages)
20
20
  puts languages
21
21
  puts
22
22
  puts "#{languages.size} languages"
@@ -30,7 +30,7 @@ module GitTrend
30
30
  projects
31
31
  end
32
32
 
33
- def list_all_languages
33
+ def list_languages
34
34
  languages = []
35
35
  page = @agent.get(BASE_URL)
36
36
  page.search('div.select-menu-item a').each do |content|
@@ -1,3 +1,3 @@
1
1
  module GitTrend
2
- VERSION = '0.0.8'
2
+ VERSION = '0.0.9'
3
3
  end
@@ -288,7 +288,7 @@ RSpec.describe GitTrend::CLI do
288
288
  end
289
289
  end
290
290
 
291
- describe '#all_languages' do
291
+ describe '#languages' do
292
292
  before do
293
293
  @cli = CLI.new
294
294
  stub_request_get('trending')
@@ -486,7 +486,7 @@ RSpec.describe GitTrend::CLI do
486
486
  |if languages is unknown, you can specify 'unkown'.
487
487
  |
488
488
  EOS
489
- expect { @cli.all_languages }.to output(res).to_stdout
489
+ expect { @cli.languages }.to output(res).to_stdout
490
490
  end
491
491
  end
492
492
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: git-trend
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - rochefort
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-08-12 00:00:00.000000000 Z
11
+ date: 2014-08-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor