frank-cucumber 0.9.5.pre7 → 0.9.5.pre8

Sign up to get free protection for your applications and to get access to all the features.
@@ -22,7 +22,7 @@ Gem::Specification.new do |s|
22
22
 
23
23
  s.add_dependency( "cucumber" )
24
24
  s.add_dependency( "rspec", [">=2.0"] )
25
- s.add_dependency( "sim_launcher", ["=0.3.8"] ) #temporary lockdown of dependencies while I try and sort out ios-sim build issues
25
+ s.add_dependency( "sim_launcher", [">=0.4.5"] )
26
26
  s.add_dependency( "i18n" )
27
27
  s.add_dependency( "plist" )
28
28
  s.add_dependency( "json" ) # TODO: figure out how to be more permissive as to which JSON gems we allow
Binary file
Binary file
Binary file
@@ -25,12 +25,12 @@ module Frank
25
25
  WITHOUT_SERVER = "without-cocoa-http-server"
26
26
  desc "setup", "set up your iOS app by adding a Frank subdirectory containing everything Frank needs"
27
27
  method_option WITHOUT_SERVER, :type => :boolean
28
+ method_option :build_configuration, :aliases=>'--conf', :type=>:string, :default => 'Debug'
28
29
  def setup
29
30
  @without_http_server = options[WITHOUT_SERVER]
30
-
31
31
  directory ".", "Frank"
32
32
 
33
- Frankifier.frankify!( File.expand_path('.') )
33
+ Frankifier.frankify!( File.expand_path('.'), :build_config => options[:build_configuration] )
34
34
  end
35
35
 
36
36
  desc "update", "updates the frank server components inside your Frank directory"
@@ -4,14 +4,15 @@ require 'xcodeproj'
4
4
  class Frankifier
5
5
  include Thor::Shell
6
6
 
7
- def self.frankify! root_dir
8
- me = new(root_dir)
7
+ def self.frankify! root_dir, options = {}
8
+ me = new(root_dir, options)
9
9
  me.frankify!
10
10
  me
11
11
  end
12
12
 
13
- def initialize( root_dir )
13
+ def initialize( root_dir, options = {} )
14
14
  @root = Pathname.new( root_dir )
15
+ @target_build_configuration = options[:build_config]
15
16
  end
16
17
 
17
18
  def frankify!
@@ -74,7 +75,7 @@ class Frankifier
74
75
  end
75
76
 
76
77
  def add_frank_entry_to_build_setting( build_setting, entry_to_add )
77
- setting_array = Array( debug_build_settings[build_setting] )
78
+ setting_array = Array( build_settings_to_edit[build_setting] )
78
79
 
79
80
  if setting_array.find{ |flag| flag.start_with? "$(FRANK_" }
80
81
  say "It appears that your Debug configuration's #{build_setting} build setting already include some FRANK setup. Namely: #{setting_array.inspect}. I won't change anything here."
@@ -87,11 +88,11 @@ class Frankifier
87
88
  setting_array.uniq! # mainly to avoid duplicate $(inherited) entries
88
89
  say "... #{build_setting} is now: #{setting_array.inspect}"
89
90
 
90
- debug_build_settings[build_setting] = setting_array
91
+ build_settings_to_edit[build_setting] = setting_array
91
92
  end
92
93
 
93
- def debug_build_settings
94
- @_debug_build_settings ||= @target.build_configuration_list.build_settings('Debug')
94
+ def build_settings_to_edit
95
+ @_build_settings_to_edit ||= @target.build_configuration_list.build_settings(@target_build_configuration)
95
96
  end
96
97
 
97
98
  def save_changes
@@ -1,5 +1,5 @@
1
1
  module Frank
2
2
  module Cucumber
3
- VERSION = "0.9.5.pre7"
3
+ VERSION = "0.9.5.pre8"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: frank-cucumber
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.5.pre7
4
+ version: 0.9.5.pre8
5
5
  prerelease: 6
6
6
  platform: ruby
7
7
  authors:
@@ -10,11 +10,11 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2012-08-06 00:00:00.000000000 Z
13
+ date: 2012-09-06 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: cucumber
17
- requirement: &70333810577220 !ruby/object:Gem::Requirement
17
+ requirement: &70289635546120 !ruby/object:Gem::Requirement
18
18
  none: false
19
19
  requirements:
20
20
  - - ! '>='
@@ -22,10 +22,10 @@ dependencies:
22
22
  version: '0'
23
23
  type: :runtime
24
24
  prerelease: false
25
- version_requirements: *70333810577220
25
+ version_requirements: *70289635546120
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: rspec
28
- requirement: &70333810576700 !ruby/object:Gem::Requirement
28
+ requirement: &70289635544200 !ruby/object:Gem::Requirement
29
29
  none: false
30
30
  requirements:
31
31
  - - ! '>='
@@ -33,21 +33,21 @@ dependencies:
33
33
  version: '2.0'
34
34
  type: :runtime
35
35
  prerelease: false
36
- version_requirements: *70333810576700
36
+ version_requirements: *70289635544200
37
37
  - !ruby/object:Gem::Dependency
38
38
  name: sim_launcher
39
- requirement: &70333810576160 !ruby/object:Gem::Requirement
39
+ requirement: &70289635541260 !ruby/object:Gem::Requirement
40
40
  none: false
41
41
  requirements:
42
- - - =
42
+ - - ! '>='
43
43
  - !ruby/object:Gem::Version
44
- version: 0.3.8
44
+ version: 0.4.5
45
45
  type: :runtime
46
46
  prerelease: false
47
- version_requirements: *70333810576160
47
+ version_requirements: *70289635541260
48
48
  - !ruby/object:Gem::Dependency
49
49
  name: i18n
50
- requirement: &70333810575740 !ruby/object:Gem::Requirement
50
+ requirement: &70289635539880 !ruby/object:Gem::Requirement
51
51
  none: false
52
52
  requirements:
53
53
  - - ! '>='
@@ -55,10 +55,10 @@ dependencies:
55
55
  version: '0'
56
56
  type: :runtime
57
57
  prerelease: false
58
- version_requirements: *70333810575740
58
+ version_requirements: *70289635539880
59
59
  - !ruby/object:Gem::Dependency
60
60
  name: plist
61
- requirement: &70333810575220 !ruby/object:Gem::Requirement
61
+ requirement: &70289635538040 !ruby/object:Gem::Requirement
62
62
  none: false
63
63
  requirements:
64
64
  - - ! '>='
@@ -66,10 +66,10 @@ dependencies:
66
66
  version: '0'
67
67
  type: :runtime
68
68
  prerelease: false
69
- version_requirements: *70333810575220
69
+ version_requirements: *70289635538040
70
70
  - !ruby/object:Gem::Dependency
71
71
  name: json
72
- requirement: &70333810574800 !ruby/object:Gem::Requirement
72
+ requirement: &70289635536860 !ruby/object:Gem::Requirement
73
73
  none: false
74
74
  requirements:
75
75
  - - ! '>='
@@ -77,10 +77,10 @@ dependencies:
77
77
  version: '0'
78
78
  type: :runtime
79
79
  prerelease: false
80
- version_requirements: *70333810574800
80
+ version_requirements: *70289635536860
81
81
  - !ruby/object:Gem::Dependency
82
82
  name: dnssd
83
- requirement: &70333810574360 !ruby/object:Gem::Requirement
83
+ requirement: &70289635536120 !ruby/object:Gem::Requirement
84
84
  none: false
85
85
  requirements:
86
86
  - - ! '>='
@@ -88,10 +88,10 @@ dependencies:
88
88
  version: '0'
89
89
  type: :runtime
90
90
  prerelease: false
91
- version_requirements: *70333810574360
91
+ version_requirements: *70289635536120
92
92
  - !ruby/object:Gem::Dependency
93
93
  name: thor
94
- requirement: &70333810573940 !ruby/object:Gem::Requirement
94
+ requirement: &70289635534340 !ruby/object:Gem::Requirement
95
95
  none: false
96
96
  requirements:
97
97
  - - ! '>='
@@ -99,10 +99,10 @@ dependencies:
99
99
  version: '0'
100
100
  type: :runtime
101
101
  prerelease: false
102
- version_requirements: *70333810573940
102
+ version_requirements: *70289635534340
103
103
  - !ruby/object:Gem::Dependency
104
104
  name: xcodeproj
105
- requirement: &70333810573520 !ruby/object:Gem::Requirement
105
+ requirement: &70289635530840 !ruby/object:Gem::Requirement
106
106
  none: false
107
107
  requirements:
108
108
  - - ! '>='
@@ -110,10 +110,10 @@ dependencies:
110
110
  version: '0'
111
111
  type: :runtime
112
112
  prerelease: false
113
- version_requirements: *70333810573520
113
+ version_requirements: *70289635530840
114
114
  - !ruby/object:Gem::Dependency
115
115
  name: rr
116
- requirement: &70333810573080 !ruby/object:Gem::Requirement
116
+ requirement: &70289635529560 !ruby/object:Gem::Requirement
117
117
  none: false
118
118
  requirements:
119
119
  - - ! '>='
@@ -121,10 +121,10 @@ dependencies:
121
121
  version: '0'
122
122
  type: :development
123
123
  prerelease: false
124
- version_requirements: *70333810573080
124
+ version_requirements: *70289635529560
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: yard
127
- requirement: &70333810572660 !ruby/object:Gem::Requirement
127
+ requirement: &70289635528380 !ruby/object:Gem::Requirement
128
128
  none: false
129
129
  requirements:
130
130
  - - ! '>='
@@ -132,10 +132,10 @@ dependencies:
132
132
  version: '0'
133
133
  type: :development
134
134
  prerelease: false
135
- version_requirements: *70333810572660
135
+ version_requirements: *70289635528380
136
136
  - !ruby/object:Gem::Dependency
137
137
  name: pry
138
- requirement: &70333810572180 !ruby/object:Gem::Requirement
138
+ requirement: &70289635526420 !ruby/object:Gem::Requirement
139
139
  none: false
140
140
  requirements:
141
141
  - - ! '>='
@@ -143,10 +143,10 @@ dependencies:
143
143
  version: '0'
144
144
  type: :development
145
145
  prerelease: false
146
- version_requirements: *70333810572180
146
+ version_requirements: *70289635526420
147
147
  - !ruby/object:Gem::Dependency
148
148
  name: pry-debugger
149
- requirement: &70333810571720 !ruby/object:Gem::Requirement
149
+ requirement: &70289635524280 !ruby/object:Gem::Requirement
150
150
  none: false
151
151
  requirements:
152
152
  - - ! '>='
@@ -154,7 +154,7 @@ dependencies:
154
154
  version: '0'
155
155
  type: :development
156
156
  prerelease: false
157
- version_requirements: *70333810571720
157
+ version_requirements: *70289635524280
158
158
  description: Use cucumber to test native iOS apps via Frank
159
159
  email:
160
160
  - gems@thepete.net
@@ -266,3 +266,4 @@ test_files:
266
266
  - test/keyboard_helper_test.rb
267
267
  - test/launcher_test.rb
268
268
  - test/test_helper.rb
269
+ has_rdoc: