rails_bootstrap_form 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: c7bfd166fa3219fe70750aef616b04fd1c97868599069fa2ff183d8ddcf3e67e
4
+ data.tar.gz: 31f62bf43a6416e8f6fb614af743fbac0a1f12d77a47c016311315677ab27375
5
+ SHA512:
6
+ metadata.gz: 401b57c7fcf0c4ed07c85e4afc91c26e7869613637eff3b9e284f4863cfd334c4290cba1301df20a4f2f4e07542b66b78ec25ec93439629942974d41217ff6f4
7
+ data.tar.gz: '0989527684b68dfb44aecfa6605ccef61a118afade847d6117461f89c68946fdb5fbe90f4ebfcec59b21e5263fefe01020c4ddeef0a345dedafffcaa6dbf4f1a'
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
data/CHANGELOG.md ADDED
@@ -0,0 +1,5 @@
1
+ ## [Unreleased]
2
+
3
+ ## [0.1.0] - 2023-05-15
4
+
5
+ - Initial release
@@ -0,0 +1,84 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.
6
+
7
+ We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
8
+
9
+ ## Our Standards
10
+
11
+ Examples of behavior that contributes to a positive environment for our community include:
12
+
13
+ * Demonstrating empathy and kindness toward other people
14
+ * Being respectful of differing opinions, viewpoints, and experiences
15
+ * Giving and gracefully accepting constructive feedback
16
+ * Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
17
+ * Focusing on what is best not just for us as individuals, but for the overall community
18
+
19
+ Examples of unacceptable behavior include:
20
+
21
+ * The use of sexualized language or imagery, and sexual attention or
22
+ advances of any kind
23
+ * Trolling, insulting or derogatory comments, and personal or political attacks
24
+ * Public or private harassment
25
+ * Publishing others' private information, such as a physical or email
26
+ address, without their explicit permission
27
+ * Other conduct which could reasonably be considered inappropriate in a
28
+ professional setting
29
+
30
+ ## Enforcement Responsibilities
31
+
32
+ Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
33
+
34
+ Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate.
35
+
36
+ ## Scope
37
+
38
+ This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
39
+
40
+ ## Enforcement
41
+
42
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at harshal.ladhe.1@gmail.com. All complaints will be reviewed and investigated promptly and fairly.
43
+
44
+ All community leaders are obligated to respect the privacy and security of the reporter of any incident.
45
+
46
+ ## Enforcement Guidelines
47
+
48
+ Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
49
+
50
+ ### 1. Correction
51
+
52
+ **Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
53
+
54
+ **Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.
55
+
56
+ ### 2. Warning
57
+
58
+ **Community Impact**: A violation through a single incident or series of actions.
59
+
60
+ **Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
61
+
62
+ ### 3. Temporary Ban
63
+
64
+ **Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.
65
+
66
+ **Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
67
+
68
+ ### 4. Permanent Ban
69
+
70
+ **Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
71
+
72
+ **Consequence**: A permanent ban from any sort of public interaction within the community.
73
+
74
+ ## Attribution
75
+
76
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.0,
77
+ available at https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
78
+
79
+ Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder](https://github.com/mozilla/diversity).
80
+
81
+ [homepage]: https://www.contributor-covenant.org
82
+
83
+ For answers to common questions about this code of conduct, see the FAQ at
84
+ https://www.contributor-covenant.org/faq. Translations are available at https://www.contributor-covenant.org/translations.
data/Gemfile ADDED
@@ -0,0 +1,14 @@
1
+ # -*- encoding: utf-8 -*-
2
+ # -*- frozen_string_literal: true -*-
3
+ # -*- warn_indent: true -*-
4
+
5
+ gems = "#{__dir__}/gemfiles/common.gemfile"
6
+ eval File.read(gems), binding, gems
7
+
8
+ require "#{__dir__}/lib/rails_bootstrap_form/version"
9
+
10
+ gem "rake", "~> 13.0"
11
+
12
+ gem "rspec-rails"
13
+
14
+ gem "rails", RailsBootstrapForm::REQUIRED_RAILS_VERSION
data/Gemfile.lock ADDED
@@ -0,0 +1,214 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ rails_bootstrap_form (0.1.0)
5
+
6
+ GEM
7
+ remote: http://rubygems.org/
8
+ specs:
9
+ actioncable (7.0.4.3)
10
+ actionpack (= 7.0.4.3)
11
+ activesupport (= 7.0.4.3)
12
+ nio4r (~> 2.0)
13
+ websocket-driver (>= 0.6.1)
14
+ actionmailbox (7.0.4.3)
15
+ actionpack (= 7.0.4.3)
16
+ activejob (= 7.0.4.3)
17
+ activerecord (= 7.0.4.3)
18
+ activestorage (= 7.0.4.3)
19
+ activesupport (= 7.0.4.3)
20
+ mail (>= 2.7.1)
21
+ net-imap
22
+ net-pop
23
+ net-smtp
24
+ actionmailer (7.0.4.3)
25
+ actionpack (= 7.0.4.3)
26
+ actionview (= 7.0.4.3)
27
+ activejob (= 7.0.4.3)
28
+ activesupport (= 7.0.4.3)
29
+ mail (~> 2.5, >= 2.5.4)
30
+ net-imap
31
+ net-pop
32
+ net-smtp
33
+ rails-dom-testing (~> 2.0)
34
+ actionpack (7.0.4.3)
35
+ actionview (= 7.0.4.3)
36
+ activesupport (= 7.0.4.3)
37
+ rack (~> 2.0, >= 2.2.0)
38
+ rack-test (>= 0.6.3)
39
+ rails-dom-testing (~> 2.0)
40
+ rails-html-sanitizer (~> 1.0, >= 1.2.0)
41
+ actiontext (7.0.4.3)
42
+ actionpack (= 7.0.4.3)
43
+ activerecord (= 7.0.4.3)
44
+ activestorage (= 7.0.4.3)
45
+ activesupport (= 7.0.4.3)
46
+ globalid (>= 0.6.0)
47
+ nokogiri (>= 1.8.5)
48
+ actionview (7.0.4.3)
49
+ activesupport (= 7.0.4.3)
50
+ builder (~> 3.1)
51
+ erubi (~> 1.4)
52
+ rails-dom-testing (~> 2.0)
53
+ rails-html-sanitizer (~> 1.1, >= 1.2.0)
54
+ activejob (7.0.4.3)
55
+ activesupport (= 7.0.4.3)
56
+ globalid (>= 0.3.6)
57
+ activemodel (7.0.4.3)
58
+ activesupport (= 7.0.4.3)
59
+ activerecord (7.0.4.3)
60
+ activemodel (= 7.0.4.3)
61
+ activesupport (= 7.0.4.3)
62
+ activestorage (7.0.4.3)
63
+ actionpack (= 7.0.4.3)
64
+ activejob (= 7.0.4.3)
65
+ activerecord (= 7.0.4.3)
66
+ activesupport (= 7.0.4.3)
67
+ marcel (~> 1.0)
68
+ mini_mime (>= 1.1.0)
69
+ activesupport (7.0.4.3)
70
+ concurrent-ruby (~> 1.0, >= 1.0.2)
71
+ i18n (>= 1.6, < 2)
72
+ minitest (>= 5.1)
73
+ tzinfo (~> 2.0)
74
+ autoprefixer-rails (10.4.13.0)
75
+ execjs (~> 2)
76
+ bootstrap (5.3.0.alpha3)
77
+ autoprefixer-rails (>= 9.1.0)
78
+ popper_js (>= 2.11.7, < 3)
79
+ sassc-rails (>= 2.0.0)
80
+ builder (3.2.4)
81
+ byebug (11.1.3)
82
+ concurrent-ruby (1.2.2)
83
+ crass (1.0.6)
84
+ date (3.3.3)
85
+ diff-lcs (1.5.0)
86
+ erubi (1.12.0)
87
+ execjs (2.8.1)
88
+ ffi (1.15.5)
89
+ generator_spec (0.9.4)
90
+ activesupport (>= 3.0.0)
91
+ railties (>= 3.0.0)
92
+ globalid (1.1.0)
93
+ activesupport (>= 5.0)
94
+ i18n (1.13.0)
95
+ concurrent-ruby (~> 1.0)
96
+ loofah (2.21.2)
97
+ crass (~> 1.0.2)
98
+ nokogiri (>= 1.12.0)
99
+ mail (2.8.1)
100
+ mini_mime (>= 0.1.1)
101
+ net-imap
102
+ net-pop
103
+ net-smtp
104
+ marcel (1.0.2)
105
+ method_source (1.0.0)
106
+ mini_mime (1.1.2)
107
+ minitest (5.18.0)
108
+ net-imap (0.3.4)
109
+ date
110
+ net-protocol
111
+ net-pop (0.1.2)
112
+ net-protocol
113
+ net-protocol (0.2.1)
114
+ timeout
115
+ net-smtp (0.3.3)
116
+ net-protocol
117
+ nio4r (2.5.9)
118
+ nokogiri (1.14.4-x86_64-linux)
119
+ racc (~> 1.4)
120
+ popper_js (2.11.7)
121
+ puma (6.2.2)
122
+ nio4r (~> 2.0)
123
+ racc (1.6.2)
124
+ rack (2.2.7)
125
+ rack-test (2.1.0)
126
+ rack (>= 1.3)
127
+ rails (7.0.4.3)
128
+ actioncable (= 7.0.4.3)
129
+ actionmailbox (= 7.0.4.3)
130
+ actionmailer (= 7.0.4.3)
131
+ actionpack (= 7.0.4.3)
132
+ actiontext (= 7.0.4.3)
133
+ actionview (= 7.0.4.3)
134
+ activejob (= 7.0.4.3)
135
+ activemodel (= 7.0.4.3)
136
+ activerecord (= 7.0.4.3)
137
+ activestorage (= 7.0.4.3)
138
+ activesupport (= 7.0.4.3)
139
+ bundler (>= 1.15.0)
140
+ railties (= 7.0.4.3)
141
+ rails-dom-testing (2.0.3)
142
+ activesupport (>= 4.2.0)
143
+ nokogiri (>= 1.6)
144
+ rails-html-sanitizer (1.5.0)
145
+ loofah (~> 2.19, >= 2.19.1)
146
+ railties (7.0.4.3)
147
+ actionpack (= 7.0.4.3)
148
+ activesupport (= 7.0.4.3)
149
+ method_source
150
+ rake (>= 12.2)
151
+ thor (~> 1.0)
152
+ zeitwerk (~> 2.5)
153
+ rake (13.0.6)
154
+ rspec-core (3.12.2)
155
+ rspec-support (~> 3.12.0)
156
+ rspec-expectations (3.12.3)
157
+ diff-lcs (>= 1.2.0, < 2.0)
158
+ rspec-support (~> 3.12.0)
159
+ rspec-mocks (3.12.5)
160
+ diff-lcs (>= 1.2.0, < 2.0)
161
+ rspec-support (~> 3.12.0)
162
+ rspec-rails (6.0.2)
163
+ actionpack (>= 6.1)
164
+ activesupport (>= 6.1)
165
+ railties (>= 6.1)
166
+ rspec-core (~> 3.12)
167
+ rspec-expectations (~> 3.12)
168
+ rspec-mocks (~> 3.12)
169
+ rspec-support (~> 3.12)
170
+ rspec-support (3.12.0)
171
+ sassc (2.4.0)
172
+ ffi (~> 1.9)
173
+ sassc-rails (2.1.2)
174
+ railties (>= 4.0.0)
175
+ sassc (>= 2.0)
176
+ sprockets (> 3.0)
177
+ sprockets-rails
178
+ tilt
179
+ sprockets (4.2.0)
180
+ concurrent-ruby (~> 1.0)
181
+ rack (>= 2.2.4, < 4)
182
+ sprockets-rails (3.4.2)
183
+ actionpack (>= 5.2)
184
+ activesupport (>= 5.2)
185
+ sprockets (>= 3.0.0)
186
+ sqlite3 (1.6.2-x86_64-linux)
187
+ thor (1.2.2)
188
+ tilt (2.1.0)
189
+ timeout (0.3.2)
190
+ tzinfo (2.0.6)
191
+ concurrent-ruby (~> 1.0)
192
+ websocket-driver (0.7.5)
193
+ websocket-extensions (>= 0.1.0)
194
+ websocket-extensions (0.1.5)
195
+ zeitwerk (2.6.8)
196
+
197
+ PLATFORMS
198
+ x86_64-linux
199
+
200
+ DEPENDENCIES
201
+ bootstrap (~> 5.3.0.alpha3)
202
+ byebug
203
+ generator_spec
204
+ puma
205
+ rails (~> 7.0)
206
+ rails_bootstrap_form!
207
+ rake (~> 13.0)
208
+ rspec-rails
209
+ sassc-rails
210
+ sprockets-rails
211
+ sqlite3 (~> 1.4)
212
+
213
+ BUNDLED WITH
214
+ 2.4.10
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2023 Harshal LADHE
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
File without changes
data/Rakefile ADDED
@@ -0,0 +1,10 @@
1
+ # -*- encoding: utf-8 -*-
2
+ # -*- frozen_string_literal: true -*-
3
+ # -*- warn_indent: true -*-
4
+
5
+ require "bundler/gem_tasks"
6
+ require "rspec/core/rake_task"
7
+
8
+ RSpec::Core::RakeTask.new(:spec)
9
+
10
+ task default: :spec
@@ -0,0 +1,10 @@
1
+ # -*- encoding: utf-8 -*-
2
+ # -*- frozen_string_literal: true -*-
3
+ # -*- warn_indent: true -*-
4
+
5
+ gems = "#{__dir__}/common.gemfile"
6
+ eval File.read(gems), binding, gems
7
+
8
+ # 7.0.0 has an issue with Ruby 3.1.
9
+ # And a test case has an issue with 7.0.1
10
+ gem "rails", "~> 7.0.2"
@@ -0,0 +1,27 @@
1
+ # -*- encoding: utf-8 -*-
2
+ # -*- frozen_string_literal: true -*-
3
+ # -*- warn_indent: true -*-
4
+
5
+ source "http://rubygems.org"
6
+
7
+ gemspec path: File.dirname(__dir__)
8
+
9
+ # To test with different Rails versions, use the files in `./gemfiles`
10
+ gem "sprockets-rails"
11
+
12
+ # Use Sass to process CSS
13
+ gem "sassc-rails"
14
+
15
+ # Add bootstrap support
16
+ gem "bootstrap", "~> 5.3.0.alpha3"
17
+
18
+ # Use sqlite3 as the database for Active Record
19
+ gem "sqlite3", "~> 1.4"
20
+
21
+ group :development do
22
+ gem "puma"
23
+ end
24
+
25
+ group :development, :test do
26
+ gem "byebug"
27
+ end
@@ -0,0 +1,12 @@
1
+ # -*- encoding: utf-8 -*-
2
+ # -*- frozen_string_literal: true -*-
3
+ # -*- warn_indent: true -*-
4
+
5
+ require "rails/railtie"
6
+
7
+ module RailsBootstrapForm
8
+ class Engine < Rails::Engine
9
+ config.eager_load_namespaces << RailsBootstrapForm
10
+ config.autoload_paths << File.expand_path("lib", __dir__)
11
+ end
12
+ end
@@ -0,0 +1,8 @@
1
+ # -*- encoding: utf-8 -*-
2
+ # -*- frozen_string_literal: true -*-
3
+ # -*- warn_indent: true -*-
4
+
5
+ module RailsBootstrapForm
6
+ VERSION = "0.1.0".freeze
7
+ REQUIRED_RAILS_VERSION = "~> 7.0".freeze
8
+ end
@@ -0,0 +1,22 @@
1
+ # -*- encoding: utf-8 -*-
2
+ # -*- frozen_string_literal: true -*-
3
+ # -*- warn_indent: true -*-
4
+
5
+ require "action_view"
6
+ require "action_pack"
7
+
8
+ module RailsBootstrapForm
9
+ extend ActiveSupport::Autoload
10
+
11
+ eager_autoload do
12
+
13
+ end
14
+
15
+ class << self
16
+ def eager_load!
17
+ super
18
+ end
19
+ end
20
+ end
21
+
22
+ require "rails_bootstrap_form/engine" if defined?(Rails)
@@ -0,0 +1,10 @@
1
+ # -*- encoding: utf-8 -*-
2
+ # -*- frozen_string_literal: true -*-
3
+ # -*- warn_indent: true -*-
4
+
5
+ # See the writing guide of rbs: https://github.com/ruby/rbs#guides
6
+
7
+ module RailsBootstrapForm
8
+ VERSION: String
9
+ REQUIRED_RAILS_VERSION: String
10
+ end
metadata ADDED
@@ -0,0 +1,76 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: rails_bootstrap_form
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Harshal LADHE (shivam091)
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2023-05-15 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: generator_spec
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ description: Rails form helpers and form builder extensions that make it super easy
28
+ to build Bootstrap 5 forms.
29
+ email:
30
+ - harshal.ladhe.1@gmail.com
31
+ executables: []
32
+ extensions: []
33
+ extra_rdoc_files: []
34
+ files:
35
+ - ".rspec"
36
+ - CHANGELOG.md
37
+ - CODE_OF_CONDUCT.md
38
+ - Gemfile
39
+ - Gemfile.lock
40
+ - LICENSE.txt
41
+ - README.md
42
+ - Rakefile
43
+ - gemfiles/7.0.gemfile
44
+ - gemfiles/common.gemfile
45
+ - lib/rails_bootstrap_form.rb
46
+ - lib/rails_bootstrap_form/engine.rb
47
+ - lib/rails_bootstrap_form/version.rb
48
+ - sig/rails_bootstrap_form.rbs
49
+ homepage: https://github.com/shivam091/rails_bootstrap_form
50
+ licenses:
51
+ - MIT
52
+ metadata:
53
+ allowed_push_host: https://rubygems.org
54
+ homepage_uri: https://github.com/shivam091/rails_bootstrap_form
55
+ source_code_uri: https://github.com/shivam091/rails_bootstrap_form
56
+ changelog_uri: https://github.com/shivam091/rails_bootstrap_form/CHANGELOG.md
57
+ post_install_message:
58
+ rdoc_options: []
59
+ require_paths:
60
+ - lib
61
+ required_ruby_version: !ruby/object:Gem::Requirement
62
+ requirements:
63
+ - - ">="
64
+ - !ruby/object:Gem::Version
65
+ version: 3.2.2
66
+ required_rubygems_version: !ruby/object:Gem::Requirement
67
+ requirements:
68
+ - - ">="
69
+ - !ruby/object:Gem::Version
70
+ version: '0'
71
+ requirements: []
72
+ rubygems_version: 3.4.10
73
+ signing_key:
74
+ specification_version: 4
75
+ summary: Form builder and form helpers using Bootstrap 5 styles
76
+ test_files: []