hubba 0.2.0 → 0.3.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: 483d4813ac93c23eaf300404342fb8883712449a
4
- data.tar.gz: 897633ce5908ead11844d5421dd495e087440747
3
+ metadata.gz: 990a81f63411ae5b97cd3ae1e6892cb8e8f788d3
4
+ data.tar.gz: 1061e2b8963f97072cbdcedb5c6ba8c23ac3b691
5
5
  SHA512:
6
- metadata.gz: e33ee3954c0a131e05cd3ca92c0359be2b27cafa59541ad2e76a6338ef64b35e618b74c5b335177f77ffddf85604f6be4fc72d314ab39293e66e901eedd8ab81
7
- data.tar.gz: d4a32cd4fd90fb3d7da117f7a25b04cfb13dc5a0049134255edcbc53753604af4a5916ba7223ef86454c1b8331a03f7b2b4f753907ea3ea6ddcd41379c796d93
6
+ metadata.gz: 05efa27d809de02a2e5582abe3c0d9b8f70629246d6d973d640b3fbb648365d7e0c6ecf32359837b06a83b2607d1ed4d9b5799af9c0f27d4244cce4dfe235a23
7
+ data.tar.gz: 9ad616f2209a6f1c566b895d0e908b5a1cc5706d85626eb0519bb74117d4a6b4dc2f71c40eac2adb3e7caa1cfe4af33cfd1f7de57d96dd2d2390126a99e58899
data/README.md CHANGED
@@ -2,8 +2,8 @@
2
2
 
3
3
  hubba gem - (yet) another (lite) GitHub HTTP API client / library
4
4
 
5
- * home :: [github.com/rubylibs/hubba](https://github.com/rubylibs/hubba)
6
- * bugs :: [github.com/rubylibs/hubba/issues](https://github.com/rubylibs/hubba/issues)
5
+ * home :: [github.com/gittiscripts/hubba](https://github.com/gittiscripts/hubba)
6
+ * bugs :: [github.com/gittiscripts/hubba/issues](https://github.com/gittiscripts/hubba/issues)
7
7
  * gem :: [rubygems.org/gems/hubba](https://rubygems.org/gems/hubba)
8
8
  * rdoc :: [rubydoc.info/gems/hubba](http://rubydoc.info/gems/hubba)
9
9
 
@@ -13,8 +13,8 @@ hubba gem - (yet) another (lite) GitHub HTTP API client / library
13
13
  TBD
14
14
 
15
15
 
16
+
16
17
  ## License
17
18
 
18
19
  The `hubba` scripts are dedicated to the public domain.
19
20
  Use it as you please with no restrictions whatsoever.
20
-
data/Rakefile CHANGED
@@ -8,7 +8,7 @@ Hoe.spec 'hubba' do
8
8
  self.summary = 'hubba - (yet) another (lite) GitHub HTTP API client / library'
9
9
  self.description = summary
10
10
 
11
- self.urls = ['https://github.com/rubylibs/hubba']
11
+ self.urls = ['https://github.com/gittiscripts/hubba']
12
12
 
13
13
  self.author = 'Gerald Bauer'
14
14
  self.email = 'ruby-talk@ruby-lang.org'
@@ -24,7 +24,7 @@ Hoe.spec 'hubba' do
24
24
  self.licenses = ['Public Domain']
25
25
 
26
26
  self.spec_extras = {
27
- required_ruby_version: '>= 1.9.2'
27
+ required_ruby_version: '>= 2.3'
28
28
  }
29
29
 
30
30
  end
@@ -14,7 +14,13 @@ module Hubba
14
14
  @data['full_name'] = full_name # e.g. poole/hyde etc.
15
15
  end
16
16
 
17
- def full_name() @data['full_name']; end
17
+ def full_name() @data['full_name']; end
18
+
19
+ def created_at() @data['created_at']; end
20
+ def updated_at() @data['updated_at']; end
21
+ def pushed_at() @data['pushed_at']; end
22
+
23
+ def history() @data['history']; end
18
24
 
19
25
 
20
26
  def size
@@ -26,9 +32,8 @@ module Hubba
26
32
  ## return last stargazers_count entry (as number; 0 if not found)
27
33
  t1 = 0
28
34
 
29
- history = @data['history']
30
35
  if history
31
- history_keys = @data['history'].keys.sort.reverse
36
+ history_keys = history.keys.sort.reverse
32
37
  ## todo/fix: for now assumes one entry per week
33
38
  ## simple case [0] and [1] for a week later
34
39
  ## check actual date - why? why not?
@@ -52,6 +57,9 @@ module Hubba
52
57
  ## e.g. 2015-05-11T20:21:43Z
53
58
  ## puts Time.iso8601( repo.data['created_at'] )
54
59
  @data['created_at'] = repo.data['created_at']
60
+ @data['updated_at'] = repo.data['updated_at']
61
+ @data['pushed_at'] = repo.data['pushed_at']
62
+
55
63
  @data['size'] = repo.data['size'] # size in kb (kilobyte)
56
64
 
57
65
  rec = {}
@@ -86,6 +94,8 @@ module Hubba
86
94
  pp @data
87
95
  end
88
96
 
97
+
98
+
89
99
  def write( data_dir: './data' )
90
100
  basename = full_name.gsub( '/', '~' ) ## e.g. poole/hyde become poole~hyde
91
101
  puts "writing (saving) to #{basename}..."
@@ -2,7 +2,7 @@
2
2
 
3
3
  module Hubba
4
4
  MAJOR = 0 ## todo: namespace inside version or something - why? why not??
5
- MINOR = 2
5
+ MINOR = 3
6
6
  PATCH = 0
7
7
  VERSION = [MAJOR,MINOR,PATCH].join('.')
8
8
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hubba
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gerald Bauer
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-02-12 00:00:00.000000000 Z
11
+ date: 2018-02-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: logutils
@@ -44,14 +44,14 @@ dependencies:
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '3.15'
47
+ version: '3.16'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '3.15'
54
+ version: '3.16'
55
55
  description: hubba - (yet) another (lite) GitHub HTTP API client / library
56
56
  email: ruby-talk@ruby-lang.org
57
57
  executables: []
@@ -77,7 +77,7 @@ files:
77
77
  - test/test_cache.rb
78
78
  - test/test_config.rb
79
79
  - test/test_stats.rb
80
- homepage: https://github.com/rubylibs/hubba
80
+ homepage: https://github.com/gittiscripts/hubba
81
81
  licenses:
82
82
  - Public Domain
83
83
  metadata: {}
@@ -91,7 +91,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
91
91
  requirements:
92
92
  - - ">="
93
93
  - !ruby/object:Gem::Version
94
- version: 1.9.2
94
+ version: '2.3'
95
95
  required_rubygems_version: !ruby/object:Gem::Requirement
96
96
  requirements:
97
97
  - - ">="
@@ -99,7 +99,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
99
99
  version: '0'
100
100
  requirements: []
101
101
  rubyforge_project:
102
- rubygems_version: 2.6.7
102
+ rubygems_version: 2.5.2
103
103
  signing_key:
104
104
  specification_version: 4
105
105
  summary: hubba - (yet) another (lite) GitHub HTTP API client / library