githubrepo 0.0.3 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/{cli.rb → githubrepo} +1 -3
- data/lib/githubrepo.rb +4 -4
- data/lib/githubrepo/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9fc622b191ef0a4d173d876a56ea88b8c43b30be
|
4
|
+
data.tar.gz: 407a92081d469ea7ba985f1806e9954e812ab6fe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: da7570e3935296f9fa82388b3ac31e7627b011c0b96c84ac2c6154f48011f3d611c2b8113e4f374c51829a8f604dadefdce7f1bbc8bcfd1f4ee6b56c1ca7f6ca
|
7
|
+
data.tar.gz: b620e1736fd20c79e920a0ee5aa92ab497876f1668f98543a75de74a6f154b4fbdf4e2a6b9ac09a380d77859fe25431280df177dbea0cfff5ffb079f311bd6e1
|
data/bin/{cli.rb → githubrepo}
RENAMED
@@ -4,7 +4,7 @@ require File.expand_path '../lib/githubrepo', File.dirname(__FILE__)
|
|
4
4
|
require 'commander/import'
|
5
5
|
|
6
6
|
program :name, 'githubrepo'
|
7
|
-
program :version, '0.0
|
7
|
+
program :version, '0.1.0'
|
8
8
|
program :description, 'Create GitHub repositories from the command line'
|
9
9
|
program :help, 'Author', 'Elikem Adadevoh <elikem@gmail.com>'
|
10
10
|
|
@@ -42,7 +42,5 @@ end
|
|
42
42
|
default_command :create
|
43
43
|
|
44
44
|
def cli(attributes)
|
45
|
-
puts attributes
|
46
45
|
Githubrepo.create(attributes)
|
47
|
-
# GitHubRepo.create({ :username => 'elikem', :password => 'some_password', :repository => 'the_goonies' })
|
48
46
|
end
|
data/lib/githubrepo.rb
CHANGED
@@ -41,9 +41,9 @@ module Githubrepo
|
|
41
41
|
def self.parse_response_from(post)
|
42
42
|
attributes = post
|
43
43
|
|
44
|
-
|
45
|
-
if attributes['
|
46
|
-
attributes['
|
44
|
+
clone_url =
|
45
|
+
if attributes['clone_url'] != nil
|
46
|
+
attributes['clone_url']
|
47
47
|
end
|
48
48
|
|
49
49
|
message =
|
@@ -57,7 +57,7 @@ module Githubrepo
|
|
57
57
|
end
|
58
58
|
|
59
59
|
# messages to console
|
60
|
-
puts
|
60
|
+
puts clone_url if clone_url
|
61
61
|
puts message.capitalize if message
|
62
62
|
puts error_message.capitalize if error_message
|
63
63
|
end
|
data/lib/githubrepo/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: githubrepo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Elikem Adadevoh
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-04-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -98,7 +98,7 @@ description: Create GitHub repositories from the command line
|
|
98
98
|
email:
|
99
99
|
- elikem@gmail.com
|
100
100
|
executables:
|
101
|
-
-
|
101
|
+
- githubrepo
|
102
102
|
extensions: []
|
103
103
|
extra_rdoc_files: []
|
104
104
|
files:
|
@@ -111,7 +111,7 @@ files:
|
|
111
111
|
- Pryfile
|
112
112
|
- README.md
|
113
113
|
- Rakefile
|
114
|
-
- bin/
|
114
|
+
- bin/githubrepo
|
115
115
|
- githubrepo.gemspec
|
116
116
|
- lib/githubrepo.rb
|
117
117
|
- lib/githubrepo/version.rb
|