amanogawa 0.0.1 → 0.0.2

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: 09435433fda9bf071cd3ffd16bc73a6efca72c89
4
- data.tar.gz: d9f99f5a8597fc931f434cbcfa3a4fff41e06ba7
3
+ metadata.gz: f0ff0070d1d745cf79c817206535e0e9248db9fa
4
+ data.tar.gz: 529b04e493e35488c2859d1863da01d7b4628943
5
5
  SHA512:
6
- metadata.gz: e9ba0b97b91ea2a2d2bce7b03d78398354f7f1738acc66724b878c6525cf700bb0d4e28cf5f67dfd49746f80a4b6df7f0d297a495e91a4b140a148ef03dc87e8
7
- data.tar.gz: ff33dfa5a202ac0713c49f5c38c9634eadc7ff1430966c9ddf374a9ae0f4b760144acce06ec07263a667e3789ef51fc5ea8674afdf3df09f3daac7559fec660b
6
+ metadata.gz: bf85c97990f5c6b2211123e7a5ce70463ab1348b12f05e4fdb5f170fdc28547610f3084a02dd83659282f9067bce8b899911ae518ed15dcf8003e98fb7a19f35
7
+ data.tar.gz: d6c4ccf989f3c58f952a9177329d6ce39cf8c4ded907eb460570e9684185a07000813206fbeef3f13ea10c15c6e3b27e4a6f8fa72d73e851b42a9b7ece873f7b
data/README.md CHANGED
@@ -1,7 +1,10 @@
1
1
  # Amanogawa
2
+ [![Gem Version](https://badge.fury.io/rb/amanogawa.svg)](http://badge.fury.io/rb/amanogawa)
2
3
 
3
4
  Listing GitHub repositories which you starred.
4
5
 
6
+ ![amanogawa](https://cloud.githubusercontent.com/assets/116996/6059979/231f04be-ad7b-11e4-8f75-03b7a8590a8c.gif)
7
+
5
8
  ## Installation
6
9
 
7
10
  Add this line to your application's Gemfile:
@@ -20,7 +20,6 @@ Gem::Specification.new do |spec|
20
20
 
21
21
  spec.add_runtime_dependency "octokit", "~> 3.0"
22
22
  spec.add_runtime_dependency "netrc"
23
- spec.add_runtime_dependency "oj"
24
23
  spec.add_runtime_dependency "slop", "~> 4.0"
25
24
 
26
25
  spec.add_development_dependency "bundler", "~> 1.7"
@@ -4,12 +4,16 @@ require 'slop'
4
4
  require 'amanogawa'
5
5
 
6
6
  opts = Slop.parse do |o|
7
- o.string '-t' , '--token' , 'oauth access token'
8
- o.string '-u' , '--username' , 'github username'
9
- o.string '-p' , '--password' , 'github password'
10
- o.string '-f' , '--format' , 'output format', default: "%f - %d"
11
- o.bool '--sync' , 'Sync starred repositories'
12
- o.bool '--fetch' , 'Fetch GitHub API actually, No use local cache'
7
+ o.string '-t' , '--token' , 'oauth access token'
8
+ o.string '-u' , '--username' , 'github username'
9
+ o.string '-p' , '--password' , 'github password'
10
+ o.string '-f' , '--format' , 'output format', default: "%f - %d"
11
+ o.bool '--sync' , 'Sync starred repositories'
12
+ o.bool '--fetch' , 'Fetch GitHub API actually, No use local cache'
13
+ o.on '-h' , '--help' , 'Show help' do
14
+ puts o
15
+ exit
16
+ end
13
17
  end
14
18
 
15
19
  if opts[:sync]
@@ -1,5 +1,4 @@
1
1
  require 'octokit'
2
- require 'oj'
3
2
  require 'fileutils'
4
3
  require "amanogawa/version"
5
4
 
@@ -12,6 +11,7 @@ class Amanogawa
12
11
  "%u" => "url",
13
12
  "%s" => "ssh_url",
14
13
  "%g" => "git_url",
14
+ "%h" => "homepage",
15
15
  "%C" => "created_at",
16
16
  "%P" => "pushed_at",
17
17
  "%U" => "updated_at",
@@ -1,3 +1,3 @@
1
1
  class Amanogawa
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: amanogawa
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - joker1007
@@ -38,20 +38,6 @@ dependencies:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
- - !ruby/object:Gem::Dependency
42
- name: oj
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - ">="
46
- - !ruby/object:Gem::Version
47
- version: '0'
48
- type: :runtime
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - ">="
53
- - !ruby/object:Gem::Version
54
- version: '0'
55
41
  - !ruby/object:Gem::Dependency
56
42
  name: slop
57
43
  requirement: !ruby/object:Gem::Requirement