bootstrap_form 5.0.0 → 5.2.0
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 +31 -16
- data/.gitignore +15 -3
- data/.rubocop.yml +3 -1
- data/.yarnrc +5 -0
- data/CHANGELOG.md +53 -2
- data/CONTRIBUTING.md +110 -22
- data/Dangerfile +5 -5
- data/Dockerfile +6 -11
- data/Gemfile +5 -23
- data/README.md +805 -54
- data/RELEASING.md +16 -10
- data/Rakefile +7 -6
- data/bootstrap_form.gemspec +7 -10
- data/docker-compose.yml +9 -48
- data/gemfiles/6.0.gemfile +1 -1
- data/gemfiles/6.1.gemfile +1 -1
- data/gemfiles/7.0.gemfile +5 -0
- data/gemfiles/common.gemfile +28 -0
- data/gemfiles/edge.gemfile +3 -2
- data/lib/bootstrap_form/components/hints.rb +13 -4
- data/lib/bootstrap_form/components/labels.rb +4 -10
- data/lib/bootstrap_form/components/validation.rb +36 -19
- data/lib/bootstrap_form/form_builder.rb +9 -6
- data/lib/bootstrap_form/form_group.rb +15 -8
- data/lib/bootstrap_form/form_group_builder.rb +10 -7
- data/lib/bootstrap_form/helpers/bootstrap.rb +12 -9
- data/lib/bootstrap_form/helpers/field.rb +26 -0
- data/lib/bootstrap_form/helpers.rb +1 -0
- data/lib/bootstrap_form/inputs/check_box.rb +26 -8
- data/lib/bootstrap_form/inputs/collection_check_boxes.rb +5 -1
- data/lib/bootstrap_form/inputs/collection_select.rb +1 -1
- data/lib/bootstrap_form/inputs/grouped_collection_select.rb +1 -1
- data/lib/bootstrap_form/inputs/radio_button.rb +15 -10
- data/lib/bootstrap_form/version.rb +2 -1
- data/lib/bootstrap_form.rb +1 -1
- metadata +17 -88
- data/demo/.postcssrc.yml +0 -3
- data/demo/README.md +0 -17
- data/demo/Rakefile +0 -6
- data/demo/app/assets/config/manifest.js +0 -1
- 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 -14
- data/demo/app/helpers/bootstrap_helper.rb +0 -27
- 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/super_user.rb +0 -2
- data/demo/app/models/user.rb +0 -11
- 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/application.html.erb +0 -68
- data/demo/bin/bundle +0 -3
- 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/assets.rb +0 -14
- 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 -5
- 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 -69
- data/demo/log/.keep +0 -0
- data/demo/package.json +0 -17
- data/demo/public/favicon.ico +0 -0
- data/demo/test/fixtures/action_text/rich_texts.yml +0 -4
- data/demo/yarn.lock +0 -6257
- data/gemfiles/5.2.gemfile +0 -4
data/demo/config/webpack/test.js
DELETED
data/demo/config/webpacker.yml
DELETED
@@ -1,92 +0,0 @@
|
|
1
|
-
# Note: You must restart bin/webpack-dev-server for changes to take effect
|
2
|
-
|
3
|
-
default: &default
|
4
|
-
source_path: app/javascript
|
5
|
-
source_entry_path: packs
|
6
|
-
public_root_path: public
|
7
|
-
public_output_path: packs
|
8
|
-
cache_path: tmp/cache/webpacker
|
9
|
-
check_yarn_integrity: false
|
10
|
-
webpack_compile_output: false
|
11
|
-
|
12
|
-
# Additional paths webpack should lookup modules
|
13
|
-
# ['app/assets', 'engine/foo/app/assets']
|
14
|
-
resolved_paths: []
|
15
|
-
|
16
|
-
# Reload manifest.json on all requests so we reload latest compiled packs
|
17
|
-
cache_manifest: false
|
18
|
-
|
19
|
-
# Extract and emit a css file
|
20
|
-
extract_css: false
|
21
|
-
|
22
|
-
static_assets_extensions:
|
23
|
-
- .jpg
|
24
|
-
- .jpeg
|
25
|
-
- .png
|
26
|
-
- .gif
|
27
|
-
- .tiff
|
28
|
-
- .ico
|
29
|
-
- .svg
|
30
|
-
- .eot
|
31
|
-
- .otf
|
32
|
-
- .ttf
|
33
|
-
- .woff
|
34
|
-
- .woff2
|
35
|
-
extensions:
|
36
|
-
- .mjs
|
37
|
-
- .js
|
38
|
-
- .sass
|
39
|
-
- .scss
|
40
|
-
- .css
|
41
|
-
- .module.sass
|
42
|
-
- .module.scss
|
43
|
-
- .module.css
|
44
|
-
- .png
|
45
|
-
- .svg
|
46
|
-
- .gif
|
47
|
-
- .jpeg
|
48
|
-
- .jpg
|
49
|
-
|
50
|
-
development:
|
51
|
-
<<: *default
|
52
|
-
compile: true
|
53
|
-
|
54
|
-
# Verifies that versions and hashed value of the package contents in the project's package.json
|
55
|
-
check_yarn_integrity: true
|
56
|
-
# Reference: https://webpack.js.org/configuration/dev-server/
|
57
|
-
dev_server:
|
58
|
-
https: false
|
59
|
-
host: localhost
|
60
|
-
port: 3035
|
61
|
-
public: localhost:3035
|
62
|
-
hmr: false
|
63
|
-
# Inline should be set to true if using HMR
|
64
|
-
inline: true
|
65
|
-
overlay: true
|
66
|
-
compress: true
|
67
|
-
disable_host_check: true
|
68
|
-
use_local_ip: false
|
69
|
-
quiet: false
|
70
|
-
headers:
|
71
|
-
'Access-Control-Allow-Origin': '*'
|
72
|
-
watch_options:
|
73
|
-
ignored: '**/node_modules/**'
|
74
|
-
|
75
|
-
|
76
|
-
test:
|
77
|
-
<<: *default
|
78
|
-
compile: true
|
79
|
-
|
80
|
-
# Compile test packs to a separate directory
|
81
|
-
public_output_path: packs-test
|
82
|
-
|
83
|
-
production:
|
84
|
-
<<: *default
|
85
|
-
|
86
|
-
# Production depends on precompilation of packs prior to booting for performance.
|
87
|
-
compile: false
|
88
|
-
# Extract and emit a css file
|
89
|
-
extract_css: true
|
90
|
-
|
91
|
-
# Cache manifest.json for performance
|
92
|
-
cache_manifest: true
|
data/demo/config.ru
DELETED
data/demo/db/schema.rb
DELETED
@@ -1,69 +0,0 @@
|
|
1
|
-
# This file is auto-generated from the current state of the database. Instead
|
2
|
-
# of editing this file, please use the migrations feature of Active Record to
|
3
|
-
# incrementally modify your database, and then regenerate this schema definition.
|
4
|
-
#
|
5
|
-
# This file is the source Rails uses to define your schema when running `bin/rails
|
6
|
-
# db:schema:load`. When creating a new database, `bin/rails db:schema:load` tends to
|
7
|
-
# be faster and is potentially less error prone than running all of your
|
8
|
-
# migrations from scratch. Old migrations may fail to apply correctly if those
|
9
|
-
# migrations use external dependencies or application code.
|
10
|
-
#
|
11
|
-
# It's strongly recommended that you check this file into your version control system.
|
12
|
-
|
13
|
-
ActiveRecord::Schema.define(version: 2019_01_26_192508) do
|
14
|
-
|
15
|
-
create_table "action_text_rich_texts", force: :cascade do |t|
|
16
|
-
t.string "name", null: false
|
17
|
-
t.text "body", limit: 16777215
|
18
|
-
t.string "record_type", null: false
|
19
|
-
t.integer "record_id", null: false
|
20
|
-
t.datetime "created_at", null: false
|
21
|
-
t.datetime "updated_at", null: false
|
22
|
-
t.index ["record_type", "record_id", "name"], name: "index_action_text_rich_texts_uniqueness", unique: true
|
23
|
-
end
|
24
|
-
|
25
|
-
create_table "active_storage_attachments", force: :cascade do |t|
|
26
|
-
t.string "name", null: false
|
27
|
-
t.string "record_type", null: false
|
28
|
-
t.integer "record_id", null: false
|
29
|
-
t.integer "blob_id", null: false
|
30
|
-
t.datetime "created_at", null: false
|
31
|
-
t.index ["blob_id"], name: "index_active_storage_attachments_on_blob_id"
|
32
|
-
t.index ["record_type", "record_id", "name", "blob_id"], name: "index_active_storage_attachments_uniqueness", unique: true
|
33
|
-
end
|
34
|
-
|
35
|
-
create_table "active_storage_blobs", force: :cascade do |t|
|
36
|
-
t.string "key", null: false
|
37
|
-
t.string "filename", null: false
|
38
|
-
t.string "content_type"
|
39
|
-
t.text "metadata"
|
40
|
-
t.bigint "byte_size", null: false
|
41
|
-
t.string "checksum", null: false
|
42
|
-
t.datetime "created_at", null: false
|
43
|
-
t.index ["key"], name: "index_active_storage_blobs_on_key", unique: true
|
44
|
-
end
|
45
|
-
|
46
|
-
create_table "addresses", force: :cascade do |t|
|
47
|
-
t.integer "user_id"
|
48
|
-
t.string "street"
|
49
|
-
t.string "city"
|
50
|
-
t.string "state"
|
51
|
-
t.string "zip_code"
|
52
|
-
t.datetime "created_at", null: false
|
53
|
-
t.datetime "updated_at", null: false
|
54
|
-
end
|
55
|
-
|
56
|
-
create_table "users", force: :cascade do |t|
|
57
|
-
t.string "email"
|
58
|
-
t.string "password"
|
59
|
-
t.text "comments"
|
60
|
-
t.string "status"
|
61
|
-
t.string "misc"
|
62
|
-
t.text "preferences"
|
63
|
-
t.boolean "terms", default: false
|
64
|
-
t.string "type"
|
65
|
-
t.datetime "created_at", null: false
|
66
|
-
t.datetime "updated_at", null: false
|
67
|
-
end
|
68
|
-
|
69
|
-
end
|
data/demo/log/.keep
DELETED
File without changes
|
data/demo/package.json
DELETED
@@ -1,17 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"name": "dummy",
|
3
|
-
"private": true,
|
4
|
-
"dependencies": {
|
5
|
-
"@rails/actioncable": "^6.0.0-alpha",
|
6
|
-
"@rails/actiontext": "^6.0.0-beta1",
|
7
|
-
"@rails/activestorage": "^6.0.0-alpha",
|
8
|
-
"@rails/ujs": "^6.0.0-alpha",
|
9
|
-
"@rails/webpacker": "^4.0.0-rc.7",
|
10
|
-
"trix": "^1.0.0",
|
11
|
-
"turbolinks": "^5.2.0"
|
12
|
-
},
|
13
|
-
"version": "0.1.0",
|
14
|
-
"devDependencies": {
|
15
|
-
"webpack-dev-server": "^3.1.14"
|
16
|
-
}
|
17
|
-
}
|
data/demo/public/favicon.ico
DELETED
File without changes
|