bootstrap_form 5.1.0 → 5.2.1
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/.github/workflows/ruby.yml +21 -8
- data/.gitignore +4 -2
- data/.rubocop.yml +2 -1
- data/.yarnrc +5 -0
- data/CHANGELOG.md +13 -3
- data/CONTRIBUTING.md +101 -14
- data/Dangerfile +4 -4
- data/Dockerfile +5 -5
- data/Gemfile +5 -21
- data/README.md +108 -42
- data/RELEASING.md +12 -1
- data/Rakefile +7 -6
- data/bootstrap_form.gemspec +6 -8
- data/docker-compose.yml +6 -24
- data/gemfiles/6.0.gemfile +1 -1
- data/gemfiles/6.1.gemfile +1 -1
- data/gemfiles/7.0.gemfile +2 -3
- data/gemfiles/common.gemfile +28 -0
- data/gemfiles/edge.gemfile +3 -2
- data/lib/bootstrap_form/components/labels.rb +3 -9
- data/lib/bootstrap_form/components/validation.rb +36 -19
- data/lib/bootstrap_form/form_builder.rb +4 -1
- data/lib/bootstrap_form/form_group.rb +9 -6
- data/lib/bootstrap_form/form_group_builder.rb +10 -7
- data/lib/bootstrap_form/helpers/bootstrap.rb +7 -8
- data/lib/bootstrap_form/helpers/field.rb +26 -0
- data/lib/bootstrap_form/helpers.rb +1 -0
- data/lib/bootstrap_form/inputs/base.rb +2 -2
- data/lib/bootstrap_form/inputs/check_box.rb +22 -6
- data/lib/bootstrap_form/inputs/radio_button.rb +3 -3
- data/lib/bootstrap_form/inputs/range_field.rb +1 -1
- data/lib/bootstrap_form/inputs.rb +1 -1
- data/lib/bootstrap_form/version.rb +2 -1
- data/lib/bootstrap_form.rb +1 -1
- metadata +14 -146
- data/demo/.postcssrc.yml +0 -3
- data/demo/.ruby-version +0 -1
- data/demo/Gemfile +0 -80
- data/demo/Gemfile.lock +0 -261
- data/demo/Procfile.dev +0 -2
- data/demo/README.md +0 -17
- data/demo/Rakefile +0 -6
- data/demo/app/assets/builds/.keep +0 -0
- data/demo/app/assets/builds/application.js.LICENSE.txt +0 -9
- data/demo/app/assets/config/manifest.js +0 -2
- data/demo/app/assets/stylesheets/actiontext.css +0 -31
- data/demo/app/assets/stylesheets/actiontext.scss +0 -38
- data/demo/app/assets/stylesheets/application.scss +0 -1
- data/demo/app/controllers/application_controller.rb +0 -2
- data/demo/app/controllers/bootstrap_controller.rb +0 -29
- data/demo/app/controllers/users_controller.rb +0 -9
- data/demo/app/helpers/bootstrap_helper.rb +0 -27
- data/demo/app/javascript/application.js +0 -3
- data/demo/app/javascript/channels/consumer.js +0 -6
- data/demo/app/javascript/channels/index.js +0 -5
- data/demo/app/javascript/packs/application.js +0 -11
- data/demo/app/models/address.rb +0 -3
- data/demo/app/models/application_record.rb +0 -3
- data/demo/app/models/faux_user.rb +0 -9
- data/demo/app/models/skill.rb +0 -15
- data/demo/app/models/super_user.rb +0 -2
- data/demo/app/models/user.rb +0 -25
- data/demo/app/views/active_storage/blobs/_blob.html.erb +0 -14
- data/demo/app/views/bootstrap/form.html.erb +0 -67
- data/demo/app/views/layouts/action_text/contents/_content.html.erb +0 -3
- data/demo/app/views/layouts/application.html.erb +0 -76
- data/demo/bin/bundle +0 -3
- data/demo/bin/dev +0 -9
- data/demo/bin/rails +0 -4
- data/demo/bin/rake +0 -4
- data/demo/bin/setup +0 -36
- data/demo/bin/update +0 -31
- data/demo/bin/webpack +0 -15
- data/demo/bin/webpack-dev-server +0 -15
- data/demo/bin/yarn +0 -11
- data/demo/config/application.rb +0 -21
- data/demo/config/boot.rb +0 -5
- data/demo/config/database.yml +0 -21
- data/demo/config/environment.rb +0 -5
- data/demo/config/environments/development.rb +0 -60
- data/demo/config/environments/production.rb +0 -48
- data/demo/config/environments/test.rb +0 -46
- data/demo/config/initializers/application_controller_renderer.rb +0 -8
- data/demo/config/initializers/backtrace_silencers.rb +0 -7
- data/demo/config/initializers/cookies_serializer.rb +0 -5
- data/demo/config/initializers/filter_parameter_logging.rb +0 -4
- data/demo/config/initializers/inflections.rb +0 -16
- data/demo/config/initializers/mime_types.rb +0 -4
- data/demo/config/initializers/wrap_parameters.rb +0 -14
- data/demo/config/locales/en.yml +0 -33
- data/demo/config/puma.rb +0 -56
- data/demo/config/routes.rb +0 -6
- data/demo/config/spring.rb +0 -6
- data/demo/config/storage.yml +0 -35
- data/demo/config/webpack/development.js +0 -5
- data/demo/config/webpack/environment.js +0 -3
- data/demo/config/webpack/production.js +0 -5
- data/demo/config/webpack/test.js +0 -5
- data/demo/config/webpacker.yml +0 -92
- data/demo/config.ru +0 -5
- data/demo/db/schema.rb +0 -84
- data/demo/doc/screenshots/bootstrap/index/00_horizontal_form.png +0 -0
- data/demo/doc/screenshots/bootstrap/index/01_with_validation_error.png +0 -0
- data/demo/doc/screenshots/bootstrap/index/02_inline_form.png +0 -0
- data/demo/doc/screenshots/bootstrap/index/03_simple_action_text_example.png +0 -0
- data/demo/doc/screenshots/bootstrap/index/04_floating_labels.png +0 -0
- data/demo/doc/screenshots/bootstrap/readme/00_example.png +0 -0
- data/demo/doc/screenshots/bootstrap/readme/01_example.png +0 -0
- data/demo/doc/screenshots/bootstrap/readme/02_example.png +0 -0
- data/demo/doc/screenshots/bootstrap/readme/03_example.png +0 -0
- data/demo/doc/screenshots/bootstrap/readme/04_example.png +0 -0
- data/demo/doc/screenshots/bootstrap/readme/05_example.png +0 -0
- data/demo/doc/screenshots/bootstrap/readme/06_example.png +0 -0
- data/demo/doc/screenshots/bootstrap/readme/07_example.png +0 -0
- data/demo/doc/screenshots/bootstrap/readme/08_example.png +0 -0
- data/demo/doc/screenshots/bootstrap/readme/09_example.png +0 -0
- data/demo/doc/screenshots/bootstrap/readme/10_example.png +0 -0
- data/demo/doc/screenshots/bootstrap/readme/11_example.png +0 -0
- data/demo/doc/screenshots/bootstrap/readme/12_example.png +0 -0
- data/demo/doc/screenshots/bootstrap/readme/13_example.png +0 -0
- data/demo/doc/screenshots/bootstrap/readme/14_example.png +0 -0
- data/demo/doc/screenshots/bootstrap/readme/15_example.png +0 -0
- data/demo/doc/screenshots/bootstrap/readme/16_example.png +0 -0
- data/demo/doc/screenshots/bootstrap/readme/17_example.png +0 -0
- data/demo/doc/screenshots/bootstrap/readme/18_example.png +0 -0
- data/demo/doc/screenshots/bootstrap/readme/19_example.png +0 -0
- data/demo/doc/screenshots/bootstrap/readme/20_example.png +0 -0
- data/demo/doc/screenshots/bootstrap/readme/21_example.png +0 -0
- data/demo/doc/screenshots/bootstrap/readme/22_example.png +0 -0
- data/demo/doc/screenshots/bootstrap/readme/23_example.png +0 -0
- data/demo/doc/screenshots/bootstrap/readme/24_example.png +0 -0
- data/demo/doc/screenshots/bootstrap/readme/25_example.png +0 -0
- data/demo/doc/screenshots/bootstrap/readme/26_example.png +0 -0
- data/demo/doc/screenshots/bootstrap/readme/27_example.png +0 -0
- data/demo/doc/screenshots/bootstrap/readme/28_example.png +0 -0
- data/demo/doc/screenshots/bootstrap/readme/29_example.png +0 -0
- data/demo/doc/screenshots/bootstrap/readme/30_example.png +0 -0
- data/demo/doc/screenshots/bootstrap/readme/31_example.png +0 -0
- data/demo/doc/screenshots/bootstrap/readme/32_example.png +0 -0
- data/demo/doc/screenshots/bootstrap/readme/33_example.png +0 -0
- data/demo/doc/screenshots/bootstrap/readme/34_example.png +0 -0
- data/demo/doc/screenshots/bootstrap/readme/35_example.png +0 -0
- data/demo/doc/screenshots/bootstrap/readme/36_example.png +0 -0
- data/demo/doc/screenshots/bootstrap/readme/37_example.png +0 -0
- data/demo/doc/screenshots/bootstrap/readme/38_example.png +0 -0
- data/demo/doc/screenshots/bootstrap/readme/39_example.png +0 -0
- data/demo/doc/screenshots/bootstrap/readme/40_example.png +0 -0
- data/demo/doc/screenshots/bootstrap/readme/41_example.png +0 -0
- data/demo/doc/screenshots/bootstrap/readme/42_example.png +0 -0
- data/demo/doc/screenshots/bootstrap/readme/43_example.png +0 -0
- data/demo/doc/screenshots/bootstrap/readme/44_example.png +0 -0
- data/demo/doc/screenshots/bootstrap/readme/45_example.png +0 -0
- data/demo/doc/screenshots/bootstrap/readme/46_example.png +0 -0
- data/demo/doc/screenshots/bootstrap/readme/47_example.png +0 -0
- data/demo/doc/screenshots/bootstrap/readme/48_example.png +0 -0
- data/demo/doc/screenshots/bootstrap/readme/49_example.png +0 -0
- data/demo/doc/screenshots/bootstrap/readme/50_example.png +0 -0
- data/demo/log/.keep +0 -0
- data/demo/package.json +0 -21
- data/demo/public/favicon.ico +0 -0
- data/demo/test/application_system_test_case.rb +0 -8
- data/demo/test/controllers/bootstrap_controller_test.rb +0 -8
- data/demo/test/controllers/users_controller_test.rb +0 -13
- data/demo/test/fixtures/action_text/rich_texts.yml +0 -4
- data/demo/test/fixtures/users.yml +0 -2
- data/demo/test/system/bootstrap_test.rb +0 -84
- data/demo/test/test_helper.rb +0 -10
- data/demo/webpack.config.js +0 -20
- data/demo/yarn.lock +0 -7176
- data/gemfiles/5.2.gemfile +0 -4
data/demo/Gemfile
DELETED
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
source "https://rubygems.org"
|
|
2
|
-
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
|
|
3
|
-
|
|
4
|
-
ruby File.read("#{__dir__}/.ruby-version").delete_prefix("ruby-").chomp
|
|
5
|
-
|
|
6
|
-
# Bundle edge Rails instead: gem "rails", github: "rails/rails", branch: "main"
|
|
7
|
-
gem "rails", "~> 7.0.0"
|
|
8
|
-
|
|
9
|
-
# The original asset pipeline for Rails [https://github.com/rails/sprockets-rails]
|
|
10
|
-
gem "sprockets-rails"
|
|
11
|
-
|
|
12
|
-
# Use sqlite3 as the database for Active Record
|
|
13
|
-
gem "sqlite3", "~> 1.4"
|
|
14
|
-
|
|
15
|
-
# Use the Puma web server [https://github.com/puma/puma]
|
|
16
|
-
gem "puma", "~> 5.0"
|
|
17
|
-
|
|
18
|
-
# Bundle and transpile JavaScript [https://github.com/rails/jsbundling-rails]
|
|
19
|
-
gem "jsbundling-rails"
|
|
20
|
-
|
|
21
|
-
# Hotwire's SPA-like page accelerator [https://turbo.hotwired.dev]
|
|
22
|
-
gem "turbo-rails"
|
|
23
|
-
|
|
24
|
-
# Hotwire's modest JavaScript framework [https://stimulus.hotwired.dev]
|
|
25
|
-
gem "stimulus-rails"
|
|
26
|
-
|
|
27
|
-
# Bundle and process CSS [https://github.com/rails/cssbundling-rails]
|
|
28
|
-
gem "cssbundling-rails"
|
|
29
|
-
|
|
30
|
-
# Build JSON APIs with ease [https://github.com/rails/jbuilder]
|
|
31
|
-
gem "jbuilder"
|
|
32
|
-
|
|
33
|
-
# Use Redis adapter to run Action Cable in production
|
|
34
|
-
# gem "redis", "~> 4.0"
|
|
35
|
-
|
|
36
|
-
# Use Kredis to get higher-level data types in Redis [https://github.com/rails/kredis]
|
|
37
|
-
# gem "kredis"
|
|
38
|
-
|
|
39
|
-
# Use Active Model has_secure_password [https://guides.rubyonrails.org/active_model_basics.html#securepassword]
|
|
40
|
-
# gem "bcrypt", "~> 3.1.7"
|
|
41
|
-
|
|
42
|
-
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
|
|
43
|
-
gem "tzinfo-data", platforms: %i[mingw mswin x64_mingw jruby]
|
|
44
|
-
|
|
45
|
-
# Reduces boot times through caching; required in config/boot.rb
|
|
46
|
-
gem "bootsnap", require: false
|
|
47
|
-
|
|
48
|
-
gem "bootstrap_form", "~> 5.0"
|
|
49
|
-
|
|
50
|
-
# Needed for our demo app but not the gem itself
|
|
51
|
-
gem "htmlbeautifier"
|
|
52
|
-
|
|
53
|
-
# Use Sass to process CSS
|
|
54
|
-
gem "sassc-rails"
|
|
55
|
-
|
|
56
|
-
# Use Active Storage variants [https://guides.rubyonrails.org/active_storage_overview.html#transforming-images]
|
|
57
|
-
# gem "image_processing", "~> 1.2"
|
|
58
|
-
|
|
59
|
-
group :development, :test do
|
|
60
|
-
# See https://guides.rubyonrails.org/debugging_rails_applications.html#debugging-with-the-debug-gem
|
|
61
|
-
gem "debug", platforms: %i[mri mingw x64_mingw]
|
|
62
|
-
end
|
|
63
|
-
|
|
64
|
-
group :development do
|
|
65
|
-
# Use console on exceptions pages [https://github.com/rails/web-console]
|
|
66
|
-
gem "web-console"
|
|
67
|
-
|
|
68
|
-
# Add speed badges [https://github.com/MiniProfiler/rack-mini-profiler]
|
|
69
|
-
# gem "rack-mini-profiler"
|
|
70
|
-
|
|
71
|
-
# Speed up commands on slow machines / big apps [https://github.com/rails/spring]
|
|
72
|
-
# gem "spring"
|
|
73
|
-
end
|
|
74
|
-
|
|
75
|
-
group :test do
|
|
76
|
-
# Use system testing [https://guides.rubyonrails.org/testing.html#system-testing]
|
|
77
|
-
gem "capybara-screenshot-diff"
|
|
78
|
-
gem "selenium-webdriver"
|
|
79
|
-
gem "webdrivers"
|
|
80
|
-
end
|
data/demo/Gemfile.lock
DELETED
|
@@ -1,261 +0,0 @@
|
|
|
1
|
-
GEM
|
|
2
|
-
remote: https://rubygems.org/
|
|
3
|
-
specs:
|
|
4
|
-
actioncable (7.0.2.4)
|
|
5
|
-
actionpack (= 7.0.2.4)
|
|
6
|
-
activesupport (= 7.0.2.4)
|
|
7
|
-
nio4r (~> 2.0)
|
|
8
|
-
websocket-driver (>= 0.6.1)
|
|
9
|
-
actionmailbox (7.0.2.4)
|
|
10
|
-
actionpack (= 7.0.2.4)
|
|
11
|
-
activejob (= 7.0.2.4)
|
|
12
|
-
activerecord (= 7.0.2.4)
|
|
13
|
-
activestorage (= 7.0.2.4)
|
|
14
|
-
activesupport (= 7.0.2.4)
|
|
15
|
-
mail (>= 2.7.1)
|
|
16
|
-
net-imap
|
|
17
|
-
net-pop
|
|
18
|
-
net-smtp
|
|
19
|
-
actionmailer (7.0.2.4)
|
|
20
|
-
actionpack (= 7.0.2.4)
|
|
21
|
-
actionview (= 7.0.2.4)
|
|
22
|
-
activejob (= 7.0.2.4)
|
|
23
|
-
activesupport (= 7.0.2.4)
|
|
24
|
-
mail (~> 2.5, >= 2.5.4)
|
|
25
|
-
net-imap
|
|
26
|
-
net-pop
|
|
27
|
-
net-smtp
|
|
28
|
-
rails-dom-testing (~> 2.0)
|
|
29
|
-
actionpack (7.0.2.4)
|
|
30
|
-
actionview (= 7.0.2.4)
|
|
31
|
-
activesupport (= 7.0.2.4)
|
|
32
|
-
rack (~> 2.0, >= 2.2.0)
|
|
33
|
-
rack-test (>= 0.6.3)
|
|
34
|
-
rails-dom-testing (~> 2.0)
|
|
35
|
-
rails-html-sanitizer (~> 1.0, >= 1.2.0)
|
|
36
|
-
actiontext (7.0.2.4)
|
|
37
|
-
actionpack (= 7.0.2.4)
|
|
38
|
-
activerecord (= 7.0.2.4)
|
|
39
|
-
activestorage (= 7.0.2.4)
|
|
40
|
-
activesupport (= 7.0.2.4)
|
|
41
|
-
globalid (>= 0.6.0)
|
|
42
|
-
nokogiri (>= 1.8.5)
|
|
43
|
-
actionview (7.0.2.4)
|
|
44
|
-
activesupport (= 7.0.2.4)
|
|
45
|
-
builder (~> 3.1)
|
|
46
|
-
erubi (~> 1.4)
|
|
47
|
-
rails-dom-testing (~> 2.0)
|
|
48
|
-
rails-html-sanitizer (~> 1.1, >= 1.2.0)
|
|
49
|
-
activejob (7.0.2.4)
|
|
50
|
-
activesupport (= 7.0.2.4)
|
|
51
|
-
globalid (>= 0.3.6)
|
|
52
|
-
activemodel (7.0.2.4)
|
|
53
|
-
activesupport (= 7.0.2.4)
|
|
54
|
-
activerecord (7.0.2.4)
|
|
55
|
-
activemodel (= 7.0.2.4)
|
|
56
|
-
activesupport (= 7.0.2.4)
|
|
57
|
-
activestorage (7.0.2.4)
|
|
58
|
-
actionpack (= 7.0.2.4)
|
|
59
|
-
activejob (= 7.0.2.4)
|
|
60
|
-
activerecord (= 7.0.2.4)
|
|
61
|
-
activesupport (= 7.0.2.4)
|
|
62
|
-
marcel (~> 1.0)
|
|
63
|
-
mini_mime (>= 1.1.0)
|
|
64
|
-
activesupport (7.0.2.4)
|
|
65
|
-
concurrent-ruby (~> 1.0, >= 1.0.2)
|
|
66
|
-
i18n (>= 1.6, < 2)
|
|
67
|
-
minitest (>= 5.1)
|
|
68
|
-
tzinfo (~> 2.0)
|
|
69
|
-
addressable (2.8.0)
|
|
70
|
-
public_suffix (>= 2.0.2, < 5.0)
|
|
71
|
-
bindex (0.8.1)
|
|
72
|
-
bootsnap (1.11.1)
|
|
73
|
-
msgpack (~> 1.2)
|
|
74
|
-
bootstrap_form (5.0.0)
|
|
75
|
-
actionpack (>= 5.2)
|
|
76
|
-
activemodel (>= 5.2)
|
|
77
|
-
builder (3.2.4)
|
|
78
|
-
capybara (3.36.0)
|
|
79
|
-
addressable
|
|
80
|
-
matrix
|
|
81
|
-
mini_mime (>= 0.1.3)
|
|
82
|
-
nokogiri (~> 1.8)
|
|
83
|
-
rack (>= 1.6.0)
|
|
84
|
-
rack-test (>= 0.6.3)
|
|
85
|
-
regexp_parser (>= 1.5, < 3.0)
|
|
86
|
-
xpath (~> 3.2)
|
|
87
|
-
capybara-screenshot-diff (1.6.1)
|
|
88
|
-
actionpack (>= 4.2, < 8)
|
|
89
|
-
capybara (>= 2, < 4)
|
|
90
|
-
chunky_png (~> 1.3)
|
|
91
|
-
childprocess (4.1.0)
|
|
92
|
-
chunky_png (1.4.0)
|
|
93
|
-
concurrent-ruby (1.1.10)
|
|
94
|
-
crass (1.0.6)
|
|
95
|
-
cssbundling-rails (1.1.0)
|
|
96
|
-
railties (>= 6.0.0)
|
|
97
|
-
debug (1.5.0)
|
|
98
|
-
irb (>= 1.3.6)
|
|
99
|
-
reline (>= 0.2.7)
|
|
100
|
-
digest (3.1.0)
|
|
101
|
-
erubi (1.10.0)
|
|
102
|
-
ffi (1.15.5)
|
|
103
|
-
globalid (1.0.0)
|
|
104
|
-
activesupport (>= 5.0)
|
|
105
|
-
htmlbeautifier (1.4.2)
|
|
106
|
-
i18n (1.10.0)
|
|
107
|
-
concurrent-ruby (~> 1.0)
|
|
108
|
-
io-console (0.5.11)
|
|
109
|
-
irb (1.4.1)
|
|
110
|
-
reline (>= 0.3.0)
|
|
111
|
-
jbuilder (2.11.5)
|
|
112
|
-
actionview (>= 5.0.0)
|
|
113
|
-
activesupport (>= 5.0.0)
|
|
114
|
-
jsbundling-rails (1.0.2)
|
|
115
|
-
railties (>= 6.0.0)
|
|
116
|
-
loofah (2.16.0)
|
|
117
|
-
crass (~> 1.0.2)
|
|
118
|
-
nokogiri (>= 1.5.9)
|
|
119
|
-
mail (2.7.1)
|
|
120
|
-
mini_mime (>= 0.1.1)
|
|
121
|
-
marcel (1.0.2)
|
|
122
|
-
matrix (0.4.2)
|
|
123
|
-
method_source (1.0.0)
|
|
124
|
-
mini_mime (1.1.2)
|
|
125
|
-
minitest (5.15.0)
|
|
126
|
-
msgpack (1.5.1)
|
|
127
|
-
net-imap (0.2.3)
|
|
128
|
-
digest
|
|
129
|
-
net-protocol
|
|
130
|
-
strscan
|
|
131
|
-
net-pop (0.1.1)
|
|
132
|
-
digest
|
|
133
|
-
net-protocol
|
|
134
|
-
timeout
|
|
135
|
-
net-protocol (0.1.3)
|
|
136
|
-
timeout
|
|
137
|
-
net-smtp (0.3.1)
|
|
138
|
-
digest
|
|
139
|
-
net-protocol
|
|
140
|
-
timeout
|
|
141
|
-
nio4r (2.5.8)
|
|
142
|
-
nokogiri (1.13.4-x86_64-darwin)
|
|
143
|
-
racc (~> 1.4)
|
|
144
|
-
nokogiri (1.13.4-x86_64-linux)
|
|
145
|
-
racc (~> 1.4)
|
|
146
|
-
public_suffix (4.0.7)
|
|
147
|
-
puma (5.6.4)
|
|
148
|
-
nio4r (~> 2.0)
|
|
149
|
-
racc (1.6.0)
|
|
150
|
-
rack (2.2.3)
|
|
151
|
-
rack-test (1.1.0)
|
|
152
|
-
rack (>= 1.0, < 3)
|
|
153
|
-
rails (7.0.2.4)
|
|
154
|
-
actioncable (= 7.0.2.4)
|
|
155
|
-
actionmailbox (= 7.0.2.4)
|
|
156
|
-
actionmailer (= 7.0.2.4)
|
|
157
|
-
actionpack (= 7.0.2.4)
|
|
158
|
-
actiontext (= 7.0.2.4)
|
|
159
|
-
actionview (= 7.0.2.4)
|
|
160
|
-
activejob (= 7.0.2.4)
|
|
161
|
-
activemodel (= 7.0.2.4)
|
|
162
|
-
activerecord (= 7.0.2.4)
|
|
163
|
-
activestorage (= 7.0.2.4)
|
|
164
|
-
activesupport (= 7.0.2.4)
|
|
165
|
-
bundler (>= 1.15.0)
|
|
166
|
-
railties (= 7.0.2.4)
|
|
167
|
-
rails-dom-testing (2.0.3)
|
|
168
|
-
activesupport (>= 4.2.0)
|
|
169
|
-
nokogiri (>= 1.6)
|
|
170
|
-
rails-html-sanitizer (1.4.2)
|
|
171
|
-
loofah (~> 2.3)
|
|
172
|
-
railties (7.0.2.4)
|
|
173
|
-
actionpack (= 7.0.2.4)
|
|
174
|
-
activesupport (= 7.0.2.4)
|
|
175
|
-
method_source
|
|
176
|
-
rake (>= 12.2)
|
|
177
|
-
thor (~> 1.0)
|
|
178
|
-
zeitwerk (~> 2.5)
|
|
179
|
-
rake (13.0.6)
|
|
180
|
-
regexp_parser (2.3.1)
|
|
181
|
-
reline (0.3.1)
|
|
182
|
-
io-console (~> 0.5)
|
|
183
|
-
rexml (3.2.5)
|
|
184
|
-
rubyzip (2.3.2)
|
|
185
|
-
sassc (2.4.0)
|
|
186
|
-
ffi (~> 1.9)
|
|
187
|
-
sassc-rails (2.1.2)
|
|
188
|
-
railties (>= 4.0.0)
|
|
189
|
-
sassc (>= 2.0)
|
|
190
|
-
sprockets (> 3.0)
|
|
191
|
-
sprockets-rails
|
|
192
|
-
tilt
|
|
193
|
-
selenium-webdriver (4.1.0)
|
|
194
|
-
childprocess (>= 0.5, < 5.0)
|
|
195
|
-
rexml (~> 3.2, >= 3.2.5)
|
|
196
|
-
rubyzip (>= 1.2.2)
|
|
197
|
-
sprockets (4.0.3)
|
|
198
|
-
concurrent-ruby (~> 1.0)
|
|
199
|
-
rack (> 1, < 3)
|
|
200
|
-
sprockets-rails (3.4.2)
|
|
201
|
-
actionpack (>= 5.2)
|
|
202
|
-
activesupport (>= 5.2)
|
|
203
|
-
sprockets (>= 3.0.0)
|
|
204
|
-
sqlite3 (1.4.2)
|
|
205
|
-
stimulus-rails (1.0.4)
|
|
206
|
-
railties (>= 6.0.0)
|
|
207
|
-
strscan (3.0.1)
|
|
208
|
-
thor (1.2.1)
|
|
209
|
-
tilt (2.0.10)
|
|
210
|
-
timeout (0.2.0)
|
|
211
|
-
turbo-rails (1.0.1)
|
|
212
|
-
actionpack (>= 6.0.0)
|
|
213
|
-
railties (>= 6.0.0)
|
|
214
|
-
tzinfo (2.0.4)
|
|
215
|
-
concurrent-ruby (~> 1.0)
|
|
216
|
-
web-console (4.2.0)
|
|
217
|
-
actionview (>= 6.0.0)
|
|
218
|
-
activemodel (>= 6.0.0)
|
|
219
|
-
bindex (>= 0.4.0)
|
|
220
|
-
railties (>= 6.0.0)
|
|
221
|
-
webdrivers (5.0.0)
|
|
222
|
-
nokogiri (~> 1.6)
|
|
223
|
-
rubyzip (>= 1.3.0)
|
|
224
|
-
selenium-webdriver (~> 4.0)
|
|
225
|
-
websocket-driver (0.7.5)
|
|
226
|
-
websocket-extensions (>= 0.1.0)
|
|
227
|
-
websocket-extensions (0.1.5)
|
|
228
|
-
xpath (3.2.0)
|
|
229
|
-
nokogiri (~> 1.8)
|
|
230
|
-
zeitwerk (2.5.4)
|
|
231
|
-
|
|
232
|
-
PLATFORMS
|
|
233
|
-
x86_64-darwin-21
|
|
234
|
-
x86_64-linux
|
|
235
|
-
|
|
236
|
-
DEPENDENCIES
|
|
237
|
-
bootsnap
|
|
238
|
-
bootstrap_form (~> 5.0)
|
|
239
|
-
capybara-screenshot-diff
|
|
240
|
-
cssbundling-rails
|
|
241
|
-
debug
|
|
242
|
-
htmlbeautifier
|
|
243
|
-
jbuilder
|
|
244
|
-
jsbundling-rails
|
|
245
|
-
puma (~> 5.0)
|
|
246
|
-
rails (~> 7.0.0)
|
|
247
|
-
sassc-rails
|
|
248
|
-
selenium-webdriver
|
|
249
|
-
sprockets-rails
|
|
250
|
-
sqlite3 (~> 1.4)
|
|
251
|
-
stimulus-rails
|
|
252
|
-
turbo-rails
|
|
253
|
-
tzinfo-data
|
|
254
|
-
web-console
|
|
255
|
-
webdrivers
|
|
256
|
-
|
|
257
|
-
RUBY VERSION
|
|
258
|
-
ruby 2.7.6p219
|
|
259
|
-
|
|
260
|
-
BUNDLED WITH
|
|
261
|
-
2.3.12
|
data/demo/Procfile.dev
DELETED
data/demo/README.md
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
# DEMO APP (Rails 5.2)
|
|
2
|
-
|
|
3
|
-
### Usage
|
|
4
|
-
|
|
5
|
-
- `rake db:schema:load`
|
|
6
|
-
- `rails s`
|
|
7
|
-
- Navigate to http://localhost:3000
|
|
8
|
-
|
|
9
|
-
### Following files were added or changed:
|
|
10
|
-
|
|
11
|
-
- db/schema.rb
|
|
12
|
-
- config/{application, routes, boot}.rb
|
|
13
|
-
- config/environments/{development, test}.rb
|
|
14
|
-
- app/models/{address,user,super_user,faux_user}.rb
|
|
15
|
-
- app/controllers/bootstrap_controller.rb
|
|
16
|
-
- app/views/layouts/application.html.erb
|
|
17
|
-
- app/views/bootstrap/form.html.erb
|
data/demo/Rakefile
DELETED
|
File without changes
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
|
|
4
|
-
* This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
5
|
-
* The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
6
|
-
* The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
7
|
-
* Code distributed by Google as part of the polymer project is also
|
|
8
|
-
* subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
9
|
-
*/
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Provides a drop-in pointer for the default Trix stylesheet that will format the toolbar and
|
|
3
|
-
* the trix-editor content (whether displayed or under editing). Feel free to incorporate this
|
|
4
|
-
* inclusion directly in any other asset bundle and remove this file.
|
|
5
|
-
*
|
|
6
|
-
*= require trix
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
/*
|
|
10
|
-
* We need to override trix.css’s image gallery styles to accommodate the
|
|
11
|
-
* <action-text-attachment> element we wrap around attachments. Otherwise,
|
|
12
|
-
* images in galleries will be squished by the max-width: 33%; rule.
|
|
13
|
-
*/
|
|
14
|
-
.trix-content .attachment-gallery > action-text-attachment,
|
|
15
|
-
.trix-content .attachment-gallery > .attachment {
|
|
16
|
-
flex: 1 0 33%;
|
|
17
|
-
padding: 0 0.5em;
|
|
18
|
-
max-width: 33%;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.trix-content .attachment-gallery.attachment-gallery--2 > action-text-attachment,
|
|
22
|
-
.trix-content .attachment-gallery.attachment-gallery--2 > .attachment, .trix-content .attachment-gallery.attachment-gallery--4 > action-text-attachment,
|
|
23
|
-
.trix-content .attachment-gallery.attachment-gallery--4 > .attachment {
|
|
24
|
-
flex-basis: 50%;
|
|
25
|
-
max-width: 50%;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
.trix-content action-text-attachment .attachment {
|
|
29
|
-
padding: 0 !important;
|
|
30
|
-
max-width: 100% !important;
|
|
31
|
-
}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// Provides a drop-in pointer for the default Trix stylesheet that will format the toolbar and
|
|
3
|
-
// the trix-editor content (whether displayed or under editing). Feel free to incorporate this
|
|
4
|
-
// inclusion directly in any other asset bundle and remove this file.
|
|
5
|
-
//
|
|
6
|
-
//= require trix/dist/trix
|
|
7
|
-
// When using `application.scss`, this has to be `import`, not `require`.
|
|
8
|
-
@import "trix/dist/trix";
|
|
9
|
-
|
|
10
|
-
// We need to override trix.css’s image gallery styles to accommodate the
|
|
11
|
-
// <action-text-attachment> element we wrap around attachments. Otherwise,
|
|
12
|
-
// images in galleries will be squished by the max-width: 33%; rule.
|
|
13
|
-
.trix-content {
|
|
14
|
-
.attachment-gallery {
|
|
15
|
-
> action-text-attachment,
|
|
16
|
-
> .attachment {
|
|
17
|
-
flex: 1 0 33%;
|
|
18
|
-
padding: 0 0.5em;
|
|
19
|
-
max-width: 33%;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
&.attachment-gallery--2,
|
|
23
|
-
&.attachment-gallery--4 {
|
|
24
|
-
> action-text-attachment,
|
|
25
|
-
> .attachment {
|
|
26
|
-
flex-basis: 50%;
|
|
27
|
-
max-width: 50%;
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
action-text-attachment {
|
|
33
|
-
.attachment {
|
|
34
|
-
padding: 0 !important;
|
|
35
|
-
max-width: 100% !important;
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
// @import "actiontext";
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
class BootstrapController < ApplicationController
|
|
2
|
-
def form
|
|
3
|
-
load_models
|
|
4
|
-
end
|
|
5
|
-
|
|
6
|
-
def fragment
|
|
7
|
-
@erb = params[:erb]
|
|
8
|
-
|
|
9
|
-
@erb.prepend '<div class="p-3 border">'
|
|
10
|
-
@erb << "</div>"
|
|
11
|
-
load_models
|
|
12
|
-
render inline: @erb, layout: "application" # rubocop: disable Rails/RenderInline
|
|
13
|
-
end
|
|
14
|
-
|
|
15
|
-
private
|
|
16
|
-
|
|
17
|
-
def load_models
|
|
18
|
-
@collection = [
|
|
19
|
-
Address.new(id: 1, street: "Foo"),
|
|
20
|
-
Address.new(id: 2, street: "Bar")
|
|
21
|
-
]
|
|
22
|
-
|
|
23
|
-
@user = User.new email: "steve@example.com"
|
|
24
|
-
|
|
25
|
-
@user_with_error = User.new email: "steve.example.com"
|
|
26
|
-
@user_with_error.errors.add(:email)
|
|
27
|
-
@user_with_error.errors.add(:misc)
|
|
28
|
-
end
|
|
29
|
-
end
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
module BootstrapHelper
|
|
2
|
-
def form_with_source(&block)
|
|
3
|
-
form_html = capture(&block)
|
|
4
|
-
|
|
5
|
-
tag.div(class: "example") do
|
|
6
|
-
concat(form_html)
|
|
7
|
-
concat(toggle)
|
|
8
|
-
concat(codemirror(form_html))
|
|
9
|
-
end
|
|
10
|
-
end
|
|
11
|
-
|
|
12
|
-
private
|
|
13
|
-
|
|
14
|
-
def codemirror(form_html)
|
|
15
|
-
tag.div(class: "code", style: "display: none") do
|
|
16
|
-
tag.textarea(class: "codemirror") do
|
|
17
|
-
HtmlBeautifier.beautify(form_html.strip.gsub(">", ">\n").gsub("<", "\n<"))
|
|
18
|
-
end
|
|
19
|
-
end
|
|
20
|
-
end
|
|
21
|
-
|
|
22
|
-
def toggle
|
|
23
|
-
tag.button(class: "toggle btn btn-sm btn-info") do
|
|
24
|
-
"Toggle Source Code"
|
|
25
|
-
end
|
|
26
|
-
end
|
|
27
|
-
end
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
// Action Cable provides the framework to deal with WebSockets in Rails.
|
|
2
|
-
// You can generate new channels where WebSocket features live using the `rails generate channel` command.
|
|
3
|
-
|
|
4
|
-
import { createConsumer } from "@rails/actioncable"
|
|
5
|
-
|
|
6
|
-
export default createConsumer()
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
// This file is automatically compiled by Webpack, along with any other files
|
|
2
|
-
// present in this directory. You're encouraged to place your actual application logic in
|
|
3
|
-
// a relevant structure within app/javascript and only use these pack files to reference
|
|
4
|
-
// that code so it'll be compiled.
|
|
5
|
-
|
|
6
|
-
require("@rails/ujs").start()
|
|
7
|
-
require("turbolinks").start()
|
|
8
|
-
require("@rails/activestorage").start()
|
|
9
|
-
require("channels")
|
|
10
|
-
require("trix")
|
|
11
|
-
require("@rails/actiontext")
|
data/demo/app/models/address.rb
DELETED
data/demo/app/models/skill.rb
DELETED
data/demo/app/models/user.rb
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
class User < ApplicationRecord
|
|
2
|
-
attr_accessor :remember_me
|
|
3
|
-
|
|
4
|
-
serialize :preferences
|
|
5
|
-
|
|
6
|
-
validates :email, presence: true, length: { minimum: 5 }
|
|
7
|
-
validates :terms, acceptance: { accept: true }
|
|
8
|
-
|
|
9
|
-
has_one :address
|
|
10
|
-
accepts_nested_attributes_for :address
|
|
11
|
-
|
|
12
|
-
has_rich_text(:life_story) if Rails::VERSION::STRING > "6"
|
|
13
|
-
|
|
14
|
-
def age
|
|
15
|
-
42
|
|
16
|
-
end
|
|
17
|
-
|
|
18
|
-
def feet
|
|
19
|
-
5
|
|
20
|
-
end
|
|
21
|
-
|
|
22
|
-
def inches
|
|
23
|
-
7
|
|
24
|
-
end
|
|
25
|
-
end
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
<figure class="attachment attachment--<%= blob.representable? ? "preview" : "file" %> attachment--<%= blob.filename.extension %>">
|
|
2
|
-
<% if blob.representable? %>
|
|
3
|
-
<%= image_tag blob.representation(resize_to_limit: local_assigns[:in_gallery] ? [ 800, 600 ] : [ 1024, 768 ]) %>
|
|
4
|
-
<% end %>
|
|
5
|
-
|
|
6
|
-
<figcaption class="attachment__caption">
|
|
7
|
-
<% if caption = blob.try(:caption) %>
|
|
8
|
-
<%= caption %>
|
|
9
|
-
<% else %>
|
|
10
|
-
<span class="attachment__name"><%= blob.filename %></span>
|
|
11
|
-
<span class="attachment__size"><%= number_to_human_size blob.byte_size %></span>
|
|
12
|
-
<% end %>
|
|
13
|
-
</figcaption>
|
|
14
|
-
</figure>
|