emojidex-static-collector 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/emojidex-static-collector.gemspec +6 -4
- metadata +15 -16
- data/.gitignore +0 -39
- data/.rspec +0 -2
- data/.rubocop.yml +0 -18
- data/Gemfile +0 -11
- data/Guardfile +0 -10
- data/README.md +0 -36
- data/spec/emojidex_static_collector_spec.rb +0 -49
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b9677904d66c20d3698da5b407deb982355ef1af
|
4
|
+
data.tar.gz: e11d049b2153c86bdecf2983f126a3d1f0361445
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9de8d54e3fd128b7a9b546c4162f395220e84cccf5914813e3edd2068da593425dab826cab0af39c17b9a8208c2ae1d23344b9e9de0f178237bf7420d73cde22
|
7
|
+
data.tar.gz: d17cfe167ec64aeedb0f73ba828a1732bd3cb78e8a8982a42871d85ec9c3d9e3d31bb244aaec5a0eb1a3781d8cb9550f61c148c0e6cd02b47e8b1b1c17901679
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'emojidex-static-collector'
|
3
|
-
s.version = '0.3.
|
3
|
+
s.version = '0.3.1'
|
4
4
|
s.license = 'emojiOL'
|
5
5
|
s.summary = 'Create static collections from emojidex assets'
|
6
6
|
s.description = 'Generates PNG rasters from emojidex vectors in a ' \
|
@@ -8,13 +8,15 @@ Gem::Specification.new do |s|
|
|
8
8
|
'categorized folders.'
|
9
9
|
s.authors = ['Rei Kagetsuki']
|
10
10
|
s.email = 'info@emojidex.com'
|
11
|
-
s.files =
|
11
|
+
s.files = Dir.glob('lib/**/*.rb') +
|
12
|
+
Dir.glob('bin/**/*.rb') +
|
13
|
+
['emojidex-static-collector.gemspec']
|
12
14
|
s.require_paths = ['lib']
|
13
15
|
s.bindir = 'bin'
|
14
16
|
s.executables << 'emojidex-static-collector'
|
15
17
|
s.homepage = 'http://developer.emojidex.com'
|
16
18
|
|
17
|
-
s.add_dependency 'emojidex', '~> 0.
|
19
|
+
s.add_dependency 'emojidex', '~> 0.5', '~> 0.5.0'
|
18
20
|
s.add_dependency 'emojidex-vectors', '~> 1.0'
|
19
|
-
s.add_dependency 'emojidex-converter', '~> 0.
|
21
|
+
s.add_dependency 'emojidex-converter', '~> 0.4', '~> 0.4.0'
|
20
22
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: emojidex-static-collector
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rei Kagetsuki
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-04-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: emojidex
|
@@ -16,20 +16,20 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
19
|
+
version: '0.5'
|
20
20
|
- - "~>"
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: 0.
|
22
|
+
version: 0.5.0
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
26
26
|
requirements:
|
27
27
|
- - "~>"
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: '0.
|
29
|
+
version: '0.5'
|
30
30
|
- - "~>"
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: 0.
|
32
|
+
version: 0.5.0
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: emojidex-vectors
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -50,14 +50,20 @@ dependencies:
|
|
50
50
|
requirements:
|
51
51
|
- - "~>"
|
52
52
|
- !ruby/object:Gem::Version
|
53
|
-
version: '0.
|
53
|
+
version: '0.4'
|
54
|
+
- - "~>"
|
55
|
+
- !ruby/object:Gem::Version
|
56
|
+
version: 0.4.0
|
54
57
|
type: :runtime
|
55
58
|
prerelease: false
|
56
59
|
version_requirements: !ruby/object:Gem::Requirement
|
57
60
|
requirements:
|
58
61
|
- - "~>"
|
59
62
|
- !ruby/object:Gem::Version
|
60
|
-
version: '0.
|
63
|
+
version: '0.4'
|
64
|
+
- - "~>"
|
65
|
+
- !ruby/object:Gem::Version
|
66
|
+
version: 0.4.0
|
61
67
|
description: Generates PNG rasters from emojidex vectors in a specified size and manually
|
62
68
|
sorts them into categorized folders.
|
63
69
|
email: info@emojidex.com
|
@@ -66,16 +72,9 @@ executables:
|
|
66
72
|
extensions: []
|
67
73
|
extra_rdoc_files: []
|
68
74
|
files:
|
69
|
-
- ".gitignore"
|
70
|
-
- ".rspec"
|
71
|
-
- ".rubocop.yml"
|
72
|
-
- Gemfile
|
73
|
-
- Guardfile
|
74
|
-
- README.md
|
75
75
|
- bin/emojidex-static-collector
|
76
76
|
- emojidex-static-collector.gemspec
|
77
77
|
- lib/emojidex_static_collector.rb
|
78
|
-
- spec/emojidex_static_collector_spec.rb
|
79
78
|
homepage: http://developer.emojidex.com
|
80
79
|
licenses:
|
81
80
|
- emojiOL
|
@@ -96,7 +95,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
96
95
|
version: '0'
|
97
96
|
requirements: []
|
98
97
|
rubyforge_project:
|
99
|
-
rubygems_version: 2.
|
98
|
+
rubygems_version: 2.6.11
|
100
99
|
signing_key:
|
101
100
|
specification_version: 4
|
102
101
|
summary: Create static collections from emojidex assets
|
data/.gitignore
DELETED
@@ -1,39 +0,0 @@
|
|
1
|
-
*.gem
|
2
|
-
*.rbc
|
3
|
-
/.config
|
4
|
-
/coverage/
|
5
|
-
/InstalledFiles
|
6
|
-
/pkg/
|
7
|
-
/spec/reports/
|
8
|
-
/test/tmp/
|
9
|
-
/test/version_tmp/
|
10
|
-
/tmp/
|
11
|
-
|
12
|
-
## Specific to RubyMotion:
|
13
|
-
.dat*
|
14
|
-
.repl_history
|
15
|
-
build/
|
16
|
-
|
17
|
-
## Documentation cache and generated files:
|
18
|
-
/.yardoc/
|
19
|
-
/_yardoc/
|
20
|
-
/doc/
|
21
|
-
/rdoc/
|
22
|
-
|
23
|
-
## Environment normalisation:
|
24
|
-
/.bundle/
|
25
|
-
/lib/bundler/man/
|
26
|
-
|
27
|
-
# for a library or gem, you might want to ignore these files since the code is
|
28
|
-
# intended to run in multiple environments; otherwise, check them in:
|
29
|
-
Gemfile.lock
|
30
|
-
.ruby-version
|
31
|
-
.ruby-gemset
|
32
|
-
|
33
|
-
# unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
|
34
|
-
.rvmrc
|
35
|
-
|
36
|
-
*.swp
|
37
|
-
*.swo
|
38
|
-
|
39
|
-
.DS_Store
|
data/.rspec
DELETED
data/.rubocop.yml
DELETED
data/Gemfile
DELETED
data/Guardfile
DELETED
@@ -1,10 +0,0 @@
|
|
1
|
-
guard :rubocop do
|
2
|
-
watch(%r{.+\.rb$})
|
3
|
-
watch(%r{(?:.+/)?\.rubocop\.yml$}) { |m| File.dirname(m[0]) }
|
4
|
-
end
|
5
|
-
|
6
|
-
guard :rspec, cmd: 'bundle exec rspec' do
|
7
|
-
watch(%r{^spec/.+_spec\.rb$})
|
8
|
-
watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" }
|
9
|
-
watch('spec/spec_helper.rb') { "spec" }
|
10
|
-
end
|
data/README.md
DELETED
@@ -1,36 +0,0 @@
|
|
1
|
-
emojidex-static-collector
|
2
|
-
=========================
|
3
|
-
Generates static collections of emoji from emojidex
|
4
|
-
|
5
|
-
Installation
|
6
|
-
============
|
7
|
-
CLI/General use:
|
8
|
-
```
|
9
|
-
gem install emojidex-static-collector
|
10
|
-
```
|
11
|
-
|
12
|
-
Or add to your Gemfile if using as a library:
|
13
|
-
```
|
14
|
-
gem 'emojidex-static-collector'
|
15
|
-
```
|
16
|
-
|
17
|
-
Usage
|
18
|
-
=====
|
19
|
-
|
20
|
-
Standalone Tool
|
21
|
-
---------------
|
22
|
-
After installing the gem, type:
|
23
|
-
```
|
24
|
-
emojidex-static-collector -h
|
25
|
-
```
|
26
|
-
for usage instructions.
|
27
|
-
|
28
|
-
As a Library/Module
|
29
|
-
-------------------
|
30
|
-
Check the source - the actual module is extremely simple.
|
31
|
-
|
32
|
-
License
|
33
|
-
=======
|
34
|
-
emojidex and emojidex tools are licensed under the [emojidex Open License](https://www.emojidex.com/emojidex/emojidex_open_license).
|
35
|
-
|
36
|
-
©2013 the emojidex project / Genshin Souzou K.K. [Phantom Creation Inc.]
|
@@ -1,49 +0,0 @@
|
|
1
|
-
require 'emojidex_static_collector'
|
2
|
-
|
3
|
-
require 'fileutils'
|
4
|
-
|
5
|
-
describe EmojidexStaticCollector do
|
6
|
-
let(:collector) { EmojidexStaticCollector.new }
|
7
|
-
|
8
|
-
before(:all) do
|
9
|
-
@tmpdir = File.expand_path('../../tmp', __FILE__)
|
10
|
-
FileUtils.rm_rf @tmpdir if Dir.exist? @tmpdir
|
11
|
-
Dir.mkdir @tmpdir
|
12
|
-
end
|
13
|
-
|
14
|
-
describe '.generate' do
|
15
|
-
it 'generates a collection' do
|
16
|
-
collector.generate(@tmpdir + '/emojidex', 512)
|
17
|
-
expect(File.exist?(@tmpdir + '/emojidex/')).to be_truthy
|
18
|
-
end
|
19
|
-
|
20
|
-
it '日本語のコードを使ってコレクションを作成する' do
|
21
|
-
expect(collector.generate(@tmpdir + '/日本語', 8, false, :ja)).to be_truthy
|
22
|
-
expect(File.exist?(@tmpdir + '/日本語/抽象物/18禁.png')).to be_truthy
|
23
|
-
expect(File.exist?(@tmpdir + '/日本語/抽象物/糞.png')).to be_truthy
|
24
|
-
end
|
25
|
-
|
26
|
-
it 'generates a collection using moji character codes' do
|
27
|
-
expect(collector.generate(@tmpdir + '/moji', 8, true, :moji)).to be_truthy
|
28
|
-
end
|
29
|
-
|
30
|
-
it 'generates a collection of UTF only, extended emoji should not be included' do
|
31
|
-
collector.generate(@tmpdir + '/UTF_only', 8, true, :en)
|
32
|
-
expect(File.exist?(@tmpdir + '/UTF_only/Faces/angry.png')).to be_truthy
|
33
|
-
expect(File.exist?(@tmpdir + '/UTF_only/Abstract/shit.png')).to be_falsey
|
34
|
-
end
|
35
|
-
|
36
|
-
it 'generates a collection with unicode codes as file names' do
|
37
|
-
collector.generate(@tmpdir + '/unicode', 8, false, :unicode)
|
38
|
-
expect(File.exist?(@tmpdir + '/unicode/Symbols/00ae.png')).to be_truthy
|
39
|
-
expect(File.exist?(@tmpdir + '/unicode/Abstract/shit.png')).to be_truthy
|
40
|
-
end
|
41
|
-
|
42
|
-
it 'generates a collection, not sorted into categories, with unicode codes for file names' do
|
43
|
-
collector.generate(@tmpdir + '/uncategorized_charcodes', 300, false, :unicode, false)
|
44
|
-
expect(File.exist?(@tmpdir + '/uncategorized_charcodes/00ae.png')).to be_truthy
|
45
|
-
expect(File.exist?(@tmpdir + '/uncategorized_charcodes/0033-20e3.png')).to be_truthy
|
46
|
-
expect(File.exist?(@tmpdir + '/uncategorized_charcodes/shit.png')).to be_truthy
|
47
|
-
end
|
48
|
-
end
|
49
|
-
end
|