calabash-cucumber 0.9.25 → 0.9.26

Sign up to get free protection for your applications and to get access to all the features.
@@ -262,20 +262,6 @@ def setup_project(project_name, project_path, path)
262
262
 
263
263
 
264
264
 
265
- cfnet = pbx.find_item :name => "CFNetwork.framework", :type => PBXProject::PBXTypes::PBXFileReference
266
-
267
- unless cfnet
268
- f = PBXProject::PBXTypes::PBXFileReference.new(:path => "System/Library/Frameworks/CFNetwork.framework", :lastKnownFileType => "wrapper.framework", :sourceTree => 'SDKROOT')
269
- f.comment = "CFNetwork.framework"
270
- f.name = f.comment
271
- pbx.add_item f
272
- bf = PBXProject::PBXTypes::PBXBuildFile.new(:comment => "CFNetwork.framework in Frameworks", :fileRef => f.guid)
273
- bf.comment = "CFNetwork.framework in Frameworks"
274
- pbx.add_item bf
275
- group.add_children f
276
- build_phase_entry = PBXProject::PBXTypes::BasicValue.new(:value => bf.guid, :comment => bf.comment)
277
- pbx.sections['PBXFrameworksBuildPhase'][0].files << build_phase_entry
278
- end
279
265
 
280
266
 
281
267
  targets = pbx.sections['PBXNativeTarget']
@@ -318,6 +304,28 @@ def setup_project(project_name, project_path, path)
318
304
  end
319
305
  end
320
306
 
307
+ #CFNetwork
308
+ cfnet = pbx.find_item :name => "CFNetwork.framework", :type => PBXProject::PBXTypes::PBXFileReference
309
+
310
+ if cfnet
311
+ msg("Warning") do
312
+ puts "You are already using CFNetwork.framework"
313
+ puts "Please make sure you have added it to your target #{target.name.value}."
314
+ end
315
+ else
316
+ f = PBXProject::PBXTypes::PBXFileReference.new(:path => "System/Library/Frameworks/CFNetwork.framework", :lastKnownFileType => "wrapper.framework", :sourceTree => 'SDKROOT')
317
+ f.comment = "CFNetwork.framework"
318
+ f.name = f.comment
319
+ pbx.add_item f
320
+ bf = PBXProject::PBXTypes::PBXBuildFile.new(:comment => "CFNetwork.framework in Frameworks", :fileRef => f.guid)
321
+ bf.comment = "CFNetwork.framework in Frameworks"
322
+ pbx.add_item bf
323
+ group.add_children f
324
+ build_phase_entry = PBXProject::PBXTypes::BasicValue.new(:value => bf.guid, :comment => bf.comment)
325
+ pbx.sections['PBXFrameworksBuildPhase'][0].files << build_phase_entry
326
+ end
327
+
328
+
321
329
  ##project level build conf
322
330
  project_bc_id = pbx.sections['PBXProject'][0].buildConfigurationList.value
323
331
  project_bc_list = pbx.find_item :guid => project_bc_id, :type => PBXProject::PBXTypes::XCConfigurationList
@@ -1,6 +1,6 @@
1
1
  module Calabash
2
2
  module Cucumber
3
- VERSION = "0.9.25"
3
+ VERSION = "0.9.26"
4
4
  FRAMEWORK_VERSION = "0.9.23"
5
5
  end
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: calabash-cucumber
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.25
4
+ version: 0.9.26
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2012-03-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: cucumber
16
- requirement: &70142197416520 !ruby/object:Gem::Requirement
16
+ requirement: &70164419060240 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70142197416520
24
+ version_requirements: *70164419060240
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: json
27
- requirement: &70142197415940 !ruby/object:Gem::Requirement
27
+ requirement: &70164419059660 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '0'
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *70142197415940
35
+ version_requirements: *70164419059660
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: CFPropertyList
38
- requirement: &70142197415400 !ruby/object:Gem::Requirement
38
+ requirement: &70164419059040 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: '0'
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *70142197415400
46
+ version_requirements: *70164419059040
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: sim_launcher
49
- requirement: &70142197414680 !ruby/object:Gem::Requirement
49
+ requirement: &70164419074740 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: '0'
55
55
  type: :runtime
56
56
  prerelease: false
57
- version_requirements: *70142197414680
57
+ version_requirements: *70164419074740
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: slowhandcuke
60
- requirement: &70142197414020 !ruby/object:Gem::Requirement
60
+ requirement: &70164419074180 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ! '>='
@@ -65,10 +65,10 @@ dependencies:
65
65
  version: '0'
66
66
  type: :runtime
67
67
  prerelease: false
68
- version_requirements: *70142197414020
68
+ version_requirements: *70164419074180
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: net-http-persistent
71
- requirement: &70142197413560 !ruby/object:Gem::Requirement
71
+ requirement: &70164419073280 !ruby/object:Gem::Requirement
72
72
  none: false
73
73
  requirements:
74
74
  - - ! '>='
@@ -76,10 +76,10 @@ dependencies:
76
76
  version: '0'
77
77
  type: :runtime
78
78
  prerelease: false
79
- version_requirements: *70142197413560
79
+ version_requirements: *70164419073280
80
80
  - !ruby/object:Gem::Dependency
81
81
  name: pbxproject
82
- requirement: &70142197413000 !ruby/object:Gem::Requirement
82
+ requirement: &70164419072820 !ruby/object:Gem::Requirement
83
83
  none: false
84
84
  requirements:
85
85
  - - ! '>='
@@ -87,7 +87,7 @@ dependencies:
87
87
  version: '0'
88
88
  type: :runtime
89
89
  prerelease: false
90
- version_requirements: *70142197413000
90
+ version_requirements: *70164419072820
91
91
  description: calabash-cucumber drives tests for native iOS apps. You must link your
92
92
  app with calabash-ios-server framework to execute tests.
93
93
  email: