punks 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a7e6ceb92eef1f393f68a8cb6bf46b03bbb9b33377599d0f3a128acf982fdb27
4
- data.tar.gz: 6f1270498f82595d77275d0bb1112f564eed9bb19240faf4705baae5138617ee
3
+ metadata.gz: ef4999991a9be18190921b940219f841b1cacff54a99026d1404f3f43c65c558
4
+ data.tar.gz: dcfc409fc2997411253a3daa54a0ebc9a9bce407b4eeeef8c460f618df8178cf
5
5
  SHA512:
6
- metadata.gz: ece0f7ef3505dcc3b04c3beb8352b43f4f444d28532d694e14c433ddbebbaaf89ad5eb1b57395842bfd8314b2a5ea8f665913690e2f59c0095aff3eabf8e0069
7
- data.tar.gz: 7b45dafd6870c4ca2b551ebf249d89f86b161cc39537e3947e23d0fb54ebd5dd4a483bebcde47c327fd42e570ac673519ca35115ae71d503ce16abf59502601e
6
+ metadata.gz: 8708e31b9a9420537efca32ff68a047306af9320a3e0cf5ccf7a94dc39bc06e9ba4e42358775830ebaa4ba1e996d0d242e142867093e89fb5a072a3ce517844f
7
+ data.tar.gz: 48f8ec551995bd57705fb87deceb7adb7ef11648462a645690e9b521ee646cb940d89d390e4583f91f388403d3183db50773b74c5a907c047e119eb0f3bc2901
data/README.md CHANGED
@@ -1,8 +1,8 @@
1
1
  The Do-It-Yourself (DIY) [Factory of Modern Originals (FoMO)](https://github.com/pixelartexchange/originals) Presents
2
2
 
3
- # Punks, Phunks, Philips, Marilyns & More (Pixel Characters / Avatars)
3
+ # Punks, Phunks, Philips, Marilyns, Saudis/Sheiks & More (Pixel Characters / Avatars)
4
4
 
5
- Yes, you can! Generate your own 24×24 (or 32×32) punk, phunk, philip, marilyn & more (pixel) avatar / character images (off chain) from text attributes (via built-in spritesheet); incl. 2x/4x/8x zoom for bigger sizes and more
5
+ Yes, you can! Generate your own 24×24 (or 32×32) punk, phunk, philip, marilyn, saudi/sheik & more (pixel) avatar / character images (off chain) from text attributes (via built-in spritesheet); incl. 2x/4x/8x zoom for bigger sizes and more
6
6
 
7
7
 
8
8
 
data/Rakefile CHANGED
@@ -13,7 +13,7 @@ Hoe.spec 'punks' do
13
13
 
14
14
  self.version = Pixelart::Module::Punks::VERSION
15
15
 
16
- self.summary = "punks - generate your own 24×24 (or 32×32) punk, phunk, philip, marilyn 'n' more (pixel) avatar / character images (off chain) from text attributes (via built-in spritesheet); incl. 2x/4x/8x zoom for bigger sizes and more"
16
+ self.summary = "punks - generate your own 24×24 (or 32×32) punk, phunk, philip, marilyn, saudi/sheik 'n' more (pixel) avatar / character images (off chain) from text attributes (via built-in spritesheet); incl. 2x/4x/8x zoom for bigger sizes and more"
17
17
  self.description = summary
18
18
 
19
19
  self.urls = { home: 'https://github.com/cryptopunksnotdead/cryptopunks' }
data/lib/punks/saudis.rb CHANGED
@@ -24,7 +24,21 @@ module Saudi
24
24
  @generator ||= Artfactory.use( Saudi::Sheet.builtin,
25
25
  image_class: Image )
26
26
  end
27
+
28
+
29
+ # note: remove/delete empyty attributes (n/a - not applicables)
30
+ ## (e.g. "None" in Eyewear/Mouse Prop and
31
+ ## "Clean Shaven" in Beard )
32
+ ## future: make n/a values configurable that you can pass in
33
+ ## e.g. nas: [] or such - why? why not?
34
+ NA = [
35
+ 'cleanshaven',
36
+ 'none'
37
+ ]
38
+
27
39
  def self.generate( *names )
40
+ names = names.filter { |name| !NA.include?( Pixelart::Spritesheet.normalize_key( name )) }
41
+
28
42
  generator.generate( *names )
29
43
  end
30
44
  end # class Image
data/lib/punks/version.rb CHANGED
@@ -5,7 +5,7 @@ module Punks
5
5
 
6
6
  MAJOR = 0
7
7
  MINOR = 3
8
- PATCH = 0
8
+ PATCH = 1
9
9
  VERSION = [MAJOR,MINOR,PATCH].join('.')
10
10
 
11
11
  def self.version
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: punks
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
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-07-11 00:00:00.000000000 Z
11
+ date: 2022-07-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pixelart
@@ -86,9 +86,9 @@ dependencies:
86
86
  - - "~>"
87
87
  - !ruby/object:Gem::Version
88
88
  version: '3.23'
89
- description: punks - generate your own 24×24 (or 32×32) punk, phunk, philip, marilyn
90
- 'n' more (pixel) avatar / character images (off chain) from text attributes (via
91
- built-in spritesheet); incl. 2x/4x/8x zoom for bigger sizes and more
89
+ description: punks - generate your own 24×24 (or 32×32) punk, phunk, philip, marilyn,
90
+ saudi/sheik 'n' more (pixel) avatar / character images (off chain) from text attributes
91
+ (via built-in spritesheet); incl. 2x/4x/8x zoom for bigger sizes and more
92
92
  email: wwwmake@googlegroups.com
93
93
  executables: []
94
94
  extensions: []
@@ -141,7 +141,7 @@ requirements: []
141
141
  rubygems_version: 3.3.7
142
142
  signing_key:
143
143
  specification_version: 4
144
- summary: punks - generate your own 24×24 (or 32×32) punk, phunk, philip, marilyn 'n'
145
- more (pixel) avatar / character images (off chain) from text attributes (via built-in
146
- spritesheet); incl. 2x/4x/8x zoom for bigger sizes and more
144
+ summary: punks - generate your own 24×24 (or 32×32) punk, phunk, philip, marilyn,
145
+ saudi/sheik 'n' more (pixel) avatar / character images (off chain) from text attributes
146
+ (via built-in spritesheet); incl. 2x/4x/8x zoom for bigger sizes and more
147
147
  test_files: []