yamg 0.3.3 → 0.3.5

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: bf2b7296e3006b737d2a5f5780b534c13eab885a
4
- data.tar.gz: 7b6ea2ab7b6a39df88a2785fa49fc8351bea4fc3
3
+ metadata.gz: d52731a3845be89ed8ce3d9f866326bf19e030ea
4
+ data.tar.gz: 9d0b220dd8c70a34422b2ebd388a627166d03196
5
5
  SHA512:
6
- metadata.gz: dfdeb113584059c2eeaad5c1c3cb188d0522106d3d34277f69cb79c018c3d9277a6274d6581dab266b040bf26ebcb16592c208ac05e45a0770eb646a3675c87f
7
- data.tar.gz: 2c9032970481ce85899328fdfe3dd2e75084031ec07b8c274f13d93d1f84a09ab91b235f59785fedc9f933674be329269dbf4bef5cbd7da9ad171d111b05dd91
6
+ metadata.gz: 2d6c4dd24c5b9cb41453da4c2ec698f28ec3cdbbcea09c833277a91b0bb868c9b88631bd580389578a6dacc8f5c51c9e4651d0fb50b67f869c651c9425efc979
7
+ data.tar.gz: 785689c6a5a5a568adb9c6abc57e42b6f3694d5594af7a66deeb2b83e9907a9695c2b5a1f50b12e470404da452e4a701e4c788f43fc47241f9335a8b5db83bf9
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # YAMG
2
2
 
3
-
3
+
4
4
 
5
5
  _____ _____ _____ ______ _______ _____
6
6
  |\ \ / /| ___|\ \ | \/ \ ___|\ \
@@ -14,7 +14,7 @@
14
14
  |____|/ |____| |____| \|____| |____|/ \|___| | /
15
15
  |____|/
16
16
 
17
-
17
+
18
18
 
19
19
 
20
20
  [![Gem Version](https://badge.fury.io/rb/yamg.png)](http://badge.fury.io/rb/yamg)
@@ -23,6 +23,7 @@
23
23
 
24
24
  YAMG - Yet Another Media Generator
25
25
 
26
+ http://github.com/nofxx/yamg
26
27
 
27
28
 
28
29
  ## Install
@@ -135,6 +136,9 @@ Custom screenshots:
135
136
  scroll: 100 # Optional
136
137
 
137
138
 
139
+ Note: Waiting for a pull-request on screencap for hidpi.
140
+
141
+
138
142
  ## Config file
139
143
 
140
144
  Explain yamg.yml:
@@ -169,6 +173,10 @@ Custom location:
169
173
 
170
174
  ## Notes
171
175
 
176
+ RSVG
177
+ https://github.com/svg/svgo
178
+
179
+
172
180
  ### Media
173
181
 
174
182
  Media is a logo, icon + name.
@@ -179,3 +187,8 @@ Media is a logo, icon + name.
179
187
  You may generate assets for both, but the difference is:
180
188
  Phonegap (`www/res`) assets are used only on Phonegap Build.
181
189
  To build locally use Cordova assets (`platforms/<platform>/*`)
190
+
191
+
192
+ ## Issues
193
+
194
+ http://github.com/nofxx/yamg/issues
@@ -1,6 +1,3 @@
1
- require 'screencap'
2
- # require 'smartshot'
3
-
4
1
  module YAMG
5
2
  #
6
3
  # Screenshot from multiple providers
@@ -16,7 +13,7 @@ module YAMG
16
13
  @url = "http://#{uri}"
17
14
  @size = opts['size']
18
15
  @size = @size.split(/\s?,\s?/) if @size.respond_to?(:split)
19
- # @fetcher = Smartshot::Screenshot.new(window_size: @size)
16
+ @dpi = opts['dpi']
20
17
  @fetcher = Screencap::Fetcher.new(@url)
21
18
  end
22
19
 
@@ -27,10 +24,8 @@ module YAMG
27
24
  # Take the screenshot
28
25
  # Do we need pixel depth??
29
26
  def work(path)
30
- # visit(url)
31
- # page.save_screenshot("#{path}/#{@name}.png")
32
- # @fetcher.take_screenshot!(url: url, output: "#{path}/#{@name}.png")
33
- @fetcher.fetch(output: "#{path}/#{@name}.png", width: @size[0], height: @size[1])
27
+ out = "#{path}/#{@name}.png"
28
+ @fetcher.fetch(output: out, width: @size[0], height: @size[1], dpi: @dpi)
34
29
  end
35
30
  end
36
31
  end
@@ -108,19 +108,28 @@ osx:
108
108
 
109
109
  windows:
110
110
  icons:
111
- 'StoreLogo.scale-240.png': 120
112
111
  'StoreLogo.scale-100.png': 50
113
- 'Square150x150Logo.scale-100.png': 150
114
- 'Square150x150Logo.scale-240.png': 360
112
+ 'StoreLogo.scale-140.png': 70
113
+ 'StoreLogo.scale-180.png': 90
114
+ 'StoreLogo.scale-240.png': 120
115
+ 'Square30x30Logo.scale-80.png': 24
115
116
  'Square30x30Logo.scale-100.png': 30
116
- 'Square310x310Logo.scale-100.png': 310
117
+ 'Square30x30Logo.scale-140.png': 42
118
+ 'Square30x30Logo.scale-180.png': 54
117
119
  'Square44x44Logo.scale-100.png': 44
118
120
  'Square44x44Logo.scale-240.png': 106
119
121
  'Square70x70Logo.scale-100.png': 70
120
122
  'Square71x71Logo.scale-100.png': 71
121
123
  'Square71x71Logo.scale-240.png': 170
124
+ 'Square150x150Logo.scale-100.png': 150
125
+ 'Square150x150Logo.scale-140.png': 210
126
+ 'Square150x150Logo.scale-180.png': 270
127
+ 'Square150x150Logo.scale-240.png': 360
128
+ 'Square310x310Logo.scale-100.png': 310
122
129
  splash:
123
130
  'SplashScreen.scale-100.png': [620, 300]
131
+ 'SplashScreen.scale-140.png': [868, 420]
132
+ 'SplashScreen.scale-180.png': [1116, 540]
124
133
  'SplashScreenPhone.scale-240.png': [1152, 1920]
125
134
  'Wide310x150Logo.scale-100.png': [310, 150]
126
135
  'Wide310x150Logo.scale-240.png': [744, 360]
data/lib/yamg/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  # :nodoc:
2
2
  module YAMG
3
- VERSION = '0.3.3'
3
+ VERSION = '0.3.5'
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.3
4
+ version: 0.3.5
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-06-30 00:00:00.000000000 Z
11
+ date: 2015-07-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mini_magick