yamg 0.3.7 → 0.3.8

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: dfa3701b61de93445e0509cf4ef8db5d1af6cc4f
4
- data.tar.gz: b43b348d274f2178c4a4092c0e572867be344239
3
+ metadata.gz: 864543f8189e6c7e461436d69138a2d9e9758e8f
4
+ data.tar.gz: 1f3ffd77761612a7b8e71e021af86422711e9884
5
5
  SHA512:
6
- metadata.gz: 295afc335dc5fd7b6863264343008e0a09440a042e627ed08887bab80eec24e5e104c71ec2264ba60cd617ff00f54be590a927ad2954f7f0eccc1e45a43b3536
7
- data.tar.gz: 64b361d63ed1e27970a9e82db5258e7230529b7306a0beb82c0b5945255f815471f784996f3e1f308ae7eabc14a71c6005ec80694db2cba183573c51f84c134b
6
+ metadata.gz: 2409b550c86a27aaf5283f96d539c74b96c2a078b866c11da2b97d043743fa22e66221404a7297797a45a52e335bb573a3d7ccfcc2b298ae3808169cc3e17b37
7
+ data.tar.gz: 1571dda9d3420af019e8d962c580f8e19bf7854d5458078e622108c4cd2f445b42465d802b220788a6d871f5f449a0d505a4c5ea5cbe8acd2e9db80953bc5e58
data/README.md CHANGED
@@ -82,6 +82,7 @@ art
82
82
  From the `.yamg.yml` you may configure differents source paths.
83
83
  Also configure every export location you need (check #Support)
84
84
 
85
+
85
86
  ## Icons
86
87
 
87
88
  Your main icon(s) may be SVG or PNG. Or both:
@@ -149,23 +150,36 @@ screenshots:
149
150
 
150
151
  Note: Waiting for a pull-request on screencap for hidpi.
151
152
 
152
-
153
153
  ## Config file
154
154
 
155
- Explain yamg.yml:
156
-
157
- ```
155
+ ```yaml
158
156
  icon:
159
- path:
160
- round:
157
+ path: 'folder/'
158
+ round: true # defaults to false
159
+
160
+ splash:
161
+ path: 'folder/'
162
+ background: #rgb
163
+
164
+ screenshot:
165
+ path: 'url://'
161
166
  ```
162
167
 
168
+
163
169
  Custom location:
164
170
 
165
171
  some-project:
166
172
  icon: [32, 64, 128]
167
173
 
168
174
 
175
+ Note: For Apple Store make sure to add round false if your default is true:
176
+
177
+ ```
178
+ compile:
179
+ apple:
180
+ rounded: false
181
+ ```
182
+
169
183
  ## Support
170
184
 
171
185
  * iOS Project
@@ -199,6 +213,11 @@ You may generate assets for both, but the difference is:
199
213
  Phonegap (`www/res`) assets are used only on Phonegap Build.
200
214
  To build locally use Cordova assets (`platforms/<platform>/*`)
201
215
 
216
+ ### Cordova Rake Tasks
217
+
218
+ If you're working with cordova, add some Ruby to it:
219
+
220
+ https://github.com/nofxx/cordova-rake
202
221
 
203
222
  ## Issues
204
223
 
data/lib/yamg/cli.rb CHANGED
@@ -97,8 +97,8 @@ module YAMG
97
97
  puts
98
98
  puts Rainbow(Thread.list.size.to_s + ' jobs to go').black
99
99
  Thread.list.reject { |t| t == Thread.current }.each(&:join)
100
- puts Rainbow('-' * 59).black
101
- puts Rainbow("Done compile #{Time.now - time}").red
100
+ puts Rainbow("\n" + '-' * 59).black
101
+ puts Rainbow("Done compile #{(Time.now - time).to_i}s").red
102
102
  end
103
103
  end
104
104
  end
@@ -27,6 +27,8 @@ module YAMG
27
27
  def work(path)
28
28
  out = "#{path}/#{@name}.png"
29
29
  @fetcher.fetch(output: out, width: @size[0], height: @size[1], dpi: @dpi)
30
+ rescue Screencap::Error
31
+ puts "Fail to capture screenshot #{@url}"
30
32
  end
31
33
  end
32
34
  end
@@ -25,17 +25,19 @@ android:
25
25
  'res/drawable-mdpi/icon.png': 48
26
26
  'res/drawable-hdpi/icon.png': 72
27
27
  'res/drawable-xhdpi/icon.png': 96
28
- 'res/drawable-xxhdpi/icon.png': 256
28
+ 'res/drawable-xxhdpi/icon.png': 144
29
29
  'bin/res/drawable/icon.png': 96
30
30
  'bin/res/drawable-ldpi/icon.png': 36
31
31
  'bin/res/drawable-mdpi/icon.png': 48
32
32
  'bin/res/drawable-hdpi/icon.png': 72
33
33
  'bin/res/drawable-xhdpi/icon.png': 96
34
+ 'bin/res/drawable-xxhdpi/icon.png': 144
34
35
  'ant-build/res/drawable/icon.png': 96
35
36
  'ant-build/res/drawable-ldpi/icon.png': 36
36
37
  'ant-build/res/drawable-mdpi/icon.png': 48
37
38
  'ant-build/res/drawable-hdpi/icon.png': 72
38
39
  'ant-build/res/drawable-xhdpi/icon.png': 96
40
+ 'ant-build/res/drawable-xxhdpi/icon.png': 144
39
41
  splash:
40
42
  'res/drawable-port-ldpi/screen.png': [200, 320]
41
43
  'res/drawable-port-mdpi/screen.png': [320, 480]
data/lib/yamg/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  # :nodoc:
2
2
  module YAMG
3
- VERSION = '0.3.7'
3
+ VERSION = '0.3.8'
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yamg
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.7
4
+ version: 0.3.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marcos Piccinini
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-07-02 00:00:00.000000000 Z
11
+ date: 2015-07-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mini_magick