smileys 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 4c8520db4c09b8420dc06555c1fc5081ec46ce8331104f37939b4c99c9be0488
4
+ data.tar.gz: 5050bafd7173be1c9005c98e212366b8da0540d2bbcb73fb0ef57f3b2dbca8d3
5
+ SHA512:
6
+ metadata.gz: a06a0ca8539fa6028c32384c086dbb4b4454714f90245d30fb41008309c183bd42600294a1f762a1324021b6372a24c6c3a2f208b64bfa5459f23fa76f04485f
7
+ data.tar.gz: ed82e91ba00490b1eb1968c6bd066e214ca33214992b006678f8e3ef8d6e880947b89a89c5528079ef30aeac2119853124ca8c1c85932bb7a060c28e3c99b7c3
data/CHANGELOG.md ADDED
@@ -0,0 +1,3 @@
1
+ ### 0.0.1 / 2022-10-04
2
+
3
+ * Everything is new. First release
data/Manifest.txt ADDED
@@ -0,0 +1,10 @@
1
+ CHANGELOG.md
2
+ Manifest.txt
3
+ README.md
4
+ Rakefile
5
+ config/spritesheet_dia15-24x24.csv
6
+ config/spritesheet_dia15-24x24.png
7
+ config/spritesheet_dia16-24x24.csv
8
+ config/spritesheet_dia16-24x24.png
9
+ lib/smileys.rb
10
+ lib/smileys/version.rb
data/README.md ADDED
@@ -0,0 +1,34 @@
1
+ The Do-It-Yourself (DIY) [Factory of Modern Originals (FoMO)](https://github.com/pixelartexchange/originals) Presents
2
+
3
+
4
+ # Smileys (Smilies)
5
+
6
+ Yes, you can! Generate your own 24×24 pixel smiley images (off-blockchain) with text (via built-in spritesheets); incl. 2x/4x/8x zoom for bigger sizes and more
7
+
8
+
9
+
10
+
11
+
12
+ * home :: [github.com/pixelartexchange/pixelart](https://github.com/pixelartexchange/pixelart)
13
+ * bugs :: [github.com/pixelartexchange/pixelart/issues](https://github.com/pixelartexchange/pixelart/issues)
14
+ * gem :: [rubygems.org/gems/smileys](https://rubygems.org/gems/smileys)
15
+ * rdoc :: [rubydoc.info/gems/smileys](http://rubydoc.info/gems/smileys)
16
+
17
+
18
+
19
+
20
+ ## Usage
21
+
22
+ Let's generate some super-rare never-before-seen
23
+ smileys / smilies:
24
+
25
+ ...
26
+
27
+
28
+
29
+
30
+
31
+ ## Questions? Comments?
32
+
33
+ Post them on the [D.I.Y. Punk (Pixel) Art reddit](https://old.reddit.com/r/DIYPunkArt). Thanks.
34
+
data/Rakefile ADDED
@@ -0,0 +1,40 @@
1
+ require 'hoe'
2
+ require './lib/smileys/version.rb'
3
+
4
+ ###
5
+ # hack/ quick fix for broken intuit_values - overwrite with dummy
6
+ class Hoe
7
+ def intuit_values( input ); end
8
+ end
9
+
10
+
11
+
12
+ Hoe.spec 'smileys' do
13
+
14
+ self.version = Pixelart::Module::Smileys::VERSION
15
+
16
+ self.summary = "smileys - generate your own 24×24 pixel smiley images (off-blockchain) with text (via built-in spritesheets); incl. 2x/4x/8x zoom for bigger sizes and more"
17
+ self.description = summary
18
+
19
+ self.urls = { home: 'https://github.com/pixelartexchange/pixelart' }
20
+
21
+ self.author = 'Gerald Bauer'
22
+ self.email = 'wwwmake@googlegroups.com'
23
+
24
+ # switch extension to .markdown for gihub formatting
25
+ self.readme_file = 'README.md'
26
+ self.history_file = 'CHANGELOG.md'
27
+
28
+ self.extra_deps = [
29
+ ['pixelart', '>= 1.3.2'],
30
+ ['artfactory', '>= 0.2.0'],
31
+ ['backgrounds', '>= 0.2.0'],
32
+ ]
33
+
34
+ self.licenses = ['Public Domain']
35
+
36
+ self.spec_extras = {
37
+ required_ruby_version: '>= 2.3'
38
+ }
39
+
40
+ end
@@ -0,0 +1,19 @@
1
+ id, category, name, more_names
2
+ 0, , green.no,
3
+ 1, , green,
4
+ 2, , greener.no,
5
+ 3, , greener,
6
+ 4, , orange.no,
7
+ 5, , orange,
8
+ 6, , red.no,
9
+ 7, , red,
10
+ 8, , white.no,
11
+ 9, , white,
12
+ 10, , yellow.no,
13
+ 11, , yellow,
14
+ 12, , face1,
15
+ 13, , face2,
16
+ 14, , face3,
17
+ 15, , face4,
18
+ 16, , face5,
19
+ 17, , face6,
Binary file
@@ -0,0 +1,21 @@
1
+ id, category, name, more_names
2
+ 0, , green.no,
3
+ 1, , green,
4
+ 2, , greener.no,
5
+ 3, , greener,
6
+ 4, , orange.no,
7
+ 5, , orange,
8
+ 6, , red.no,
9
+ 7, , red,
10
+ 8, , white.no,
11
+ 9, , white,
12
+ 10, , yellow.no,
13
+ 11, , yellow,
14
+ 12, , face1,
15
+ 13, , face2,
16
+ 14, , face3,
17
+ 15, , face4,
18
+ 16, , open,
19
+ 17, , shades,
20
+ 18, , grin-right,
21
+ 19, , smile,
Binary file
@@ -0,0 +1,26 @@
1
+
2
+
3
+ module Pixelart
4
+ module Module
5
+ module Smileys
6
+ MAJOR = 0
7
+ MINOR = 0
8
+ PATCH = 1
9
+ VERSION = [MAJOR,MINOR,PATCH].join('.')
10
+
11
+ def self.version
12
+ VERSION
13
+ end
14
+
15
+ def self.banner
16
+ "smileys/#{VERSION} on Ruby #{RUBY_VERSION} (#{RUBY_RELEASE_DATE}) [#{RUBY_PLATFORM}] in (#{root})"
17
+ end
18
+
19
+ def self.root
20
+ File.expand_path( File.dirname(File.dirname(File.dirname(__FILE__))) )
21
+ end
22
+
23
+ end # module Smileys
24
+ end # module Module
25
+ end # module Pixelart
26
+
data/lib/smileys.rb ADDED
@@ -0,0 +1,58 @@
1
+ ## 3rd party
2
+ require 'backgrounds/base'
3
+ require 'artfactory/base'
4
+
5
+
6
+
7
+ ## our own code
8
+ require 'smileys/version' # note: let version always go first
9
+
10
+
11
+
12
+ module Smiley16
13
+
14
+ class Spritesheet ## note: for now class used for "namespace" only
15
+ def self.builtin ### check: use a different name e.g. default,standard,base or such - why? why not?
16
+ @sheet ||= Pixelart::Spritesheet.read( "#{Pixelart::Module::Smileys.root}/config/spritesheet_dia16-24x24.png",
17
+ "#{Pixelart::Module::Smileys.root}/config/spritesheet_dia16-24x24.csv",
18
+ width: 24,
19
+ height: 24 )
20
+ end
21
+
22
+ def self.find_by( name: ) ## return archetype/attribute image by name
23
+ builtin.find_by( name: name )
24
+ end
25
+ end # class Spritesheet
26
+ ## add convenience (alternate spelling) alias - why? why not?
27
+ SpriteSheet = Spritesheet
28
+ Sheet = Spritesheet
29
+ Sprite = Spritesheet
30
+
31
+
32
+ class Image < Pixelart::Image
33
+ def self.generator
34
+ @generator ||= Artfactory.use( Smiley16::Sheet.builtin,
35
+ image_class: Image )
36
+ end
37
+
38
+
39
+ NAMES = ['smiley16', 'smileys16' ]
40
+ DEFAULT_ATTRIBUTES = ['Yellow', 'Face 1']
41
+
42
+ def self.generate( *names )
43
+ generator.generate( *names )
44
+ end
45
+ end # class Image
46
+ end
47
+
48
+
49
+
50
+
51
+
52
+ ###
53
+ # note: for convenience auto include Pixelart namespace!!! - why? why not?
54
+ include Pixelart
55
+
56
+
57
+ puts Pixelart::Module::Smileys.banner # say hello
58
+
metadata ADDED
@@ -0,0 +1,136 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: smileys
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Gerald Bauer
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2022-10-04 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: pixelart
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: 1.3.2
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: 1.3.2
27
+ - !ruby/object:Gem::Dependency
28
+ name: artfactory
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: 0.2.0
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: 0.2.0
41
+ - !ruby/object:Gem::Dependency
42
+ name: backgrounds
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: 0.2.0
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: 0.2.0
55
+ - !ruby/object:Gem::Dependency
56
+ name: rdoc
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '4.0'
62
+ - - "<"
63
+ - !ruby/object:Gem::Version
64
+ version: '7'
65
+ type: :development
66
+ prerelease: false
67
+ version_requirements: !ruby/object:Gem::Requirement
68
+ requirements:
69
+ - - ">="
70
+ - !ruby/object:Gem::Version
71
+ version: '4.0'
72
+ - - "<"
73
+ - !ruby/object:Gem::Version
74
+ version: '7'
75
+ - !ruby/object:Gem::Dependency
76
+ name: hoe
77
+ requirement: !ruby/object:Gem::Requirement
78
+ requirements:
79
+ - - "~>"
80
+ - !ruby/object:Gem::Version
81
+ version: '3.23'
82
+ type: :development
83
+ prerelease: false
84
+ version_requirements: !ruby/object:Gem::Requirement
85
+ requirements:
86
+ - - "~>"
87
+ - !ruby/object:Gem::Version
88
+ version: '3.23'
89
+ description: smileys - generate your own 24×24 pixel smiley images (off-blockchain)
90
+ with text (via built-in spritesheets); incl. 2x/4x/8x zoom for bigger sizes and
91
+ more
92
+ email: wwwmake@googlegroups.com
93
+ executables: []
94
+ extensions: []
95
+ extra_rdoc_files:
96
+ - CHANGELOG.md
97
+ - Manifest.txt
98
+ - README.md
99
+ files:
100
+ - CHANGELOG.md
101
+ - Manifest.txt
102
+ - README.md
103
+ - Rakefile
104
+ - config/spritesheet_dia15-24x24.csv
105
+ - config/spritesheet_dia15-24x24.png
106
+ - config/spritesheet_dia16-24x24.csv
107
+ - config/spritesheet_dia16-24x24.png
108
+ - lib/smileys.rb
109
+ - lib/smileys/version.rb
110
+ homepage: https://github.com/pixelartexchange/pixelart
111
+ licenses:
112
+ - Public Domain
113
+ metadata: {}
114
+ post_install_message:
115
+ rdoc_options:
116
+ - "--main"
117
+ - README.md
118
+ require_paths:
119
+ - lib
120
+ required_ruby_version: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '2.3'
125
+ required_rubygems_version: !ruby/object:Gem::Requirement
126
+ requirements:
127
+ - - ">="
128
+ - !ruby/object:Gem::Version
129
+ version: '0'
130
+ requirements: []
131
+ rubygems_version: 3.3.7
132
+ signing_key:
133
+ specification_version: 4
134
+ summary: smileys - generate your own 24×24 pixel smiley images (off-blockchain) with
135
+ text (via built-in spritesheets); incl. 2x/4x/8x zoom for bigger sizes and more
136
+ test_files: []