frank-cucumber 1.1.8 → 1.1.9.pre1

Sign up to get free protection for your applications and to get access to all the features.
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -31,6 +31,7 @@ module Frank
31
31
  method_option WITHOUT_ASYNC_SOCKET, :type => :boolean
32
32
  method_option WITHOUT_LUMBERJACK, :type => :boolean
33
33
  method_option :build_configuration, :aliases=>'--conf', :type=>:string, :default => 'Debug'
34
+ method_option :target, :type=>:string
34
35
  def setup
35
36
  @libs = %w(Shelley CocoaAsyncSocket CocoaLumberjack CocoaHTTPServer Frank)
36
37
  @libsMac = %w(CocoaAsyncSocketMac CocoaLumberjackMac CocoaHTTPServerMac FrankMac)
@@ -42,13 +43,13 @@ module Frank
42
43
  @libsMac -= %w(CocoaLumberjackMac) if options[WITHOUT_LUMBERJACK]
43
44
  directory ".", "Frank"
44
45
 
45
- Frankifier.frankify!( File.expand_path('.'), :build_config => options[:build_configuration] )
46
+ Frankifier.frankify!( File.expand_path('.'), :build_config => options[:build_configuration], :target => options[:target] )
46
47
  end
47
48
 
48
49
  desc "update", "updates the frank server components inside your Frank directory"
49
50
  long_desc "This updates the parts of Frank that are embedded inside your app (e.g. libFrank.a and frank_static_resources.bundle)"
50
51
  def update
51
- %w{libFrank.a libCocoaAsyncSocket.a libCocoaLumberjack.a libCocoaHTTPServer.a libShelley.a libFrankMac.a libShelleyMac libCocoaAsyncSocketMac.a libCocoaLumberjackMac.a libCocoaHTTPServerMac.a}.each do |f|
52
+ %w{libFrank.a libCocoaAsyncSocket.a libCocoaLumberjack.a libCocoaHTTPServer.a libShelley.a libFrankMac.a libShelleyMac.a libCocoaAsyncSocketMac.a libCocoaLumberjackMac.a libCocoaHTTPServerMac.a}.each do |f|
52
53
  copy_file f, File.join( 'Frank', f ), :force => true
53
54
  end
54
55
  directory( 'frank_static_resources.bundle', 'Frank/frank_static_resources.bundle', :force => true )
@@ -91,7 +92,7 @@ module Frank
91
92
  extra_opts = XCODEBUILD_OPTIONS.map{ |o| "-#{o} \"#{options[o]}\"" if options[o] }.compact.join(' ')
92
93
 
93
94
  # If there is a scheme specified we don't want to inject the default configuration
94
- # If there is a configuration specified, we also do not want to inject the default configuration
95
+ # If there is a configuration specified, we also do not want to inject the default configuration
95
96
  if options['scheme'] || options['configuration']
96
97
  separate_configuration_option = ""
97
98
  else
@@ -13,6 +13,7 @@ class Frankifier
13
13
  def initialize( root_dir, options = {} )
14
14
  @root = Pathname.new( root_dir )
15
15
  @target_build_configuration = options[:build_config]
16
+ @target_selection = options[:target]
16
17
  end
17
18
 
18
19
  def frankify!
@@ -53,6 +54,8 @@ class Frankifier
53
54
 
54
55
  def decide_on_target
55
56
  targets = @project.targets
57
+ @target = targets.find { |item| item.name.eql?(@target_selection) } if @target_selection
58
+ return @target if @target
56
59
  @target = case targets.size
57
60
  when 0
58
61
  raise "Sorry, this project appears to contain no targets. Nothing I can do here."
@@ -1,5 +1,5 @@
1
1
  module Frank
2
2
  module Cucumber
3
- VERSION = "1.1.8"
3
+ VERSION = "1.1.9.pre1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,8 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: frank-cucumber
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.8
5
- prerelease:
4
+ version: 1.1.9.pre1
5
+ prerelease: 6
6
6
  platform: ruby
7
7
  authors:
8
8
  - Pete Hodgson
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2013-02-08 00:00:00.000000000 Z
13
+ date: 2013-03-21 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: cucumber
@@ -376,9 +376,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
376
376
  required_rubygems_version: !ruby/object:Gem::Requirement
377
377
  none: false
378
378
  requirements:
379
- - - ! '>='
379
+ - - ! '>'
380
380
  - !ruby/object:Gem::Version
381
- version: '0'
381
+ version: 1.3.1
382
382
  requirements: []
383
383
  rubyforge_project:
384
384
  rubygems_version: 1.8.24