shibainus 0.1.0 → 0.1.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: 770d6505218c085495ce8ba842b0ecd9cf5b75d92b9557fb1b4e9978af816cef
4
- data.tar.gz: 49c8f55c903649b369ec01d9039cb2480a96b4ac8b823a288fa17aa36a77bcb8
3
+ metadata.gz: 90b29579d744bfd1e5cbabb2dff4dc97ec5a6cf6629e874e30edf07cd4f7f648
4
+ data.tar.gz: 7d2090bf2b129dbd5db26e2e36350003d13e38a3ad4d55914f8d892ec7787eb3
5
5
  SHA512:
6
- metadata.gz: 39651aeda7aa240b1884494170c9b477c4f2ffcd9bc003564563a993419e8be6676a08652a03485fbf22d6709de527ffa369bd77115c744afa05cf10098d773b
7
- data.tar.gz: cf639cd9ad45826e01a69b3b3681a54032e85caad9dc415a52a6911f5233952b3362c477af158bcc9e849286a64ce1738dd0d6e8adfacf181017beab9ecb1b6b
6
+ metadata.gz: e5ae6bd10fe014cab3adaad88679ab3494cd7515cfaf971c0741f6cbe8e8135209910ebf469e1cce1db7b475031af2e20c4523b8c4bfd37e7beb3edc8ea8756a
7
+ data.tar.gz: eba2f16af781c5feb4cf2f0c18f0d0e82eadfd0e4e3f5d57d2b29eae98257f28e97af3537b4f3b0ada3a848177edd57e81793248558b11adba66635a374dbf7e
data/README.md CHANGED
@@ -1,6 +1,8 @@
1
+ The Do-It-Yourself (DIY) [Factory of Modern Originals (FoMO)](https://github.com/pixelartexchange/originals) Presents
2
+
1
3
  # Shiba Inus (Pixel Doge)
2
4
 
3
- shibainus - generate your own 24×24 pixel shiba inu (pixel) doge 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 pixel shiba inu doge images (off chain) from text attributes (via built-in spritesheet); incl. 2x/4x/8x zoom for bigger sizes and more
4
6
 
5
7
 
6
8
  * home :: [github.com/pixelartexchange/pixelart](https://github.com/pixelartexchange/pixelart)
@@ -96,11 +98,11 @@ And so on.
96
98
 
97
99
  ## Appendix - All Built-In Spritesheet Attributes (24x24px)
98
100
 
99
- See the [**spritesheet.csv**](https://github.com/pixelartexchange/pixelart/blob/master/shibainus/config/spritesheet.csv) dataset for all attribute names (w/ categories).
101
+ See the [spritesheet.csv](https://github.com/pixelartexchange/pixelart/blob/master/shibainus/config/spritesheet.csv) dataset for all attribute names (w/ categories).
100
102
 
101
103
  ![](https://github.com/pixelartexchange/pixelart/raw/master/shibainus/config/spritesheet.png)
102
104
 
103
- (Source: [**shibainus/spritesheet.png**](https://github.com/pixelartexchange/pixelart/blob/master/shibainus/config/spritesheet.png))
105
+ (Source: [shibainus/spritesheet.png](https://github.com/pixelartexchange/pixelart/blob/master/shibainus/config/spritesheet.png))
104
106
 
105
107
 
106
108
 
@@ -108,4 +110,4 @@ See the [**spritesheet.csv**](https://github.com/pixelartexchange/pixelart/blob/
108
110
 
109
111
  ## Questions? Comments?
110
112
 
111
- Post them on the [CryptoPunksDev reddit](https://old.reddit.com/r/CryptoPunksDev). Thanks.
113
+ Post them on the [D.I.Y. Punk (Pixel) Art reddit](https://old.reddit.com/r/DIYPunkArt). Thanks.
data/Rakefile CHANGED
@@ -13,7 +13,7 @@ Hoe.spec 'shibainus' do
13
13
 
14
14
  self.version = Shibainus::VERSION
15
15
 
16
- self.summary = "shibainus - generate your own 24×24 pixel shiba inu (pixel) doge images (off chain) from text attributes (via built-in spritesheet); incl. 2x/4x/8x zoom for bigger sizes and more"
16
+ self.summary = "shibainus - generate your own 24×24 pixel shiba inu doge 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/pixelartexchange/pixelart' }
@@ -1,10 +1,9 @@
1
1
 
2
2
 
3
3
  module Shibainus
4
-
5
4
  MAJOR = 0
6
5
  MINOR = 1
7
- PATCH = 0
6
+ PATCH = 1
8
7
  VERSION = [MAJOR,MINOR,PATCH].join('.')
9
8
 
10
9
  def self.version
data/lib/shibainus.rb CHANGED
@@ -7,14 +7,6 @@ require 'pixelart/base'
7
7
  require 'shibainus/version' # note: let version always go first
8
8
 
9
9
 
10
- ## forward define superclass for image
11
- module Shibainus
12
- class Image < Pixelart::Image; end
13
- end
14
-
15
- ###
16
- ## add convenience pre-configurated generatored with build-in spritesheet (see config)
17
-
18
10
  module Shibainus
19
11
 
20
12
  def self.generator
@@ -26,7 +18,7 @@ module Shibainus
26
18
 
27
19
 
28
20
 
29
- class Image
21
+ class Image < Pixelart::Image
30
22
  ## before callback/patch for hats
31
23
  BEFORE_PATCH = ->(img, meta) {
32
24
  ## hack for doge hats - cut off / clean top (ears)
@@ -50,10 +42,14 @@ module Shibainus
50
42
  }
51
43
 
52
44
 
53
- def self.generate( *values, background: nil )
45
+ NAMES = ['doge', 'doges',
46
+ 'shiba', 'shibas',
47
+ 'shibainu', 'shibainus']
48
+ DEFAULT_ATTRIBUTES = ['Classic']
49
+
50
+ def self.generate( *values )
54
51
 
55
52
  img = Shibainus.generator.generate( *values,
56
- background: background,
57
53
  before: BEFORE_PATCH )
58
54
  ## note: unwrap inner image before passing on to c'tor (requires ChunkyPNG image for now)
59
55
  new( 24, 24, img.image )
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shibainus
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.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-05-28 00:00:00.000000000 Z
11
+ date: 2022-08-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pixelart
@@ -58,9 +58,9 @@ dependencies:
58
58
  - - "~>"
59
59
  - !ruby/object:Gem::Version
60
60
  version: '3.23'
61
- description: shibainus - generate your own 24×24 pixel shiba inu (pixel) doge images
62
- (off chain) from text attributes (via built-in spritesheet); incl. 2x/4x/8x zoom
63
- for bigger sizes and more
61
+ description: shibainus - generate your own 24×24 pixel shiba inu doge images (off
62
+ chain) from text attributes (via built-in spritesheet); incl. 2x/4x/8x zoom for
63
+ bigger sizes and more
64
64
  email: wwwmake@googlegroups.com
65
65
  executables: []
66
66
  extensions: []
@@ -101,7 +101,7 @@ requirements: []
101
101
  rubygems_version: 3.3.7
102
102
  signing_key:
103
103
  specification_version: 4
104
- summary: shibainus - generate your own 24×24 pixel shiba inu (pixel) doge images (off
105
- chain) from text attributes (via built-in spritesheet); incl. 2x/4x/8x zoom for
106
- bigger sizes and more
104
+ summary: shibainus - generate your own 24×24 pixel shiba inu doge images (off chain)
105
+ from text attributes (via built-in spritesheet); incl. 2x/4x/8x zoom for bigger
106
+ sizes and more
107
107
  test_files: []