Skip to content

Commit ce19a4b

Browse files
committed
Initial commit 😎
0 parents  commit ce19a4b

23 files changed

+642
-0
lines changed

β€Ž.github/workflows/main.ymlβ€Ž

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: build
2+
on: push
3+
jobs:
4+
specs:
5+
runs-on: ubuntu-latest
6+
timeout-minutes: 10
7+
strategy:
8+
matrix:
9+
ruby_version:
10+
- 3.1.6
11+
- 3.2.6
12+
- 3.3.6
13+
gemfile:
14+
- gemfiles/Gemfile.rails-7.1.x
15+
- gemfiles/Gemfile.rails-7.2.x
16+
- gemfiles/Gemfile.rails-8.x
17+
exclude:
18+
- gemfile: gemfiles/Gemfile.rails-8.x
19+
ruby_version: 3.1.6
20+
env:
21+
BUNDLE_GEMFILE: ${{ matrix.gemfile }}
22+
steps:
23+
- name: Checkout code
24+
uses: actions/checkout@v3
25+
with:
26+
fetch-depth: 0
27+
28+
- name: Setup Ruby
29+
uses: ruby/setup-ruby@v1
30+
with:
31+
ruby-version: ${{ matrix.ruby_version }}
32+
bundler-cache: true
33+
34+
- name: Run rspec
35+
run: bundle exec rspec

β€Ž.gitignoreβ€Ž

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
/.bundle/
2+
/.yardoc
3+
/_yardoc/
4+
/coverage/
5+
/doc/
6+
/pkg/
7+
/spec/reports/
8+
/tmp/
9+
10+
# rspec failure tracking
11+
.rspec_status

β€Ž.rspecβ€Ž

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
--format documentation
2+
--color
3+
--require spec_helper

β€ŽCHANGELOG.mdβ€Ž

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
## [Unreleased]
2+
3+
## [0.1.0] - 2024-11-30
4+
5+
- Initial release

β€ŽGemfileβ€Ž

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# frozen_string_literal: true
2+
3+
source "https://rubygems.org"
4+
5+
# Specify your gem's dependencies in hyperactiveform.gemspec
6+
gemspec
7+
8+
gem "rake", "~> 13.0"

β€ŽGemfile.lockβ€Ž

Lines changed: 203 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,203 @@
1+
PATH
2+
remote: .
3+
specs:
4+
hyperactiveform (0.1.0)
5+
rails (>= 7.0)
6+
7+
GEM
8+
remote: https://rubygems.org/
9+
specs:
10+
actioncable (8.0.0)
11+
actionpack (= 8.0.0)
12+
activesupport (= 8.0.0)
13+
nio4r (~> 2.0)
14+
websocket-driver (>= 0.6.1)
15+
zeitwerk (~> 2.6)
16+
actionmailbox (8.0.0)
17+
actionpack (= 8.0.0)
18+
activejob (= 8.0.0)
19+
activerecord (= 8.0.0)
20+
activestorage (= 8.0.0)
21+
activesupport (= 8.0.0)
22+
mail (>= 2.8.0)
23+
actionmailer (8.0.0)
24+
actionpack (= 8.0.0)
25+
actionview (= 8.0.0)
26+
activejob (= 8.0.0)
27+
activesupport (= 8.0.0)
28+
mail (>= 2.8.0)
29+
rails-dom-testing (~> 2.2)
30+
actionpack (8.0.0)
31+
actionview (= 8.0.0)
32+
activesupport (= 8.0.0)
33+
nokogiri (>= 1.8.5)
34+
rack (>= 2.2.4)
35+
rack-session (>= 1.0.1)
36+
rack-test (>= 0.6.3)
37+
rails-dom-testing (~> 2.2)
38+
rails-html-sanitizer (~> 1.6)
39+
useragent (~> 0.16)
40+
actiontext (8.0.0)
41+
actionpack (= 8.0.0)
42+
activerecord (= 8.0.0)
43+
activestorage (= 8.0.0)
44+
activesupport (= 8.0.0)
45+
globalid (>= 0.6.0)
46+
nokogiri (>= 1.8.5)
47+
actionview (8.0.0)
48+
activesupport (= 8.0.0)
49+
builder (~> 3.1)
50+
erubi (~> 1.11)
51+
rails-dom-testing (~> 2.2)
52+
rails-html-sanitizer (~> 1.6)
53+
activejob (8.0.0)
54+
activesupport (= 8.0.0)
55+
globalid (>= 0.3.6)
56+
activemodel (8.0.0)
57+
activesupport (= 8.0.0)
58+
activerecord (8.0.0)
59+
activemodel (= 8.0.0)
60+
activesupport (= 8.0.0)
61+
timeout (>= 0.4.0)
62+
activestorage (8.0.0)
63+
actionpack (= 8.0.0)
64+
activejob (= 8.0.0)
65+
activerecord (= 8.0.0)
66+
activesupport (= 8.0.0)
67+
marcel (~> 1.0)
68+
activesupport (8.0.0)
69+
base64
70+
benchmark (>= 0.3)
71+
bigdecimal
72+
concurrent-ruby (~> 1.0, >= 1.3.1)
73+
connection_pool (>= 2.2.5)
74+
drb
75+
i18n (>= 1.6, < 2)
76+
logger (>= 1.4.2)
77+
minitest (>= 5.1)
78+
securerandom (>= 0.3)
79+
tzinfo (~> 2.0, >= 2.0.5)
80+
uri (>= 0.13.1)
81+
base64 (0.2.0)
82+
benchmark (0.4.0)
83+
bigdecimal (3.1.8)
84+
builder (3.3.0)
85+
concurrent-ruby (1.3.4)
86+
connection_pool (2.4.1)
87+
crass (1.0.6)
88+
date (3.4.0)
89+
diff-lcs (1.5.1)
90+
drb (2.2.1)
91+
erubi (1.13.0)
92+
globalid (1.2.1)
93+
activesupport (>= 6.1)
94+
i18n (1.14.6)
95+
concurrent-ruby (~> 1.0)
96+
io-console (0.7.2)
97+
irb (1.14.1)
98+
rdoc (>= 4.0.0)
99+
reline (>= 0.4.2)
100+
logger (1.6.1)
101+
loofah (2.23.1)
102+
crass (~> 1.0.2)
103+
nokogiri (>= 1.12.0)
104+
mail (2.8.1)
105+
mini_mime (>= 0.1.1)
106+
net-imap
107+
net-pop
108+
net-smtp
109+
marcel (1.0.4)
110+
mini_mime (1.1.5)
111+
minitest (5.25.2)
112+
net-imap (0.5.1)
113+
date
114+
net-protocol
115+
net-pop (0.1.2)
116+
net-protocol
117+
net-protocol (0.2.2)
118+
timeout
119+
net-smtp (0.5.0)
120+
net-protocol
121+
nio4r (2.7.4)
122+
nokogiri (1.16.7-arm64-darwin)
123+
racc (~> 1.4)
124+
psych (5.2.0)
125+
stringio
126+
racc (1.8.1)
127+
rack (3.1.8)
128+
rack-session (2.0.0)
129+
rack (>= 3.0.0)
130+
rack-test (2.1.0)
131+
rack (>= 1.3)
132+
rackup (2.2.0)
133+
rack (>= 3)
134+
rails (8.0.0)
135+
actioncable (= 8.0.0)
136+
actionmailbox (= 8.0.0)
137+
actionmailer (= 8.0.0)
138+
actionpack (= 8.0.0)
139+
actiontext (= 8.0.0)
140+
actionview (= 8.0.0)
141+
activejob (= 8.0.0)
142+
activemodel (= 8.0.0)
143+
activerecord (= 8.0.0)
144+
activestorage (= 8.0.0)
145+
activesupport (= 8.0.0)
146+
bundler (>= 1.15.0)
147+
railties (= 8.0.0)
148+
rails-dom-testing (2.2.0)
149+
activesupport (>= 5.0.0)
150+
minitest
151+
nokogiri (>= 1.6)
152+
rails-html-sanitizer (1.6.0)
153+
loofah (~> 2.21)
154+
nokogiri (~> 1.14)
155+
railties (8.0.0)
156+
actionpack (= 8.0.0)
157+
activesupport (= 8.0.0)
158+
irb (~> 1.13)
159+
rackup (>= 1.0.0)
160+
rake (>= 12.2)
161+
thor (~> 1.0, >= 1.2.2)
162+
zeitwerk (~> 2.6)
163+
rake (13.2.1)
164+
rdoc (6.8.1)
165+
psych (>= 4.0.0)
166+
reline (0.5.12)
167+
io-console (~> 0.5)
168+
rspec (3.13.0)
169+
rspec-core (~> 3.13.0)
170+
rspec-expectations (~> 3.13.0)
171+
rspec-mocks (~> 3.13.0)
172+
rspec-core (3.13.2)
173+
rspec-support (~> 3.13.0)
174+
rspec-expectations (3.13.3)
175+
diff-lcs (>= 1.2.0, < 2.0)
176+
rspec-support (~> 3.13.0)
177+
rspec-mocks (3.13.2)
178+
diff-lcs (>= 1.2.0, < 2.0)
179+
rspec-support (~> 3.13.0)
180+
rspec-support (3.13.1)
181+
securerandom (0.3.2)
182+
stringio (3.1.2)
183+
thor (1.3.2)
184+
timeout (0.4.2)
185+
tzinfo (2.0.6)
186+
concurrent-ruby (~> 1.0)
187+
uri (1.0.2)
188+
useragent (0.16.10)
189+
websocket-driver (0.7.6)
190+
websocket-extensions (>= 0.1.0)
191+
websocket-extensions (0.1.5)
192+
zeitwerk (2.7.1)
193+
194+
PLATFORMS
195+
arm64-darwin
196+
197+
DEPENDENCIES
198+
hyperactiveform!
199+
rake (~> 13.0)
200+
rspec (~> 3.0)
201+
202+
BUNDLED WITH
203+
2.5.18

β€ŽLICENSE.txtβ€Ž

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2024 Adrien Siami
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.

β€ŽREADME.mdβ€Ž

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# Hyperactiveform
2+
3+
TODO: Delete this and the text below, and describe your gem
4+
5+
Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/hyperactiveform`. To experiment with that code, run `bin/console` for an interactive prompt.
6+
7+
## Installation
8+
9+
TODO: Replace `UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG` with your gem name right after releasing it to RubyGems.org. Please do not do it earlier due to security reasons. Alternatively, replace this section with instructions to install your gem from git if you don't plan to release to RubyGems.org.
10+
11+
Install the gem and add to the application's Gemfile by executing:
12+
13+
```bash
14+
bundle add UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG
15+
```
16+
17+
If bundler is not being used to manage dependencies, install the gem by executing:
18+
19+
```bash
20+
gem install UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG
21+
```
22+
23+
## Usage
24+
25+
TODO: Write usage instructions here
26+
27+
## Development
28+
29+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
30+
31+
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
32+
33+
## Contributing
34+
35+
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/hyperactiveform.
36+
37+
## License
38+
39+
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).

β€ŽRakefileβ€Ž

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# frozen_string_literal: true
2+
3+
require "bundler/gem_tasks"
4+
require "rspec/core/rake_task"
5+
6+
RSpec::Core::RakeTask.new(:spec)
7+
8+
task default: :spec

β€Žbin/consoleβ€Ž

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/usr/bin/env ruby
2+
# frozen_string_literal: true
3+
4+
require "bundler/setup"
5+
require "hyperactiveform"
6+
7+
# You can add fixtures and/or initialization code here to make experimenting
8+
# with your gem easier. You can also use a different console, if you like.
9+
10+
require "irb"
11+
IRB.start(__FILE__)

0 commit comments

Comments
Β (0)