originals 0.1.1 → 1.0.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 +4 -4
- data/README.md +41 -0
- data/Rakefile +1 -0
- data/lib/originals/tool.rb +13 -2
- data/lib/originals/version.rb +3 -4
- data/lib/originals.rb +10 -1
- metadata +16 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5adec9529ef943fcc527eb54eb44390d42624d289781cc04c487d36dd3d8ce38
|
4
|
+
data.tar.gz: 3fc3c527e769b09bba90502ba308e599234b2da5543b905bbc7ef66704fdfa14
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a8b5008a97f95b1817df036dcec56a200c1c24f1f01c52000719f04ae18261c1cdcf8f7b8793bfc62827f038f66246ea9aca1612f676d402fbd9add14d212826
|
7
|
+
data.tar.gz: 5f6fc0225659f145f7e535a46bf135cb91aca66906527c4774dc08fbb3ab20d75c7ff56486dbb29bdfbe819a76aa83063d3e6801b3048d0e37cc2d7ccba5da59
|
data/README.md
CHANGED
@@ -228,6 +228,47 @@ resulting in:
|
|
228
228
|
|
229
229
|
|
230
230
|
|
231
|
+
### Coolcats (24x24)
|
232
|
+
|
233
|
+
|
234
|
+
Let's try some coolcats:
|
235
|
+
|
236
|
+
|
237
|
+
```
|
238
|
+
$ fab coolcat ditto beret_red
|
239
|
+
$ fab coolcat unamused
|
240
|
+
$ fab coolcat tv_head_grey tv_face_no_signal
|
241
|
+
|
242
|
+
# -or- with some backgrounds
|
243
|
+
$ fab --background=0x638596 coolcat tv_head_grey tv_face_no_signal
|
244
|
+
$ fab --background=0xffbf00 coolcat tv_head_grey tv_face_no_signal
|
245
|
+
$ fab --background=ukraine coolcat tv_head_grey tv_face_no_signal
|
246
|
+
$ fab --background=pride coolcat tv_head_grey tv_face_no_signal
|
247
|
+
```
|
248
|
+
|
249
|
+
resulting in:
|
250
|
+
|
251
|
+

|
252
|
+

|
253
|
+

|
254
|
+

|
255
|
+

|
256
|
+

|
257
|
+

|
258
|
+
|
259
|
+
4x (using the `--zoom=4`/`-z4` option)
|
260
|
+
|
261
|
+

|
262
|
+

|
263
|
+

|
264
|
+

|
265
|
+

|
266
|
+

|
267
|
+

|
268
|
+
|
269
|
+
|
270
|
+
|
271
|
+
|
231
272
|
### Moonbirds / Owls (42x42)
|
232
273
|
|
233
274
|
|
data/Rakefile
CHANGED
data/lib/originals/tool.rb
CHANGED
@@ -14,10 +14,15 @@ class Tool
|
|
14
14
|
end
|
15
15
|
|
16
16
|
opts.on("--background STRING", "--bg STRING", "-b", String,
|
17
|
-
"Background (default: transparent)") do |str|
|
17
|
+
"Background (default: transparent|0x0)") do |str|
|
18
18
|
options[ :background] = str
|
19
19
|
end
|
20
20
|
|
21
|
+
opts.on("--name STRING", "-n", String,
|
22
|
+
"Base name (default: punk|phunk|marilyn|etc.)") do |str|
|
23
|
+
options[ :name] = str
|
24
|
+
end
|
25
|
+
|
21
26
|
opts.on("--id NUM", "-i", Integer,
|
22
27
|
"Unique identifier (default: none)") do |str|
|
23
28
|
options[ :id] = str
|
@@ -53,7 +58,13 @@ class Tool
|
|
53
58
|
background: options[ :background] )
|
54
59
|
|
55
60
|
|
56
|
-
|
61
|
+
|
62
|
+
basename = if options[:name]
|
63
|
+
"#{options[:name]}#{options[:id]}"
|
64
|
+
else
|
65
|
+
"#{key}#{options[:id]}"
|
66
|
+
end
|
67
|
+
|
57
68
|
|
58
69
|
path = if options[:zoom]
|
59
70
|
img = img.zoom( options[:zoom] )
|
data/lib/originals/version.rb
CHANGED
data/lib/originals.rb
CHANGED
@@ -2,6 +2,7 @@
|
|
2
2
|
require 'cryptopunks'
|
3
3
|
require 'shibainus'
|
4
4
|
require 'moonbirds'
|
5
|
+
require 'coolcats'
|
5
6
|
|
6
7
|
|
7
8
|
|
@@ -50,6 +51,8 @@ def self.fabricate( name, *attributes, background: nil ) ## add fac alias - why
|
|
50
51
|
'moonbird', 'moonbirds',
|
51
52
|
'owl', 'owls'].include?( key )
|
52
53
|
Originals.factory.bird( *attributes, background: background )
|
54
|
+
elsif ['coolcat', 'coolcats'].include?( key )
|
55
|
+
Originals.factory.coolcat( *attributes, background: background )
|
53
56
|
else
|
54
57
|
puts "!! ERROR; don't know how to fabricate >#{name}<; sorry"
|
55
58
|
exit 1
|
@@ -117,7 +120,7 @@ def shiba( *attributes, background: nil )
|
|
117
120
|
end
|
118
121
|
|
119
122
|
|
120
|
-
## add method
|
123
|
+
## add method alias moonbird, owl etc. - why? why not?
|
121
124
|
def bird( *attributes, background: nil )
|
122
125
|
attributes = ['Brave Glitch'] if attributes.size == 0
|
123
126
|
|
@@ -127,6 +130,12 @@ def bird( *attributes, background: nil )
|
|
127
130
|
end
|
128
131
|
|
129
132
|
|
133
|
+
def coolcat( *attributes, background: nil )
|
134
|
+
cat = Coolcat::Image.generate( *attributes )
|
135
|
+
cat = _background( cat, background ) if background
|
136
|
+
cat
|
137
|
+
end
|
138
|
+
|
130
139
|
|
131
140
|
|
132
141
|
###
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: originals
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.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: 2022-
|
11
|
+
date: 2022-06-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cryptopunks
|
@@ -52,6 +52,20 @@ dependencies:
|
|
52
52
|
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: coolcats
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
55
69
|
- !ruby/object:Gem::Dependency
|
56
70
|
name: rdoc
|
57
71
|
requirement: !ruby/object:Gem::Requirement
|