high_five 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MjUxOGZjNmE0MmY5YzM4OWZmYjE1OWExYzU5NmY4MTRhY2Q2MjkxNQ==
4
+ OTAyMzUzMWYxNDFiMzc0NzEzMzQyNTQ0ZThjY2MwMGMzY2EzZTQwZA==
5
5
  data.tar.gz: !binary |-
6
- NGYxYzgyZjY1OWQwZmY1YmNiYTNmZDBmZDgzOWRlMzM0ZmFiYmM4ZA==
6
+ MjZjMmY4N2Q1ZTdlZjkwYzBiMDAzMjFiN2RlY2RmMzg4MDJlZjJhMg==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MWRjZTkwOTMzMDk2NmIwMTI5MmQ0YjI4ZDU1NWI1NjdiZTllNWFmNTM3ZTk4
10
- NGUwNDc5ZTA2Y2RjZDczMTU0MTAzNWQxZWY2ZTJjZmYwNGQyZjY4Njc5MTcx
11
- NDQ4MzM1Nzc0M2Q3MDBlOTM2NmQ2ZDBhZjhjMDc5ZjhjOGQxNjc=
9
+ ZGNlY2QyZDEwNDRiMzJiYjRjZDM4ZjY4YmZkZWZmNDA1YWExN2M5ZTJhMWQ3
10
+ MGQ0M2Y4ZjYxNGM1ZjVmNDc4NTM5NDc1YzYyYjYyMmQ2ODRlNDUxZjQ3YmJk
11
+ NWQ2Y2QzMjVhZjU1YmZhOWFmODZiNTMwODNhODNkOTZkM2QzZDY=
12
12
  data.tar.gz: !binary |-
13
- N2M3MTBjMWUyOTE2N2U2NDE1NTNjMGUwMDYzNzk4ZThlNGMyNjc3NjM0Mzk1
14
- MGM2YTJkMTRiM2FkMTZmMWU2MTQ1MzYyMjc2ZmY3Y2E3YjJjNzIyNWIwMzI0
15
- YjBhMDQ1NTU3OTAwZDYwZTJjOTBiZTZlYzdjYjBiYmY3ZTMyYzc=
13
+ YzYyZjk0YzA2MTQ3ZmE5ZDA4NDBmOGJmY2IwZGI4ZTdkNjJlNTUwMjM0NDQ2
14
+ NzNjNDI3OTQyYTMwNTFjZWNmYzhlNmQyYTc2Njg5OGYzZWRjMzMzYjJmY2Rm
15
+ MTM4NmMyYmQxNGQwYTU5YWE1MjQ1YWEwMTFkY2U0YjI5NzMzNDI=
@@ -12,9 +12,10 @@ module HighFive
12
12
  nil
13
13
  end
14
14
 
15
- def info_plist_path
15
+ def info_plist_path(target=nil)
16
16
  root_dir = File.dirname(xcodeproj_path)
17
- info = Dir["#{root_dir}/**/*-Info.plist"].first
17
+ target = "*" if target.nil?
18
+ info = Dir["#{root_dir}/**/#{target}-Info.plist"].first
18
19
  raise "Couldn't find infoplist" if info.nil?
19
20
  return info
20
21
  end
@@ -12,8 +12,9 @@ module HighFive
12
12
  desc "set_version", "build the debug apk via ant debug"
13
13
  method_option :version, :aliases => "-v", :desc => "Set main version"
14
14
  method_option :build_number, :aliases => '-b', :desc => "set build number"
15
+ method_option :target, :aliases => '-t', :desc => "Use a specific target (i.e. <Target>.plist"
15
16
  def set_version
16
- info = info_plist_path
17
+ info = info_plist_path(options[:target])
17
18
  puts "Using #{info}"
18
19
  plist = Plist::parse_xml(info)
19
20
 
@@ -1,3 +1,3 @@
1
1
  module HighFive
2
- VERSION = "0.2.2"
2
+ VERSION = "0.2.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: high_five
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Samson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-04-10 00:00:00.000000000 Z
11
+ date: 2014-04-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: multi_json