frameit 2.2.2 → 2.3.0

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: 34abb8d5461e92d27d8ee707a1e6fae13c1d1b16
4
- data.tar.gz: f5a0190aaf203cc07ec3244a9c3bd8636d3244bd
3
+ metadata.gz: b3051f6bc614da778f504a828173c4dbf3704f99
4
+ data.tar.gz: 9ce4a4ab91e660e59d1ec28df45f888923ef68db
5
5
  SHA512:
6
- metadata.gz: cbab4d88a66db2754bd73f34458e8d3eac2a47e29a38430775025cc7399c38e5391933c605a226437235c94cf5a53cb8655dd2297edd6cd76178acd97e285093
7
- data.tar.gz: 24a29d8ef715756269fb3265e013ec76e35b343c60c0225f890dcd81ff59acfe4849c958bbef2df5e91a5fdd749e988ed52673c705272120a3cdcc724942d2d4
6
+ metadata.gz: e1583fcdc2ffbfd3d359d8b710325fd35f12cfb3be6132958890b88257d13433f71a24551111558bde84dd6a682ea6f6a6af71ea60c3b96c1f14a281399b3b6f
7
+ data.tar.gz: 0618a55cf147c1aef93b1dadc5ab7dcd329d25f3ca87b510879ae4fce9e00345bfccc5dee47819f0772d3ff1663ac9eac313a2ed04c677fea741b3eb323ad6aa
data/README.md CHANGED
@@ -1,18 +1,18 @@
1
1
  <h3 align="center">
2
- <a href="https://github.com/KrauseFx/fastlane">
2
+ <a href="https://github.com/fastlane/fastlane">
3
3
  <img src="assets/fastlane.png" width="150" />
4
4
  <br />
5
5
  fastlane
6
6
  </a>
7
7
  </h3>
8
8
  <p align="center">
9
- <a href="https://github.com/KrauseFx/deliver">deliver</a> &bull;
10
- <a href="https://github.com/KrauseFx/snapshot">snapshot</a> &bull;
9
+ <a href="https://github.com/fastlane/deliver">deliver</a> &bull;
10
+ <a href="https://github.com/fastlane/snapshot">snapshot</a> &bull;
11
11
  <b>frameit</b> &bull;
12
- <a href="https://github.com/KrauseFx/PEM">PEM</a> &bull;
13
- <a href="https://github.com/KrauseFx/sigh">sigh</a> &bull;
14
- <a href="https://github.com/KrauseFx/produce">produce</a> &bull;
15
- <a href="https://github.com/KrauseFx/cert">cert</a> &bull;
12
+ <a href="https://github.com/fastlane/PEM">PEM</a> &bull;
13
+ <a href="https://github.com/fastlane/sigh">sigh</a> &bull;
14
+ <a href="https://github.com/fastlane/produce">produce</a> &bull;
15
+ <a href="https://github.com/fastlane/cert">cert</a> &bull;
16
16
  <a href="https://github.com/fastlane/spaceship">spaceship</a> &bull;
17
17
  <a href="https://github.com/fastlane/pilot">pilot</a> &bull;
18
18
  <a href="https://github.com/fastlane/boarding">boarding</a> &bull;
@@ -29,7 +29,7 @@ frameit
29
29
  ============
30
30
 
31
31
  [![Twitter: @KauseFx](https://img.shields.io/badge/contact-@KrauseFx-blue.svg?style=flat)](https://twitter.com/KrauseFx)
32
- [![License](http://img.shields.io/badge/license-MIT-green.svg?style=flat)](https://github.com/KrauseFx/frameit/blob/master/LICENSE)
32
+ [![License](https://img.shields.io/badge/license-MIT-green.svg?style=flat)](https://github.com/KrauseFx/frameit/blob/master/LICENSE)
33
33
  [![Gem](https://img.shields.io/gem/v/frameit.svg?style=flat)](http://rubygems.org/gems/frameit)
34
34
  [![Build Status](https://img.shields.io/travis/fastlane/frameit/master.svg?style=flat)](https://travis-ci.org/fastlane/frameit)
35
35
 
@@ -186,7 +186,7 @@ The `keyword.strings` and `title.strings` are standard `.strings` file you alrea
186
186
 
187
187
  #### Uploading screenshots to iTC
188
188
 
189
- Use [deliver](https://github.com/KrauseFx/deliver) to upload all screenshots to iTunes Connect completely automatically :rocket:
189
+ Use [deliver](https://github.com/fastlane/deliver) to upload all screenshots to iTunes Connect completely automatically :rocket:
190
190
 
191
191
  ### Mac
192
192
 
@@ -227,12 +227,12 @@ Check out the [MindNode example project](https://github.com/fastlane/examples/tr
227
227
  ## [`fastlane`](https://fastlane.tools) Toolchain
228
228
 
229
229
  - [`fastlane`](https://fastlane.tools): Connect all deployment tools into one streamlined workflow
230
- - [`deliver`](https://github.com/KrauseFx/deliver): Upload screenshots, metadata and your app to the App Store
231
- - [`snapshot`](https://github.com/KrauseFx/snapshot): Automate taking localized screenshots of your iOS app on every device
232
- - [`PEM`](https://github.com/KrauseFx/pem): Automatically generate and renew your push notification profiles
233
- - [`sigh`](https://github.com/KrauseFx/sigh): Because you would rather spend your time building stuff than fighting provisioning
234
- - [`produce`](https://github.com/KrauseFx/produce): Create new iOS apps on iTunes Connect and Dev Portal using the command line
235
- - [`cert`](https://github.com/KrauseFx/cert): Automatically create and maintain iOS code signing certificates
230
+ - [`deliver`](https://github.com/fastlane/deliver): Upload screenshots, metadata and your app to the App Store
231
+ - [`snapshot`](https://github.com/fastlane/snapshot): Automate taking localized screenshots of your iOS app on every device
232
+ - [`PEM`](https://github.com/fastlane/PEM): Automatically generate and renew your push notification profiles
233
+ - [`sigh`](https://github.com/fastlane/sigh): Because you would rather spend your time building stuff than fighting provisioning
234
+ - [`produce`](https://github.com/fastlane/produce): Create new iOS apps on iTunes Connect and Dev Portal using the command line
235
+ - [`cert`](https://github.com/fastlane/cert): Automatically create and maintain iOS code signing certificates
236
236
  - [`spaceship`](https://github.com/fastlane/spaceship): Ruby library to access the Apple Dev Center and iTunes Connect
237
237
  - [`pilot`](https://github.com/fastlane/pilot): The best way to manage your TestFlight testers and builds from your terminal
238
238
  - [`boarding`](https://github.com/fastlane/boarding): The easiest way to invite your TestFlight beta testers
@@ -242,7 +242,7 @@ Check out the [MindNode example project](https://github.com/fastlane/examples/tr
242
242
  ##### [Like this tool? Be the first to know about updates and new fastlane tools](https://tinyletter.com/krausefx)
243
243
 
244
244
  ## Generate localized screenshots
245
- Check out [`snapshot`](https://github.com/KrauseFx/snapshot) to automatically generate screenshots using ```UI Automation```.
245
+ Check out [`snapshot`](https://github.com/fastlane/snapshot) to automatically generate screenshots using ```UI Automation```.
246
246
 
247
247
  ## Alternative location to store device_frames
248
248
 
@@ -18,7 +18,7 @@ module Frameit
18
18
  system("open '#{DOWNLOAD_URL}'")
19
19
  puts "----------------------------------------------------".green
20
20
  puts "Download the zip files for the following devices".green
21
- puts "iPhone 6, iPhone 6 Plus, iPhone 5s and iPad mini 3".green
21
+ puts "iPhone 6s, iPhone 6s Plus, iPhone 5s, iPad mini 4 and iPad Pro".green
22
22
  puts "You only need to download the devices you want to use".green
23
23
  puts "Press Enter when you downloaded the zip files".green
24
24
  puts "----------------------------------------------------".green
@@ -2,6 +2,7 @@ module Frameit
2
2
  class Offsets
3
3
  # Returns the image offset needed for a certain device type for a given orientation
4
4
  # uses deliver to detect the screen size
5
+ # rubocop:disable Metrics/MethodLength
5
6
  def self.image_offset(screenshot)
6
7
  size = Deliver::AppScreenshot::ScreenSize
7
8
  case screenshot.orientation_name
@@ -32,6 +33,11 @@ module Frameit
32
33
  'offset' => '+47+135',
33
34
  'width' => 737
34
35
  }
36
+ when size::IOS_IPAD_PRO
37
+ return {
38
+ 'offset' => '+48+90',
39
+ 'width' => 805
40
+ }
35
41
  end
36
42
  when Orientation::LANDSCAPE
37
43
  case screenshot.screen_size
@@ -60,8 +66,14 @@ module Frameit
60
66
  'offset' => '+135+47',
61
67
  'width' => 983
62
68
  }
69
+ when size::IOS_IPAD_PRO
70
+ return {
71
+ 'offset' => '+88+48',
72
+ 'width' => 1075
73
+ }
63
74
  end
64
75
  end
65
76
  end
77
+ # rubocop:enable Metrics/MethodLength
66
78
  end
67
79
  end
@@ -30,9 +30,13 @@ module Frameit
30
30
  when sizes::IOS_35
31
31
  return 'iPhone_4'
32
32
  when sizes::IOS_IPAD
33
- return 'iPad_mini'
33
+ return 'iPad-mini'
34
+ when sizes::IOS_IPAD_PRO
35
+ return 'iPad-Pro'
34
36
  when sizes::MAC
35
37
  return 'Mac'
38
+ else
39
+ Helper.log.error "Unknown device type for size #{@screen_size} for path '#{path}'"
36
40
  end
37
41
  end
38
42
 
@@ -9,21 +9,30 @@ module Frameit
9
9
  screenshot.orientation_name,
10
10
  screenshot.color
11
11
  ]
12
- parts << "sRGB" if screenshot.device_name == 'iPad_mini'
12
+ joiner = "_"
13
+
14
+ if screenshot.device_name.include?('iPad')
15
+ parts = [
16
+ screenshot.device_name,
17
+ (screenshot.color == 'SpaceGray' ? "Space-Gray" : "Silver"),
18
+ (screenshot.orientation_name == "Horz" ? "horizontal" : "vertical")
19
+ ]
20
+ joiner = "-"
21
+ end
13
22
 
14
23
  templates_path = [ENV['HOME'], FrameConverter::FRAME_PATH].join('/')
15
- templates = Dir["../**/#{parts.join('_')}*.{png,jpg}"] # local directory
16
- templates += Dir["#{templates_path}/**/#{parts.join('_')}*.{png,jpg}"] # ~/.frameit folder
24
+ templates = Dir["../**/#{parts.join(joiner)}*.{png,jpg}"] # local directory
25
+ templates += Dir["#{templates_path}/**/#{parts.join(joiner)}*.{png,jpg}"] # ~/.frameit folder
17
26
 
18
27
  if templates.count == 0
19
28
  if screenshot.screen_size == Deliver::AppScreenshot::ScreenSize::IOS_35
20
29
  Helper.log.warn "Unfortunately 3.5\" device frames were discontinued. Skipping screen '#{screenshot.path}'".yellow
21
- Helper.log.debug "Looked for: '#{parts.join('_')}.png'".red
30
+ Helper.log.debug "Looked for: '#{parts.join(joiner)}.png'".red
22
31
  else
23
32
  Helper.log.error "Could not find a valid template for screenshot '#{screenshot.path}'".red
24
33
  Helper.log.error "You can download new templates from '#{FrameConverter::DOWNLOAD_URL}'"
25
34
  Helper.log.error "and store them in '#{templates_path}'"
26
- Helper.log.error "Missing file: '#{parts.join('_')}.png'".red
35
+ Helper.log.error "Missing file: '#{parts.join(joiner)}.png'".red
27
36
  end
28
37
  return nil
29
38
  else
@@ -1,3 +1,3 @@
1
1
  module Frameit
2
- VERSION = "2.2.2"
2
+ VERSION = "2.3.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: frameit
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.2
4
+ version: 2.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Felix Krause
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-10-27 00:00:00.000000000 Z
11
+ date: 2015-11-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fastlane_core
@@ -243,7 +243,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
243
243
  version: '0'
244
244
  requirements: []
245
245
  rubyforge_project:
246
- rubygems_version: 2.4.8
246
+ rubygems_version: 2.5.0
247
247
  signing_key:
248
248
  specification_version: 4
249
249
  summary: Quickly put your screenshots into the right device frames