ilesspainfulclient-cucumber 0.0.6 → 0.0.7
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/.idea/iLessPainfulClient.iml +1 -1
- data/.idea/workspace.xml +21 -14
- data/Gemfile.lock +2 -2
- data/features-skeleton/support/hooks.rb +4 -4
- data/irb.sh +2 -0
- data/lib/ilesspainfulclient-cucumber/operations.rb +1 -1
- data/lib/ilesspainfulclient-cucumber/version.rb +1 -1
- metadata +10 -9
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
<orderEntry type="library" scope="PROVIDED" name="gherkin (v2.5.2, RVM: ruby-1.9.2-p290) [gem]" level="application" />
|
|
9
9
|
<orderEntry type="library" scope="PROVIDED" name="bundler (v1.0.21, RVM: ruby-1.9.2-p290) [gem]" level="application" />
|
|
10
10
|
<orderEntry type="library" scope="PROVIDED" name="term-ansicolor (v1.0.7, RVM: ruby-1.9.2-p290) [gem]" level="application" />
|
|
11
|
+
<orderEntry type="library" scope="PROVIDED" name="net-http-persistent (v2.3.2, RVM: ruby-1.9.2-p290) [gem]" level="application" />
|
|
11
12
|
<orderEntry type="library" scope="PROVIDED" name="rspec-core (v2.7.1, RVM: ruby-1.9.2-p290) [gem]" level="application" />
|
|
12
13
|
<orderEntry type="library" scope="PROVIDED" name="cucumber (v1.1.0, RVM: ruby-1.9.2-p290) [gem]" level="application" />
|
|
13
14
|
<orderEntry type="library" scope="PROVIDED" name="rspec (v2.7.0, RVM: ruby-1.9.2-p290) [gem]" level="application" />
|
|
@@ -16,7 +17,6 @@
|
|
|
16
17
|
<orderEntry type="library" scope="PROVIDED" name="diff-lcs (v1.1.3, RVM: ruby-1.9.2-p290) [gem]" level="application" />
|
|
17
18
|
<orderEntry type="library" scope="PROVIDED" name="builder (v3.0.0, RVM: ruby-1.9.2-p290) [gem]" level="application" />
|
|
18
19
|
<orderEntry type="library" scope="PROVIDED" name="rspec-mocks (v2.7.0, RVM: ruby-1.9.2-p290) [gem]" level="application" />
|
|
19
|
-
<orderEntry type="library" scope="PROVIDED" name="net-http-persistent (v2.3.1, RVM: ruby-1.9.2-p290) [gem]" level="application" />
|
|
20
20
|
</component>
|
|
21
21
|
</module>
|
|
22
22
|
|
data/.idea/workspace.xml
CHANGED
|
@@ -2,6 +2,11 @@
|
|
|
2
2
|
<project version="4">
|
|
3
3
|
<component name="ChangeListManager">
|
|
4
4
|
<list default="true" id="b674922a-80f6-43b8-8f19-8907d5a21bcc" name="Default" comment="">
|
|
5
|
+
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/iLessPainfulClient.iml" afterPath="$PROJECT_DIR$/.idea/iLessPainfulClient.iml" />
|
|
6
|
+
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/workspace.xml" afterPath="$PROJECT_DIR$/.idea/workspace.xml" />
|
|
7
|
+
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/Gemfile.lock" afterPath="$PROJECT_DIR$/Gemfile.lock" />
|
|
8
|
+
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/features-skeleton/support/hooks.rb" afterPath="$PROJECT_DIR$/features-skeleton/support/hooks.rb" />
|
|
9
|
+
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/lib/ilesspainfulclient-cucumber/operations.rb" afterPath="$PROJECT_DIR$/lib/ilesspainfulclient-cucumber/operations.rb" />
|
|
5
10
|
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/lib/ilesspainfulclient-cucumber/version.rb" afterPath="$PROJECT_DIR$/lib/ilesspainfulclient-cucumber/version.rb" />
|
|
6
11
|
</list>
|
|
7
12
|
<ignored path="iLessPainfulClient.iws" />
|
|
@@ -37,7 +42,7 @@
|
|
|
37
42
|
<file leaf-file-name="hooks.rb" pinned="false" current="false" current-in-tab="false">
|
|
38
43
|
<entry file="file://$PROJECT_DIR$/features-skeleton/support/hooks.rb">
|
|
39
44
|
<provider selected="true" editor-type-id="text-editor">
|
|
40
|
-
<state line="20" column="
|
|
45
|
+
<state line="20" column="76" selection-start="518" selection-end="518" vertical-scroll-proportion="0.0">
|
|
41
46
|
<folding />
|
|
42
47
|
</state>
|
|
43
48
|
</provider>
|
|
@@ -46,7 +51,7 @@
|
|
|
46
51
|
<file leaf-file-name="operations.rb" pinned="false" current="false" current-in-tab="false">
|
|
47
52
|
<entry file="file://$PROJECT_DIR$/lib/ilesspainfulclient-cucumber/operations.rb">
|
|
48
53
|
<provider selected="true" editor-type-id="text-editor">
|
|
49
|
-
<state line="
|
|
54
|
+
<state line="219" column="52" selection-start="6434" selection-end="6434" vertical-scroll-proportion="-4.3076925">
|
|
50
55
|
<folding />
|
|
51
56
|
</state>
|
|
52
57
|
</provider>
|
|
@@ -55,7 +60,7 @@
|
|
|
55
60
|
<file leaf-file-name="version.rb" pinned="false" current="true" current-in-tab="true">
|
|
56
61
|
<entry file="file://$PROJECT_DIR$/lib/ilesspainfulclient-cucumber/version.rb">
|
|
57
62
|
<provider selected="true" editor-type-id="text-editor">
|
|
58
|
-
<state line="2" column="
|
|
63
|
+
<state line="2" column="20" selection-start="64" selection-end="64" vertical-scroll-proportion="0.0795756">
|
|
59
64
|
<folding />
|
|
60
65
|
</state>
|
|
61
66
|
</provider>
|
|
@@ -64,7 +69,7 @@
|
|
|
64
69
|
<file leaf-file-name="lesspainful_steps.rb" pinned="false" current="false" current-in-tab="false">
|
|
65
70
|
<entry file="file://$PROJECT_DIR$/lib/ilesspainfulclient-cucumber/lesspainful_steps.rb">
|
|
66
71
|
<provider selected="true" editor-type-id="text-editor">
|
|
67
|
-
<state line="
|
|
72
|
+
<state line="23" column="35" selection-start="572" selection-end="572" vertical-scroll-proportion="0.0">
|
|
68
73
|
<folding />
|
|
69
74
|
</state>
|
|
70
75
|
</provider>
|
|
@@ -97,8 +102,8 @@
|
|
|
97
102
|
<option value="$PROJECT_DIR$/lib/ilesspainfulclient-cucumber/lesspainful_steps.rb" />
|
|
98
103
|
<option value="$PROJECT_DIR$/features-skeleton/my_first.feature" />
|
|
99
104
|
<option value="$PROJECT_DIR$/bin/ilesspainful-skeleton" />
|
|
100
|
-
<option value="$PROJECT_DIR$/features-skeleton/support/hooks.rb" />
|
|
101
105
|
<option value="$PROJECT_DIR$/lib/ilesspainfulclient-cucumber/operations.rb" />
|
|
106
|
+
<option value="$PROJECT_DIR$/features-skeleton/support/hooks.rb" />
|
|
102
107
|
<option value="$PROJECT_DIR$/lib/ilesspainfulclient-cucumber/version.rb" />
|
|
103
108
|
</list>
|
|
104
109
|
</option>
|
|
@@ -412,9 +417,10 @@
|
|
|
412
417
|
<layout>
|
|
413
418
|
<window_info id="Changes" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
|
|
414
419
|
<window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
|
|
420
|
+
<window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.3050571" sideWeight="0.99576527" order="1" side_tool="false" content_ui="tabs" />
|
|
415
421
|
<window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="1" side_tool="true" content_ui="tabs" />
|
|
416
422
|
<window_info id="Dependency Viewer" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="11" side_tool="false" content_ui="tabs" />
|
|
417
|
-
<window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.36615384" sideWeight="0.
|
|
423
|
+
<window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.36615384" sideWeight="0.6949429" order="0" side_tool="false" content_ui="tabs" />
|
|
418
424
|
<window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
|
|
419
425
|
<window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
|
|
420
426
|
<window_info id="JsTestDriver Server" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="10" side_tool="false" content_ui="tabs" />
|
|
@@ -422,7 +428,6 @@
|
|
|
422
428
|
<window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />
|
|
423
429
|
<window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
|
|
424
430
|
<window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
|
|
425
|
-
<window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.30588236" sideWeight="0.99576527" order="1" side_tool="false" content_ui="tabs" />
|
|
426
431
|
<window_info id="Messages" active="true" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.32863188" sideWeight="0.5" order="9" side_tool="false" content_ui="tabs" />
|
|
427
432
|
<window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
|
|
428
433
|
<window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" />
|
|
@@ -532,28 +537,30 @@
|
|
|
532
537
|
<state line="2" column="23" selection-start="69" selection-end="69" vertical-scroll-proportion="0.0" />
|
|
533
538
|
</provider>
|
|
534
539
|
</entry>
|
|
535
|
-
<entry file="file://$PROJECT_DIR$/
|
|
540
|
+
<entry file="file://$PROJECT_DIR$/lib/ilesspainfulclient-cucumber/lesspainful_steps.rb">
|
|
536
541
|
<provider selected="true" editor-type-id="text-editor">
|
|
537
|
-
<state line="
|
|
542
|
+
<state line="23" column="35" selection-start="572" selection-end="572" vertical-scroll-proportion="0.0">
|
|
543
|
+
<folding />
|
|
544
|
+
</state>
|
|
538
545
|
</provider>
|
|
539
546
|
</entry>
|
|
540
|
-
<entry file="file://$PROJECT_DIR$/lib/ilesspainfulclient-cucumber/
|
|
547
|
+
<entry file="file://$PROJECT_DIR$/lib/ilesspainfulclient-cucumber/operations.rb">
|
|
541
548
|
<provider selected="true" editor-type-id="text-editor">
|
|
542
|
-
<state line="
|
|
549
|
+
<state line="219" column="52" selection-start="6434" selection-end="6434" vertical-scroll-proportion="-4.3076925">
|
|
543
550
|
<folding />
|
|
544
551
|
</state>
|
|
545
552
|
</provider>
|
|
546
553
|
</entry>
|
|
547
|
-
<entry file="file://$PROJECT_DIR$/
|
|
554
|
+
<entry file="file://$PROJECT_DIR$/features-skeleton/support/hooks.rb">
|
|
548
555
|
<provider selected="true" editor-type-id="text-editor">
|
|
549
|
-
<state line="
|
|
556
|
+
<state line="20" column="76" selection-start="518" selection-end="518" vertical-scroll-proportion="0.0">
|
|
550
557
|
<folding />
|
|
551
558
|
</state>
|
|
552
559
|
</provider>
|
|
553
560
|
</entry>
|
|
554
561
|
<entry file="file://$PROJECT_DIR$/lib/ilesspainfulclient-cucumber/version.rb">
|
|
555
562
|
<provider selected="true" editor-type-id="text-editor">
|
|
556
|
-
<state line="2" column="
|
|
563
|
+
<state line="2" column="20" selection-start="64" selection-end="64" vertical-scroll-proportion="0.0795756">
|
|
557
564
|
<folding />
|
|
558
565
|
</state>
|
|
559
566
|
</provider>
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
ilesspainfulclient-cucumber (0.0.
|
|
4
|
+
ilesspainfulclient-cucumber (0.0.6)
|
|
5
5
|
cucumber
|
|
6
6
|
json
|
|
7
7
|
net-http-persistent
|
|
@@ -21,7 +21,7 @@ GEM
|
|
|
21
21
|
gherkin (2.5.2)
|
|
22
22
|
json (>= 1.4.6)
|
|
23
23
|
json (1.6.1)
|
|
24
|
-
net-http-persistent (2.3.
|
|
24
|
+
net-http-persistent (2.3.2)
|
|
25
25
|
rspec (2.7.0)
|
|
26
26
|
rspec-core (~> 2.7.0)
|
|
27
27
|
rspec-expectations (~> 2.7.0)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Before do |scenario|
|
|
2
2
|
begin
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
Step_index = 0
|
|
4
|
+
Step_line = scenario.raw_steps[Step_index].line
|
|
5
5
|
rescue Exception => e
|
|
6
6
|
puts "#{Time.now} - Exception:#{e}"
|
|
7
7
|
end
|
|
@@ -17,6 +17,6 @@ end
|
|
|
17
17
|
|
|
18
18
|
AfterStep do |scenario|
|
|
19
19
|
#Håndtering af den situation hvor Feature/Scenario/steps er mulitline
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
Step_index = Step_index + 1
|
|
21
|
+
Step_line = scenario.raw_steps[Step_index].line unless scenario.raw_steps[Step_index].nil?
|
|
22
22
|
end
|
data/irb.sh
ADDED
|
@@ -217,7 +217,7 @@ module Operations
|
|
|
217
217
|
f = %x[idevicescreenshot -u #{ENV['UUID']}]
|
|
218
218
|
line=f.strip().split("\n").last
|
|
219
219
|
filename=line.split(" ").last
|
|
220
|
-
outfile = "#{ENV['SCREENSHOT_PATH_PREFIX']}_#{
|
|
220
|
+
outfile = "#{ENV['SCREENSHOT_PATH_PREFIX']}_#{Step_line}.png"
|
|
221
221
|
if File.exist?filename
|
|
222
222
|
puts "converting screenshot: #{filename} to 1.png"
|
|
223
223
|
system("convert #{filename} to #{outfile}")
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ilesspainfulclient-cucumber
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.7
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -13,7 +13,7 @@ date: 2011-12-01 00:00:00.000000000Z
|
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: cucumber
|
|
16
|
-
requirement: &
|
|
16
|
+
requirement: &70229323596020 !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: *
|
|
24
|
+
version_requirements: *70229323596020
|
|
25
25
|
- !ruby/object:Gem::Dependency
|
|
26
26
|
name: rspec
|
|
27
|
-
requirement: &
|
|
27
|
+
requirement: &70229323595500 !ruby/object:Gem::Requirement
|
|
28
28
|
none: false
|
|
29
29
|
requirements:
|
|
30
30
|
- - ! '>='
|
|
@@ -32,10 +32,10 @@ dependencies:
|
|
|
32
32
|
version: '2.0'
|
|
33
33
|
type: :runtime
|
|
34
34
|
prerelease: false
|
|
35
|
-
version_requirements: *
|
|
35
|
+
version_requirements: *70229323595500
|
|
36
36
|
- !ruby/object:Gem::Dependency
|
|
37
37
|
name: json
|
|
38
|
-
requirement: &
|
|
38
|
+
requirement: &70229323595080 !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: *
|
|
46
|
+
version_requirements: *70229323595080
|
|
47
47
|
- !ruby/object:Gem::Dependency
|
|
48
48
|
name: net-http-persistent
|
|
49
|
-
requirement: &
|
|
49
|
+
requirement: &70229323594620 !ruby/object:Gem::Requirement
|
|
50
50
|
none: false
|
|
51
51
|
requirements:
|
|
52
52
|
- - ! '>='
|
|
@@ -54,7 +54,7 @@ dependencies:
|
|
|
54
54
|
version: '0'
|
|
55
55
|
type: :runtime
|
|
56
56
|
prerelease: false
|
|
57
|
-
version_requirements: *
|
|
57
|
+
version_requirements: *70229323594620
|
|
58
58
|
description: Use cucumber to test native iOS apps running iLessPainful Server
|
|
59
59
|
email:
|
|
60
60
|
- karl.krukow@gmail.com
|
|
@@ -86,6 +86,7 @@ files:
|
|
|
86
86
|
- features-skeleton/support/env.rb
|
|
87
87
|
- features-skeleton/support/hooks.rb
|
|
88
88
|
- ilesspainfulclient.gemspec
|
|
89
|
+
- irb.sh
|
|
89
90
|
- lib/.idea/.name
|
|
90
91
|
- lib/.idea/encodings.xml
|
|
91
92
|
- lib/.idea/lib.iml
|