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.
- checksums.yaml +4 -4
- data/bin/resper +6 -3
- data/lib/resper.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a832026bd371f84c3e890569dd59ae6e25d90b8e
|
|
4
|
+
data.tar.gz: e8f9b1f3e5f6478c773df8f122c19f4843205cda
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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 = '
|
|
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(
|
|
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(
|
|
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
|
data/lib/resper.rb
CHANGED