frameit 0.1.5 → 0.2.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: 8fc80e3035dd12fc1e55740bf956dd18c08dccd2
4
- data.tar.gz: 72aefc14f8388198c7077d96da8db069f7ca18cb
3
+ metadata.gz: cc9e7085866795c75a277882132c16161abe91fa
4
+ data.tar.gz: f49ead675da98a9f4b285a1944dc8e8e38dfdcf3
5
5
  SHA512:
6
- metadata.gz: 121999a052db689f826c365145302a48d0696536d25f3b2af9b8fdeeff35f28930b7830d212db46defc4428a3844fad0b1aa36fc466467d3815a2ae3541568ac
7
- data.tar.gz: 582ac68fa0d8c95703f276483f12ea4a417a55c836d930a2adc1a6faf5a2632379ab18697446c752e5e78dfd6fefe3113b70d1d0ea5aa27ee433dd50b4369a78
6
+ metadata.gz: 8aa3bb4dc407e533fe623934074fabbd79e44ffd7a50307c8dab3ff9a7abb7dd47af77a81318c07d323804000d618ac6dee281889a553d10d6734cca6929b0be
7
+ data.tar.gz: 39c81b5abbf2c6e147e37a7183da74f38344e0d1dc53b3ab881bf52679302e81d3a3a8bdcd5e09de24c0fd95b283ebf965a3cf1c042417ef1674aa8f4a34ba66
data/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2014 Felix Krause
3
+ Copyright (c) 2015 Felix Krause
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
data/README.md CHANGED
@@ -1,8 +1,16 @@
1
+ <h3 align="center">
2
+ <a href="https://github.com/KrauseFx/fastlane">
3
+ <img src="assets/fastlane.png" width="150" />
4
+ <br />
5
+ fastlane
6
+ </a>
7
+ </h3>
1
8
  <p align="center">
2
- <a href="https://github.com/KrauseFx/deliver">Deliver</a> &bull;
3
- <a href="https://github.com/KrauseFx/snapshot">Snapshot</a> &bull;
4
- <b>FrameIt</b> &bull;
5
- <a href="https://github.com/KrauseFx/PEM">PEM</a>
9
+ <a href="https://github.com/KrauseFx/deliver">deliver</a> &bull;
10
+ <a href="https://github.com/KrauseFx/snapshot">snapshot</a> &bull;
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>
6
14
  </p>
7
15
  -------
8
16
 
@@ -10,26 +18,32 @@
10
18
  <img src="assets/frameit.png">
11
19
  </p>
12
20
 
13
- FrameIt - Add gorgeous device frames around your screenshots
21
+ frameit
14
22
  ============
15
23
 
16
24
  [![Twitter: @KauseFx](https://img.shields.io/badge/contact-@KrauseFx-blue.svg?style=flat)](https://twitter.com/KrauseFx)
17
25
  [![License](http://img.shields.io/badge/license-MIT-green.svg?style=flat)](https://github.com/KrauseFx/frameit/blob/master/LICENSE)
18
26
  [![Gem](https://img.shields.io/gem/v/frameit.svg?style=flat)](http://rubygems.org/gems/frameit)
19
27
 
20
- Want a device frame around your screenshot? Do it in an instant!
28
+ ###### Quickly put your screenshots into the right device frames
21
29
 
22
- Follow the developer on Twitter: [@KrauseFx](https://twitter.com/KrauseFx)
30
+ This tool is not supposed to be used for App Store screenshots. Instead it should be used to prepare screenshots for websites, emails and prints.
31
+
32
+ Get in contact with the developer on Twitter: [@KrauseFx](https://twitter.com/KrauseFx)
23
33
 
24
34
 
25
35
  -------
26
- [Features](#features) &bull;
27
- [Installation](#installation) &bull;
28
- [Usage](#usage) &bull;
29
- [Tips](#tips) &bull;
30
- [Need help?](#need-help)
36
+ <p align="center">
37
+ <a href="#features">Features</a> &bull;
38
+ <a href="#installation">Installation</a> &bull;
39
+ <a href="#usage">Usage</a> &bull;
40
+ <a href="#tips">Tips</a> &bull;
41
+ <a href="#need-help">Need help?</a>
42
+ </p>
31
43
 
32
44
  -------
45
+ <h5 align="center"><code>frameit</code> is part of <a href="http://fastlane.tools">fastlane</a>: connect all deployment tools into one streamlined workflow.</h5>
46
+
33
47
 
34
48
 
35
49
  # Features
@@ -56,7 +70,7 @@ Install the gem
56
70
 
57
71
  sudo gem install frameit
58
72
 
59
- Because of legal reasons, I can not pre-package the device frames with ```FrameIt```.
73
+ Because of legal reasons, I can not pre-package the device frames with ```frameit```.
60
74
 
61
75
  The process of adding is really easy, just run ```frameit``` and the guide will help you set it up.
62
76
  You only have to do this once per computer.
@@ -86,12 +100,13 @@ To run the setup process again to add new frames use:
86
100
 
87
101
  # Tips
88
102
 
89
- ## Other helpful tools
90
- Check out other tools in this collection to speed up your deployment process:
91
- - [```deliver```](https://github.com/KrauseFx/deliver): Deploy screenshots, app metadata and app updates to the App Store using just one command
92
- - [```snapshot```](https://github.com/KrauseFx/snapshot): Create hundreds of screenshots of your iPhone app... while doing something else
93
- - [```PEM```](https://github.com/KrauseFx/pem): Tired of manually creating and maintaining your push certification profiles?
103
+ ## [`fastlane`](http://fastlane.tools) Toolchain
94
104
 
105
+ - [`fastlane`](http://fastlane.tools): Connect all deployment tools into one streamlined workflow
106
+ - [`deliver`](https://github.com/KrauseFx/deliver): Upload screenshots, metadata and your app to the App Store using a single command
107
+ - [`snapshot`](https://github.com/KrauseFx/snapshot): Automate taking localized screenshots of your iOS app on every device
108
+ - [`PEM`](https://github.com/KrauseFx/pem): Automatically generate and renew your push notification profiles
109
+ - [`sigh`](https://github.com/KrauseFx/sigh): Because you would rather spend your time building stuff than fighting provisioning
95
110
 
96
111
  ## Generate screenshots
97
112
  Check out [```Snapshot```](https://github.com/KrauseFx/snapshot) to automatically generate screenshots using ```UI Automation```.
@@ -104,8 +119,8 @@ You can use [SimulatorStatusMagic](https://github.com/shinydevelopment/Simulator
104
119
  - ```rm -rf ~/.frameit```
105
120
 
106
121
  # Need help?
107
- - If there is a technical problem with ```FrameIt```, submit an issue. Run ```frameit --trace``` to get the stacktrace.
108
- - I'm available for contract work - drop me an email: frameit@felixkrause.at
122
+ - If there is a technical problem with ```frameit```, submit an issue. Run ```frameit --trace``` to get the stacktrace.
123
+ - I'm available for contract work - drop me an email: frameit@krausefx.com
109
124
 
110
125
  # License
111
126
  This project is licensed under the terms of the MIT license. See the LICENSE file.
data/bin/frameit CHANGED
@@ -4,25 +4,21 @@ $:.push File.expand_path("../../lib", __FILE__)
4
4
 
5
5
  require 'frameit'
6
6
  require 'commander/import'
7
- require 'frameit/update_checker'
8
- require 'frameit/dependency_checker'
9
7
 
10
8
  HighLine.track_eof = false
11
9
 
12
10
 
13
11
  # Commander
14
12
  program :version, Frameit::VERSION
15
- program :description, 'Find all screenshots in current folder and put a nice frame around it. This will duplicate the images.'
16
- program :help, 'Author', 'Felix Krause <krausefx@gmail.com>'
17
- program :help, 'Website', 'http://felixkrause.at'
13
+ program :description, 'Quickly put your screenshots into the right device frames'
14
+ program :help, 'Author', 'Felix Krause <frameit@krausefx.com>'
15
+ program :help, 'Website', 'http://fastlane.tools'
18
16
  program :help, 'GitHub', 'https://github.com/krausefx/frameit'
19
17
  program :help_formatter, :compact
20
18
 
21
19
  global_option('--verbose') { $verbose = true }
22
20
 
23
21
 
24
- Frameit::UpdateChecker.verify_latest_version
25
-
26
22
  default_command :black
27
23
 
28
24
 
@@ -31,7 +27,6 @@ command :black do |c|
31
27
  c.description = "Adds a black frame around all screenshots."
32
28
 
33
29
  c.action do |args, options|
34
- Frameit::DependencyChecker.check_dependencies
35
30
  Frameit::Editor.new.run('.', Frameit::Editor::Color::BLACK)
36
31
  end
37
32
  end
@@ -41,7 +36,6 @@ command :silver do |c|
41
36
  c.description = "Adds a silver frame around all screenshots."
42
37
 
43
38
  c.action do |args, options|
44
- Frameit::DependencyChecker.check_dependencies
45
39
  Frameit::Editor.new.run('.', Frameit::Editor::Color::SILVER)
46
40
  end
47
41
  end
@@ -51,7 +45,6 @@ command :setup do |c|
51
45
  c.description = "Helps you adding new frames."
52
46
 
53
47
  c.action do |args, options|
54
- Frameit::DependencyChecker.check_dependencies
55
48
  Frameit::FrameConverter.new.run
56
49
  end
57
50
  end
data/lib/frameit.rb CHANGED
@@ -4,11 +4,14 @@ require 'frameit/version'
4
4
  require 'frameit/helper'
5
5
  require 'frameit/frame_converter'
6
6
  require 'frameit/editor'
7
+ require 'frameit/update_checker'
8
+ require 'frameit/dependency_checker'
7
9
  require 'deliver'
8
10
 
9
11
  # Third Party code
10
12
  require 'colored'
11
13
 
12
14
  module Frameit
13
-
15
+ Frameit::UpdateChecker.verify_latest_version
16
+ Frameit::DependencyChecker.check_dependencies
14
17
  end
@@ -29,6 +29,8 @@ module Frameit
29
29
 
30
30
  Dir.glob("#{path}/**/*.{png,PNG}").each do |screenshot|
31
31
  next if screenshot.include?"_framed.png"
32
+ next if screenshot.include?".itmsp/" # a package file, we don't want to modify that
33
+
32
34
  begin
33
35
  template_path = get_template(screenshot)
34
36
  if template_path
@@ -47,11 +49,9 @@ module Frameit
47
49
 
48
50
  output_path = screenshot.gsub('.png', '_framed.png').gsub('.PNG', '_framed.png')
49
51
  result.write output_path
50
- Helper.log.info "Successfully framed screenshot at path '#{output_path}'".green
52
+ Helper.log.info "Added frame: '#{File.expand_path(output_path)}'".green
51
53
  end
52
- rescue SystemExit, Interrupt => ex
53
- raise ex # system interrupted exception (ctrl + C)
54
- rescue Exception => ex
54
+ rescue => ex
55
55
  Helper.log.error ex
56
56
  end
57
57
  end
@@ -25,7 +25,7 @@ module Frameit
25
25
  if latest and Gem::Version.new(latest) > Gem::Version.new(current_version)
26
26
  return true
27
27
  end
28
- rescue Exception => ex
28
+ rescue => ex
29
29
  Helper.log.debug(ex)
30
30
  Helper.log.error("Could not check if 'frameit' is up to date.")
31
31
  end
@@ -1,3 +1,3 @@
1
1
  module Frameit
2
- VERSION = "0.1.5"
2
+ VERSION = "0.2.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: 0.1.5
4
+ version: 0.2.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: 2014-11-25 00:00:00.000000000 Z
11
+ date: 2015-01-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json
@@ -98,14 +98,14 @@ dependencies:
98
98
  name: deliver
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - ~>
101
+ - - '>'
102
102
  - !ruby/object:Gem::Version
103
103
  version: '0.3'
104
104
  type: :runtime
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - ~>
108
+ - - '>'
109
109
  - !ruby/object:Gem::Version
110
110
  version: '0.3'
111
111
  - !ruby/object:Gem::Dependency
@@ -192,9 +192,9 @@ dependencies:
192
192
  - - '>='
193
193
  - !ruby/object:Gem::Version
194
194
  version: '0'
195
- description: Want a device frame around your iPhone app screenshots? Do it in an instant!
195
+ description: Quickly put your screenshots into the right device frames
196
196
  email:
197
- - krausefx@gmail.com
197
+ - frameit@krausefx.com
198
198
  executables:
199
199
  - frameit
200
200
  extensions: []
@@ -210,7 +210,7 @@ files:
210
210
  - lib/frameit/helper.rb
211
211
  - lib/frameit/update_checker.rb
212
212
  - lib/frameit/version.rb
213
- homepage: http://felixkrause.at
213
+ homepage: http://fastlane.tools
214
214
  licenses:
215
215
  - MIT
216
216
  metadata: {}
@@ -233,6 +233,6 @@ rubyforge_project:
233
233
  rubygems_version: 2.2.2
234
234
  signing_key:
235
235
  specification_version: 4
236
- summary: FrameIt - Want a device frame around your screenshots? Do it in an instant!
236
+ summary: Quickly put your screenshots into the right device frames
237
237
  test_files: []
238
238
  has_rdoc: