longbow-fdv 0.1.0

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.
@@ -0,0 +1,67 @@
1
+ #!/usr/bin/env bash
2
+ #
3
+ # Copyright (c) 2013 Jonathan Penn (http://cocoamanifest.net)
4
+ #
5
+ # Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ # of this software and associated documentation files (the "Software"), to deal
7
+ # in the Software without restriction, including without limitation the rights
8
+ # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ # copies of the Software, and to permit persons to whom the Software is
10
+ # furnished to do so, subject to the following conditions:
11
+ #
12
+ # The above copyright notice and this permission notice shall be included in all
13
+ # copies or substantial portions of the Software.
14
+ #
15
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ # SOFTWARE.
22
+ #
23
+
24
+
25
+ # unix_instruments
26
+ #
27
+ # A wrapper around `instruments` that returns a proper unix status code
28
+ # depending on whether the run failed or not. Alas, Apple's instruments tool
29
+ # doesn't care about unix status codes, so I must grep for the "Fail:" string
30
+ # and figure it out myself. As long as the command doesn't output that string
31
+ # anywhere else inside it, then it should work.
32
+ #
33
+ # I use a tee pipe to capture the output and deliver it to stdout
34
+ #
35
+ # Author: Jonathan Penn (jonathan@cocoamanifest.net)
36
+ #
37
+
38
+ set -e # Bomb on any script errors
39
+
40
+ run_instruments() {
41
+ # Pipe to `tee` using a temporary file so everything is sent to standard out
42
+ # and we have the output to check for errors.
43
+ output=$(mktemp -t unix-instruments)
44
+ instruments "$@" 2>&1 | tee $output
45
+
46
+ # Process the instruments output looking for anything that resembles a fail
47
+ # message
48
+ cat $output | get_error_status
49
+ }
50
+
51
+ get_error_status() {
52
+ # Catch "Instruments Trace Error"
53
+ # Catch "Instruments Usage Error"
54
+ # Catch "00-00-00 00:00:00 +000 Fail:"
55
+ # Catch "00-00-00 00:00:00 +000 Error:"
56
+ # Catch "00-00-00 00:00:00 +000 None: Script threw an uncaught JavaScript error"
57
+ ruby -e 'exit 1 if STDIN.read =~ /Instruments Usage Error|Instruments Trace Error|^\d+-\d+-\d+ \d+:\d+:\d+ [-+]\d+ (Fail:|Error:|None: Script threw an uncaught JavaScript error)/'
58
+ }
59
+
60
+ # Running this file with "----test" will try to parse an error out of whatever
61
+ # is handed in to it from stdin. Use this method to double check your work if
62
+ # you need a custom "get_error_status" function above.
63
+ if [[ $1 == "----test" ]]; then
64
+ get_error_status
65
+ else
66
+ run_instruments "$@"
67
+ fi
metadata ADDED
@@ -0,0 +1,181 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: longbow-fdv
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Intermark Interactive
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2016-09-19 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ~>
18
+ - !ruby/object:Gem::Version
19
+ version: '1.3'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ~>
25
+ - !ruby/object:Gem::Version
26
+ version: '1.3'
27
+ - !ruby/object:Gem::Dependency
28
+ name: fileutils
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - '>='
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - '>='
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: commander
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ~>
46
+ - !ruby/object:Gem::Version
47
+ version: '4.1'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ~>
53
+ - !ruby/object:Gem::Version
54
+ version: '4.1'
55
+ - !ruby/object:Gem::Dependency
56
+ name: dotenv
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ~>
60
+ - !ruby/object:Gem::Version
61
+ version: '0.7'
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ~>
67
+ - !ruby/object:Gem::Version
68
+ version: '0.7'
69
+ - !ruby/object:Gem::Dependency
70
+ name: rmagick
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ~>
74
+ - !ruby/object:Gem::Version
75
+ version: 2.13.2
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ~>
81
+ - !ruby/object:Gem::Version
82
+ version: 2.13.2
83
+ - !ruby/object:Gem::Dependency
84
+ name: xcodeproj
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - '>='
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :runtime
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - '>='
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: json
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - '>='
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :runtime
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - '>='
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: rake
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - '>='
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - '>='
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
125
+ description: One codebase. Multiple App Store submission targets with different icons,
126
+ launch images, info.plist keys, etc.
127
+ email:
128
+ - interactive@intermarkgroup.com
129
+ executables:
130
+ - longbow
131
+ extensions: []
132
+ extra_rdoc_files: []
133
+ files:
134
+ - ./Gemfile
135
+ - ./lib/longbow/colors.rb
136
+ - ./lib/longbow/commands/aim.rb
137
+ - ./lib/longbow/commands/install.rb
138
+ - ./lib/longbow/commands/shoot.rb
139
+ - ./lib/longbow/commands.rb
140
+ - ./lib/longbow/images.rb
141
+ - ./lib/longbow/json.rb
142
+ - ./lib/longbow/plist.rb
143
+ - ./lib/longbow/targets.rb
144
+ - ./lib/longbow/utilities.rb
145
+ - ./lib/longbow/version.rb
146
+ - ./lib/longbow.rb
147
+ - ./LICENSE.txt
148
+ - ./Rakefile
149
+ - ./README.md
150
+ - ./resources/aim.sh
151
+ - ./resources/banner.png
152
+ - ./resources/capture.js
153
+ - ./resources/config-screenshots.sh
154
+ - ./resources/ui-screen-shooter.sh
155
+ - ./resources/unix_instruments.sh
156
+ - bin/longbow
157
+ homepage: https://github.com/intermark/longbow
158
+ licenses:
159
+ - MIT
160
+ metadata: {}
161
+ post_install_message:
162
+ rdoc_options: []
163
+ require_paths:
164
+ - lib
165
+ required_ruby_version: !ruby/object:Gem::Requirement
166
+ requirements:
167
+ - - '>='
168
+ - !ruby/object:Gem::Version
169
+ version: '0'
170
+ required_rubygems_version: !ruby/object:Gem::Requirement
171
+ requirements:
172
+ - - '>='
173
+ - !ruby/object:Gem::Version
174
+ version: '0'
175
+ requirements: []
176
+ rubyforge_project:
177
+ rubygems_version: 2.0.14
178
+ signing_key:
179
+ specification_version: 4
180
+ summary: Better target creation for one iOS codebase.
181
+ test_files: []