emojidex-converter 0.0.3 → 0.0.4

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
  SHA1:
3
- metadata.gz: 9d74c5983debb1c2ec1ac751fb336233fbc398db
4
- data.tar.gz: c832f9eec57d7e511a792eba9ae86cbbd16134ad
3
+ metadata.gz: fdd1561ec602325a3e58347a3721729e264823d8
4
+ data.tar.gz: 6b72363d85724256bb3856feb70c9a00412f2e03
5
5
  SHA512:
6
- metadata.gz: 99ed3d1fcf7b1274249f6efe66579282248862694fb56e779a6eb4a2c4d69c1920fb26d12925b7b14c28e26f6e6471c7597c4079852de70c0ae59c0b1982e02e
7
- data.tar.gz: 1ffab86496686f41d47c9bd0f4713923d53ce4aa922c71dcd12ea79c02f6665240bdc6508cb48ae87bde332c5bb78d13a382f53ed23247a3048fb87f2ee9bd9a
6
+ metadata.gz: ec3644af4c2df7b725bb933c80b49fa95f1a5241b43851c6f89fbc7c63fd82d1551f1e8cd5a357706590f7bbe659e0f52421355ecebef4849dab78a452324ae3
7
+ data.tar.gz: 1e0e0648fcc014ac6a7c587e2ed9e78d41603fbae013c2db9c94bf23664caf48a00abb2b1daeaa29d8417fb5879a367465ffa8415f903e37453468c651b404ae
data/Gemfile CHANGED
@@ -9,7 +9,6 @@ group :development do
9
9
  gem 'guard-rspec'
10
10
  gem 'rubocop'
11
11
  gem 'guard-rubocop'
12
- #gem 'emojidex', github: 'emojidex/emojidex'
13
12
  end
14
13
 
15
14
  group :test do
data/Guardfile CHANGED
@@ -1,12 +1,38 @@
1
- guard :rubocop do
2
- watch(%r{.+\.rb$})
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
- guard :rspec do
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
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'emojidex-converter'
3
- s.version = '0.0.3'
4
- s.license = 'Equivilent to emojidex-toolkit'
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\
@@ -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.3
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-07-16 00:00:00.000000000 Z
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-toolkit
185
+ - Equivilent to emojidex
186
186
  metadata: {}
187
187
  post_install_message:
188
188
  rdoc_options: []