calasmash 1.0.2 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/calasmash.gemspec +1 -1
- data/lib/calasmash/cucumber.rb +18 -3
- data/spec/cucumber_spec.rb +14 -0
- metadata +16 -27
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 338aeb3650b20f2a836ef99ac9008e15b5b3ba4f
|
4
|
+
data.tar.gz: 5d2cc99e84a2366577a5e17484f773fcda667a0e
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 01bc0f90053e0ddfbbbbf4b59e861d22f097cd5e5a834d992f2a7a31b2b952304c4e75f1270366ffa3d627cb35254ff497af401bf5406c01a37ff8be3c5aa759
|
7
|
+
data.tar.gz: e3f8341aefce3ce16aaf3f87d46928f3241dea9ed87f795c42ca534e2389679dcfebb727a6f03f521ffa862213c03451a9aa53527d9466be95a4ea0e571dff2c
|
data/calasmash.gemspec
CHANGED
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |spec|
|
6
6
|
spec.name = "calasmash"
|
7
|
-
spec.version = "1.0.
|
7
|
+
spec.version = "1.0.3"
|
8
8
|
spec.authors = ["Alex Fish"]
|
9
9
|
spec.email = ["fish@ustwo.co.uk"]
|
10
10
|
spec.description = "A gift for Juan"
|
data/lib/calasmash/cucumber.rb
CHANGED
@@ -81,8 +81,7 @@ module Calasmash
|
|
81
81
|
# @return [String] The cucumber command string
|
82
82
|
def command
|
83
83
|
command = "cucumber"
|
84
|
-
command +=
|
85
|
-
command += " DEVICE_TARGET=simulator"
|
84
|
+
command += simulator_arguments if @ios
|
86
85
|
command += " --format #{self.format}" if self.format
|
87
86
|
command += " --out #{self.output}" if self.output
|
88
87
|
command += @tags.to_a.empty? ? "" : tag_arguments
|
@@ -105,6 +104,22 @@ module Calasmash
|
|
105
104
|
command
|
106
105
|
end
|
107
106
|
|
107
|
+
#
|
108
|
+
# Generate the simulator version arguments that
|
109
|
+
# are best for certain versions of simulators
|
110
|
+
#
|
111
|
+
# @return [String] The simulator arguments
|
112
|
+
def simulator_arguments
|
113
|
+
if @ios
|
114
|
+
if @ios.to_i < 7
|
115
|
+
command = " OS=ios#{@ios.to_i} SDK_VERSION=#{@ios}"
|
116
|
+
else
|
117
|
+
command = " DEVICE_TARGET='iPhone Retina (4-inch) - Simulator - iOS #{@ios}'"
|
118
|
+
end
|
119
|
+
end
|
120
|
+
|
121
|
+
command
|
122
|
+
end
|
123
|
+
|
108
124
|
end
|
109
125
|
end
|
110
|
-
|
data/spec/cucumber_spec.rb
CHANGED
@@ -40,6 +40,20 @@ describe Calasmash::Cucumber do
|
|
40
40
|
@cucumber.instance_eval{command}.should match(/OS=ios1 SDK_VERSION=1.0/)
|
41
41
|
end
|
42
42
|
|
43
|
+
it "should add the ios 6 compatible tags when passing 6.1 as ios version" do
|
44
|
+
@cucumber = Calasmash::Cucumber.new("6.1", nil)
|
45
|
+
@cucumber.stub(:tag_arguments)
|
46
|
+
|
47
|
+
@cucumber.instance_eval{command}.should match(/OS=ios6 SDK_VERSION=6.1/)
|
48
|
+
end
|
49
|
+
|
50
|
+
it "should add the ios 7 compatible tags when passing 7.0 as ios version" do
|
51
|
+
@cucumber = Calasmash::Cucumber.new("7.0", nil)
|
52
|
+
@cucumber.stub(:tag_arguments)
|
53
|
+
|
54
|
+
@cucumber.instance_eval{command}.should match(/DEVICE_TARGET='iPhone Retina \(4-inch\) - Simulator - iOS 7.0'/)
|
55
|
+
end
|
56
|
+
|
43
57
|
it "should not add the ios version if missing" do
|
44
58
|
@cucumber = Calasmash::Cucumber.new(nil, nil)
|
45
59
|
@cucumber.stub(:tag_arguments)
|
metadata
CHANGED
@@ -1,20 +1,18 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: calasmash
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
5
|
-
prerelease:
|
4
|
+
version: 1.0.3
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Alex Fish
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date: 2014-
|
11
|
+
date: 2014-04-07 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: bundler
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
17
|
- - ~>
|
20
18
|
- !ruby/object:Gem::Version
|
@@ -22,7 +20,6 @@ dependencies:
|
|
22
20
|
type: :development
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
24
|
- - ~>
|
28
25
|
- !ruby/object:Gem::Version
|
@@ -30,65 +27,57 @@ dependencies:
|
|
30
27
|
- !ruby/object:Gem::Dependency
|
31
28
|
name: rake
|
32
29
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
30
|
requirements:
|
35
|
-
- -
|
31
|
+
- - '>='
|
36
32
|
- !ruby/object:Gem::Version
|
37
33
|
version: '0'
|
38
34
|
type: :development
|
39
35
|
prerelease: false
|
40
36
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
37
|
requirements:
|
43
|
-
- -
|
38
|
+
- - '>='
|
44
39
|
- !ruby/object:Gem::Version
|
45
40
|
version: '0'
|
46
41
|
- !ruby/object:Gem::Dependency
|
47
42
|
name: rspec
|
48
43
|
requirement: !ruby/object:Gem::Requirement
|
49
|
-
none: false
|
50
44
|
requirements:
|
51
|
-
- -
|
45
|
+
- - '>='
|
52
46
|
- !ruby/object:Gem::Version
|
53
47
|
version: '0'
|
54
48
|
type: :development
|
55
49
|
prerelease: false
|
56
50
|
version_requirements: !ruby/object:Gem::Requirement
|
57
|
-
none: false
|
58
51
|
requirements:
|
59
|
-
- -
|
52
|
+
- - '>='
|
60
53
|
- !ruby/object:Gem::Version
|
61
54
|
version: '0'
|
62
55
|
- !ruby/object:Gem::Dependency
|
63
56
|
name: guard-rspec
|
64
57
|
requirement: !ruby/object:Gem::Requirement
|
65
|
-
none: false
|
66
58
|
requirements:
|
67
|
-
- -
|
59
|
+
- - '>='
|
68
60
|
- !ruby/object:Gem::Version
|
69
61
|
version: '0'
|
70
62
|
type: :development
|
71
63
|
prerelease: false
|
72
64
|
version_requirements: !ruby/object:Gem::Requirement
|
73
|
-
none: false
|
74
65
|
requirements:
|
75
|
-
- -
|
66
|
+
- - '>='
|
76
67
|
- !ruby/object:Gem::Version
|
77
68
|
version: '0'
|
78
69
|
- !ruby/object:Gem::Dependency
|
79
70
|
name: CFPropertyList
|
80
71
|
requirement: !ruby/object:Gem::Requirement
|
81
|
-
none: false
|
82
72
|
requirements:
|
83
|
-
- -
|
73
|
+
- - '>='
|
84
74
|
- !ruby/object:Gem::Version
|
85
75
|
version: '0'
|
86
76
|
type: :runtime
|
87
77
|
prerelease: false
|
88
78
|
version_requirements: !ruby/object:Gem::Requirement
|
89
|
-
none: false
|
90
79
|
requirements:
|
91
|
-
- -
|
80
|
+
- - '>='
|
92
81
|
- !ruby/object:Gem::Version
|
93
82
|
version: '0'
|
94
83
|
description: A gift for Juan
|
@@ -123,27 +112,26 @@ files:
|
|
123
112
|
homepage: ''
|
124
113
|
licenses:
|
125
114
|
- MIT
|
115
|
+
metadata: {}
|
126
116
|
post_install_message:
|
127
117
|
rdoc_options: []
|
128
118
|
require_paths:
|
129
119
|
- lib
|
130
120
|
required_ruby_version: !ruby/object:Gem::Requirement
|
131
|
-
none: false
|
132
121
|
requirements:
|
133
|
-
- -
|
122
|
+
- - '>='
|
134
123
|
- !ruby/object:Gem::Version
|
135
124
|
version: '0'
|
136
125
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
137
|
-
none: false
|
138
126
|
requirements:
|
139
|
-
- -
|
127
|
+
- - '>='
|
140
128
|
- !ruby/object:Gem::Version
|
141
129
|
version: '0'
|
142
130
|
requirements: []
|
143
131
|
rubyforge_project:
|
144
|
-
rubygems_version:
|
132
|
+
rubygems_version: 2.0.3
|
145
133
|
signing_key:
|
146
|
-
specification_version:
|
134
|
+
specification_version: 4
|
147
135
|
summary: Compile an app, point the app at sinatra, run cucumber
|
148
136
|
test_files:
|
149
137
|
- spec/command_spec.rb
|
@@ -151,3 +139,4 @@ test_files:
|
|
151
139
|
- spec/cucumber_spec.rb
|
152
140
|
- spec/plist_spec.rb
|
153
141
|
- spec/spec_helper.rb
|
142
|
+
has_rdoc:
|