lesspainful 0.9.0 → 0.9.1
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/lesspainful +12 -9
- data/lib/version.rb +1 -1
- metadata +1 -1
data/bin/lesspainful
CHANGED
@@ -101,7 +101,7 @@ def is_macosx?
|
|
101
101
|
end
|
102
102
|
|
103
103
|
def validate_ipa(ipa)
|
104
|
-
result =
|
104
|
+
result = false
|
105
105
|
dir = Dir.mktmpdir #do |dir|
|
106
106
|
|
107
107
|
unzip_file(ipa,dir)
|
@@ -118,13 +118,16 @@ def validate_ipa(ipa)
|
|
118
118
|
puts "ipa: #{ipa} *contains* calabash.framework"
|
119
119
|
result = :calabash
|
120
120
|
end
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
121
|
+
|
122
|
+
unless result
|
123
|
+
res = `otool "#{File.expand_path(dir)}/Payload/#{app_dir}/#{app}" -o 2> /dev/null | grep FrankServer`
|
124
|
+
if /FrankServer/.match(res)
|
125
|
+
puts "ipa: #{ipa} *contains* FrankServer"
|
126
|
+
result = :frank
|
127
|
+
else
|
128
|
+
puts "ipa: #{ipa} *does not contain* calabash.framework"
|
129
|
+
result = false
|
130
|
+
end
|
128
131
|
end
|
129
132
|
#end
|
130
133
|
result
|
@@ -145,7 +148,7 @@ def self.log_header(message)
|
|
145
148
|
end
|
146
149
|
|
147
150
|
def usage
|
148
|
-
"Usage: lesspainful <app> <api_key>"
|
151
|
+
"Usage: lesspainful <app> <api_key> <opt workspace>? <opt feature.zip>?"
|
149
152
|
end
|
150
153
|
|
151
154
|
def verify_arguments
|
data/lib/version.rb
CHANGED