lesspainful 0.9.0 → 0.9.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/bin/lesspainful +12 -9
  2. data/lib/version.rb +1 -1
  3. 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 = true
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
- res = `otool "#{File.expand_path(dir)}/Payload/#{app_dir}/#{app}" -o 2> /dev/null | grep FrankServer`
122
- if /FrankServer/.match(res)
123
- puts "ipa: #{ipa} *contains* FrankServer"
124
- result = :frank
125
- else
126
- puts "ipa: #{ipa} *does not contain* calabash.framework"
127
- result = false
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
@@ -1,3 +1,3 @@
1
1
  module LessPainful
2
- VERSION = "0.9.0"
2
+ VERSION = "0.9.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lesspainful
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 0.9.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: