hubba 0.5.1 → 0.5.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: 84577f7d76ee6b6e2b0c1dd2c747536bede539fe
4
- data.tar.gz: 9f42b72e4402d148eaccbfd635f316161a50a857
3
+ metadata.gz: 8362d3b3f03aadf2fb3708be499e3daeccfe343d
4
+ data.tar.gz: ce865016b107b78fbd72d3817364040551d61596
5
5
  SHA512:
6
- metadata.gz: 94e26559d4d814411a5537f879f58132c906ef7a3b2f7a61cc8f83d0e5f282b143d68f37a5462e5aef5e25daa86072b40e94c1b5177ab57023b80260f503b054
7
- data.tar.gz: b9f03dba1f8861edbec94fb3411b2383dc1e12744387b9c6480b43a75ee6fa7331b57d81199a084cec742f0b35abf09167409d0328fd00a7da4fe3f15343a167
6
+ metadata.gz: 37c9ed873b55c67f5db957ea663222f3a6c0bb9ee8e4b5c58ca52917159407e1cf88e2bba9f86bcf63d42431a531dc09c0954bd9e9f1c66a0b4dab724c34534d
7
+ data.tar.gz: 9fbb4951feade4506e5721c9cb635856227f346def9f11d50557048f8acb41e1e927901617de5177d9c8363c2513b9bfa3b354b7bc5f532c77f1b53e6d0dd525
@@ -20,12 +20,12 @@ end # method initialize
20
20
 
21
21
 
22
22
  def get( request_uri )
23
- ###
24
- # e.g. /users/geraldb
25
- # /users/geraldb/repos
26
-
27
23
  puts "GET #{request_uri}"
28
- url = "#{BASE_URL}/#{request_uri}"
24
+
25
+ ## note: request_uri ALWAYS starts with leading /, thus use + for now!!!
26
+ # e.g. /users/geraldb
27
+ # /users/geraldb/repos
28
+ url = BASE_URL + request_uri
29
29
 
30
30
  headers = {}
31
31
  headers['User-Agent'] = 'ruby/hubba' ## required by GitHub API
@@ -57,9 +57,12 @@ def get( request_uri )
57
57
  # => "text/html; charset=UTF-8"
58
58
 
59
59
  # Iterate all response headers.
60
+ puts "HTTP HEADERS:"
60
61
  res.headers.each do |key, value|
61
- puts "#{key} => #{value}"
62
+ puts " #{key}: >#{value}<"
62
63
  end
64
+ puts
65
+
63
66
  # => "location => http://www.google.com/"
64
67
  # => "content-type => text/html; charset=UTF-8"
65
68
  # ...
@@ -57,6 +57,7 @@ class Orgs < Resource
57
57
  ## sort by name
58
58
  data.map { |item| item['login'] }.sort
59
59
  end
60
+ alias_method :names, :logins ## add name alias - why? why not?
60
61
  end
61
62
 
62
63
 
@@ -137,4 +138,9 @@ end
137
138
 
138
139
  end # class Github
139
140
 
141
+ ############
142
+ # add convenience alias for alternate spelling - why? why not?
143
+ GitHub = Github
144
+
145
+
140
146
  end # module Hubba
@@ -1,7 +1,7 @@
1
1
  module Hubba
2
2
  MAJOR = 0 ## todo: namespace inside version or something - why? why not??
3
3
  MINOR = 5
4
- PATCH = 1
4
+ PATCH = 2
5
5
  VERSION = [MAJOR,MINOR,PATCH].join('.')
6
6
 
7
7
  def self.version
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hubba
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gerald Bauer