gemverse 0.0.1 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +17 -10
  3. data/Rakefile +8 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 69db10da33808ff62ca728d7ada452de1283a465d9fbbce8b9919d88f976a9b4
4
- data.tar.gz: 1554b1c90f9c0e467bee55f2e98eff8ffae13e3b2090d8bd5bb21ab86b81b645
3
+ metadata.gz: 7e6c2a3321aeeb1ae6783bed78fbfc251668f715d1871cd47a49693eab989057
4
+ data.tar.gz: 5a5d671a07889133eefa3c7b86b343eb1b38eaa39677d0b46bc36e180b9b0c96
5
5
  SHA512:
6
- metadata.gz: 4d640f9f26100ae1646431670fa275bf267bb9ab88727d754e0c3efffaa29c74c2ea1136da0516908de48020aead49e38aed93780a917c85c04361e84ac3b518
7
- data.tar.gz: 5fbf83a842f797c19b8054aa1b86c3891650bf5a1a6e9bb85dda0371755713fe38d0321db4c653a70951f72e64c5017eea6e831158d4ac1b6c2fdfdf4346ef38
6
+ metadata.gz: 4aaf56133d88528f9bed3c7c71a1b8bff3fd527227980f5e5f86e0be8cb766f705f393899542daaf72dbc487d72ddbae646f98e5bbc3e337e42540de09d9b3a1
7
+ data.tar.gz: 262cbc3bb0793bbe6efdaed209db0abe8db15d21d413de1bc2af368eac71b9dcbb113e20920457dc1babb3784fb776ca8c1a5f05f2bf7c68beb99a6d8e6c3cdc
data/README.md CHANGED
@@ -26,12 +26,16 @@ that returns data(sets) in the JSON format:
26
26
  require 'gemverse'
27
27
 
28
28
  ## get all gems owned by the author with the handle / known as gettalong
29
+ # same as https://rubygems.org/api/v1/owners/gettalong/gems.json
29
30
  data = Gems::API.gems_by( 'gettalong' )
30
- # same as https://rubygems.org/api/v1/owners/gettalong/gems.json
31
+ puts " #{data.size} record(s)"
32
+ #=> 24 record(s)
31
33
 
32
34
  ## get all versions of the hexapdf gem
35
+ # same as https://rubygems.org/api/v1/versions/hexpdf.json"
33
36
  data = Gems::API.versions( 'hexapdf' )
34
- # same as https://rubygems.org/api/v1/versions/hexpdf.json"
37
+ puts " #{data.size} record(s)"
38
+ #=> 71 record(s)
35
39
 
36
40
  #...
37
41
  ```
@@ -53,9 +57,10 @@ cache = Gems::Cache.new( './cache' )
53
57
 
54
58
  gems = Gems.find_by( owner: 'gettalong' )
55
59
  puts " #{gems.size} record(s)"
60
+ #=> 24 record(s)
56
61
 
57
62
  ## bonus: save gems in a "flat" tabular datafile using the comma-separated values (.csv) format
58
- gems.export( './profile/gettalong/gems.csv' )
63
+ gems.export( './profiles/gettalong/gems.csv' )
59
64
 
60
65
  ## fetch all gem versions and (auto-save)
61
66
  ## in a "flat" tabular datafile (e.g. <gem>/versions.csv)
@@ -70,15 +75,17 @@ cache.update_versions( gems: gems )
70
75
  ``` ruby
71
76
  cache = Gems::Cache.new( './gems' )
72
77
 
73
- gems = read_csv( './profile/gettalong/gems.csv' )
78
+ gems = read_csv( './profiles/gettalong/gems.csv' )
74
79
  puts " #{gems.size} record(s)"
80
+ #=> 24 record(s)
75
81
 
76
82
  versions = cache.read_versions( gems: gems )
77
83
  puts " #{versions.size} record(s)"
84
+ #=> 238 record(s)
78
85
 
79
86
  timeline = Gems::Timeline.new( versions,
80
87
  title: "Thomas Leitner's Timeline" )
81
- timeline.save( "./profile/gettalong/README.md" )
88
+ timeline.save( "./profiles/gettalong/README.md" )
82
89
  ```
83
90
 
84
91
 
@@ -94,7 +101,7 @@ gems.
94
101
  ``` ruby
95
102
  cache = Gems::Cache.new( './cache' )
96
103
 
97
- gems = read_csv( './collection/cocos.csv' )
104
+ gems = read_csv( './collections/cocos.csv' )
98
105
  puts " #{gems.size} record(s)"
99
106
 
100
107
  versions = cache.read_versions( gems: gems )
@@ -102,16 +109,16 @@ puts " #{versions.size} record(s)"
102
109
 
103
110
  timeline = Gems::Timeline.new( versions,
104
111
  title: 'Ruby Code Commons (COCOS) Timeline' )
105
- timeline.save( "./collection/cocos/README.md" )
112
+ timeline.save( "./collections/cocos/README.md" )
106
113
  ```
107
114
 
108
115
  That's it.
109
116
 
110
117
 
111
118
  See
112
- [Thomas Leitner's Timeline](samples/gems_gettalong),
113
- [Jan Lelis's Timeline](samples/gems_janlelis),
114
- [Ruby Code Commons (COCOS) Timeline](samples/gems_cocos), and some more
119
+ [Thomas Leitner's Timeline](https://github.com/rubycocos/gems/tree/master/profiles/gettalong),
120
+ [Jan Lelis's Timeline](https://github.com/rubycocos/gems/tree/master/profiles/janlelis),
121
+ [Ruby Code Commons (COCOS) Timeline](https://github.com/rubycocos/gems/tree/master/collections/cocos), and some more
115
122
  for some real-world timeline samples.
116
123
 
117
124
 
data/Rakefile CHANGED
@@ -1,8 +1,15 @@
1
1
  require 'hoe'
2
2
 
3
+ ###
4
+ # hack/ quick fix for broken intuit_values - overwrite with dummy
5
+ class Hoe
6
+ def intuit_values( input ); end
7
+ end
8
+
9
+
3
10
  Hoe.spec 'gemverse' do
4
11
 
5
- self.version = '0.0.1' # note: for now add version inline
12
+ self.version = '0.1.0' # note: for now add version inline
6
13
 
7
14
  self.summary = "gemverse gem - gem universe incl. rubygems API V1 wrapper lite; gem version cache, gem timeline reports, 'n' more"
8
15
  self.description = summary
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gemverse
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gerald Bauer