emojidex-converter 0.0.3 → 0.0.4
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/Gemfile +0 -1
- data/Guardfile +31 -5
- data/emojidex-converter.gemspec +2 -2
- data/lib/emojidex/converter.rb +2 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fdd1561ec602325a3e58347a3721729e264823d8
|
4
|
+
data.tar.gz: 6b72363d85724256bb3856feb70c9a00412f2e03
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ec3644af4c2df7b725bb933c80b49fa95f1a5241b43851c6f89fbc7c63fd82d1551f1e8cd5a357706590f7bbe659e0f52421355ecebef4849dab78a452324ae3
|
7
|
+
data.tar.gz: 1e0e0648fcc014ac6a7c587e2ed9e78d41603fbae013c2db9c94bf23664caf48a00abb2b1daeaa29d8417fb5879a367465ffa8415f903e37453468c651b404ae
|
data/Gemfile
CHANGED
data/Guardfile
CHANGED
@@ -1,12 +1,38 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
watch(%r{(?:.+/)?\.rubocop\.yml$}) { |m| File.dirname(m[0]) }
|
4
|
-
end
|
1
|
+
# A sample Guardfile
|
2
|
+
# More info at https://github.com/guard/guard#readme
|
5
3
|
|
6
|
-
|
4
|
+
# Note: The cmd option is now required due to the increasing number of ways
|
5
|
+
# rspec may be run, below are examples of the most common uses.
|
6
|
+
# * bundler: 'bundle exec rspec'
|
7
|
+
# * bundler binstubs: 'bin/rspec'
|
8
|
+
# * spring: 'bin/rsspec' (This will use spring if running and you have
|
9
|
+
# installed the spring binstubs per the docs)
|
10
|
+
# * zeus: 'zeus rspec' (requires the server to be started separetly)
|
11
|
+
# * 'just' rspec: 'rspec'
|
12
|
+
guard :rspec, cmd: 'bundle exec rspec' do
|
7
13
|
watch(%r{^spec/.+_spec\.rb$})
|
8
14
|
watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" }
|
9
15
|
watch('spec/spec_helper.rb') { "spec" }
|
10
16
|
|
17
|
+
# Rails example
|
18
|
+
watch(%r{^app/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
|
19
|
+
watch(%r{^app/(.*)(\.erb|\.haml|\.slim)$}) { |m| "spec/#{m[1]}#{m[2]}_spec.rb" }
|
20
|
+
watch(%r{^app/controllers/(.+)_(controller)\.rb$}) { |m| ["spec/routing/#{m[1]}_routing_spec.rb", "spec/#{m[2]}s/#{m[1]}_#{m[2]}_spec.rb", "spec/acceptance/#{m[1]}_spec.rb"] }
|
11
21
|
watch(%r{^spec/support/(.+)\.rb$}) { "spec" }
|
22
|
+
watch('config/routes.rb') { "spec/routing" }
|
23
|
+
watch('app/controllers/application_controller.rb') { "spec/controllers" }
|
24
|
+
watch('spec/rails_helper.rb') { "spec" }
|
25
|
+
|
26
|
+
# Capybara features specs
|
27
|
+
watch(%r{^app/views/(.+)/.*\.(erb|haml|slim)$}) { |m| "spec/features/#{m[1]}_spec.rb" }
|
28
|
+
|
29
|
+
# Turnip features and steps
|
30
|
+
watch(%r{^spec/acceptance/(.+)\.feature$})
|
31
|
+
watch(%r{^spec/acceptance/steps/(.+)_steps\.rb$}) { |m| Dir[File.join("**/#{m[1]}.feature")][0] || 'spec/acceptance' }
|
32
|
+
end
|
33
|
+
|
34
|
+
|
35
|
+
guard :rubocop do
|
36
|
+
watch(%r{.+\.rb$})
|
37
|
+
watch(%r{(?:.+/)?\.rubocop\.yml$}) { |m| File.dirname(m[0]) }
|
12
38
|
end
|
data/emojidex-converter.gemspec
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'emojidex-converter'
|
3
|
-
s.version = '0.0.
|
4
|
-
s.license = 'Equivilent to emojidex
|
3
|
+
s.version = '0.0.4'
|
4
|
+
s.license = 'Equivilent to emojidex'
|
5
5
|
s.summary = 'Image conversion modules for emojidex'
|
6
6
|
s.description = 'Adds the convert method to Emojidex::Collection and Emojidex::Emoji, which\
|
7
7
|
allows you to convert an emoji collection or a single emoji to the specified\
|
data/lib/emojidex/converter.rb
CHANGED
@@ -13,6 +13,7 @@ module Emojidex
|
|
13
13
|
def initialize(override = {})
|
14
14
|
@sizes = override[:sizes] || Converter.default_sizes
|
15
15
|
@destination = File.expand_path(override[:destination] || ENV['EMOJI_CACHE'] || './')
|
16
|
+
@noisy = override[:noisy] || :false
|
16
17
|
end
|
17
18
|
|
18
19
|
def rasterize(emoji, source_dir)
|
@@ -27,6 +28,7 @@ module Emojidex
|
|
27
28
|
phantom_svg.width = phantom_svg.height = val.to_i
|
28
29
|
|
29
30
|
# Output png.
|
31
|
+
puts "Converting: #{out_dir}/#{moji.code}.png" if @noisy
|
30
32
|
phantom_svg.save_apng("#{out_dir}/#{moji.code}.png")
|
31
33
|
end
|
32
34
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: emojidex-converter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rei Kagetsuki
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-
|
12
|
+
date: 2014-10-03 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rsvg2
|
@@ -182,7 +182,7 @@ files:
|
|
182
182
|
- spec/support/collection/kiss/animation.json~
|
183
183
|
homepage: http://dev.emojidex.com
|
184
184
|
licenses:
|
185
|
-
- Equivilent to emojidex
|
185
|
+
- Equivilent to emojidex
|
186
186
|
metadata: {}
|
187
187
|
post_install_message:
|
188
188
|
rdoc_options: []
|