readymades 0.1.3 → 1.0.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 +3 -3
- data/Rakefile +3 -4
- data/lib/readymades/version.rb +7 -3
- data/lib/readymades.rb +67 -16
- metadata +6 -20
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '0794d1ad44194f3baf6dd0cb08e445a37cc696d417f55fc2ed073414e7df786f'
|
4
|
+
data.tar.gz: facef5fb5e3ab24e56e28ea7356e3333db5376fe6cc4c06256b3aca23fb7f390
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 182c02d3e9486b03e6b3c58884a4bed0a4f92ab2f52d45f9cea068e535b9c7f332c426412bd361a492b41ef5174d60ccef6f682dc87dd6bc46269605c1b26b2c
|
7
|
+
data.tar.gz: 2ccb2c315f8b6546b68c6343bc5356645b76eb9f058b0db556aa976c8b041f9d2ea87f6a8878fc68b0696ffec7916105681bb2f3f8f4281789bdd92493511783
|
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
The Do-It-Yourself (DIY) [Factory of Modern Originals (FoMO)](https://github.com/
|
1
|
+
The Do-It-Yourself (DIY) [Factory of Modern Originals (FoMO)](https://github.com/profilepic/originals) Presents
|
2
2
|
|
3
3
|
# Readymades (1/1 Original Pixel Punks)
|
4
4
|
|
@@ -8,8 +8,8 @@ Yes, you can! Generate your own 24×24 pixel punk images (off chain) from 1/1 or
|
|
8
8
|
|
9
9
|
|
10
10
|
|
11
|
-
* home :: [github.com/
|
12
|
-
* bugs :: [github.com/
|
11
|
+
* home :: [github.com/profilepic/text-to-image](https://github.com/profilepic/text-to-image)
|
12
|
+
* bugs :: [github.com/profilepic/text-to-image/issues](https://github.com/profilepic/text-to-image/issues)
|
13
13
|
* gem :: [rubygems.org/gems/readymades](https://rubygems.org/gems/readymades)
|
14
14
|
* rdoc :: [rubydoc.info/gems/readymades](http://rubydoc.info/gems/readymades)
|
15
15
|
|
data/Rakefile
CHANGED
@@ -11,12 +11,12 @@ end
|
|
11
11
|
|
12
12
|
Hoe.spec 'readymades' do
|
13
13
|
|
14
|
-
self.version = Readymades::VERSION
|
14
|
+
self.version = Pixelart::Module::Readymades::VERSION
|
15
15
|
|
16
16
|
self.summary = "readymades - generate your own 24×24 pixel punk images (off chain) from 1/1 originals incl. William Shakespare, Galileo Galilei, Mao Zedong and many other readymade public world figures and add attributes / accessories with text (via built-in spritesheet); incl. 2x/4x/8x zoom for bigger sizes and more"
|
17
17
|
self.description = summary
|
18
18
|
|
19
|
-
self.urls = { home: 'https://github.com/
|
19
|
+
self.urls = { home: 'https://github.com/profilepic/text-to-image' }
|
20
20
|
|
21
21
|
self.author = 'Gerald Bauer'
|
22
22
|
self.email = 'wwwmake@googlegroups.com'
|
@@ -26,8 +26,7 @@ Hoe.spec 'readymades' do
|
|
26
26
|
self.history_file = 'CHANGELOG.md'
|
27
27
|
|
28
28
|
self.extra_deps = [
|
29
|
-
['
|
30
|
-
['backgrounds', '>= 0.2.0'],
|
29
|
+
['punks', '>= 0.5.3'],
|
31
30
|
]
|
32
31
|
|
33
32
|
self.licenses = ['Public Domain']
|
data/lib/readymades/version.rb
CHANGED
@@ -1,10 +1,12 @@
|
|
1
1
|
|
2
2
|
|
3
|
+
module Pixelart
|
4
|
+
module Module
|
3
5
|
module Readymades
|
4
6
|
|
5
|
-
MAJOR =
|
6
|
-
MINOR =
|
7
|
-
PATCH =
|
7
|
+
MAJOR = 1
|
8
|
+
MINOR = 0
|
9
|
+
PATCH = 0
|
8
10
|
VERSION = [MAJOR,MINOR,PATCH].join('.')
|
9
11
|
|
10
12
|
def self.version
|
@@ -19,5 +21,7 @@ module Readymades
|
|
19
21
|
File.expand_path( File.dirname(File.dirname(File.dirname(__FILE__))) )
|
20
22
|
end
|
21
23
|
|
24
|
+
end # module Pixelart
|
25
|
+
end # module Module
|
22
26
|
end # module Readymades
|
23
27
|
|
data/lib/readymades.rb
CHANGED
@@ -1,24 +1,19 @@
|
|
1
|
-
## 3rd party
|
2
|
-
require '
|
3
|
-
require 'backgrounds/base' ## note: incl. backgrounds for now
|
4
|
-
## (may get pulled in by cryptopunks later with update)
|
1
|
+
## our own "3rd" party gems
|
2
|
+
require 'punks' ### todo - add/change to punks/base !!!
|
5
3
|
|
6
4
|
|
7
5
|
## our own code
|
8
|
-
|
6
|
+
require_relative 'readymades/version' # note: let version always go first
|
9
7
|
|
10
8
|
|
11
9
|
|
12
10
|
|
13
|
-
|
14
|
-
## add convenience pre-configurated generatored with build-in spritesheet (see config)
|
15
|
-
|
16
|
-
module Readymades
|
11
|
+
module Readymade
|
17
12
|
|
18
13
|
class Spritesheet ## note: for now class used for "namespace" only
|
19
14
|
def self.builtin ### check: use a different name e.g. default,standard,base or such - why? why not?
|
20
|
-
@sheet ||= Pixelart::Spritesheet.read( "#{Readymades.root}/config/spritesheet.png",
|
21
|
-
"#{Readymades.root}/config/spritesheet.csv",
|
15
|
+
@sheet ||= Pixelart::Spritesheet.read( "#{Pixelart::Module::Readymades.root}/config/spritesheet.png",
|
16
|
+
"#{Pixelart::Module::Readymades.root}/config/spritesheet.csv",
|
22
17
|
width: 24,
|
23
18
|
height: 24 )
|
24
19
|
end
|
@@ -36,6 +31,9 @@ module Readymades
|
|
36
31
|
|
37
32
|
class Image < Pixelart::Image
|
38
33
|
|
34
|
+
NAMES = ['readymade', 'readymades']
|
35
|
+
DEFAULT_ATTRIBUTES = ['Will']
|
36
|
+
|
39
37
|
def self.generate( *names )
|
40
38
|
name = names[0]
|
41
39
|
more_names = names[1..-1]
|
@@ -73,10 +71,63 @@ end # module Readymades
|
|
73
71
|
|
74
72
|
|
75
73
|
### add some convenience shortcuts
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
74
|
+
ReadyMade = Readymade
|
75
|
+
|
76
|
+
|
77
|
+
|
78
|
+
|
79
|
+
|
80
|
+
#### add pre-configured readymade shortcuts
|
81
|
+
module Will
|
82
|
+
class Image < Pixelart::Image
|
83
|
+
|
84
|
+
NAMES = ['will', 'shakespeare',
|
85
|
+
'willshakespeare',
|
86
|
+
'williamshakespeare']
|
87
|
+
def self.generate( *more_names )
|
88
|
+
Readymade::Image.generate( 'William Shakespeare', *more_names )
|
89
|
+
end # method Image.generate
|
90
|
+
end # class Image
|
91
|
+
end # module Will
|
92
|
+
Shakespeare = Will
|
93
|
+
|
94
|
+
|
95
|
+
module Snoop
|
96
|
+
class Image < Pixelart::Image
|
97
|
+
|
98
|
+
NAMES = ['snoop', 'snoopdogg']
|
99
|
+
def self.generate( *more_names )
|
100
|
+
Readymade::Image.generate( 'Snoop Dogg', *more_names )
|
101
|
+
end # method Image.generate
|
102
|
+
end # class Image
|
103
|
+
end # module Snoop
|
104
|
+
Snoopdogg = Snoop
|
105
|
+
SnoopDogg = Snoop
|
106
|
+
|
107
|
+
module Bart
|
108
|
+
class Image < Pixelart::Image
|
109
|
+
|
110
|
+
NAMES = ['bart', 'simpson', 'bartsimpson']
|
111
|
+
def self.generate( *more_names )
|
112
|
+
Readymade::Image.generate( 'Bart ', *more_names )
|
113
|
+
end # method Image.generate
|
114
|
+
end # class Image
|
115
|
+
end # module Bart
|
116
|
+
Simpson = Bart
|
117
|
+
|
118
|
+
module Mao
|
119
|
+
class Image < Pixelart::Image
|
120
|
+
|
121
|
+
NAMES = ['mao', 'maozedong']
|
122
|
+
def self.generate( *more_names )
|
123
|
+
Readymade::Image.generate( 'Mao Zedong', *more_names )
|
124
|
+
end # method Image.generate
|
125
|
+
end # class Image
|
126
|
+
end # module Mao
|
127
|
+
Maozedong = Mao
|
128
|
+
MaoZedong = Mao
|
129
|
+
|
130
|
+
|
80
131
|
|
81
132
|
|
82
133
|
|
@@ -87,4 +138,4 @@ include Pixelart
|
|
87
138
|
|
88
139
|
|
89
140
|
|
90
|
-
puts Readymades.banner # say hello
|
141
|
+
puts Pixelart::Module::Readymades.banner # say hello
|
metadata
CHANGED
@@ -1,43 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: readymades
|
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-10-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
14
|
+
name: punks
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 0.5.3
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
name: backgrounds
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - ">="
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: 0.2.0
|
34
|
-
type: :runtime
|
35
|
-
prerelease: false
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
37
|
-
requirements:
|
38
|
-
- - ">="
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version: 0.2.0
|
26
|
+
version: 0.5.3
|
41
27
|
- !ruby/object:Gem::Dependency
|
42
28
|
name: rdoc
|
43
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -92,7 +78,7 @@ files:
|
|
92
78
|
- config/spritesheet.png
|
93
79
|
- lib/readymades.rb
|
94
80
|
- lib/readymades/version.rb
|
95
|
-
homepage: https://github.com/
|
81
|
+
homepage: https://github.com/profilepic/text-to-image
|
96
82
|
licenses:
|
97
83
|
- Public Domain
|
98
84
|
metadata: {}
|