scenario_server 0.0.1 → 0.0.2
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 +4 -4
- data/.idea/scenarios.iml +1 -0
- data/.idea/workspace.xml +135 -113
- data/Gemfile.lock +1 -1
- data/README.md +12 -12
- data/lib/scenarios/application/app.rb +25 -2
- data/lib/scenarios/config.yml +2 -0
- data/lib/scenarios/scenario_db.rb +0 -1
- data/lib/scenarios/version.rb +1 -1
- data/scenarios.gemspec +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b6c29d0e4f149801af46a0549616818437120ca3
|
|
4
|
+
data.tar.gz: 07d1a1e67483b0e539b0e400ad13a0914a84e582
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 24b28136e55301274c3422eb559606d97610ee071d23d15563ff6e32895dbe08e6e10742b15e6a07afc520847adb71d7fc69259ea760d892157f666c66f200e3
|
|
7
|
+
data.tar.gz: 0a77a2f3e88996d3f6538407e16dd995d2aa89144b69e2db0ebda031c4363eee7a26b2e89d7eccaa9dbd60a0daa369dbfecae23eedac002044ef734d80eb0465
|
data/.idea/scenarios.iml
CHANGED
|
@@ -51,6 +51,7 @@
|
|
|
51
51
|
<orderEntry type="jdk" jdkName="RVM: ruby-2.0.0-p195" jdkType="RUBY_SDK" />
|
|
52
52
|
<orderEntry type="sourceFolder" forTests="false" />
|
|
53
53
|
<orderEntry type="library" scope="PROVIDED" name="backports (v3.6.0, RVM: ruby-2.0.0-p195) [gem]" level="application" />
|
|
54
|
+
<orderEntry type="library" scope="PROVIDED" name="bundler (v1.5.2, RVM: ruby-2.0.0-p195) [gem]" level="application" />
|
|
54
55
|
<orderEntry type="library" scope="PROVIDED" name="diff-lcs (v1.2.5, RVM: ruby-2.0.0-p195) [gem]" level="application" />
|
|
55
56
|
<orderEntry type="library" scope="PROVIDED" name="json_spec (v1.1.1, RVM: ruby-2.0.0-p195) [gem]" level="application" />
|
|
56
57
|
<orderEntry type="library" scope="PROVIDED" name="multi_json (v1.8.4, RVM: ruby-2.0.0-p195) [gem]" level="application" />
|
data/.idea/workspace.xml
CHANGED
|
@@ -2,12 +2,7 @@
|
|
|
2
2
|
<project version="4">
|
|
3
3
|
<component name="ChangeListManager">
|
|
4
4
|
<list default="true" id="ef638c72-41fe-44e2-a1f9-626aa693b0d3" name="Default" comment="">
|
|
5
|
-
<change type="
|
|
6
|
-
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/lib/scenarios/application/app.rb" afterPath="$PROJECT_DIR$/lib/scenarios/application/app.rb" />
|
|
7
|
-
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/spec/app_spec.rb" afterPath="$PROJECT_DIR$/spec/app_spec.rb" />
|
|
8
|
-
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/lib/scenarios/scenario_db.rb" afterPath="$PROJECT_DIR$/lib/scenarios/scenario_db.rb" />
|
|
9
|
-
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/spec/spec_helper.rb" afterPath="$PROJECT_DIR$/spec/spec_helper.rb" />
|
|
10
|
-
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/workspace.xml" afterPath="$PROJECT_DIR$/.idea/workspace.xml" />
|
|
5
|
+
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/lib/scenarios/version.rb" afterPath="$PROJECT_DIR$/lib/scenarios/version.rb" />
|
|
11
6
|
</list>
|
|
12
7
|
<ignored path="scenarios.iws" />
|
|
13
8
|
<ignored path=".idea/workspace.xml" />
|
|
@@ -36,63 +31,61 @@
|
|
|
36
31
|
<file leaf-file-name="app.rb" pinned="false" current="false" current-in-tab="false">
|
|
37
32
|
<entry file="file://$PROJECT_DIR$/lib/scenarios/application/app.rb">
|
|
38
33
|
<provider selected="true" editor-type-id="text-editor">
|
|
39
|
-
<state line="
|
|
34
|
+
<state line="22" column="19" selection-start="721" selection-end="721" vertical-scroll-proportion="-12.692307" vertical-offset="0" max-vertical-offset="3945">
|
|
40
35
|
<folding />
|
|
41
36
|
</state>
|
|
42
37
|
</provider>
|
|
43
38
|
</entry>
|
|
44
39
|
</file>
|
|
45
|
-
<file leaf-file-name="
|
|
46
|
-
<entry file="file://$PROJECT_DIR$/lib/scenarios/
|
|
40
|
+
<file leaf-file-name="config.yml" pinned="false" current="false" current-in-tab="false">
|
|
41
|
+
<entry file="file://$PROJECT_DIR$/lib/scenarios/config.yml">
|
|
47
42
|
<provider selected="true" editor-type-id="text-editor">
|
|
48
|
-
<state line="
|
|
49
|
-
<folding
|
|
50
|
-
<element signature="n#style#0;n#form#0;n#td#3;n#tr#0;n#tbody#0;n#table#0;n#body#0;n#html#0;n#!!top" expanded="true" />
|
|
51
|
-
</folding>
|
|
43
|
+
<state line="0" column="12" selection-start="12" selection-end="12" vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="120">
|
|
44
|
+
<folding />
|
|
52
45
|
</state>
|
|
53
46
|
</provider>
|
|
54
47
|
</entry>
|
|
55
48
|
</file>
|
|
56
|
-
<file leaf-file-name="
|
|
57
|
-
<entry file="file://$PROJECT_DIR$/
|
|
49
|
+
<file leaf-file-name="scenarios.rb" pinned="false" current="false" current-in-tab="false">
|
|
50
|
+
<entry file="file://$PROJECT_DIR$/lib/scenarios.rb">
|
|
58
51
|
<provider selected="true" editor-type-id="text-editor">
|
|
59
|
-
<state line="
|
|
52
|
+
<state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="165">
|
|
60
53
|
<folding />
|
|
61
54
|
</state>
|
|
62
55
|
</provider>
|
|
63
56
|
</entry>
|
|
64
57
|
</file>
|
|
65
|
-
<file leaf-file-name="
|
|
66
|
-
<entry file="file://$PROJECT_DIR$/
|
|
58
|
+
<file leaf-file-name="scenarios.gemspec" pinned="false" current="false" current-in-tab="false">
|
|
59
|
+
<entry file="file://$PROJECT_DIR$/scenarios.gemspec">
|
|
67
60
|
<provider selected="true" editor-type-id="text-editor">
|
|
68
|
-
<state line="
|
|
61
|
+
<state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="570">
|
|
69
62
|
<folding />
|
|
70
63
|
</state>
|
|
71
64
|
</provider>
|
|
72
65
|
</entry>
|
|
73
66
|
</file>
|
|
74
|
-
<file leaf-file-name="
|
|
75
|
-
<entry file="file://$PROJECT_DIR$/
|
|
67
|
+
<file leaf-file-name="version.rb" pinned="false" current="true" current-in-tab="true">
|
|
68
|
+
<entry file="file://$PROJECT_DIR$/lib/scenarios/version.rb">
|
|
76
69
|
<provider selected="true" editor-type-id="text-editor">
|
|
77
|
-
<state line="
|
|
70
|
+
<state line="1" column="18" selection-start="35" selection-end="35" vertical-scroll-proportion="0.021770682" vertical-offset="0" max-vertical-offset="689">
|
|
78
71
|
<folding />
|
|
79
72
|
</state>
|
|
80
73
|
</provider>
|
|
81
74
|
</entry>
|
|
82
75
|
</file>
|
|
83
|
-
<file leaf-file-name="
|
|
84
|
-
<entry file="file://$PROJECT_DIR$/
|
|
76
|
+
<file leaf-file-name="scenariosdb" pinned="false" current="false" current-in-tab="false">
|
|
77
|
+
<entry file="file://$PROJECT_DIR$/bin/scenariosdb">
|
|
85
78
|
<provider selected="true" editor-type-id="text-editor">
|
|
86
|
-
<state line="
|
|
79
|
+
<state line="63" column="51" selection-start="1771" selection-end="1771" vertical-scroll-proportion="0.0" vertical-offset="582" max-vertical-offset="1245">
|
|
87
80
|
<folding />
|
|
88
81
|
</state>
|
|
89
82
|
</provider>
|
|
90
83
|
</entry>
|
|
91
84
|
</file>
|
|
92
|
-
<file leaf-file-name="
|
|
93
|
-
<entry file="file://$PROJECT_DIR$/
|
|
85
|
+
<file leaf-file-name="scenario_db.rb" pinned="false" current="false" current-in-tab="false">
|
|
86
|
+
<entry file="file://$PROJECT_DIR$/lib/scenarios/scenario_db.rb">
|
|
94
87
|
<provider selected="true" editor-type-id="text-editor">
|
|
95
|
-
<state line="
|
|
88
|
+
<state line="134" column="36" selection-start="3250" selection-end="3250" vertical-scroll-proportion="0.0" vertical-offset="1679" max-vertical-offset="4320">
|
|
96
89
|
<folding />
|
|
97
90
|
</state>
|
|
98
91
|
</provider>
|
|
@@ -117,10 +110,14 @@
|
|
|
117
110
|
<option value="$PROJECT_DIR$/lib/scenarios/application/views/route.erb" />
|
|
118
111
|
<option value="$PROJECT_DIR$/lib/scenarios/application/views/scenario.erb" />
|
|
119
112
|
<option value="$PROJECT_DIR$/spec/spec_helper.rb" />
|
|
120
|
-
<option value="$PROJECT_DIR$/lib/scenarios/application/app.rb" />
|
|
121
|
-
<option value="$PROJECT_DIR$/lib/scenarios/scenario_db.rb" />
|
|
122
113
|
<option value="$PROJECT_DIR$/lib/scenarios/application/app_helpers.rb" />
|
|
123
114
|
<option value="$PROJECT_DIR$/spec/app_spec.rb" />
|
|
115
|
+
<option value="$PROJECT_DIR$/.ssconfig" />
|
|
116
|
+
<option value="$PROJECT_DIR$/scenarios.gemspec" />
|
|
117
|
+
<option value="$PROJECT_DIR$/lib/scenarios/scenario_db.rb" />
|
|
118
|
+
<option value="$PROJECT_DIR$/lib/scenarios/application/app.rb" />
|
|
119
|
+
<option value="$PROJECT_DIR$/lib/scenarios/config.yml" />
|
|
120
|
+
<option value="$PROJECT_DIR$/lib/scenarios/version.rb" />
|
|
124
121
|
</list>
|
|
125
122
|
</option>
|
|
126
123
|
</component>
|
|
@@ -163,21 +160,7 @@
|
|
|
163
160
|
<option name="myItemId" value="" />
|
|
164
161
|
<option name="myItemType" value="" />
|
|
165
162
|
</PATH_ELEMENT>
|
|
166
|
-
<PATH_ELEMENT USER_OBJECT="
|
|
167
|
-
<option name="myItemId" value="" />
|
|
168
|
-
<option name="myItemType" value="" />
|
|
169
|
-
</PATH_ELEMENT>
|
|
170
|
-
</PATH>
|
|
171
|
-
<PATH>
|
|
172
|
-
<PATH_ELEMENT USER_OBJECT="Root">
|
|
173
|
-
<option name="myItemId" value="" />
|
|
174
|
-
<option name="myItemType" value="" />
|
|
175
|
-
</PATH_ELEMENT>
|
|
176
|
-
<PATH_ELEMENT USER_OBJECT="scenarios">
|
|
177
|
-
<option name="myItemId" value="" />
|
|
178
|
-
<option name="myItemType" value="" />
|
|
179
|
-
</PATH_ELEMENT>
|
|
180
|
-
<PATH_ELEMENT USER_OBJECT="spec">
|
|
163
|
+
<PATH_ELEMENT USER_OBJECT="scenario_server">
|
|
181
164
|
<option name="myItemId" value="" />
|
|
182
165
|
<option name="myItemType" value="" />
|
|
183
166
|
</PATH_ELEMENT>
|
|
@@ -187,7 +170,7 @@
|
|
|
187
170
|
<option name="myItemId" value="" />
|
|
188
171
|
<option name="myItemType" value="" />
|
|
189
172
|
</PATH_ELEMENT>
|
|
190
|
-
<PATH_ELEMENT USER_OBJECT="
|
|
173
|
+
<PATH_ELEMENT USER_OBJECT="scenario_server">
|
|
191
174
|
<option name="myItemId" value="" />
|
|
192
175
|
<option name="myItemType" value="" />
|
|
193
176
|
</PATH_ELEMENT>
|
|
@@ -201,7 +184,7 @@
|
|
|
201
184
|
<option name="myItemId" value="" />
|
|
202
185
|
<option name="myItemType" value="" />
|
|
203
186
|
</PATH_ELEMENT>
|
|
204
|
-
<PATH_ELEMENT USER_OBJECT="
|
|
187
|
+
<PATH_ELEMENT USER_OBJECT="scenario_server">
|
|
205
188
|
<option name="myItemId" value="" />
|
|
206
189
|
<option name="myItemType" value="" />
|
|
207
190
|
</PATH_ELEMENT>
|
|
@@ -214,28 +197,6 @@
|
|
|
214
197
|
<option name="myItemType" value="" />
|
|
215
198
|
</PATH_ELEMENT>
|
|
216
199
|
</PATH>
|
|
217
|
-
<PATH>
|
|
218
|
-
<PATH_ELEMENT USER_OBJECT="Root">
|
|
219
|
-
<option name="myItemId" value="" />
|
|
220
|
-
<option name="myItemType" value="" />
|
|
221
|
-
</PATH_ELEMENT>
|
|
222
|
-
<PATH_ELEMENT USER_OBJECT="scenarios">
|
|
223
|
-
<option name="myItemId" value="" />
|
|
224
|
-
<option name="myItemType" value="" />
|
|
225
|
-
</PATH_ELEMENT>
|
|
226
|
-
<PATH_ELEMENT USER_OBJECT="lib">
|
|
227
|
-
<option name="myItemId" value="" />
|
|
228
|
-
<option name="myItemType" value="" />
|
|
229
|
-
</PATH_ELEMENT>
|
|
230
|
-
<PATH_ELEMENT USER_OBJECT="scenarios">
|
|
231
|
-
<option name="myItemId" value="" />
|
|
232
|
-
<option name="myItemType" value="" />
|
|
233
|
-
</PATH_ELEMENT>
|
|
234
|
-
<PATH_ELEMENT USER_OBJECT="application">
|
|
235
|
-
<option name="myItemId" value="" />
|
|
236
|
-
<option name="myItemType" value="" />
|
|
237
|
-
</PATH_ELEMENT>
|
|
238
|
-
</PATH>
|
|
239
200
|
</subPane>
|
|
240
201
|
</pane>
|
|
241
202
|
<pane id="ProjectPane">
|
|
@@ -590,15 +551,15 @@
|
|
|
590
551
|
<window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.39888424" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
|
|
591
552
|
<window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="2" side_tool="true" content_ui="tabs" />
|
|
592
553
|
<window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="8" side_tool="true" content_ui="tabs" />
|
|
593
|
-
<window_info id="Run" active="
|
|
554
|
+
<window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.56345886" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
|
|
594
555
|
<window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="9" side_tool="false" content_ui="tabs" />
|
|
595
556
|
<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" />
|
|
596
557
|
<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" />
|
|
597
|
-
<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" />
|
|
598
558
|
<window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.66248256" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
|
|
559
|
+
<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" />
|
|
599
560
|
<window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="SLIDING" type="SLIDING" visible="false" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
|
|
600
|
-
<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" />
|
|
601
561
|
<window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" />
|
|
562
|
+
<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" />
|
|
602
563
|
</layout>
|
|
603
564
|
</component>
|
|
604
565
|
<component name="Vcs.Log.UiProperties">
|
|
@@ -620,13 +581,60 @@
|
|
|
620
581
|
</breakpoint-manager>
|
|
621
582
|
</component>
|
|
622
583
|
<component name="editorHistoryManager">
|
|
623
|
-
<entry file="file://$PROJECT_DIR$/
|
|
584
|
+
<entry file="file://$PROJECT_DIR$/lib/scenarios/application/app.rb">
|
|
624
585
|
<provider selected="true" editor-type-id="text-editor">
|
|
625
|
-
<state line="
|
|
586
|
+
<state line="37" column="28" selection-start="1108" selection-end="1152" vertical-scroll-proportion="0.0" vertical-offset="465" max-vertical-offset="3600">
|
|
626
587
|
<folding />
|
|
627
588
|
</state>
|
|
628
589
|
</provider>
|
|
629
590
|
</entry>
|
|
591
|
+
<entry file="file://$PROJECT_DIR$/lib/scenarios/application/views/scenario.erb">
|
|
592
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
593
|
+
<state line="46" column="37" selection-start="1217" selection-end="1217" vertical-scroll-proportion="0.0" vertical-offset="250" max-vertical-offset="915">
|
|
594
|
+
<folding />
|
|
595
|
+
</state>
|
|
596
|
+
</provider>
|
|
597
|
+
</entry>
|
|
598
|
+
<entry file="file://$PROJECT_DIR$/spec/app_spec.rb">
|
|
599
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
600
|
+
<state line="55" column="0" selection-start="1101" selection-end="1101" vertical-scroll-proportion="0.0" vertical-offset="720" max-vertical-offset="2325">
|
|
601
|
+
<folding />
|
|
602
|
+
</state>
|
|
603
|
+
</provider>
|
|
604
|
+
</entry>
|
|
605
|
+
<entry file="file://$PROJECT_DIR$/lib/scenarios/application/app_helpers.rb">
|
|
606
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
607
|
+
<state line="21" column="48" selection-start="418" selection-end="418" vertical-scroll-proportion="0.0" vertical-offset="315" max-vertical-offset="540">
|
|
608
|
+
<folding />
|
|
609
|
+
</state>
|
|
610
|
+
</provider>
|
|
611
|
+
</entry>
|
|
612
|
+
<entry file="file://$PROJECT_DIR$/bin/scenariosdb">
|
|
613
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
614
|
+
<state line="63" column="51" selection-start="1771" selection-end="1771" vertical-scroll-proportion="0.0" vertical-offset="582" max-vertical-offset="1245">
|
|
615
|
+
<folding />
|
|
616
|
+
</state>
|
|
617
|
+
</provider>
|
|
618
|
+
</entry>
|
|
619
|
+
<entry file="file://$PROJECT_DIR$/lib/scenarios/scenario_db.rb">
|
|
620
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
621
|
+
<state line="220" column="7" selection-start="5495" selection-end="5495" vertical-scroll-proportion="0.0" vertical-offset="2880" max-vertical-offset="4335">
|
|
622
|
+
<folding />
|
|
623
|
+
</state>
|
|
624
|
+
</provider>
|
|
625
|
+
</entry>
|
|
626
|
+
<entry file="file://$PROJECT_DIR$/spec/spec_helper.rb">
|
|
627
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
628
|
+
<state line="43" column="0" selection-start="1159" selection-end="1159" vertical-scroll-proportion="0.0" vertical-offset="106" max-vertical-offset="795">
|
|
629
|
+
<folding />
|
|
630
|
+
</state>
|
|
631
|
+
</provider>
|
|
632
|
+
</entry>
|
|
633
|
+
<entry file="file://$PROJECT_DIR$/README.md">
|
|
634
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
635
|
+
<state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="555" />
|
|
636
|
+
</provider>
|
|
637
|
+
</entry>
|
|
630
638
|
<entry file="file://$PROJECT_DIR$/lib/scenarios/application/app.rb">
|
|
631
639
|
<provider selected="true" editor-type-id="text-editor">
|
|
632
640
|
<state line="126" column="21" selection-start="4001" selection-end="4001" vertical-scroll-proportion="0.0" vertical-offset="1437" max-vertical-offset="2100">
|
|
@@ -637,9 +645,7 @@
|
|
|
637
645
|
<entry file="file://$PROJECT_DIR$/lib/scenarios/application/views/scenario.erb">
|
|
638
646
|
<provider selected="true" editor-type-id="text-editor">
|
|
639
647
|
<state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="150">
|
|
640
|
-
<folding
|
|
641
|
-
<element signature="n#style#0;n#form#0;n#td#3;n#tr#0;n#tbody#0;n#table#0;n#body#0;n#html#0;n#!!top" expanded="true" />
|
|
642
|
-
</folding>
|
|
648
|
+
<folding />
|
|
643
649
|
</state>
|
|
644
650
|
</provider>
|
|
645
651
|
</entry>
|
|
@@ -680,9 +686,7 @@
|
|
|
680
686
|
</entry>
|
|
681
687
|
<entry file="file://$PROJECT_DIR$/README.md">
|
|
682
688
|
<provider selected="true" editor-type-id="text-editor">
|
|
683
|
-
<state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="555"
|
|
684
|
-
<folding />
|
|
685
|
-
</state>
|
|
689
|
+
<state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="555" />
|
|
686
690
|
</provider>
|
|
687
691
|
</entry>
|
|
688
692
|
<entry file="file://$PROJECT_DIR$/lib/scenarios/application/app.rb">
|
|
@@ -720,16 +724,12 @@
|
|
|
720
724
|
</entry>
|
|
721
725
|
<entry file="file://$PROJECT_DIR$/README.md">
|
|
722
726
|
<provider selected="true" editor-type-id="text-editor">
|
|
723
|
-
<state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="676"
|
|
724
|
-
<folding />
|
|
725
|
-
</state>
|
|
727
|
+
<state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="676" />
|
|
726
728
|
</provider>
|
|
727
729
|
</entry>
|
|
728
730
|
<entry file="file://$USER_HOME$/.rvm/gems/ruby-2.0.0-p195/gems/sequel-4.7.0/lib/sequel/extensions/null_dataset.rb">
|
|
729
731
|
<provider selected="true" editor-type-id="text-editor">
|
|
730
|
-
<state line="66" column="10" selection-start="2019" selection-end="2019" vertical-scroll-proportion="0.33333334" vertical-offset="768" max-vertical-offset="1590"
|
|
731
|
-
<folding />
|
|
732
|
-
</state>
|
|
732
|
+
<state line="66" column="10" selection-start="2019" selection-end="2019" vertical-scroll-proportion="0.33333334" vertical-offset="768" max-vertical-offset="1590" />
|
|
733
733
|
</provider>
|
|
734
734
|
</entry>
|
|
735
735
|
<entry file="file://$USER_HOME$/.rvm/rubies/ruby-2.0.0-p195/lib/ruby/2.0.0/json.rb">
|
|
@@ -737,93 +737,115 @@
|
|
|
737
737
|
<state line="57" column="20" selection-start="1723" selection-end="1723" vertical-scroll-proportion="3.1325302" vertical-offset="75" max-vertical-offset="1020" />
|
|
738
738
|
</provider>
|
|
739
739
|
</entry>
|
|
740
|
-
<entry file="file://$PROJECT_DIR$/
|
|
740
|
+
<entry file="file://$PROJECT_DIR$/bin/scenariosdb">
|
|
741
741
|
<provider selected="true" editor-type-id="text-editor">
|
|
742
|
-
<state line="
|
|
742
|
+
<state line="63" column="51" selection-start="1771" selection-end="1771" vertical-scroll-proportion="0.0" vertical-offset="582" max-vertical-offset="1245">
|
|
743
743
|
<folding />
|
|
744
744
|
</state>
|
|
745
745
|
</provider>
|
|
746
746
|
</entry>
|
|
747
|
-
<entry file="file://$PROJECT_DIR$/
|
|
747
|
+
<entry file="file://$PROJECT_DIR$/lib/scenarios/application/views/route.erb">
|
|
748
748
|
<provider selected="true" editor-type-id="text-editor">
|
|
749
|
-
<state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="
|
|
749
|
+
<state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="-0.0" vertical-offset="0" max-vertical-offset="525" />
|
|
750
750
|
</provider>
|
|
751
751
|
</entry>
|
|
752
|
-
<entry file="file://$PROJECT_DIR$/
|
|
752
|
+
<entry file="file://$PROJECT_DIR$/lib/scenarios/application/views/index.erb">
|
|
753
753
|
<provider selected="true" editor-type-id="text-editor">
|
|
754
|
-
<state line="
|
|
754
|
+
<state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="-0.0" vertical-offset="0" max-vertical-offset="720" />
|
|
755
|
+
</provider>
|
|
756
|
+
</entry>
|
|
757
|
+
<entry file="jar://$APPLICATION_HOME_DIR$/lib/rubymine.jar!/resources/html5-schema/web-forms.rnc">
|
|
758
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
759
|
+
<state line="257" column="16" selection-start="5727" selection-end="5727" vertical-scroll-proportion="0.3783784" vertical-offset="3603" max-vertical-offset="8940" />
|
|
760
|
+
</provider>
|
|
761
|
+
</entry>
|
|
762
|
+
<entry file="file://$PROJECT_DIR$/lib/scenarios/application/views/scenario.erb">
|
|
763
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
764
|
+
<state line="46" column="37" selection-start="1217" selection-end="1217" vertical-scroll-proportion="0.0" vertical-offset="250" max-vertical-offset="915">
|
|
755
765
|
<folding />
|
|
756
766
|
</state>
|
|
757
767
|
</provider>
|
|
758
768
|
</entry>
|
|
759
|
-
<entry file="file://$
|
|
769
|
+
<entry file="file://$APPLICATION_HOME_DIR$/rubystubs20/string.rb">
|
|
760
770
|
<provider selected="true" editor-type-id="text-editor">
|
|
761
|
-
<state line="
|
|
771
|
+
<state line="754" column="8" selection-start="31239" selection-end="31239" vertical-scroll-proportion="0.35413644" vertical-offset="11066" max-vertical-offset="26940">
|
|
762
772
|
<folding />
|
|
763
773
|
</state>
|
|
764
774
|
</provider>
|
|
765
775
|
</entry>
|
|
766
|
-
<entry file="file://$PROJECT_DIR$/lib/scenarios/application/
|
|
776
|
+
<entry file="file://$PROJECT_DIR$/lib/scenarios/application/app_helpers.rb">
|
|
767
777
|
<provider selected="true" editor-type-id="text-editor">
|
|
768
|
-
<state line="
|
|
778
|
+
<state line="21" column="48" selection-start="418" selection-end="418" vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="540">
|
|
769
779
|
<folding />
|
|
770
780
|
</state>
|
|
771
781
|
</provider>
|
|
772
782
|
</entry>
|
|
773
|
-
<entry file="
|
|
783
|
+
<entry file="file://$PROJECT_DIR$/spec/app_spec.rb">
|
|
774
784
|
<provider selected="true" editor-type-id="text-editor">
|
|
775
|
-
<state line="
|
|
785
|
+
<state line="55" column="0" selection-start="1101" selection-end="1101" vertical-scroll-proportion="0.0" vertical-offset="795" max-vertical-offset="2325">
|
|
776
786
|
<folding />
|
|
777
787
|
</state>
|
|
778
788
|
</provider>
|
|
779
789
|
</entry>
|
|
780
|
-
<entry file="file://$PROJECT_DIR$/
|
|
790
|
+
<entry file="file://$PROJECT_DIR$/Gemfile">
|
|
781
791
|
<provider selected="true" editor-type-id="text-editor">
|
|
782
|
-
<state line="
|
|
783
|
-
<folding
|
|
784
|
-
|
|
785
|
-
|
|
792
|
+
<state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="689">
|
|
793
|
+
<folding />
|
|
794
|
+
</state>
|
|
795
|
+
</provider>
|
|
796
|
+
</entry>
|
|
797
|
+
<entry file="file://$PROJECT_DIR$/bin/scenarios">
|
|
798
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
799
|
+
<state line="3" column="40" selection-start="67" selection-end="67" vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="240">
|
|
800
|
+
<folding />
|
|
786
801
|
</state>
|
|
787
802
|
</provider>
|
|
788
803
|
</entry>
|
|
789
804
|
<entry file="file://$PROJECT_DIR$/spec/spec_helper.rb">
|
|
790
805
|
<provider selected="true" editor-type-id="text-editor">
|
|
791
|
-
<state line="43" column="0" selection-start="1159" selection-end="1159" vertical-scroll-proportion="0.
|
|
806
|
+
<state line="43" column="0" selection-start="1159" selection-end="1159" vertical-scroll-proportion="0.7822932" vertical-offset="106" max-vertical-offset="795">
|
|
792
807
|
<folding />
|
|
793
808
|
</state>
|
|
794
809
|
</provider>
|
|
795
810
|
</entry>
|
|
796
|
-
<entry file="file://$
|
|
811
|
+
<entry file="file://$PROJECT_DIR$/lib/scenarios/scenario_db.rb">
|
|
797
812
|
<provider selected="true" editor-type-id="text-editor">
|
|
798
|
-
<state line="
|
|
813
|
+
<state line="134" column="36" selection-start="3250" selection-end="3250" vertical-scroll-proportion="0.0" vertical-offset="1679" max-vertical-offset="4320">
|
|
799
814
|
<folding />
|
|
800
815
|
</state>
|
|
801
816
|
</provider>
|
|
802
817
|
</entry>
|
|
803
818
|
<entry file="file://$PROJECT_DIR$/lib/scenarios/application/app.rb">
|
|
804
819
|
<provider selected="true" editor-type-id="text-editor">
|
|
805
|
-
<state line="
|
|
820
|
+
<state line="22" column="19" selection-start="721" selection-end="721" vertical-scroll-proportion="-12.692307" vertical-offset="0" max-vertical-offset="3945">
|
|
806
821
|
<folding />
|
|
807
822
|
</state>
|
|
808
823
|
</provider>
|
|
809
824
|
</entry>
|
|
810
|
-
<entry file="file://$PROJECT_DIR$/lib/scenarios/
|
|
825
|
+
<entry file="file://$PROJECT_DIR$/lib/scenarios/config.yml">
|
|
811
826
|
<provider selected="true" editor-type-id="text-editor">
|
|
812
|
-
<state line="
|
|
827
|
+
<state line="0" column="12" selection-start="12" selection-end="12" vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="689">
|
|
813
828
|
<folding />
|
|
814
829
|
</state>
|
|
815
830
|
</provider>
|
|
816
831
|
</entry>
|
|
817
|
-
<entry file="file://$PROJECT_DIR$/lib/scenarios
|
|
832
|
+
<entry file="file://$PROJECT_DIR$/lib/scenarios.rb">
|
|
818
833
|
<provider selected="true" editor-type-id="text-editor">
|
|
819
|
-
<state line="
|
|
834
|
+
<state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="666">
|
|
820
835
|
<folding />
|
|
821
836
|
</state>
|
|
822
837
|
</provider>
|
|
823
838
|
</entry>
|
|
824
|
-
<entry file="file://$PROJECT_DIR$/
|
|
839
|
+
<entry file="file://$PROJECT_DIR$/scenarios.gemspec">
|
|
840
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
841
|
+
<state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="570">
|
|
842
|
+
<folding />
|
|
843
|
+
</state>
|
|
844
|
+
</provider>
|
|
845
|
+
</entry>
|
|
846
|
+
<entry file="file://$PROJECT_DIR$/lib/scenarios/version.rb">
|
|
825
847
|
<provider selected="true" editor-type-id="text-editor">
|
|
826
|
-
<state line="
|
|
848
|
+
<state line="1" column="18" selection-start="35" selection-end="35" vertical-scroll-proportion="0.021770682" vertical-offset="0" max-vertical-offset="689">
|
|
827
849
|
<folding />
|
|
828
850
|
</state>
|
|
829
851
|
</provider>
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
|
@@ -1,12 +1,20 @@
|
|
|
1
1
|
# Scenarios
|
|
2
2
|
|
|
3
|
-
This gem is used to setup a mock sinatra server
|
|
3
|
+
This gem is used to setup a mock sinatra server, to be used when developing apps or for ui automation using frank.
|
|
4
|
+
|
|
5
|
+
As the server is started for the first time, point your browser to http://localhost:4567/scenarios . Here a "default"
|
|
6
|
+
scenario is present. You can add various routes to this scenario.
|
|
7
|
+
|
|
8
|
+
for e.g. a sample route added would be
|
|
9
|
+
GET , '/v1/mystyle' {"Hello":"world"}
|
|
10
|
+
|
|
11
|
+
Now when you open browser and make a REST get call to '/v1/mystyle' you will receive the json fixture passed in the route.
|
|
4
12
|
|
|
5
13
|
## Installation
|
|
6
14
|
|
|
7
15
|
Add this line to your application's Gemfile:
|
|
8
16
|
|
|
9
|
-
gem '
|
|
17
|
+
gem 'scenario_server'
|
|
10
18
|
|
|
11
19
|
And then execute:
|
|
12
20
|
|
|
@@ -14,18 +22,10 @@ And then execute:
|
|
|
14
22
|
|
|
15
23
|
Or install it yourself as:
|
|
16
24
|
|
|
17
|
-
$ gem install
|
|
25
|
+
$ gem install scenario_server
|
|
18
26
|
|
|
19
27
|
## Usage
|
|
20
28
|
|
|
21
29
|
This would provide with the following binaries
|
|
22
30
|
- scenarios
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
## Contributing
|
|
26
|
-
|
|
27
|
-
1. Fork it ( http://github.com/<my-github-username>/scenarios/fork )
|
|
28
|
-
2. Create your feature branch (`git checkout -b my-new-feature`)
|
|
29
|
-
3. Commit your changes (`git commit -am 'Add some feature'`)
|
|
30
|
-
4. Push to the branch (`git push origin my-new-feature`)
|
|
31
|
-
5. Create new Pull Request
|
|
31
|
+
- scenariosdb
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
require 'sinatra'
|
|
2
|
+
require "sinatra/config_file"
|
|
2
3
|
require 'sinatra/respond_with'
|
|
3
4
|
require 'sequel'
|
|
4
5
|
require 'json'
|
|
@@ -8,13 +9,18 @@ require_relative './app_helpers.rb'
|
|
|
8
9
|
class ScenarioServer < Sinatra::Base
|
|
9
10
|
DEFAULT_SCENARIO = "default"
|
|
10
11
|
attr_accessor :db, :scenario_db, :scenarios, :routes, :testdata
|
|
12
|
+
register Sinatra::ConfigFile
|
|
11
13
|
use Rack::MethodOverride
|
|
12
14
|
|
|
15
|
+
config_file File.dirname(File.expand_path(__FILE__)) + '/../config.yml'
|
|
16
|
+
|
|
13
17
|
configure :production do
|
|
14
18
|
puts 'Production Environment'
|
|
15
19
|
set :db_file , File.dirname(File.expand_path(__FILE__)) + '/../data/scenario_db.sqlite3'
|
|
16
20
|
set :scenario, DEFAULT_SCENARIO
|
|
17
21
|
enable :logging
|
|
22
|
+
set :server, %w[thin mongrel webrick]
|
|
23
|
+
set :port, 9090
|
|
18
24
|
end
|
|
19
25
|
|
|
20
26
|
configure :development do
|
|
@@ -22,6 +28,8 @@ class ScenarioServer < Sinatra::Base
|
|
|
22
28
|
set :db_file , File.dirname(File.expand_path(__FILE__)) + '/../data/scenario_db.sqlite3'
|
|
23
29
|
set :scenario, DEFAULT_SCENARIO
|
|
24
30
|
enable :logging
|
|
31
|
+
set :server, %w[thin mongrel webrick]
|
|
32
|
+
set :port, 9090
|
|
25
33
|
end
|
|
26
34
|
|
|
27
35
|
configure :test do
|
|
@@ -29,17 +37,32 @@ class ScenarioServer < Sinatra::Base
|
|
|
29
37
|
set :db_file , File.dirname(File.expand_path(__FILE__)) + '/../data/scenario_testdb.sqlite3'
|
|
30
38
|
set :scenario, DEFAULT_SCENARIO
|
|
31
39
|
enable :logging
|
|
40
|
+
set :server, %w[thin mongrel webrick]
|
|
41
|
+
set :port, 9090
|
|
32
42
|
end
|
|
33
43
|
|
|
34
44
|
before do
|
|
35
|
-
|
|
45
|
+
|
|
46
|
+
if settings.localdbfile
|
|
47
|
+
puts "using db: "+settings.localdbfile
|
|
48
|
+
options = {:db_file=>settings.localdbfile}
|
|
49
|
+
else
|
|
50
|
+
puts "using db: "+ settings.db_file
|
|
51
|
+
options = {:db_file=>settings.db_file}
|
|
52
|
+
end
|
|
53
|
+
|
|
36
54
|
self.scenario_db = ScenarioDB.new(options)
|
|
37
55
|
self.scenario_db.configure_database
|
|
38
56
|
self.scenario_db.add_scenario('default')
|
|
39
57
|
end
|
|
40
58
|
|
|
41
|
-
get '/
|
|
59
|
+
get '/' do
|
|
60
|
+
if (request.env['HTTP_ACCEPT'] && request.env['HTTP_ACCEPT'].include?('text/html'))
|
|
61
|
+
redirect('/scenarios')
|
|
62
|
+
end
|
|
63
|
+
end
|
|
42
64
|
|
|
65
|
+
get '/scenarios' do
|
|
43
66
|
ordered_scenarios = self.scenario_db.get_ordered_scenarios
|
|
44
67
|
|
|
45
68
|
if (request.env['HTTP_ACCEPT'] && request.env['HTTP_ACCEPT'].include?('text/html'))
|
data/lib/scenarios/version.rb
CHANGED
data/scenarios.gemspec
CHANGED
|
@@ -21,8 +21,8 @@ Gem::Specification.new do |spec|
|
|
|
21
21
|
spec.add_runtime_dependency "sinatra", "~> 1.4"
|
|
22
22
|
spec.add_runtime_dependency "sinatra-contrib", "~> 1.4"
|
|
23
23
|
spec.add_runtime_dependency "sequel", "4.7"
|
|
24
|
+
spec.add_runtime_dependency "sqlite3" , "~> 1.3"
|
|
24
25
|
|
|
25
|
-
spec.add_development_dependency "sqlite3" , "~> 1.3"
|
|
26
26
|
spec.add_development_dependency "bundler", "~> 1.5"
|
|
27
27
|
spec.add_development_dependency "rake", "~> 10.1"
|
|
28
28
|
spec.add_development_dependency "rack-test", "~> 0.6"
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: scenario_server
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Vaibhav Bhatia
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-02-
|
|
11
|
+
date: 2014-02-27 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: sinatra
|
|
@@ -59,7 +59,7 @@ dependencies:
|
|
|
59
59
|
- - "~>"
|
|
60
60
|
- !ruby/object:Gem::Version
|
|
61
61
|
version: '1.3'
|
|
62
|
-
type: :
|
|
62
|
+
type: :runtime
|
|
63
63
|
prerelease: false
|
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
|
65
65
|
requirements:
|
|
@@ -175,6 +175,7 @@ files:
|
|
|
175
175
|
- lib/scenarios/application/views/index.erb
|
|
176
176
|
- lib/scenarios/application/views/route.erb
|
|
177
177
|
- lib/scenarios/application/views/scenario.erb
|
|
178
|
+
- lib/scenarios/config.yml
|
|
178
179
|
- lib/scenarios/data/readme.md
|
|
179
180
|
- lib/scenarios/scenario_db.rb
|
|
180
181
|
- lib/scenarios/version.rb
|