gemverse 0.0.1 → 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/README.md +17 -10
- data/Rakefile +8 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7e6c2a3321aeeb1ae6783bed78fbfc251668f715d1871cd47a49693eab989057
|
4
|
+
data.tar.gz: 5a5d671a07889133eefa3c7b86b343eb1b38eaa39677d0b46bc36e180b9b0c96
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
#
|
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
|
-
#
|
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( './
|
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( './
|
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( "./
|
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( './
|
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( "./
|
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](
|
113
|
-
[Jan Lelis's Timeline](
|
114
|
-
[Ruby Code Commons (COCOS) Timeline](
|
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
|
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
|