resper 0.2.1 → 0.2.2

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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/bin/resper +6 -3
  3. data/lib/resper.rb +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 115cb551addff325bb03c8593afeb7bd35d4f7e3
4
- data.tar.gz: e9cc76adb903f63d183d9190156d7303669e7b91
3
+ metadata.gz: a832026bd371f84c3e890569dd59ae6e25d90b8e
4
+ data.tar.gz: e8f9b1f3e5f6478c773df8f122c19f4843205cda
5
5
  SHA512:
6
- metadata.gz: '08a7016668069c8aec451d74118fb6392ef4fcaf5fec8d88b85882acb140bb9723e271cc9ec7eb7bdffcd790c3a228013b47032d502617b153d800decab41b23'
7
- data.tar.gz: 6db52f2f47d5ae3cfb86d1defeb978144e875e496ac091671842c4fec46e46235c5896607673e1a21f691f927d4c70b8cf6ef0543a64cea71b338f58356d3787
6
+ metadata.gz: 99d6ef2a2b096c56edef8f02db617b178c6cf13bb1f7f78ef731876bc4b3e81d93cb9df3d1a2ccf83fe48cb2acac6d9757d9d68d094a8ef0e53d2e553e523700
7
+ data.tar.gz: 6b403736b6f2ce5c402bfe3aa443fdde94f2d97911c33e0eddfe9d9a1da95368e7267dd006afeb6926f188aa0dea7d87a9efc9af10c3f0f13cae115e26b363c0
data/bin/resper CHANGED
@@ -10,7 +10,7 @@ options.base_size = 20
10
10
  options.input_file = 'example/icon.svg'
11
11
  options.output_android = 'res'
12
12
  options.output_ios = 'Images.xcassets'
13
- options.output_react = 'react'
13
+ options.output_react = 'img'
14
14
  options.format = 'svg'
15
15
  options.image_set_type = :all
16
16
 
@@ -34,12 +34,15 @@ OptionParser.new do |opts|
34
34
  opts.on("-tFORMAT", "--type=FORMAT", "Vector graphic resource format") do |opt|
35
35
  options.format = opt
36
36
  end
37
- opts.on("-aOUTPUT_ANDROID", "--output-android=OUTPUT_ANDROID", "Output Android folder, default: res") do |opt|
37
+ opts.on(nil, "--output-android=OUTPUT_ANDROID", "Output Android folder, default: res") do |opt|
38
38
  options.output_android = opt
39
39
  end
40
- opts.on("-aOUTPUT_IOS", "--output-ios=OUTPUT_IOS", "Output iOS folder, default: Images.xcassets") do |opt|
40
+ opts.on(nil, "--output-ios=OUTPUT_IOS", "Output iOS folder, default: Images.xcassets") do |opt|
41
41
  options.output_ios = opt
42
42
  end
43
+ opts.on(nil, "--output-react=OUTPUT_REACT", "Output React folder, default: img") do |opt|
44
+ options.output_react = opt
45
+ end
43
46
  opts.on("-d", "--android", "Only Android image resources will be created") do
44
47
  options.image_set_type = :android
45
48
  end
@@ -8,7 +8,7 @@ Created on 2017-03-17
8
8
 
9
9
  module Resper
10
10
 
11
- VERSION = '0.2.1'
11
+ VERSION = '0.2.2'
12
12
 
13
13
  require 'json'
14
14
  require 'string'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: resper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nikolay Moskvin