yamg 0.3.0 → 0.3.1

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: a7e652f48f91c43b778c3d54fe1130274ef3fba4
4
- data.tar.gz: 3f2e4c1b25a818a87e441b137ee7b5f9f4464df6
3
+ metadata.gz: 59cec81256da8c78e11ce4dd4946ced256ee6c27
4
+ data.tar.gz: 944c9d0189b94dcc96a89b2498ae2c1cb300e7ac
5
5
  SHA512:
6
- metadata.gz: 6308eb73468929091a1f21e56c344866fc06bb706e614df38bfb61ee07c54ea01650a1b65e35367b256221fe153ba41ce8e549184f0925e5242011b6808a519b
7
- data.tar.gz: e97d26fcc5e2e26a73c1485b0672ab9e625e07bf307b3d97b201af11e2deebfc602d76fb783218293cb5cc0dc03030bbfb8b87a08f381b9cd8aceac08a0382b3
6
+ metadata.gz: f4a2f9d61123b1be043e1c9db9a9126971263d81865394d3eca9e8fef947d2914eb9187eaf89889291ce189ff1f0f01be128cd0a05990467eca07a881fa0563d
7
+ data.tar.gz: 4e3b8e53bd1d03a3fdeab6e242f4f2575dcb16394ceacad4b6173af61f7ccafe0fb934dc180a6a5020570d041b6d46ae2ca532788435100a76b2eda7a355be94
data/README.md CHANGED
@@ -1,5 +1,6 @@
1
1
  # YAMG
2
2
 
3
+ ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
3
4
 
4
5
  _____ _____ _____ ______ _______ _____
5
6
  |\ \ / /| ___|\ \ | \/ \ ___|\ \
@@ -13,6 +14,8 @@
13
14
  |_____|/ |____| |____| \|____| |____|/ \|___| | /
14
15
  \|____|/
15
16
 
17
+ ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛
18
+
16
19
 
17
20
  [![Gem Version](https://badge.fury.io/rb/yamg.png)](http://badge.fury.io/rb/yamg)
18
21
  [![Dependency Status](https://gemnasium.com/nofxx/yamg.svg)](https://gemnasium.com/nofxx/yamg)
@@ -78,8 +81,11 @@ The SVG will be rasterized in the correct size needed.
78
81
 
79
82
  ### Splash
80
83
 
81
- The main splash image must be named 'center'.
82
- Gravity!
84
+ Up to 9 images may be placed in a splash.
85
+ Note: The center splash image must be named 'center'.
86
+
87
+ #### Gravity
88
+
83
89
  Just save you files with the names: 'north', 'northeast', 'south'...
84
90
  Gravity will put em in the correct place, with a lil padding.
85
91
 
@@ -92,20 +98,30 @@ There's also media generator for app stores.
92
98
 
93
99
  ## Screenshots (phantomjs)
94
100
 
95
- Soon.
101
+ Custom screenshots:
102
+
103
+
104
+ name:
105
+ url: 'github.com'
106
+ size: [1280, 720] # W x H
107
+ scroll: 100 # Optional
108
+
109
+
96
110
 
97
111
  ### Support
98
112
 
99
- * Web
100
- * Rails
101
113
  * iOS Project
114
+ * OSX Project
102
115
  * Android Project
116
+ * Windows Project
103
117
  * Cordova (platforms/*)
104
118
  * Phonegap (www/res)
105
119
  * App Store
106
120
  * Play Store
107
121
  * Facebook
108
122
  * Twitter
123
+ * Rails
124
+ * Web
109
125
  * Write your own (really easy, fork and change yml)
110
126
 
111
127
  ## Notes
data/lib/yamg/cli.rb CHANGED
@@ -78,6 +78,7 @@ module YAMG
78
78
  end
79
79
 
80
80
  def screenshot
81
+ return unless YAMG.config['screenshots'].respond_to?(:each)
81
82
  YAMG.config['screenshots'].each do |ss|
82
83
  Thread.new do
83
84
  Screenshot.new(ss).work('./export')
data/lib/yamg/splash.rb CHANGED
@@ -11,6 +11,7 @@ module YAMG
11
11
  @size = size
12
12
  @bg = background
13
13
  @assets = YAMG.load_images(src)
14
+ YAMG.puts_and_exit("No sources in '#{src}'") if assets.empty?
14
15
  %w(bg background wallpaper).each do |i|
15
16
  @wallpaper = assets.delete("#{i}.png")
16
17
  end
@@ -18,7 +19,6 @@ module YAMG
18
19
  @center = File.join(src, center)
19
20
  end
20
21
  @center ||= File.join(File.dirname(__FILE__), 'assets', 'dot.png')
21
- YAMG.puts_and_exit("No sources in '#{src}'") if assets.empty?
22
22
  @img = MiniMagick::Image.open(@center)
23
23
  end
24
24
 
@@ -15,6 +15,7 @@ raster:
15
15
  media:
16
16
  'media-preview.png': [512]
17
17
 
18
+
18
19
  android:
19
20
  icon:
20
21
  'res/drawable/icon.png': 96
@@ -92,6 +93,17 @@ ios:
92
93
  'Resources/splash/Default-736h.png': [1242, 2208]
93
94
  'Resources/splash/Default-Landscape-736h.png' : [2208, 1242]
94
95
 
96
+
97
+ osx:
98
+ icons:
99
+ 'Images.xcassets/AppIcon.appiconset/icon-16x16.png': 16
100
+ 'Images.xcassets/AppIcon.appiconset/icon-32x32.png': 32
101
+ 'Images.xcassets/AppIcon.appiconset/icon-64x64.png': 64
102
+ 'Images.xcassets/AppIcon.appiconset/icon-128x128.png': 128
103
+ 'Images.xcassets/AppIcon.appiconset/icon-256x256.png': 256
104
+ 'Images.xcassets/AppIcon.appiconset/icon-512x512.png': 512
105
+
106
+
95
107
  windows:
96
108
  icons:
97
109
  'StoreLogo.scale-240.png': 120
@@ -195,6 +207,7 @@ apple:
195
207
  'ios/iphone6-1334x750-land': [1334, 750, 2]
196
208
  'ios/iphone6-750x1334-port': [750, 1334, 2]
197
209
 
210
+
198
211
  google:
199
212
  icon:
200
213
  'google/icon.png': 512
data/lib/yamg/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  # :nodoc:
2
2
  module YAMG
3
- VERSION = '0.3.0'
3
+ VERSION = '0.3.1'
4
4
  end
data/lib/yamg/yamg.yml CHANGED
@@ -31,9 +31,9 @@ compile:
31
31
  #
32
32
  web: true
33
33
  # Ruby on rails
34
- rails:
35
- path: '/path/to/rails/proj'
36
- icon: './alpha' # Using another icon src folder
34
+ # rails:
35
+ # path: '/path/to/rails/proj'
36
+ # icon: './alpha' # Using another icon src folder
37
37
 
38
38
  # Mobile
39
39
  #
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.0
4
+ version: 0.3.1
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-28 00:00:00.000000000 Z
11
+ date: 2015-06-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mini_magick