watirmark 5.14.16 → 5.27.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/bin/watirmark +2 -8
- data/generators/new_project/generator.rb +58 -0
- data/{app_generators/create_project/templates/project → generators/new_project/templates}/config.yml.erb +0 -0
- data/{app_generators/create_project → generators/new_project}/templates/features/env.rb.erb +0 -0
- data/{app_generators/create_project → generators/new_project}/templates/features/model_steps.rb.erb +0 -0
- data/{app_generators/create_project → generators/new_project}/templates/features/post_error_steps.rb.erb +0 -0
- data/{app_generators/create_project → generators/new_project}/templates/features/sample.feature.erb +0 -0
- data/{app_generators/create_project → generators/new_project}/templates/features/site_steps.rb.erb +0 -0
- data/generators/new_project/templates/gemfile.rb.erb +10 -0
- data/generators/new_project/templates/generators/mvc/generator.rb.erb +61 -0
- data/generators/new_project/templates/generators/mvc/templates/controller.rb.erb +9 -0
- data/generators/new_project/templates/generators/mvc/templates/model.rb.erb +7 -0
- data/generators/new_project/templates/generators/mvc/templates/view.rb.erb +16 -0
- data/{app_generators/create_project/templates/library → generators/new_project/templates/lib}/configuration.rb.erb +0 -0
- data/{app_generators/create_project/templates/library → generators/new_project/templates/lib}/core_libraries.rb.erb +0 -0
- data/{app_generators/create_project/templates/library → generators/new_project/templates/lib}/loader.rb.erb +0 -0
- data/{app_generators/create_project/templates/library → generators/new_project/templates/lib/name/checkers}/page_load_checker.rb.erb +0 -0
- data/{app_generators/create_project/templates/library → generators/new_project/templates/lib/name/checkers}/post_errors_checker.rb.erb +0 -0
- data/{app_generators/create_project/templates/library → generators/new_project/templates/lib/name/site}/base_controller.rb.erb +0 -0
- data/{app_generators/create_project/templates/library → generators/new_project/templates/lib/name/site}/base_view.rb.erb +0 -0
- data/{app_generators/create_project/templates/library → generators/new_project/templates/lib/name/site}/search_controller.rb.erb +0 -0
- data/{app_generators/create_project/templates/library/project_require_file.rb.erb → generators/new_project/templates/lib/name.rb.erb} +0 -0
- data/{app_generators/create_project/templates/library → generators/new_project/templates/lib}/workflows.rb.erb +0 -0
- data/{app_generators/create_project/templates/project → generators/new_project/templates}/rakefile.rb.erb +1 -1
- data/generators/new_project/templates/script/generate.rb.erb +4 -0
- data/lib/watirmark/at_exit.rb +5 -9
- data/lib/watirmark/configuration.rb +7 -2
- data/lib/watirmark/controller/actions.rb +35 -12
- data/lib/watirmark/controller/controller.rb +8 -4
- data/lib/watirmark/controller/dialogs.rb +3 -3
- data/lib/watirmark/cucumber/email_helper.rb +19 -0
- data/lib/watirmark/cucumber/env.rb +6 -5
- data/lib/watirmark/cucumber/hook_helper.rb +38 -0
- data/lib/watirmark/cucumber/hooks.rb +13 -8
- data/lib/watirmark/cucumber/load_cached_models.rb +9 -0
- data/lib/watirmark/cucumber/model_helper.rb +4 -4
- data/lib/watirmark/cucumber/transforms.rb +3 -1
- data/lib/watirmark/extensions/ruby_extensions.rb +8 -0
- data/lib/watirmark/extensions/webdriver_extensions.rb +38 -3
- data/lib/watirmark/formatters/snapshot_formatter.rb +3 -0
- data/lib/watirmark/models/cucumber_helper.rb +12 -5
- data/lib/watirmark/models/factory.rb +35 -2
- data/lib/watirmark/page/page.rb +1 -0
- data/lib/watirmark/page/page_definition.rb +7 -5
- data/lib/watirmark/profile.rb +2 -2
- data/lib/watirmark/rake/smoketest.rb +6 -4
- data/lib/watirmark/screenshot.rb +3 -8
- data/lib/watirmark/session.rb +105 -9
- data/lib/watirmark/version.rb +1 -1
- data/lib/watirmark.rb +1 -8
- data/spec/config_spec.rb +45 -37
- data/spec/controller_actions_spec.rb +70 -7
- data/spec/controller_spec.rb +103 -83
- data/spec/model_factory_spec.rb +191 -8
- data/spec/model_traits_spec.rb +5 -0
- data/spec/page_spec.rb +10 -2
- data/spec/process_page_spec.rb +3 -3
- data/spec/session_spec.rb +56 -0
- data/spec/spec_helper.rb +1 -1
- metadata +146 -142
- data/app_generators/create_project/create_project_generator.rb +0 -115
- data/app_generators/create_project/templates/generators/controller.rb.erb +0 -9
- data/app_generators/create_project/templates/generators/generate.rb.erb +0 -9
- data/app_generators/create_project/templates/generators/model.rb.erb +0 -7
- data/app_generators/create_project/templates/generators/mvc_generator.rb.erb +0 -100
- data/app_generators/create_project/templates/generators/rbeautify.rb.erb +0 -212
- data/app_generators/create_project/templates/generators/view.rb.erb +0 -16
- data/app_generators/create_project/templates/generators/workflow_loader.rb.erb +0 -1
- data/app_generators/create_project/templates/project/gemfile.rb.erb +0 -11
- data/bin/etapestry/Gemfile +0 -11
- data/bin/etapestry/config.yml +0 -3
- data/bin/etapestry/features/etapestry_home.feature +0 -5
- data/bin/etapestry/features/step_definitions/model_steps.rb +0 -9
- data/bin/etapestry/features/step_definitions/post_error_steps.rb +0 -15
- data/bin/etapestry/features/step_definitions/site_steps.rb +0 -7
- data/bin/etapestry/features/support/env.rb +0 -8
- data/bin/etapestry/generators/mvc/mvc_generator.rb +0 -100
- data/bin/etapestry/generators/mvc/rbeautify.rb +0 -212
- data/bin/etapestry/generators/mvc/templates/controller.rb.erb +0 -9
- data/bin/etapestry/generators/mvc/templates/model.rb.erb +0 -7
- data/bin/etapestry/generators/mvc/templates/view.rb.erb +0 -16
- data/bin/etapestry/generators/mvc/templates/workflow_loader.rb.erb +0 -1
- data/bin/etapestry/lib/etapestry/checkers/page_load_checker.rb +0 -11
- data/bin/etapestry/lib/etapestry/checkers/post_errors_checker.rb +0 -23
- data/bin/etapestry/lib/etapestry/configuration.rb +0 -6
- data/bin/etapestry/lib/etapestry/core_libraries.rb +0 -9
- data/bin/etapestry/lib/etapestry/loader.rb +0 -23
- data/bin/etapestry/lib/etapestry/site/base_controller.rb +0 -9
- data/bin/etapestry/lib/etapestry/site/base_view.rb +0 -6
- data/bin/etapestry/lib/etapestry/site/search_controller.rb +0 -12
- data/bin/etapestry/lib/etapestry/workflows.rb +0 -0
- data/bin/etapestry/lib/etapestry.rb +0 -8
- data/bin/etapestry/rakefile.rb +0 -21
- data/bin/etapestry/script/generate.rb +0 -9
- data/bin/twitter/features/hashtag_search.feature +0 -93
- data/bin/twitter/features/step_definitions/hashtag_steps.rb +0 -9
- data/bin/twitter/lib/twitter/workflows/search/result_controller.rb +0 -13
- data/bin/twitter/lib/twitter/workflows/search/result_model.rb +0 -5
- data/bin/twitter/lib/twitter/workflows/search/result_view.rb +0 -19
metadata
CHANGED
@@ -1,93 +1,127 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: watirmark
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.
|
5
|
-
prerelease:
|
4
|
+
version: 5.27.2
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Hugh McGowan
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2014-10-21 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: watir-webdriver
|
16
|
-
requirement:
|
17
|
-
none: false
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
18
16
|
requirements:
|
19
|
-
- -
|
17
|
+
- - ">="
|
20
18
|
- !ruby/object:Gem::Version
|
21
|
-
version:
|
19
|
+
version: 0.6.2
|
22
20
|
type: :runtime
|
23
21
|
prerelease: false
|
24
|
-
version_requirements:
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 0.6.2
|
25
27
|
- !ruby/object:Gem::Dependency
|
26
28
|
name: american_date
|
27
|
-
requirement:
|
28
|
-
none: false
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
29
30
|
requirements:
|
30
|
-
- -
|
31
|
+
- - "~>"
|
31
32
|
- !ruby/object:Gem::Version
|
32
|
-
version:
|
33
|
+
version: 1.1.0
|
33
34
|
type: :runtime
|
34
35
|
prerelease: false
|
35
|
-
version_requirements:
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 1.1.0
|
36
41
|
- !ruby/object:Gem::Dependency
|
37
42
|
name: logger
|
38
|
-
requirement:
|
39
|
-
none: false
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
40
44
|
requirements:
|
41
|
-
- -
|
45
|
+
- - "~>"
|
42
46
|
- !ruby/object:Gem::Version
|
43
|
-
version:
|
47
|
+
version: 1.2.8
|
44
48
|
type: :runtime
|
45
49
|
prerelease: false
|
46
|
-
version_requirements:
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 1.2.8
|
47
55
|
- !ruby/object:Gem::Dependency
|
48
56
|
name: uuid
|
49
|
-
requirement:
|
50
|
-
none: false
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
51
58
|
requirements:
|
52
|
-
- -
|
59
|
+
- - "~>"
|
53
60
|
- !ruby/object:Gem::Version
|
54
|
-
version:
|
61
|
+
version: 2.3.7
|
55
62
|
type: :runtime
|
56
63
|
prerelease: false
|
57
|
-
version_requirements:
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 2.3.7
|
58
69
|
- !ruby/object:Gem::Dependency
|
59
70
|
name: nokogiri
|
60
|
-
requirement:
|
61
|
-
none: false
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
62
72
|
requirements:
|
63
|
-
- -
|
73
|
+
- - "~>"
|
64
74
|
- !ruby/object:Gem::Version
|
65
|
-
version:
|
75
|
+
version: 1.6.0
|
66
76
|
type: :runtime
|
67
77
|
prerelease: false
|
68
|
-
version_requirements:
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: 1.6.0
|
69
83
|
- !ruby/object:Gem::Dependency
|
70
|
-
name:
|
71
|
-
requirement:
|
72
|
-
none: false
|
84
|
+
name: thor
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
73
86
|
requirements:
|
74
|
-
- -
|
87
|
+
- - "~>"
|
75
88
|
- !ruby/object:Gem::Version
|
76
|
-
version:
|
89
|
+
version: 0.19.1
|
77
90
|
type: :runtime
|
78
91
|
prerelease: false
|
79
|
-
version_requirements:
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: 0.19.1
|
80
97
|
- !ruby/object:Gem::Dependency
|
81
98
|
name: activesupport
|
82
|
-
requirement:
|
83
|
-
none: false
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
84
100
|
requirements:
|
85
|
-
- -
|
101
|
+
- - "~>"
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '4.0'
|
104
|
+
type: :runtime
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - "~>"
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '4.0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: headless
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - ">="
|
86
116
|
- !ruby/object:Gem::Version
|
87
117
|
version: '0'
|
88
118
|
type: :runtime
|
89
119
|
prerelease: false
|
90
|
-
version_requirements:
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ">="
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0'
|
91
125
|
description: Watirmark is an MVC test framework for watir-webdriver
|
92
126
|
email: hmcgowan@convio.com
|
93
127
|
executables:
|
@@ -95,144 +129,114 @@ executables:
|
|
95
129
|
extensions: []
|
96
130
|
extra_rdoc_files: []
|
97
131
|
files:
|
132
|
+
- bin/watirmark
|
133
|
+
- generators/new_project/generator.rb
|
134
|
+
- generators/new_project/templates/config.yml.erb
|
135
|
+
- generators/new_project/templates/features/env.rb.erb
|
136
|
+
- generators/new_project/templates/features/model_steps.rb.erb
|
137
|
+
- generators/new_project/templates/features/post_error_steps.rb.erb
|
138
|
+
- generators/new_project/templates/features/sample.feature.erb
|
139
|
+
- generators/new_project/templates/features/site_steps.rb.erb
|
140
|
+
- generators/new_project/templates/gemfile.rb.erb
|
141
|
+
- generators/new_project/templates/generators/mvc/generator.rb.erb
|
142
|
+
- generators/new_project/templates/generators/mvc/templates/controller.rb.erb
|
143
|
+
- generators/new_project/templates/generators/mvc/templates/model.rb.erb
|
144
|
+
- generators/new_project/templates/generators/mvc/templates/view.rb.erb
|
145
|
+
- generators/new_project/templates/lib/configuration.rb.erb
|
146
|
+
- generators/new_project/templates/lib/core_libraries.rb.erb
|
147
|
+
- generators/new_project/templates/lib/loader.rb.erb
|
148
|
+
- generators/new_project/templates/lib/name.rb.erb
|
149
|
+
- generators/new_project/templates/lib/name/checkers/page_load_checker.rb.erb
|
150
|
+
- generators/new_project/templates/lib/name/checkers/post_errors_checker.rb.erb
|
151
|
+
- generators/new_project/templates/lib/name/site/base_controller.rb.erb
|
152
|
+
- generators/new_project/templates/lib/name/site/base_view.rb.erb
|
153
|
+
- generators/new_project/templates/lib/name/site/search_controller.rb.erb
|
154
|
+
- generators/new_project/templates/lib/workflows.rb.erb
|
155
|
+
- generators/new_project/templates/rakefile.rb.erb
|
156
|
+
- generators/new_project/templates/script/generate.rb.erb
|
98
157
|
- lib/watirmark.rb
|
99
|
-
- lib/watirmark/session.rb
|
100
|
-
- lib/watirmark/formatters/snapshot_formatter.rb
|
101
|
-
- lib/watirmark/exceptions.rb
|
102
|
-
- lib/watirmark/extensions/webdriver_extensions.rb
|
103
|
-
- lib/watirmark/extensions/ruby_extensions.rb
|
104
158
|
- lib/watirmark/at_exit.rb
|
105
|
-
- lib/watirmark/
|
106
|
-
- lib/watirmark/
|
107
|
-
- lib/watirmark/
|
108
|
-
- lib/watirmark/models/upload_csv.rb
|
109
|
-
- lib/watirmark/models/debug_methods.rb
|
110
|
-
- lib/watirmark/models/factory_methods.rb
|
111
|
-
- lib/watirmark/models/default_values.rb
|
112
|
-
- lib/watirmark/models/factory_method_generators.rb
|
113
|
-
- lib/watirmark/controller/dialogs.rb
|
159
|
+
- lib/watirmark/configuration.rb
|
160
|
+
- lib/watirmark/controller/actions.rb
|
161
|
+
- lib/watirmark/controller/assertions.rb
|
114
162
|
- lib/watirmark/controller/controller.rb
|
163
|
+
- lib/watirmark/controller/dialogs.rb
|
115
164
|
- lib/watirmark/controller/matcher.rb
|
116
|
-
- lib/watirmark/controller/assertions.rb
|
117
|
-
- lib/watirmark/controller/actions.rb
|
118
|
-
- lib/watirmark/model.rb
|
119
|
-
- lib/watirmark/screenshot.rb
|
120
|
-
- lib/watirmark/cucumber/model_helper.rb
|
121
|
-
- lib/watirmark/cucumber/hooks.rb
|
122
|
-
- lib/watirmark/cucumber/transforms.rb
|
123
|
-
- lib/watirmark/cucumber/env.rb
|
124
165
|
- lib/watirmark/cucumber/cuke_helper.rb
|
125
166
|
- lib/watirmark/cucumber/email_helper.rb
|
167
|
+
- lib/watirmark/cucumber/env.rb
|
168
|
+
- lib/watirmark/cucumber/hook_helper.rb
|
169
|
+
- lib/watirmark/cucumber/hooks.rb
|
170
|
+
- lib/watirmark/cucumber/load_cached_models.rb
|
171
|
+
- lib/watirmark/cucumber/model_helper.rb
|
172
|
+
- lib/watirmark/cucumber/transforms.rb
|
173
|
+
- lib/watirmark/exceptions.rb
|
174
|
+
- lib/watirmark/extensions/ruby_extensions.rb
|
175
|
+
- lib/watirmark/extensions/webdriver_extensions.rb
|
176
|
+
- lib/watirmark/formatters/snapshot_formatter.rb
|
126
177
|
- lib/watirmark/loader.rb
|
178
|
+
- lib/watirmark/model.rb
|
179
|
+
- lib/watirmark/models/cucumber_helper.rb
|
180
|
+
- lib/watirmark/models/debug_methods.rb
|
181
|
+
- lib/watirmark/models/default_values.rb
|
182
|
+
- lib/watirmark/models/factory.rb
|
183
|
+
- lib/watirmark/models/factory_method_generators.rb
|
184
|
+
- lib/watirmark/models/factory_methods.rb
|
185
|
+
- lib/watirmark/models/trait.rb
|
186
|
+
- lib/watirmark/models/upload_csv.rb
|
127
187
|
- lib/watirmark/page/keyed_element.rb
|
128
188
|
- lib/watirmark/page/page.rb
|
129
189
|
- lib/watirmark/page/page_definition.rb
|
130
|
-
- lib/watirmark/page/radio_maps.rb
|
131
190
|
- lib/watirmark/page/process_page.rb
|
191
|
+
- lib/watirmark/page/radio_maps.rb
|
192
|
+
- lib/watirmark/profile.rb
|
132
193
|
- lib/watirmark/rake/smoketest.rb
|
194
|
+
- lib/watirmark/screenshot.rb
|
195
|
+
- lib/watirmark/session.rb
|
133
196
|
- lib/watirmark/version.rb
|
134
|
-
- lib/watirmark/configuration.rb
|
135
|
-
- lib/watirmark/profile.rb
|
136
|
-
- app_generators/create_project/templates/library/page_load_checker.rb.erb
|
137
|
-
- app_generators/create_project/templates/library/core_libraries.rb.erb
|
138
|
-
- app_generators/create_project/templates/library/loader.rb.erb
|
139
|
-
- app_generators/create_project/templates/library/workflows.rb.erb
|
140
|
-
- app_generators/create_project/templates/library/configuration.rb.erb
|
141
|
-
- app_generators/create_project/templates/library/project_require_file.rb.erb
|
142
|
-
- app_generators/create_project/templates/library/base_controller.rb.erb
|
143
|
-
- app_generators/create_project/templates/library/post_errors_checker.rb.erb
|
144
|
-
- app_generators/create_project/templates/library/base_view.rb.erb
|
145
|
-
- app_generators/create_project/templates/library/search_controller.rb.erb
|
146
|
-
- app_generators/create_project/templates/features/env.rb.erb
|
147
|
-
- app_generators/create_project/templates/features/sample.feature.erb
|
148
|
-
- app_generators/create_project/templates/features/site_steps.rb.erb
|
149
|
-
- app_generators/create_project/templates/features/post_error_steps.rb.erb
|
150
|
-
- app_generators/create_project/templates/features/model_steps.rb.erb
|
151
|
-
- app_generators/create_project/templates/project/rakefile.rb.erb
|
152
|
-
- app_generators/create_project/templates/project/config.yml.erb
|
153
|
-
- app_generators/create_project/templates/project/gemfile.rb.erb
|
154
|
-
- app_generators/create_project/templates/generators/controller.rb.erb
|
155
|
-
- app_generators/create_project/templates/generators/generate.rb.erb
|
156
|
-
- app_generators/create_project/templates/generators/rbeautify.rb.erb
|
157
|
-
- app_generators/create_project/templates/generators/mvc_generator.rb.erb
|
158
|
-
- app_generators/create_project/templates/generators/workflow_loader.rb.erb
|
159
|
-
- app_generators/create_project/templates/generators/model.rb.erb
|
160
|
-
- app_generators/create_project/templates/generators/view.rb.erb
|
161
|
-
- app_generators/create_project/create_project_generator.rb
|
162
|
-
- bin/etapestry/features/etapestry_home.feature
|
163
|
-
- bin/etapestry/features/step_definitions/site_steps.rb
|
164
|
-
- bin/etapestry/features/step_definitions/model_steps.rb
|
165
|
-
- bin/etapestry/features/step_definitions/post_error_steps.rb
|
166
|
-
- bin/etapestry/features/support/env.rb
|
167
|
-
- bin/etapestry/rakefile.rb
|
168
|
-
- bin/etapestry/Gemfile
|
169
|
-
- bin/etapestry/config.yml
|
170
|
-
- bin/etapestry/script/generate.rb
|
171
|
-
- bin/etapestry/lib/etapestry/site/search_controller.rb
|
172
|
-
- bin/etapestry/lib/etapestry/site/base_controller.rb
|
173
|
-
- bin/etapestry/lib/etapestry/site/base_view.rb
|
174
|
-
- bin/etapestry/lib/etapestry/checkers/post_errors_checker.rb
|
175
|
-
- bin/etapestry/lib/etapestry/checkers/page_load_checker.rb
|
176
|
-
- bin/etapestry/lib/etapestry/core_libraries.rb
|
177
|
-
- bin/etapestry/lib/etapestry/workflows.rb
|
178
|
-
- bin/etapestry/lib/etapestry/loader.rb
|
179
|
-
- bin/etapestry/lib/etapestry/configuration.rb
|
180
|
-
- bin/etapestry/lib/etapestry.rb
|
181
|
-
- bin/etapestry/generators/mvc/rbeautify.rb
|
182
|
-
- bin/etapestry/generators/mvc/templates/controller.rb.erb
|
183
|
-
- bin/etapestry/generators/mvc/templates/workflow_loader.rb.erb
|
184
|
-
- bin/etapestry/generators/mvc/templates/model.rb.erb
|
185
|
-
- bin/etapestry/generators/mvc/templates/view.rb.erb
|
186
|
-
- bin/etapestry/generators/mvc/mvc_generator.rb
|
187
|
-
- bin/twitter/features/step_definitions/hashtag_steps.rb
|
188
|
-
- bin/twitter/features/hashtag_search.feature
|
189
|
-
- bin/twitter/lib/twitter/workflows/search/result_controller.rb
|
190
|
-
- bin/twitter/lib/twitter/workflows/search/result_view.rb
|
191
|
-
- bin/twitter/lib/twitter/workflows/search/result_model.rb
|
192
|
-
- bin/watirmark
|
193
|
-
- spec/controllers_and_models_spec.rb
|
194
|
-
- spec/process_page_spec.rb
|
195
|
-
- spec/page_spec.rb
|
196
|
-
- spec/config_spec.rb
|
197
|
-
- spec/spec_helper.rb
|
198
|
-
- spec/controller_spec.rb
|
199
|
-
- spec/model_traits_spec.rb
|
200
197
|
- spec/assertions_spec.rb
|
198
|
+
- spec/config_spec.rb
|
201
199
|
- spec/controller_actions_spec.rb
|
200
|
+
- spec/controller_spec.rb
|
201
|
+
- spec/controllers_and_models_spec.rb
|
202
202
|
- spec/model_factory_spec.rb
|
203
|
+
- spec/model_traits_spec.rb
|
204
|
+
- spec/page_spec.rb
|
205
|
+
- spec/process_page_spec.rb
|
206
|
+
- spec/session_spec.rb
|
207
|
+
- spec/spec_helper.rb
|
203
208
|
homepage: http://github.com/convio/watirmark
|
204
209
|
licenses: []
|
210
|
+
metadata: {}
|
205
211
|
post_install_message:
|
206
212
|
rdoc_options: []
|
207
213
|
require_paths:
|
208
214
|
- lib
|
209
215
|
required_ruby_version: !ruby/object:Gem::Requirement
|
210
|
-
none: false
|
211
216
|
requirements:
|
212
|
-
- -
|
217
|
+
- - ">="
|
213
218
|
- !ruby/object:Gem::Version
|
214
219
|
version: '0'
|
215
220
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
216
|
-
none: false
|
217
221
|
requirements:
|
218
|
-
- -
|
222
|
+
- - ">="
|
219
223
|
- !ruby/object:Gem::Version
|
220
224
|
version: '0'
|
221
225
|
requirements: []
|
222
226
|
rubyforge_project:
|
223
|
-
rubygems_version:
|
227
|
+
rubygems_version: 2.2.2
|
224
228
|
signing_key:
|
225
|
-
specification_version:
|
226
|
-
summary: watirmark 5.
|
229
|
+
specification_version: 4
|
230
|
+
summary: watirmark 5.27.2
|
227
231
|
test_files:
|
228
|
-
- spec/controllers_and_models_spec.rb
|
229
|
-
- spec/process_page_spec.rb
|
230
|
-
- spec/page_spec.rb
|
231
|
-
- spec/config_spec.rb
|
232
|
-
- spec/spec_helper.rb
|
233
|
-
- spec/controller_spec.rb
|
234
|
-
- spec/model_traits_spec.rb
|
235
232
|
- spec/assertions_spec.rb
|
233
|
+
- spec/config_spec.rb
|
236
234
|
- spec/controller_actions_spec.rb
|
235
|
+
- spec/controller_spec.rb
|
236
|
+
- spec/controllers_and_models_spec.rb
|
237
237
|
- spec/model_factory_spec.rb
|
238
|
-
|
238
|
+
- spec/model_traits_spec.rb
|
239
|
+
- spec/page_spec.rb
|
240
|
+
- spec/process_page_spec.rb
|
241
|
+
- spec/session_spec.rb
|
242
|
+
- spec/spec_helper.rb
|
@@ -1,115 +0,0 @@
|
|
1
|
-
require 'rubigen'
|
2
|
-
class CreateProjectGenerator < RubiGen::Base
|
3
|
-
default_options :author => nil
|
4
|
-
attr_reader :name
|
5
|
-
|
6
|
-
def initialize(runtime_args, runtime_options = {})
|
7
|
-
super
|
8
|
-
usage if args.empty?
|
9
|
-
@name = File.basename(args.shift)
|
10
|
-
@destination_root = File.expand_path(@name)
|
11
|
-
extract_options
|
12
|
-
end
|
13
|
-
|
14
|
-
def manifest
|
15
|
-
record do |m|
|
16
|
-
create_directories(m)
|
17
|
-
create_project_files(m)
|
18
|
-
create_library_checker_files(m)
|
19
|
-
create_library_site_files(m)
|
20
|
-
create_library_toplevel_files(m)
|
21
|
-
create_mvc_generators(m)
|
22
|
-
create_test_files(m)
|
23
|
-
end
|
24
|
-
end
|
25
|
-
|
26
|
-
def create_project_files(manifest)
|
27
|
-
manifest.template "project/gemfile.rb.erb", "Gemfile"
|
28
|
-
manifest.template "project/config.yml.erb", "config.yml"
|
29
|
-
manifest.template "project/rakefile.rb.erb", "rakefile.rb"
|
30
|
-
end
|
31
|
-
|
32
|
-
def create_library_checker_files(manifest)
|
33
|
-
manifest.template "library/page_load_checker.rb.erb", File.join("lib", name, "checkers", "page_load_checker.rb")
|
34
|
-
manifest.template "library/post_errors_checker.rb.erb", File.join("lib", name, "checkers", "post_errors_checker.rb")
|
35
|
-
end
|
36
|
-
|
37
|
-
def create_library_site_files(manifest)
|
38
|
-
manifest.template "library/base_controller.rb.erb", File.join("lib", name, "site", "base_controller.rb")
|
39
|
-
manifest.template "library/search_controller.rb.erb", File.join("lib", name, "site", "search_controller.rb")
|
40
|
-
manifest.template "library/base_view.rb.erb", File.join("lib", name, "site", "base_view.rb")
|
41
|
-
end
|
42
|
-
|
43
|
-
def create_library_toplevel_files(manifest)
|
44
|
-
manifest.template "library/configuration.rb.erb", File.join("lib", name, "configuration.rb")
|
45
|
-
manifest.template "library/workflows.rb.erb", File.join("lib", name, "workflows.rb")
|
46
|
-
manifest.template "library/core_libraries.rb.erb", File.join("lib", name, "core_libraries.rb")
|
47
|
-
manifest.template "library/loader.rb.erb", File.join("lib", name, "loader.rb")
|
48
|
-
manifest.template "library/project_require_file.rb.erb", File.join("lib","#{name}.rb")
|
49
|
-
end
|
50
|
-
|
51
|
-
def create_mvc_generators(manifest)
|
52
|
-
manifest.template "generators/generate.rb.erb", File.join("script","generate.rb")
|
53
|
-
manifest.template "generators/mvc_generator.rb.erb", File.join("generators","mvc","mvc_generator.rb")
|
54
|
-
manifest.template "generators/rbeautify.rb.erb", File.join("generators", "mvc", "rbeautify.rb")
|
55
|
-
manifest.template "generators/controller.rb.erb", File.join("generators","mvc","templates","controller.rb.erb")
|
56
|
-
manifest.template "generators/model.rb.erb", File.join("generators","mvc","templates","model.rb.erb")
|
57
|
-
manifest.template "generators/view.rb.erb", File.join("generators","mvc","templates","view.rb.erb")
|
58
|
-
manifest.template "generators/workflow_loader.rb.erb", File.join("generators","mvc","templates","workflow_loader.rb.erb")
|
59
|
-
end
|
60
|
-
|
61
|
-
def create_test_files(manifest)
|
62
|
-
manifest.template "features/model_steps.rb.erb", File.join("features","step_definitions","model_steps.rb")
|
63
|
-
manifest.template "features/post_error_steps.rb.erb", File.join("features","step_definitions","post_error_steps.rb")
|
64
|
-
manifest.template "features/site_steps.rb.erb", File.join("features","step_definitions","site_steps.rb")
|
65
|
-
manifest.template "features/env.rb.erb", File.join("features","support","env.rb")
|
66
|
-
manifest.template "features/sample.feature.erb", File.join("features","#{@name}_home.feature")
|
67
|
-
end
|
68
|
-
|
69
|
-
def create_directories(m)
|
70
|
-
BASEDIRS.each { |path| m.directory path }
|
71
|
-
create_subdirectories m, File.join('features'), %w(step_definitions support)
|
72
|
-
create_subdirectories m, File.join('lib', @name), %w(checkers site workflows)
|
73
|
-
create_subdirectories m, File.join('generators', 'mvc'), %w(templates)
|
74
|
-
end
|
75
|
-
|
76
|
-
def create_subdirectories (m, root, directories)
|
77
|
-
m.directory root
|
78
|
-
directories.each {|dir| m.directory File.join(root, dir)}
|
79
|
-
end
|
80
|
-
|
81
|
-
|
82
|
-
protected
|
83
|
-
def banner
|
84
|
-
<<-EOS
|
85
|
-
USAGE: #{spec.name} path/for/your/test/create_project project_name [options]
|
86
|
-
EOS
|
87
|
-
end
|
88
|
-
|
89
|
-
def add_options!(opts)
|
90
|
-
opts.separator ''
|
91
|
-
opts.separator 'Options:'
|
92
|
-
# For each option below, place the default
|
93
|
-
# at the top of the file next to "default_options"
|
94
|
-
# opts.on("-a", "--author=\"Your Name\"", String,
|
95
|
-
# "Some comment about this option",
|
96
|
-
# "Default: none") { |options[:author]| }
|
97
|
-
opts.on("-v", "--version", "Show the #{File.basename($0)} version number and quit.")
|
98
|
-
end
|
99
|
-
|
100
|
-
def extract_options
|
101
|
-
# for each option, extract it into a local variable (and create an "attr_reader :author" at the top)
|
102
|
-
# Templates can access these value via the attr_reader-generated methods, but not the
|
103
|
-
# raw instance variable value.
|
104
|
-
# @author = options[:author]
|
105
|
-
end
|
106
|
-
|
107
|
-
# Installation skeleton. Intermediate directories are automatically
|
108
|
-
# created so don't sweat their absence here.
|
109
|
-
BASEDIRS = %w(
|
110
|
-
features
|
111
|
-
generators
|
112
|
-
lib
|
113
|
-
script
|
114
|
-
)
|
115
|
-
end
|
@@ -1,9 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
APP_ROOT = File.expand_path(File.join(File.dirname(__FILE__), '..'))
|
3
|
-
|
4
|
-
require 'rubigen'
|
5
|
-
require 'rubigen/scripts/generate'
|
6
|
-
|
7
|
-
ARGV.shift if %w(--help -h).include?(ARGV[0])
|
8
|
-
RubiGen::Base.use_component_sources! [:rubygems]
|
9
|
-
RubiGen::Scripts::Generate.new.run(ARGV)
|
@@ -1,100 +0,0 @@
|
|
1
|
-
require 'rubigen'
|
2
|
-
require 'active_support/inflector'
|
3
|
-
require_relative 'rbeautify'
|
4
|
-
|
5
|
-
class MvcGenerator < RubiGen::Base
|
6
|
-
attr_reader :product, :name
|
7
|
-
|
8
|
-
def initialize(runtime_args, runtime_options = {})
|
9
|
-
super
|
10
|
-
usage if args.empty?
|
11
|
-
@product = args.shift
|
12
|
-
@name = args.shift
|
13
|
-
usage unless @name && @product
|
14
|
-
@destination_root = File.expand_path(File.dirname(__FILE__) + '/../../')
|
15
|
-
extract_options
|
16
|
-
end
|
17
|
-
|
18
|
-
def workflow_directory
|
19
|
-
"lib/<%= name.downcase %>/workflows/#{@product}"
|
20
|
-
end
|
21
|
-
|
22
|
-
def manifest
|
23
|
-
record do |m|
|
24
|
-
create_directories(m)
|
25
|
-
add_mvc_stubs m
|
26
|
-
add_loader
|
27
|
-
end
|
28
|
-
end
|
29
|
-
|
30
|
-
def add_mvc_stubs m
|
31
|
-
m.template "model.rb.erb", File.join(workflow_directory, "#{@name}_model.rb")
|
32
|
-
m.template "view.rb.erb", File.join(workflow_directory,"#{@name}_view.rb")
|
33
|
-
m.template "controller.rb.erb", File.join(workflow_directory,"#{@name}_controller.rb")
|
34
|
-
end
|
35
|
-
|
36
|
-
def workflow_exists?
|
37
|
-
File.directory? "../#{workflow_directory}"
|
38
|
-
end
|
39
|
-
|
40
|
-
def add_rake_task
|
41
|
-
append_to_file "../rakefile.rb" do |f|
|
42
|
-
f.puts "RakeHelper.cucumber_task(:#{@product}, \"features/#{@product}/**/*.feature\")"
|
43
|
-
end
|
44
|
-
end
|
45
|
-
|
46
|
-
def add_loader
|
47
|
-
append_to_file "../lib/<%= name.downcase %>/workflows.rb" do |f|
|
48
|
-
f.puts "<%= name.camelize %>::Loader.load_workflow '#{@product.downcase}/#{@name.downcase}'"
|
49
|
-
end
|
50
|
-
end
|
51
|
-
|
52
|
-
def append_to_file name, &block
|
53
|
-
File.open(name, 'a+') {|f| yield f}
|
54
|
-
end
|
55
|
-
|
56
|
-
def create_directories(m)
|
57
|
-
m.directory workflow_directory
|
58
|
-
end
|
59
|
-
|
60
|
-
def create_modules
|
61
|
-
@product.split('/').map{|x| "module #{x.camelize}\n"}.join.strip
|
62
|
-
end
|
63
|
-
|
64
|
-
def create_module_end
|
65
|
-
@product.split('/').map{|x| "end\n"}.join.strip
|
66
|
-
end
|
67
|
-
|
68
|
-
protected
|
69
|
-
def banner
|
70
|
-
<<-EOS
|
71
|
-
USAGE: #{spec.name} path/for/your/test/mvc workflow_directory name [options]
|
72
|
-
EOS
|
73
|
-
end
|
74
|
-
|
75
|
-
def after_generate
|
76
|
-
mvc_file_path = "#{@destination_root}/#{workflow_directory}/#{@name}"
|
77
|
-
RBeautify.new({}).beautify_file("#{mvc_file_path}_model.rb")
|
78
|
-
RBeautify.new({}).beautify_file("#{mvc_file_path}_view.rb")
|
79
|
-
RBeautify.new({}).beautify_file("#{mvc_file_path}_controller.rb")
|
80
|
-
end
|
81
|
-
|
82
|
-
def add_options!(opts)
|
83
|
-
opts.separator ''
|
84
|
-
opts.separator 'Options:'
|
85
|
-
# For each option below, place the default
|
86
|
-
# at the top of the file next to "default_options"
|
87
|
-
# opts.on("-a", "--author=\"Your Name\"", String,
|
88
|
-
# "Some comment about this option",
|
89
|
-
# "Default: none") { |options[:author]| }
|
90
|
-
opts.on("-v", "--version", "Show the #{File.basename($0)} version number and quit.")
|
91
|
-
end
|
92
|
-
|
93
|
-
def extract_options
|
94
|
-
# for each option, extract it into a local variable (and create an "attr_reader :author" at the top)
|
95
|
-
# Templates can access these value via the attr_reader-generated methods, but not the
|
96
|
-
# raw instance variable value.
|
97
|
-
# @author = options[:author]
|
98
|
-
end
|
99
|
-
|
100
|
-
end
|