coprl 3.0.0.beta.2 → 3.0.0.beta.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.circleci/config.yml +9 -15
- data/CHANGELOG.md +57 -0
- data/Gemfile +12 -1
- data/Gemfile.lock +105 -36
- data/README.md +3 -3
- data/app/demo/components/dialogs.pom +1 -1
- data/app/demo/components/nav/menu.pom +0 -1
- data/app/demo/components/snackbar.pom +9 -3
- data/app/demo/events/content_as_form.pom +3 -3
- data/app/demo/events/halted.pom +23 -0
- data/app/demo/events/nav/drawer.pom +1 -1
- data/app/demo/events/tagged_input.pom +2 -2
- data/app/demo/patterns/search_select.pom +1 -1
- data/app/demo/plugins/animate.pom +144 -0
- data/app/demo/plugins/cacheable.pom +64 -0
- data/app/demo/plugins/clipboard.pom +21 -0
- data/app/demo/plugins/color_picker.pom +17 -0
- data/app/demo/plugins/google_maps.pom +24 -0
- data/app/demo/plugins/iframe.pom +14 -0
- data/app/demo/plugins/image_crop.pom +1 -1
- data/app/demo/plugins/markup.pom +14 -0
- data/app/demo/plugins/nav/drawer.pom +1 -1
- data/app/demo/plugins/script.pom +17 -0
- data/app/demo/plugins/scroll_to.pom +22 -0
- data/app/demo/plugins/timer.pom +24 -0
- data/app/demo/shared/context_list.pom +1 -1
- data/config.ru +15 -1
- data/coprl.gemspec +1 -2
- data/lib/coprl/presenters/cli.rb +10 -0
- data/lib/coprl/presenters/dsl/components/actions/base.rb +5 -1
- data/lib/coprl/presenters/dsl/components/base.rb +6 -4
- data/lib/coprl/presenters/dsl/components/event.rb +6 -1
- data/lib/coprl/presenters/dsl/components/multi_select.rb +3 -3
- data/lib/coprl/presenters/dsl/components/table.rb +2 -2
- data/lib/coprl/presenters/dsl/definition.rb +2 -2
- data/lib/coprl/presenters/dsl/user_interface.rb +2 -2
- data/lib/coprl/presenters/generators/plugin.rb +21 -6
- data/lib/coprl/presenters/generators/templates/plugin/.github/workflows/semantic-release.yml +41 -0
- data/lib/coprl/presenters/generators/templates/plugin/.releaserc +15 -0
- data/lib/coprl/presenters/generators/templates/plugin/.ruby-version +1 -0
- data/lib/coprl/presenters/generators/templates/plugin/README.md.tt +34 -0
- data/lib/coprl/presenters/generators/templates/plugin/demo/plugin.pom.tt +15 -0
- data/lib/coprl/presenters/generators/templates/plugin/lib/coprl/presenters/plugins/components/actions/dsl.rb.tt +1 -1
- data/lib/coprl/presenters/generators/templates/plugin/lib/coprl/presenters/plugins/version.rb.tt +3 -0
- data/lib/coprl/presenters/generators/templates/plugin/presenter_plugin.gemspec.tt +8 -7
- data/lib/coprl/presenters/generators/templates/plugin/views/components/application/component.erb.tt +1 -1
- data/lib/coprl/presenters/helpers/rails.rb +1 -4
- data/lib/coprl/presenters/helpers/rails/routes.rb +14 -0
- data/lib/coprl/presenters/rails/concerns/coprl_partial.rb +51 -0
- data/lib/coprl/presenters/rails/engine.rb +5 -0
- data/lib/coprl/presenters/rails/railtie.rb +6 -14
- data/lib/coprl/presenters/rails/reloader.rb +15 -0
- data/lib/coprl/presenters/settings.rb +1 -1
- data/lib/coprl/presenters/version.rb +1 -1
- data/lib/coprl/presenters/web_client/helpers/headers.rb +8 -6
- data/lib/coprl/presenters/web_client/helpers/rails.rb +1 -0
- data/lib/coprl/presenters/web_client/helpers/rails/template_helper.rb +10 -0
- data/lib/coprl/presenters/web_client/helpers/sinatra.rb +1 -0
- data/lib/coprl/presenters/web_client/helpers/sinatra/template_helper.rb +20 -0
- data/lib/coprl/presenters/web_client/plugin_views_path.rb +5 -5
- data/public/bundle.js +10 -4
- data/public/wc.js +10 -4
- data/rails-engine/app/controllers/coprl_controller.rb +1 -1
- data/rails-engine/app/views/layouts/coprl.html.erb +4 -4
- data/rails-engine/config/initializers/presenters.rb +4 -2
- data/rails-engine/config/initializers/routes.rb +5 -0
- data/rails-engine/config/initializers/session.rb +8 -0
- data/views/mdc/assets/js/components/events/posts.js +10 -6
- data/views/mdc/body/{_preamble.erb → _wrapper.erb} +16 -5
- data/views/mdc/components/_card.erb +2 -2
- data/views/mdc/components/_checkbox.erb +1 -1
- data/views/mdc/components/_chip.erb +2 -2
- data/views/mdc/components/_content.erb +2 -2
- data/views/mdc/components/_datetime.erb +1 -1
- data/views/mdc/components/_dialog.erb +2 -2
- data/views/mdc/components/_form.erb +2 -2
- data/views/mdc/components/_grid.erb +2 -2
- data/views/mdc/components/_hidden_field.erb +1 -1
- data/views/mdc/components/_multi_select.erb +1 -1
- data/views/mdc/components/_number_field.erb +1 -1
- data/views/mdc/components/_radio_button.erb +1 -1
- data/views/mdc/components/_rich_text_area.erb +1 -1
- data/views/mdc/components/_select.erb +1 -1
- data/views/mdc/components/_slider.erb +2 -2
- data/views/mdc/components/_stepper.erb +4 -4
- data/views/mdc/components/_switch.erb +1 -1
- data/views/mdc/components/_text_area.erb +1 -1
- data/views/mdc/components/_text_field.erb +1 -1
- data/views/mdc/components/buttons/_image.erb +1 -1
- data/views/mdc/components/unordered_list/_list_item.erb +3 -3
- data/views/mdc/layout.erb +4 -4
- metadata +33 -30
- data/app/demo/components/google_maps.pom +0 -22
- data/app/demo/components/snackbar_attached.pom +0 -6
- data/lib/coprl/presenters/generators/templates/plugin/README.md +0 -253
- data/lib/coprl/presenters/plugins/google_maps.rb +0 -24
- data/lib/coprl/presenters/plugins/google_maps/google_map.erb +0 -10
- data/lib/coprl/presenters/plugins/google_maps/google_map.rb +0 -41
- data/views/mdc/body/_postamble.erb +0 -17
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f1e42760026c49cf31fd1e7b4828e1f35d425c4bd9210431854e19dd6791b0dc
|
4
|
+
data.tar.gz: fc418edb85902d702985446356561526ba54f04d36c96eb97871d9479a96cd1f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2f214706da76cc52329f24f92bdc16c83b54ef6550ca59ccf996f4baf665c00db04fe4b3eae5125ebd2cf7dacfa0fb3853e66d866e8e99981e315441ae99fab8
|
7
|
+
data.tar.gz: d36d7a083fd7d0d1212db2271a3c6669cb84f398ca02b7d64e7ed349c203456c0a3aecd71c727cd241f666265a527ade93b312c7203eb63f5048bebd49074741
|
data/.circleci/config.yml
CHANGED
@@ -18,28 +18,22 @@ jobs:
|
|
18
18
|
|
19
19
|
steps:
|
20
20
|
- checkout
|
21
|
-
|
22
|
-
# Download and cache dependencies
|
23
21
|
- restore_cache:
|
24
22
|
keys:
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
- run:
|
30
|
-
|
31
|
-
command: |
|
32
|
-
bundle install --jobs=4 --retry=3 --path vendor/bundle
|
33
|
-
|
23
|
+
# when lock file changes, use increasingly general patterns to restore cache
|
24
|
+
- v1-gem-cache-{{ arch }}-{{ .Branch }}-{{ checksum "Gemfile.lock" }}
|
25
|
+
- v1-gem-cache-{{ arch }}-{{ .Branch }}-
|
26
|
+
- v1-gem-cache-{{ arch }}-
|
27
|
+
- run: bundle install
|
28
|
+
- run: bundle clean --force
|
34
29
|
- save_cache:
|
35
30
|
paths:
|
36
|
-
-
|
37
|
-
key: v1-
|
38
|
-
|
31
|
+
- ~/.bundle
|
32
|
+
key: v1-gem-cache-{{ arch }}-{{ .Branch }}-{{ checksum "Gemfile.lock" }}
|
39
33
|
- run:
|
40
34
|
name: 'start integration testing server'
|
41
35
|
command: |
|
42
|
-
rackup
|
36
|
+
bundle exec rackup
|
43
37
|
background: true
|
44
38
|
|
45
39
|
# run tests!
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,60 @@
|
|
1
|
+
# [3.0.0-beta.7](https://github.com/rx/presenters/compare/v3.0.0-beta.6...v3.0.0-beta.7) (2021-07-09)
|
2
|
+
|
3
|
+
|
4
|
+
### Bug Fixes
|
5
|
+
|
6
|
+
* Rails routes automatically made available as helpers ([#322](https://github.com/rx/presenters/issues/322)) ([abb0031](https://github.com/rx/presenters/commit/abb00311940fda8741459f8aafe29cd7bf074b88))
|
7
|
+
* view paths issue when using partials with Rails Engine ([#321](https://github.com/rx/presenters/issues/321)) ([2a917e7](https://github.com/rx/presenters/commit/2a917e7076895037e5a069e77525ef53d2ca45f1))
|
8
|
+
|
9
|
+
|
10
|
+
### Features
|
11
|
+
|
12
|
+
* switch to use Rails built-in watchers and reloader ([#320](https://github.com/rx/presenters/issues/320)) ([53e0ee4](https://github.com/rx/presenters/commit/53e0ee49caa663ce93ff731c280bcd754da73fc1))
|
13
|
+
|
14
|
+
# [3.0.0-beta.6](https://github.com/rx/presenters/compare/v3.0.0-beta.5...v3.0.0-beta.6) (2021-06-23)
|
15
|
+
|
16
|
+
|
17
|
+
### Bug Fixes
|
18
|
+
|
19
|
+
* fixed typo on if check ([95b3091](https://github.com/rx/presenters/commit/95b3091365a853eee24e4bce0e37b182da1fdc3d))
|
20
|
+
* small tweaks to simplify the presenters wrappers ([#319](https://github.com/rx/presenters/issues/319)) ([cbf0c7c](https://github.com/rx/presenters/commit/cbf0c7c4c80d68ecc84a2989934d2d02e8a1a928))
|
21
|
+
|
22
|
+
# [3.0.0-beta.5](https://github.com/rx/presenters/compare/v3.0.0-beta.4...v3.0.0-beta.5) (2021-06-18)
|
23
|
+
|
24
|
+
|
25
|
+
### Bug Fixes
|
26
|
+
|
27
|
+
* add Rack > 2.2.2 support ([c39c18d](https://github.com/rx/presenters/commit/c39c18d48c557f9f206396eb73e20f15b0a85e7e))
|
28
|
+
* add Rack > 2.2.2 support ([6e23287](https://github.com/rx/presenters/commit/6e232875d1ea3c4250f9e19e841215a750082ffc))
|
29
|
+
* native rails tag helper conflicts with base components tag method. ([c9d3847](https://github.com/rx/presenters/commit/c9d3847405ab53c1ba728bf9f2afac655f0b1c1f))
|
30
|
+
|
31
|
+
# [3.0.0-beta.4](https://github.com/rx/presenters/compare/v3.0.0-beta.3...v3.0.0-beta.4) (2021-06-15)
|
32
|
+
|
33
|
+
|
34
|
+
### Bug Fixes
|
35
|
+
|
36
|
+
* Updated generator to use secure version of Rake ([5e0761f](https://github.com/rx/presenters/commit/5e0761f7c13139e68da38ea4dfaae4b40c010e71))
|
37
|
+
|
38
|
+
# [3.0.0-beta.3](https://github.com/rx/presenters/compare/v3.0.0-beta.2...v3.0.0-beta.3) (2021-06-07)
|
39
|
+
|
40
|
+
|
41
|
+
### Bug Fixes
|
42
|
+
|
43
|
+
* added cli --version ([4c5b10e](https://github.com/rx/presenters/commit/4c5b10e0707bcdeecfb29908eb3284b692cbcd41))
|
44
|
+
* added missing prepare context callbacks to Rails Engine ([bafa36d](https://github.com/rx/presenters/commit/bafa36d6e95ad9863eb93cb44cc894163c147c4f))
|
45
|
+
* added prepare context for Rails native views engine that sets the request and session automatically ([a09f3c6](https://github.com/rx/presenters/commit/a09f3c637102e640fe0b91894ae89b5a07288846))
|
46
|
+
* Added version.rb to plugin generator ([f1f2092](https://github.com/rx/presenters/commit/f1f20925dfd326fb5a47910952e21b34b762c31d))
|
47
|
+
* Added version.rb to plugin generator ([35187bf](https://github.com/rx/presenters/commit/35187bf188957e2ca93e2bf07963e958452f27fe))
|
48
|
+
* expanded plugin generator to include github semantic release, demo pom and sample README ([06de7a2](https://github.com/rx/presenters/commit/06de7a237f8a417a11776d1994915c32253a981d))
|
49
|
+
* fixed unordered list partial rendering error ([014f1d1](https://github.com/rx/presenters/commit/014f1d19926d7e9d39618fbe68c8068db316ac4b))
|
50
|
+
* generator not compatible with COPRL 3 Rails templating naming conventions ([f6d80f0](https://github.com/rx/presenters/commit/f6d80f0a44f6305b9339bc2bd6db8487eefc68cc))
|
51
|
+
* removed google_map built in plugin to its own plugin ([a34290d](https://github.com/rx/presenters/commit/a34290de890e2fdf7e6c2c7b1714854d454c82a4))
|
52
|
+
|
53
|
+
|
54
|
+
### Features
|
55
|
+
|
56
|
+
* Added singular alias for common actions: load, replace, post, create, and delete ([b57c305](https://github.com/rx/presenters/commit/b57c305bd4dbf95b8a9662ad747020683bf74c8d))
|
57
|
+
|
1
58
|
# [3.0.0-beta.2](https://github.com/rx/presenters/compare/v3.0.0-beta.1...v3.0.0-beta.2) (2021-06-03)
|
2
59
|
|
3
60
|
|
data/Gemfile
CHANGED
@@ -13,7 +13,7 @@ end
|
|
13
13
|
group :test do
|
14
14
|
gem 'rspec'
|
15
15
|
gem 'rspec-html-matchers'
|
16
|
-
gem 'watir', '~> 6.
|
16
|
+
gem 'watir', '~> 6.19'
|
17
17
|
gem 'webdrivers', '~> 4.1'
|
18
18
|
gem 'watir-rspec', '~> 3.0'
|
19
19
|
gem 'rspec_junit_formatter'
|
@@ -24,7 +24,18 @@ end
|
|
24
24
|
gem 'foo_presenter_plugin', github: 'coprl/foo_presenter_plugin', require: false
|
25
25
|
gem 'image_crop_presenter_plugin', github: 'coprl/image_crop_presenter_plugin', require: false
|
26
26
|
gem 'chart_presenter_plugin', github: 'coprl/chart_presenter_plugin', require: false
|
27
|
+
gem 'google_maps_presenter_plugin', github: 'coprl/google_maps_presenter_plugin', branch: :main, require: false
|
28
|
+
gem 'cacheable_presenter_plugin', github: 'coprl/cacheable_presenter_plugin', require: false
|
29
|
+
gem 'script_presenter_plugin', github: 'coprl/script_presenter_plugin', require: false
|
30
|
+
gem 'scroll_to_presenter_plugin', github: 'coprl/scroll_to_presenter_plugin', require: false
|
31
|
+
gem 'clipboard_presenter_plugin', github: 'coprl/clipboard_presenter_plugin', require: false
|
32
|
+
gem 'markup_presenter_plugin', github: 'coprl/markup_presenter_plugin', require: false
|
33
|
+
gem 'iframe_presenter_plugin', github: 'coprl/iframe_presenter_plugin', require: false
|
34
|
+
gem 'color_picker_presenter_plugin', github: 'coprl/color_picker_presenter_plugin', require: false
|
35
|
+
gem 'timer_presenter_plugin', github: 'coprl/timer_presenter_plugin', require: false
|
36
|
+
gem 'animate_presenter_plugin', github: 'coprl/animate_presenter_plugin', require: false
|
27
37
|
|
28
38
|
gem 'rack-cors'
|
29
39
|
gem 'honeybadger' if ENV.fetch('HONEYBADGER_API_KEY'){false}
|
30
40
|
gem 'puma'
|
41
|
+
gem 'dotenv'
|
data/Gemfile.lock
CHANGED
@@ -1,21 +1,82 @@
|
|
1
|
+
GIT
|
2
|
+
remote: https://github.com/coprl/animate_presenter_plugin.git
|
3
|
+
revision: 1eb21032ea4bd44113bb4d887df2472d5cd10a8f
|
4
|
+
specs:
|
5
|
+
animate_presenter_plugin (0.0.1)
|
6
|
+
|
7
|
+
GIT
|
8
|
+
remote: https://github.com/coprl/cacheable_presenter_plugin.git
|
9
|
+
revision: 262ac076d70d94b111b9ccb692dfc9225c7cc6c6
|
10
|
+
specs:
|
11
|
+
cacheable_presenter_plugin (0.0.3)
|
12
|
+
|
1
13
|
GIT
|
2
14
|
remote: https://github.com/coprl/chart_presenter_plugin.git
|
3
|
-
revision:
|
15
|
+
revision: 6b93c7a1b04356987cbe962841f564f4afc744c4
|
4
16
|
specs:
|
5
17
|
chart_presenter_plugin (0.1.0)
|
6
18
|
|
19
|
+
GIT
|
20
|
+
remote: https://github.com/coprl/clipboard_presenter_plugin.git
|
21
|
+
revision: 3de13cd7b858d68f4d2060bcbd44683b5ea755f8
|
22
|
+
specs:
|
23
|
+
clipboard_presenter_plugin (0.1.0)
|
24
|
+
|
25
|
+
GIT
|
26
|
+
remote: https://github.com/coprl/color_picker_presenter_plugin.git
|
27
|
+
revision: 10bdc8b555b2c168ee1d93316c7b10e961a7f5b5
|
28
|
+
specs:
|
29
|
+
color_picker_presenter_plugin (0.0.1)
|
30
|
+
|
7
31
|
GIT
|
8
32
|
remote: https://github.com/coprl/foo_presenter_plugin.git
|
9
|
-
revision:
|
33
|
+
revision: 6f1d796bf030bf69fca87777d28bdee63e9880d8
|
10
34
|
specs:
|
11
35
|
foo_presenter_plugin (0.0.2)
|
12
36
|
|
37
|
+
GIT
|
38
|
+
remote: https://github.com/coprl/google_maps_presenter_plugin.git
|
39
|
+
revision: 53d8d4d778fcc0295980aaae29bbc3fdb3a947d4
|
40
|
+
branch: main
|
41
|
+
specs:
|
42
|
+
google_maps_presenter_plugin (0.1.0)
|
43
|
+
|
44
|
+
GIT
|
45
|
+
remote: https://github.com/coprl/iframe_presenter_plugin.git
|
46
|
+
revision: d0bc691adba4807499af30ee375e9b6dd1426732
|
47
|
+
specs:
|
48
|
+
iframe_presenter_plugin (0.0.1)
|
49
|
+
|
13
50
|
GIT
|
14
51
|
remote: https://github.com/coprl/image_crop_presenter_plugin.git
|
15
|
-
revision:
|
52
|
+
revision: 586ef47bd6132f94810cfb04d02fcf7c9df1ae10
|
16
53
|
specs:
|
17
54
|
image_crop_presenter_plugin (0.1.0)
|
18
55
|
|
56
|
+
GIT
|
57
|
+
remote: https://github.com/coprl/markup_presenter_plugin.git
|
58
|
+
revision: a02e7ec5878d73f1263d3d8e7c82ea10e67df02b
|
59
|
+
specs:
|
60
|
+
markup_presenter_plugin (0.0.2)
|
61
|
+
|
62
|
+
GIT
|
63
|
+
remote: https://github.com/coprl/script_presenter_plugin.git
|
64
|
+
revision: c7cea03e73f4752a3df99e4b3ab0d4030f141f4d
|
65
|
+
specs:
|
66
|
+
script_presenter_plugin (0.0.2)
|
67
|
+
|
68
|
+
GIT
|
69
|
+
remote: https://github.com/coprl/scroll_to_presenter_plugin.git
|
70
|
+
revision: c34ab770665a16b81b8274357dd9cc77dbd0a566
|
71
|
+
specs:
|
72
|
+
scroll_to_presenter_plugin (0.0.2)
|
73
|
+
|
74
|
+
GIT
|
75
|
+
remote: https://github.com/coprl/timer_presenter_plugin.git
|
76
|
+
revision: 5901fd1a368ae7b293c0b87f58ebd01a24a38573
|
77
|
+
specs:
|
78
|
+
timer_presenter_plugin (0.0.1)
|
79
|
+
|
19
80
|
PATH
|
20
81
|
remote: .
|
21
82
|
specs:
|
@@ -23,7 +84,6 @@ PATH
|
|
23
84
|
dry-configurable (> 0.1, <= 7.0)
|
24
85
|
dry-container (~> 0.6)
|
25
86
|
dry-inflector (~> 0.1)
|
26
|
-
filewatcher (~> 1.1.1)
|
27
87
|
ice_nine (~> 0.11)
|
28
88
|
redcarpet (~> 3.4)
|
29
89
|
sinatra (>= 1.4, < 3.0)
|
@@ -37,34 +97,31 @@ GEM
|
|
37
97
|
byebug (11.1.3)
|
38
98
|
childprocess (3.0.0)
|
39
99
|
coderay (1.1.2)
|
40
|
-
concurrent-ruby (1.1.
|
41
|
-
diff-lcs (1.
|
100
|
+
concurrent-ruby (1.1.9)
|
101
|
+
diff-lcs (1.4.4)
|
42
102
|
docile (1.3.1)
|
103
|
+
dotenv (2.7.6)
|
43
104
|
dry-configurable (0.12.1)
|
44
105
|
concurrent-ruby (~> 1.0)
|
45
106
|
dry-core (~> 0.5, >= 0.5.0)
|
46
|
-
dry-container (0.
|
107
|
+
dry-container (0.8.0)
|
47
108
|
concurrent-ruby (~> 1.0)
|
48
109
|
dry-configurable (~> 0.1, >= 0.1.3)
|
49
|
-
dry-core (0.
|
110
|
+
dry-core (0.6.0)
|
50
111
|
concurrent-ruby (~> 1.0)
|
51
112
|
dry-inflector (0.2.0)
|
52
|
-
filewatcher (1.1.1)
|
53
|
-
optimist (~> 3.0)
|
54
|
-
gem-release (2.0.1)
|
55
113
|
ice_nine (0.11.2)
|
56
114
|
json (2.3.1)
|
57
115
|
method_source (0.9.0)
|
58
|
-
mini_portile2 (2.5.
|
116
|
+
mini_portile2 (2.5.3)
|
59
117
|
mustermann (1.1.1)
|
60
118
|
ruby2_keywords (~> 0.0.1)
|
61
119
|
nio4r (2.5.7)
|
62
|
-
nokogiri (1.11.
|
120
|
+
nokogiri (1.11.7)
|
63
121
|
mini_portile2 (~> 2.5.0)
|
64
122
|
racc (~> 1.4)
|
65
|
-
nokogiri (1.11.
|
123
|
+
nokogiri (1.11.7-x86_64-darwin)
|
66
124
|
racc (~> 1.4)
|
67
|
-
optimist (3.0.1)
|
68
125
|
pry (0.11.3)
|
69
126
|
coderay (~> 1.1.0)
|
70
127
|
method_source (~> 0.9.0)
|
@@ -83,27 +140,27 @@ GEM
|
|
83
140
|
rack (>= 1.0, < 3)
|
84
141
|
rake (13.0.1)
|
85
142
|
redcarpet (3.5.1)
|
86
|
-
regexp_parser (1.
|
87
|
-
rspec (3.
|
88
|
-
rspec-core (~> 3.
|
89
|
-
rspec-expectations (~> 3.
|
90
|
-
rspec-mocks (~> 3.
|
91
|
-
rspec-core (3.
|
92
|
-
rspec-support (~> 3.
|
93
|
-
rspec-expectations (3.
|
143
|
+
regexp_parser (2.1.1)
|
144
|
+
rspec (3.10.0)
|
145
|
+
rspec-core (~> 3.10.0)
|
146
|
+
rspec-expectations (~> 3.10.0)
|
147
|
+
rspec-mocks (~> 3.10.0)
|
148
|
+
rspec-core (3.10.1)
|
149
|
+
rspec-support (~> 3.10.0)
|
150
|
+
rspec-expectations (3.10.1)
|
94
151
|
diff-lcs (>= 1.2.0, < 2.0)
|
95
|
-
rspec-support (~> 3.
|
152
|
+
rspec-support (~> 3.10.0)
|
96
153
|
rspec-html-matchers (0.9.1)
|
97
154
|
nokogiri (~> 1)
|
98
155
|
rspec (>= 3.0.0.a, < 4)
|
99
|
-
rspec-mocks (3.
|
156
|
+
rspec-mocks (3.10.2)
|
100
157
|
diff-lcs (>= 1.2.0, < 2.0)
|
101
|
-
rspec-support (~> 3.
|
102
|
-
rspec-support (3.
|
158
|
+
rspec-support (~> 3.10.0)
|
159
|
+
rspec-support (3.10.2)
|
103
160
|
rspec_junit_formatter (0.4.1)
|
104
161
|
rspec-core (>= 2, < 4, != 2.12.0)
|
105
162
|
ruby2_keywords (0.0.4)
|
106
|
-
rubyzip (
|
163
|
+
rubyzip (2.3.0)
|
107
164
|
selenium-webdriver (3.142.7)
|
108
165
|
childprocess (>= 0.5, < 4.0)
|
109
166
|
rubyzip (>= 1.2.2)
|
@@ -121,19 +178,20 @@ GEM
|
|
121
178
|
tilt (~> 2.0)
|
122
179
|
thor (1.1.0)
|
123
180
|
tilt (2.0.10)
|
181
|
+
timecop (0.9.4)
|
124
182
|
tzinfo (2.0.4)
|
125
183
|
concurrent-ruby (~> 1.0)
|
126
184
|
tzinfo-data (1.2021.1)
|
127
185
|
tzinfo (>= 1.0.0)
|
128
|
-
watir (6.
|
129
|
-
regexp_parser (
|
130
|
-
selenium-webdriver (
|
186
|
+
watir (6.19.1)
|
187
|
+
regexp_parser (>= 1.2, < 3)
|
188
|
+
selenium-webdriver (>= 3.142.7)
|
131
189
|
watir-rspec (3.0.0)
|
132
190
|
rspec (~> 3.0)
|
133
191
|
watir (>= 6.0.0.beta4)
|
134
|
-
webdrivers (4.
|
192
|
+
webdrivers (4.6.0)
|
135
193
|
nokogiri (~> 1.6)
|
136
|
-
rubyzip (
|
194
|
+
rubyzip (>= 1.3.0)
|
137
195
|
selenium-webdriver (>= 3.0, < 4.0)
|
138
196
|
zeitwerk (2.4.2)
|
139
197
|
|
@@ -142,12 +200,19 @@ PLATFORMS
|
|
142
200
|
x86_64-darwin-19
|
143
201
|
|
144
202
|
DEPENDENCIES
|
203
|
+
animate_presenter_plugin!
|
145
204
|
bundler (>= 1.13)
|
205
|
+
cacheable_presenter_plugin!
|
146
206
|
chart_presenter_plugin!
|
207
|
+
clipboard_presenter_plugin!
|
208
|
+
color_picker_presenter_plugin!
|
147
209
|
coprl!
|
210
|
+
dotenv
|
148
211
|
foo_presenter_plugin!
|
149
|
-
|
212
|
+
google_maps_presenter_plugin!
|
213
|
+
iframe_presenter_plugin!
|
150
214
|
image_crop_presenter_plugin!
|
215
|
+
markup_presenter_plugin!
|
151
216
|
pry
|
152
217
|
pry-byebug
|
153
218
|
puma
|
@@ -158,10 +223,14 @@ DEPENDENCIES
|
|
158
223
|
rspec
|
159
224
|
rspec-html-matchers
|
160
225
|
rspec_junit_formatter
|
226
|
+
script_presenter_plugin!
|
227
|
+
scroll_to_presenter_plugin!
|
161
228
|
shotgun (~> 0.9)
|
162
229
|
simplecov
|
163
230
|
thor (~> 1.1.0)
|
164
|
-
|
231
|
+
timecop (~> 0.9.4)
|
232
|
+
timer_presenter_plugin!
|
233
|
+
watir (~> 6.19)
|
165
234
|
watir-rspec (~> 3.0)
|
166
235
|
webdrivers (~> 4.1)
|
167
236
|
|
@@ -169,4 +238,4 @@ RUBY VERSION
|
|
169
238
|
ruby 2.7.2p137
|
170
239
|
|
171
240
|
BUNDLED WITH
|
172
|
-
2.2.
|
241
|
+
2.2.20
|
data/README.md
CHANGED
@@ -101,13 +101,13 @@ You need to add the following to your layout to use presenters as a partial alon
|
|
101
101
|
##### Inside the <head> tag add the following:
|
102
102
|
|
103
103
|
<title><%= @pom.page.title if @pom.page %></title>
|
104
|
-
<%= coprl_headers
|
104
|
+
<%= coprl_headers %>
|
105
105
|
|
106
106
|
##### Inside the <body> tag, around you existing yield add the following:
|
107
107
|
|
108
|
-
<%=
|
108
|
+
<%= with_presenters_wrapper do %>
|
109
109
|
<%= yield %>
|
110
|
-
<%=
|
110
|
+
<%= end %>
|
111
111
|
|
112
112
|
### Rack
|
113
113
|
#### 1) To use it, add this line to your Gemfile:
|
@@ -170,7 +170,7 @@ Coprl::Presenters.define(:dialogs) do
|
|
170
170
|
end
|
171
171
|
end
|
172
172
|
separator
|
173
|
-
content
|
173
|
+
content input_tag: :second_form_input do
|
174
174
|
dlg_form
|
175
175
|
end
|
176
176
|
subtitle 'The buttons below are Dialog Action buttons. When clicked, they will process any configured actions, then automatically clsoe the dialog.'
|
@@ -8,10 +8,10 @@ Coprl::Presenters.define(:snackbar) do
|
|
8
8
|
|
9
9
|
indented_grid do
|
10
10
|
title 'On Page'
|
11
|
-
body 'You can attach a snackbar on the server side and will render after load.'
|
11
|
+
body 'You can invoke or attach a snackbar on the server side and will render after load.'
|
12
12
|
snackbar 'Top Level Important Information!'
|
13
|
-
|
14
|
-
attach :snackbar_attached
|
13
|
+
# This is the same as above -- see POM at end of file
|
14
|
+
# attach :snackbar_attached
|
15
15
|
|
16
16
|
title 'As Event'
|
17
17
|
button 'Show Snackbar', id: :show_snackbar do
|
@@ -33,3 +33,9 @@ Coprl::Presenters.define(:snackbar) do
|
|
33
33
|
|
34
34
|
attach :code, file: __FILE__
|
35
35
|
end
|
36
|
+
|
37
|
+
# Coprl::Presenters.define(:snackbar_attached) do
|
38
|
+
# title 'In Attached'
|
39
|
+
# body 'This can be done in an attached presenter as well'
|
40
|
+
# snackbar 'Attached Snackbar Displayed!'
|
41
|
+
# end
|
@@ -118,7 +118,7 @@ Coprl::Presenters.define(:content_as_form) do
|
|
118
118
|
|
119
119
|
grid do
|
120
120
|
column 12 do
|
121
|
-
text_field id: :input_tag_extra, name: :whatever,
|
121
|
+
text_field id: :input_tag_extra, name: :whatever, input_tag: :test_input_tag do
|
122
122
|
value 'foo bar'
|
123
123
|
end
|
124
124
|
end
|
@@ -127,7 +127,7 @@ Coprl::Presenters.define(:content_as_form) do
|
|
127
127
|
indented_grid do
|
128
128
|
card do
|
129
129
|
title 'Content with input_tag'
|
130
|
-
content id: :content_2,
|
130
|
+
content id: :content_2, input_tag: :test_input_tag do
|
131
131
|
text_field name: :text1 do
|
132
132
|
label 'Text 1'
|
133
133
|
end
|
@@ -275,7 +275,7 @@ end
|
|
275
275
|
|
276
276
|
Coprl::Presenters.define(:dialog_c) do
|
277
277
|
dialog id: :dialog_c do
|
278
|
-
content
|
278
|
+
content input_tag: :some_dialog_tag do
|
279
279
|
text_field name: :dialog_text_field do
|
280
280
|
value 'whatever'
|
281
281
|
end
|