yamg 0.3.0 → 0.3.1
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/README.md +21 -5
- data/lib/yamg/cli.rb +1 -0
- data/lib/yamg/splash.rb +1 -1
- data/lib/yamg/templates.yaml +13 -0
- data/lib/yamg/version.rb +1 -1
- data/lib/yamg/yamg.yml +3 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 59cec81256da8c78e11ce4dd4946ced256ee6c27
|
4
|
+
data.tar.gz: 944c9d0189b94dcc96a89b2498ae2c1cb300e7ac
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
[](http://badge.fury.io/rb/yamg)
|
18
21
|
[](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
|
-
|
82
|
-
|
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
|
-
|
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
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
|
|
data/lib/yamg/templates.yaml
CHANGED
@@ -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
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
|
-
|
36
|
-
|
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.
|
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-
|
11
|
+
date: 2015-06-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mini_magick
|