githubrepo 0.0.3 → 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2b0005792746e0c50fe2b34df56b9a97d802b1ee
4
- data.tar.gz: c8ba3bb5bf3a783320458aec25fb90397550d965
3
+ metadata.gz: 9fc622b191ef0a4d173d876a56ea88b8c43b30be
4
+ data.tar.gz: 407a92081d469ea7ba985f1806e9954e812ab6fe
5
5
  SHA512:
6
- metadata.gz: 1ecb486b94ef9a58a2fb3a6073984d9849a3e651e609b7b5016a1c7b851099de02bec342a042b516687d06e89ac0c06847b3c6d2411a806915173da3ae293ac6
7
- data.tar.gz: fb45db04c31049c0e8fb71143568e18a57953e6b175089d97ffec404a8609eb16723948b111b8fa31b54ea17431e0156683c55ca4117190c0662f05829eefeb7
6
+ metadata.gz: da7570e3935296f9fa82388b3ac31e7627b011c0b96c84ac2c6154f48011f3d611c2b8113e4f374c51829a8f604dadefdce7f1bbc8bcfd1f4ee6b56c1ca7f6ca
7
+ data.tar.gz: b620e1736fd20c79e920a0ee5aa92ab497876f1668f98543a75de74a6f154b4fbdf4e2a6b9ac09a380d77859fe25431280df177dbea0cfff5ffb079f311bd6e1
@@ -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.3'
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
- git_url =
45
- if attributes['git_url'] != nil
46
- attributes['git_url']
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 git_url if git_url
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
@@ -1,3 +1,3 @@
1
1
  module Githubrepo
2
- VERSION = '0.0.3'
2
+ VERSION = '0.1.0'
3
3
  end
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.3
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-03-29 00:00:00.000000000 Z
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
- - cli.rb
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/cli.rb
114
+ - bin/githubrepo
115
115
  - githubrepo.gemspec
116
116
  - lib/githubrepo.rb
117
117
  - lib/githubrepo/version.rb