iCuke 0.4.5 → 0.4.6
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.
- data/Rakefile +2 -1
- data/VERSION +1 -1
- data/ext/iCuke/Viewer.m +14 -2
- data/ext/iCuke/libicuke.dylib +0 -0
- data/iCuke.gemspec +6 -2
- metadata +16 -3
data/Rakefile
CHANGED
|
@@ -10,9 +10,10 @@ begin
|
|
|
10
10
|
gem.email = "rob@the-it-refinery.co.uk"
|
|
11
11
|
gem.homepage = "http://github.com/unboxed/iCuke"
|
|
12
12
|
gem.authors = ["Rob Holland"]
|
|
13
|
-
gem.
|
|
13
|
+
gem.add_dependency "cucumber", ">= 0"
|
|
14
14
|
gem.add_dependency "rb-appscript", ">= 0"
|
|
15
15
|
gem.add_dependency "httparty", ">= 0"
|
|
16
|
+
gem.add_dependency "nokogiri", ">= 0"
|
|
16
17
|
gem.extensions = ['ext/iCuke/Rakefile']
|
|
17
18
|
gem.files += ['ext/iCuke/libicuke.dylib']
|
|
18
19
|
end
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.4.
|
|
1
|
+
0.4.6
|
data/ext/iCuke/Viewer.m
CHANGED
|
@@ -24,13 +24,25 @@ static Viewer *sharedViewer = nil;
|
|
|
24
24
|
[xml appendFormat: @"<%@", NSStringFromClass([self class])];
|
|
25
25
|
[self appendTraitsToXml: xml];
|
|
26
26
|
if ([[self accessibilityLabel] length] > 0) {
|
|
27
|
-
|
|
27
|
+
NSString *escaped_label = [self accessibilityLabel];
|
|
28
|
+
escaped_label = [escaped_label stringByReplacingOccurrencesOfString: @"&" withString: @"&"];
|
|
29
|
+
escaped_label = [escaped_label stringByReplacingOccurrencesOfString: @"'" withString: @"""];
|
|
30
|
+
escaped_label = [escaped_label stringByReplacingOccurrencesOfString: @"\\" withString: @"'"];
|
|
31
|
+
escaped_label = [escaped_label stringByReplacingOccurrencesOfString: @">" withString: @">"];
|
|
32
|
+
escaped_label = [escaped_label stringByReplacingOccurrencesOfString: @"<" withString: @"<"];
|
|
33
|
+
[xml appendFormat: @"label=\"%@\" ", escaped_label];
|
|
28
34
|
}
|
|
29
35
|
if ([[self accessibilityHint] length] > 0) {
|
|
30
36
|
[xml appendFormat: @"hint=\"%@\" ", [self accessibilityHint]];
|
|
31
37
|
}
|
|
32
38
|
if ([[self accessibilityValue] length] > 0) {
|
|
33
|
-
|
|
39
|
+
NSString *escaped_value = [self accessibilityValue];
|
|
40
|
+
escaped_value = [escaped_value stringByReplacingOccurrencesOfString: @"&" withString: @"&"];
|
|
41
|
+
escaped_value = [escaped_value stringByReplacingOccurrencesOfString: @"'" withString: @"""];
|
|
42
|
+
escaped_value = [escaped_value stringByReplacingOccurrencesOfString: @"\\" withString: @"'"];
|
|
43
|
+
escaped_value = [escaped_value stringByReplacingOccurrencesOfString: @">" withString: @">"];
|
|
44
|
+
escaped_value = [escaped_value stringByReplacingOccurrencesOfString: @"<" withString: @"<"];
|
|
45
|
+
[xml appendFormat: @"value=\"%@\" ", escaped_value];
|
|
34
46
|
}
|
|
35
47
|
[xml appendString: @">"];
|
|
36
48
|
}
|
|
Binary file
|
data/iCuke.gemspec
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Gem::Specification.new do |s|
|
|
7
7
|
s.name = %q{iCuke}
|
|
8
|
-
s.version = "0.4.
|
|
8
|
+
s.version = "0.4.6"
|
|
9
9
|
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
|
11
11
|
s.authors = ["Rob Holland"]
|
|
@@ -77,6 +77,7 @@ Gem::Specification.new do |s|
|
|
|
77
77
|
"ext/iCuke/json/SBJsonParser.m",
|
|
78
78
|
"ext/iCuke/json/SBJsonWriter.h",
|
|
79
79
|
"ext/iCuke/json/SBJsonWriter.m",
|
|
80
|
+
"ext/iCuke/libicuke.dylib",
|
|
80
81
|
"features/icuke.feature",
|
|
81
82
|
"features/support/env.rb",
|
|
82
83
|
"iCuke.gemspec",
|
|
@@ -96,18 +97,21 @@ Gem::Specification.new do |s|
|
|
|
96
97
|
s.specification_version = 3
|
|
97
98
|
|
|
98
99
|
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
|
99
|
-
s.
|
|
100
|
+
s.add_runtime_dependency(%q<cucumber>, [">= 0"])
|
|
100
101
|
s.add_runtime_dependency(%q<rb-appscript>, [">= 0"])
|
|
101
102
|
s.add_runtime_dependency(%q<httparty>, [">= 0"])
|
|
103
|
+
s.add_runtime_dependency(%q<nokogiri>, [">= 0"])
|
|
102
104
|
else
|
|
103
105
|
s.add_dependency(%q<cucumber>, [">= 0"])
|
|
104
106
|
s.add_dependency(%q<rb-appscript>, [">= 0"])
|
|
105
107
|
s.add_dependency(%q<httparty>, [">= 0"])
|
|
108
|
+
s.add_dependency(%q<nokogiri>, [">= 0"])
|
|
106
109
|
end
|
|
107
110
|
else
|
|
108
111
|
s.add_dependency(%q<cucumber>, [">= 0"])
|
|
109
112
|
s.add_dependency(%q<rb-appscript>, [">= 0"])
|
|
110
113
|
s.add_dependency(%q<httparty>, [">= 0"])
|
|
114
|
+
s.add_dependency(%q<nokogiri>, [">= 0"])
|
|
111
115
|
end
|
|
112
116
|
end
|
|
113
117
|
|
metadata
CHANGED
|
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
|
5
5
|
segments:
|
|
6
6
|
- 0
|
|
7
7
|
- 4
|
|
8
|
-
-
|
|
9
|
-
version: 0.4.
|
|
8
|
+
- 6
|
|
9
|
+
version: 0.4.6
|
|
10
10
|
platform: ruby
|
|
11
11
|
authors:
|
|
12
12
|
- Rob Holland
|
|
@@ -27,7 +27,7 @@ dependencies:
|
|
|
27
27
|
segments:
|
|
28
28
|
- 0
|
|
29
29
|
version: "0"
|
|
30
|
-
type: :
|
|
30
|
+
type: :runtime
|
|
31
31
|
version_requirements: *id001
|
|
32
32
|
- !ruby/object:Gem::Dependency
|
|
33
33
|
name: rb-appscript
|
|
@@ -53,6 +53,18 @@ dependencies:
|
|
|
53
53
|
version: "0"
|
|
54
54
|
type: :runtime
|
|
55
55
|
version_requirements: *id003
|
|
56
|
+
- !ruby/object:Gem::Dependency
|
|
57
|
+
name: nokogiri
|
|
58
|
+
prerelease: false
|
|
59
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
|
60
|
+
requirements:
|
|
61
|
+
- - ">="
|
|
62
|
+
- !ruby/object:Gem::Version
|
|
63
|
+
segments:
|
|
64
|
+
- 0
|
|
65
|
+
version: "0"
|
|
66
|
+
type: :runtime
|
|
67
|
+
version_requirements: *id004
|
|
56
68
|
description: Cucumber support for iPhone applications
|
|
57
69
|
email: rob@the-it-refinery.co.uk
|
|
58
70
|
executables: []
|
|
@@ -122,6 +134,7 @@ files:
|
|
|
122
134
|
- ext/iCuke/json/SBJsonParser.m
|
|
123
135
|
- ext/iCuke/json/SBJsonWriter.h
|
|
124
136
|
- ext/iCuke/json/SBJsonWriter.m
|
|
137
|
+
- ext/iCuke/libicuke.dylib
|
|
125
138
|
- features/icuke.feature
|
|
126
139
|
- features/support/env.rb
|
|
127
140
|
- iCuke.gemspec
|