punkmaker 0.0.1 → 0.1.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/Manifest.txt +5 -0
- data/Rakefile +3 -2
- data/config/human-female4.png +0 -0
- data/config/human-male4.png +0 -0
- data/config/mummy-female.png +0 -0
- data/config/mummy-male.png +0 -0
- data/lib/punkmaker/human.rb +3 -2
- data/lib/punkmaker/mummy.rb +3 -2
- data/lib/punkmaker/version.rb +24 -0
- data/lib/punkmaker.rb +5 -1
- metadata +8 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5bf9cd83ed36a867c73df5c98ae5876ff6cf6763f4c8b35bb6facf05d045605b
|
4
|
+
data.tar.gz: 176da988ba69f6f333e3e5a50f831ae0a0ea963e7ce64d89145d1307cb17fd7d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 02efe3a67627eb1e52bf5f13df29ed17ceb529e61c32730e9d57597d2a31cdf1dc9da5be9c27de4678048a10affa20b6eace0e37d3f8d6564117ff3a59fe699a
|
7
|
+
data.tar.gz: 8f6b37d89179adcc4b55608044d37283cbcf27aa897fe0ab5756e5b0b0c76e76f9f9263e159e3909da01d594d7d7f0755ce771c0369b277d5e3d378190f86666
|
data/Manifest.txt
CHANGED
data/Rakefile
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
require 'hoe'
|
2
|
+
require './lib/punkmaker/version.rb'
|
2
3
|
|
3
4
|
|
4
5
|
###
|
@@ -10,7 +11,7 @@ end
|
|
10
11
|
|
11
12
|
Hoe.spec 'punkmaker' do
|
12
13
|
|
13
|
-
self.version =
|
14
|
+
self.version = Pixelart::Module::Punkmaker::VERSION
|
14
15
|
|
15
16
|
self.summary = 'punkmaker gem - make your own (pixel) punk base (archetype) heads incl. humans, zombies, apes, aliens, mummies, robots, and much more'
|
16
17
|
self.description = summary
|
@@ -25,7 +26,7 @@ Hoe.spec 'punkmaker' do
|
|
25
26
|
self.history_file = 'CHANGELOG.md'
|
26
27
|
|
27
28
|
self.extra_deps = [
|
28
|
-
['
|
29
|
+
['pixelart'],
|
29
30
|
]
|
30
31
|
|
31
32
|
self.licenses = ['Public Domain']
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/lib/punkmaker/human.rb
CHANGED
@@ -4,8 +4,9 @@ module Punk
|
|
4
4
|
|
5
5
|
module Human ## make it a class - why? why not?
|
6
6
|
|
7
|
-
BASE_M =
|
8
|
-
BASE_F =
|
7
|
+
BASE_M = Image.read( "#{Pixelart::Module::Punkmaker.root}/config/human-male4.png" )
|
8
|
+
BASE_F = Image.read( "#{Pixelart::Module::Punkmaker.root}/config/human-female4.png" )
|
9
|
+
|
9
10
|
|
10
11
|
def self.make( color,
|
11
12
|
eye_color: nil,
|
data/lib/punkmaker/mummy.rb
CHANGED
@@ -3,8 +3,9 @@ module Punk
|
|
3
3
|
|
4
4
|
module Mummy ## make it a class - why? why not?
|
5
5
|
|
6
|
-
BASE_M =
|
7
|
-
BASE_F =
|
6
|
+
BASE_M = Image.read( "#{Pixelart::Module::Punkmaker.root}/config/mummy-male.png" )
|
7
|
+
BASE_F = Image.read( "#{Pixelart::Module::Punkmaker.root}/config/mummy-female.png" )
|
8
|
+
|
8
9
|
|
9
10
|
def self.make( color,
|
10
11
|
eye_color: nil,
|
@@ -0,0 +1,24 @@
|
|
1
|
+
module Pixelart
|
2
|
+
module Module
|
3
|
+
module Punkmaker
|
4
|
+
MAJOR = 0
|
5
|
+
MINOR = 1
|
6
|
+
PATCH = 0
|
7
|
+
VERSION = [MAJOR,MINOR,PATCH].join('.')
|
8
|
+
|
9
|
+
def self.version
|
10
|
+
VERSION
|
11
|
+
end
|
12
|
+
|
13
|
+
def self.banner
|
14
|
+
"punkmaker/#{VERSION} on Ruby #{RUBY_VERSION} (#{RUBY_RELEASE_DATE}) [#{RUBY_PLATFORM}] in (#{root})"
|
15
|
+
end
|
16
|
+
|
17
|
+
def self.root
|
18
|
+
File.expand_path( File.dirname(File.dirname(File.dirname(__FILE__))) )
|
19
|
+
end
|
20
|
+
|
21
|
+
end # module Punkmaker
|
22
|
+
end # module Module
|
23
|
+
end # module Pixelart
|
24
|
+
|
data/lib/punkmaker.rb
CHANGED
metadata
CHANGED
@@ -1,17 +1,17 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: punkmaker
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.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: 2023-04-
|
11
|
+
date: 2023-04-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
14
|
+
name: pixelart
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
@@ -72,9 +72,14 @@ files:
|
|
72
72
|
- Manifest.txt
|
73
73
|
- README.md
|
74
74
|
- Rakefile
|
75
|
+
- config/human-female4.png
|
76
|
+
- config/human-male4.png
|
77
|
+
- config/mummy-female.png
|
78
|
+
- config/mummy-male.png
|
75
79
|
- lib/punkmaker.rb
|
76
80
|
- lib/punkmaker/human.rb
|
77
81
|
- lib/punkmaker/mummy.rb
|
82
|
+
- lib/punkmaker/version.rb
|
78
83
|
homepage: https://github.com/cryptopunksnotdead/cryptopunks
|
79
84
|
licenses:
|
80
85
|
- Public Domain
|