punkmaker 0.0.1 → 0.1.0

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: 257366a7c0df4ae816f1eeebcf86951ebb46b544aa50ebe78dab967b3be81414
4
- data.tar.gz: f64bb2387a49c25d2d67aa81a25b68706d0cb0b8141be475fc5068d97b2b70b5
3
+ metadata.gz: 5bf9cd83ed36a867c73df5c98ae5876ff6cf6763f4c8b35bb6facf05d045605b
4
+ data.tar.gz: 176da988ba69f6f333e3e5a50f831ae0a0ea963e7ce64d89145d1307cb17fd7d
5
5
  SHA512:
6
- metadata.gz: 03653d15ea50dabca8a519eca28f5c8c160e004f8db0a4faec4be7c8ad847137dcb9a168429304af25af9d95d02fabb0e555f11ec889c38a65ca9cf156bcb3df
7
- data.tar.gz: cd4f204ec6d777971764966b5df93e3c4fb9f6c0abe3e2cc1c888b7effc282b7ab8e575e15c5127fb416421de3d8e9392bf0960bcc4113cf5be43fd4cad6e7b3
6
+ metadata.gz: 02efe3a67627eb1e52bf5f13df29ed17ceb529e61c32730e9d57597d2a31cdf1dc9da5be9c27de4678048a10affa20b6eace0e37d3f8d6564117ff3a59fe699a
7
+ data.tar.gz: 8f6b37d89179adcc4b55608044d37283cbcf27aa897fe0ab5756e5b0b0c76e76f9f9263e159e3909da01d594d7d7f0755ce771c0369b277d5e3d378190f86666
data/Manifest.txt CHANGED
@@ -2,6 +2,11 @@ CHANGELOG.md
2
2
  Manifest.txt
3
3
  README.md
4
4
  Rakefile
5
+ config/human-female4.png
6
+ config/human-male4.png
7
+ config/mummy-female.png
8
+ config/mummy-male.png
5
9
  lib/punkmaker.rb
6
10
  lib/punkmaker/human.rb
7
11
  lib/punkmaker/mummy.rb
12
+ lib/punkmaker/version.rb
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 = '0.0.1'
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
- ['punks'],
29
+ ['pixelart'],
29
30
  ]
30
31
 
31
32
  self.licenses = ['Public Domain']
Binary file
Binary file
Binary file
Binary file
@@ -4,8 +4,9 @@ module Punk
4
4
 
5
5
  module Human ## make it a class - why? why not?
6
6
 
7
- BASE_M = Sheet.find_by( name: 'Male 4' )
8
- BASE_F = Sheet.find_by( name: 'Female 4' )
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,
@@ -3,8 +3,9 @@ module Punk
3
3
 
4
4
  module Mummy ## make it a class - why? why not?
5
5
 
6
- BASE_M = Sheet.find_by( name: 'Mummy' )
7
- BASE_F = Sheet.find_by( name: 'Mummy Female' )
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
@@ -1,10 +1,14 @@
1
- require 'punks'
1
+ require 'pixelart'
2
2
 
3
3
 
4
+ require_relative 'punkmaker/version'
4
5
  require_relative 'punkmaker/human'
5
6
  require_relative 'punkmaker/mummy'
6
7
 
7
8
 
8
9
 
9
10
 
11
+ puts Pixelart::Module::Punkmaker.banner # say hello
12
+
13
+
10
14
 
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.1
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-20 00:00:00.000000000 Z
11
+ date: 2023-04-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: punks
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