punks 0.2.2 → 0.3.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4e699bed9f9f800c1c7dc6cd5fb12b81259de21945a327b54265392b0ab3866a
4
- data.tar.gz: b7978ab9e53e0bcf82ca8725b9e11d12c4f8f4eab66c1c76215cc2e1acd36f78
3
+ metadata.gz: a7e6ceb92eef1f393f68a8cb6bf46b03bbb9b33377599d0f3a128acf982fdb27
4
+ data.tar.gz: 6f1270498f82595d77275d0bb1112f564eed9bb19240faf4705baae5138617ee
5
5
  SHA512:
6
- metadata.gz: 1f108d7d4be9014f68b4493fb2b763e560c4b3c5b28937087b74d1d6cd827ee301d6a458daf8ab3f3241d64da1a05f04f7dd00c1f1ba5d5644c77308fdb4f021
7
- data.tar.gz: 29dd585a4c1e2fc8b90aa355e0620cf967a586db5d25e828f68c698afccc998f44651c518a80d44a0d1b41ba73a040c3869e103100d0e1f6f094c9d3fc959b7d
6
+ metadata.gz: ece0f7ef3505dcc3b04c3beb8352b43f4f444d28532d694e14c433ddbebbaaf89ad5eb1b57395842bfd8314b2a5ea8f665913690e2f59c0095aff3eabf8e0069
7
+ data.tar.gz: 7b45dafd6870c4ca2b551ebf249d89f86b161cc39537e3947e23d0fb54ebd5dd4a483bebcde47c327fd42e570ac673519ca35115ae71d503ce16abf59502601e
data/Manifest.txt CHANGED
@@ -7,6 +7,8 @@ config/punks-24x24.csv
7
7
  config/punks-24x24.png
8
8
  config/punks_xl-32x32.csv
9
9
  config/punks_xl-32x32.png
10
+ config/saudis-24x24.csv
11
+ config/saudis-24x24.png
10
12
  lib/punks.rb
11
13
  lib/punks/generator.rb
12
14
  lib/punks/marilyns.rb
@@ -14,4 +16,5 @@ lib/punks/philips.rb
14
16
  lib/punks/phunks.rb
15
17
  lib/punks/punks.rb
16
18
  lib/punks/punks_xl.rb
19
+ lib/punks/saudis.rb
17
20
  lib/punks/version.rb
@@ -0,0 +1,79 @@
1
+ id, category, name, more_names
2
+ 0, , male 01,
3
+ 1, , male 02,
4
+ 2, , male 03,
5
+ 3, , male 04,
6
+ 4, , male 05,
7
+ 5, , male 06,
8
+ 6, , male 07,
9
+ 7, , male 08,
10
+ 8, , male 09,
11
+ 9, , male 10,
12
+ 10, , light 1,
13
+ 11, , light 2,
14
+ 12, , medium 1,
15
+ 13, , medium 2,
16
+ 14, , darker 1,
17
+ 15, , darker 2,
18
+ 16, , dark 1,
19
+ 17, , dark 2,
20
+ 18, , white shemagh,
21
+ 19, , white shemagh agal,
22
+ 20, , white shemagh gold agal,
23
+ 21, , white shemagh stylish gold agal,
24
+ 22, , white shemagh crown,
25
+ 23, , brown shemagh agal,
26
+ 24, , brown shemagh crown,
27
+ 25, , red shemagh,
28
+ 26, , red shemagh agal,
29
+ 27, , red shemagh crown,
30
+ 28, , messy white beard,
31
+ 29, , short white beard,
32
+ 30, , normal white beard,
33
+ 31, , luxurious white beard,
34
+ 32, , short grey beard,
35
+ 33, , messy brown beard,
36
+ 34, , normal brown beard,
37
+ 35, , luxurious brown beard,
38
+ 36, , shadow beard,
39
+ 37, , shadow beard mustache,
40
+ 38, , light beard,
41
+ 39, , mustache,
42
+ 40, , stylish mustache,
43
+ 41, , sideburns,
44
+ 42, , sideburns mustache,
45
+ 43, , normal beard,
46
+ 44, , normal brown beard mustache,
47
+ 45, , luxurious beard,
48
+ 46, , horn rimmed glasses,
49
+ 47, , rimless glasses,
50
+ 48, , nerd glasses,
51
+ 49, , stylish nerd glasses,
52
+ 50, , classic shades,
53
+ 51, , classic green shades,
54
+ 52, , classic gold shades,
55
+ 53, , regular pixel shades,
56
+ 54, , regular reflective shades,
57
+ 55, , big green shades,
58
+ 56, , big pixel shades,
59
+ 57, , big purple shades,
60
+ 58, , big shades,
61
+ 59, , small shades,
62
+ 60, , regular shades,
63
+ 61, , round shades,
64
+ 62, , big round shades,
65
+ 63, , square reflective shades,
66
+ 64, , square shades,
67
+ 65, , 3d glasses,
68
+ 66, , vr,
69
+ 67, , laser eyes,
70
+ 68, , max bidding,
71
+ 69, , cigarette,
72
+ 70, , shadowless cigarette,
73
+ 71, , miswak,
74
+ 72, , vape,
75
+ 73, , shadowless vape,
76
+ 74, , cigar,
77
+ 75, , pearwood pipe,
78
+ 76, , rosewood pipe,
79
+ 77, , bubble gum,
Binary file
@@ -266,11 +266,18 @@ module Punk
266
266
 
267
267
  ## note: attribute lookup requires gender from archetype!!!!
268
268
  if archetype.is_a?( Pixelart::Image )
269
- ### for now assume (support only)
270
- ## large & male (l/m) for "inline/patch" archetypes - why? why not?
271
- ## change male to unisex - why? why not? (note: for now unisex is not doing a backup lookup using male/female)
272
- attribute_gender = 'm'
273
- attribute_size = 'l'
269
+ if archetype_name.is_a?( String ) && archetype_name.downcase.index( 'female' )
270
+ ## quick & dirty hack for now
271
+ ## if name incl. female (automagically) switch to f(emale)/s(mall)
272
+ attribute_gender = 'f'
273
+ attribute_size = 's'
274
+ else
275
+ ### for now assume (support only)
276
+ ## large & male (l/m) for "inline/patch" archetypes - why? why not?
277
+ ## change male to unisex - why? why not? (note: for now unisex is not doing a backup lookup using male/female)
278
+ attribute_gender = 'm'
279
+ attribute_size = 'l'
280
+ end
274
281
  else
275
282
  attribute_gender = archetype.gender
276
283
  attribute_size = archetype.size
@@ -0,0 +1,34 @@
1
+ module Saudi
2
+
3
+ class Spritesheet
4
+ def self.builtin
5
+ @builtin ||= Pixelart::Spritesheet.read( "#{Pixelart::Module::Punks.root}/config/saudis-24x24.png",
6
+ "#{Pixelart::Module::Punks.root}/config/saudis-24x24.csv",
7
+ width: 24,
8
+ height: 24 )
9
+ end
10
+
11
+ ## note: for now class used for "namespace" only
12
+ def self.find_by( name: ) ## return archetype/attribute image by name
13
+ builtin.find_by( name: name )
14
+ end
15
+ end # class Spritesheet
16
+ ## add convenience (alternate spelling) alias - why? why not?
17
+ SpriteSheet = Spritesheet
18
+ Sheet = Spritesheet
19
+ Sprite = Spritesheet
20
+
21
+
22
+ class Image < Pixelart::Image
23
+ def self.generator
24
+ @generator ||= Artfactory.use( Saudi::Sheet.builtin,
25
+ image_class: Image )
26
+ end
27
+ def self.generate( *names )
28
+ generator.generate( *names )
29
+ end
30
+ end # class Image
31
+
32
+
33
+ end # module Saudi
34
+
data/lib/punks/version.rb CHANGED
@@ -4,8 +4,8 @@ module Module
4
4
  module Punks
5
5
 
6
6
  MAJOR = 0
7
- MINOR = 2
8
- PATCH = 2
7
+ MINOR = 3
8
+ PATCH = 0
9
9
  VERSION = [MAJOR,MINOR,PATCH].join('.')
10
10
 
11
11
  def self.version
data/lib/punks.rb CHANGED
@@ -15,6 +15,7 @@ require 'punks/punks'
15
15
  require 'punks/phunks'
16
16
  require 'punks/marilyns'
17
17
  require 'punks/philips'
18
+ require 'punks/saudis'
18
19
  ## --- 32x32 series
19
20
  require 'punks/punks_xl'
20
21
 
@@ -44,6 +45,10 @@ Philips = Philip
44
45
  ### add some convenience shortcuts / alternate spelling variants
45
46
  Marilyns = Marilyn
46
47
 
48
+ ### add some convenience shortcuts / alternate spelling variants
49
+ Saudis = Saudi
50
+ Sheiks = Saudi
51
+ Sheik = Saudi
47
52
 
48
53
 
49
54
  ###
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.2.2
4
+ version: 0.3.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-07-05 00:00:00.000000000 Z
11
+ date: 2022-07-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pixelart
@@ -106,6 +106,8 @@ files:
106
106
  - config/punks-24x24.png
107
107
  - config/punks_xl-32x32.csv
108
108
  - config/punks_xl-32x32.png
109
+ - config/saudis-24x24.csv
110
+ - config/saudis-24x24.png
109
111
  - lib/punks.rb
110
112
  - lib/punks/generator.rb
111
113
  - lib/punks/marilyns.rb
@@ -113,6 +115,7 @@ files:
113
115
  - lib/punks/phunks.rb
114
116
  - lib/punks/punks.rb
115
117
  - lib/punks/punks_xl.rb
118
+ - lib/punks/saudis.rb
116
119
  - lib/punks/version.rb
117
120
  homepage: https://github.com/cryptopunksnotdead/cryptopunks
118
121
  licenses: