Skip to content

Commit 4ee9688

Browse files
committed
Create engine to use request.js with asset pipeline
0 parents  commit 4ee9688

15 files changed

+518
-0
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
*.gem
2+
/node_modules

Gemfile

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
source 'https://rubygems.org'
2+
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
3+
4+
gemspec
5+
6+
rails_version = ENV["RAILS_VERSION"] || "6.1.0"
7+
gem "rails", "~> #{rails_version}"

Gemfile.lock

+143
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,143 @@
1+
PATH
2+
remote: .
3+
specs:
4+
request.js-rails (0.0.5)
5+
rails (>= 6.0.0)
6+
7+
GEM
8+
remote: https://rubygems.org/
9+
specs:
10+
actioncable (6.1.4)
11+
actionpack (= 6.1.4)
12+
activesupport (= 6.1.4)
13+
nio4r (~> 2.0)
14+
websocket-driver (>= 0.6.1)
15+
actionmailbox (6.1.4)
16+
actionpack (= 6.1.4)
17+
activejob (= 6.1.4)
18+
activerecord (= 6.1.4)
19+
activestorage (= 6.1.4)
20+
activesupport (= 6.1.4)
21+
mail (>= 2.7.1)
22+
actionmailer (6.1.4)
23+
actionpack (= 6.1.4)
24+
actionview (= 6.1.4)
25+
activejob (= 6.1.4)
26+
activesupport (= 6.1.4)
27+
mail (~> 2.5, >= 2.5.4)
28+
rails-dom-testing (~> 2.0)
29+
actionpack (6.1.4)
30+
actionview (= 6.1.4)
31+
activesupport (= 6.1.4)
32+
rack (~> 2.0, >= 2.0.9)
33+
rack-test (>= 0.6.3)
34+
rails-dom-testing (~> 2.0)
35+
rails-html-sanitizer (~> 1.0, >= 1.2.0)
36+
actiontext (6.1.4)
37+
actionpack (= 6.1.4)
38+
activerecord (= 6.1.4)
39+
activestorage (= 6.1.4)
40+
activesupport (= 6.1.4)
41+
nokogiri (>= 1.8.5)
42+
actionview (6.1.4)
43+
activesupport (= 6.1.4)
44+
builder (~> 3.1)
45+
erubi (~> 1.4)
46+
rails-dom-testing (~> 2.0)
47+
rails-html-sanitizer (~> 1.1, >= 1.2.0)
48+
activejob (6.1.4)
49+
activesupport (= 6.1.4)
50+
globalid (>= 0.3.6)
51+
activemodel (6.1.4)
52+
activesupport (= 6.1.4)
53+
activerecord (6.1.4)
54+
activemodel (= 6.1.4)
55+
activesupport (= 6.1.4)
56+
activestorage (6.1.4)
57+
actionpack (= 6.1.4)
58+
activejob (= 6.1.4)
59+
activerecord (= 6.1.4)
60+
activesupport (= 6.1.4)
61+
marcel (~> 1.0.0)
62+
mini_mime (>= 1.1.0)
63+
activesupport (6.1.4)
64+
concurrent-ruby (~> 1.0, >= 1.0.2)
65+
i18n (>= 1.6, < 2)
66+
minitest (>= 5.1)
67+
tzinfo (~> 2.0)
68+
zeitwerk (~> 2.3)
69+
builder (3.2.4)
70+
concurrent-ruby (1.1.9)
71+
crass (1.0.6)
72+
erubi (1.10.0)
73+
globalid (0.5.2)
74+
activesupport (>= 5.0)
75+
i18n (1.8.10)
76+
concurrent-ruby (~> 1.0)
77+
loofah (2.11.0)
78+
crass (~> 1.0.2)
79+
nokogiri (>= 1.5.9)
80+
mail (2.7.1)
81+
mini_mime (>= 0.1.1)
82+
marcel (1.0.1)
83+
method_source (1.0.0)
84+
mini_mime (1.1.0)
85+
minitest (5.14.4)
86+
nio4r (2.5.8)
87+
nokogiri (1.12.3-x86_64-linux)
88+
racc (~> 1.4)
89+
racc (1.5.2)
90+
rack (2.2.3)
91+
rack-test (1.1.0)
92+
rack (>= 1.0, < 3)
93+
rails (6.1.4)
94+
actioncable (= 6.1.4)
95+
actionmailbox (= 6.1.4)
96+
actionmailer (= 6.1.4)
97+
actionpack (= 6.1.4)
98+
actiontext (= 6.1.4)
99+
actionview (= 6.1.4)
100+
activejob (= 6.1.4)
101+
activemodel (= 6.1.4)
102+
activerecord (= 6.1.4)
103+
activestorage (= 6.1.4)
104+
activesupport (= 6.1.4)
105+
bundler (>= 1.15.0)
106+
railties (= 6.1.4)
107+
sprockets-rails (>= 2.0.0)
108+
rails-dom-testing (2.0.3)
109+
activesupport (>= 4.2.0)
110+
nokogiri (>= 1.6)
111+
rails-html-sanitizer (1.3.0)
112+
loofah (~> 2.3)
113+
railties (6.1.4)
114+
actionpack (= 6.1.4)
115+
activesupport (= 6.1.4)
116+
method_source
117+
rake (>= 0.13)
118+
thor (~> 1.0)
119+
rake (13.0.6)
120+
sprockets (4.0.2)
121+
concurrent-ruby (~> 1.0)
122+
rack (> 1, < 3)
123+
sprockets-rails (3.2.2)
124+
actionpack (>= 4.0)
125+
activesupport (>= 4.0)
126+
sprockets (>= 3.0.0)
127+
thor (1.1.0)
128+
tzinfo (2.0.4)
129+
concurrent-ruby (~> 1.0)
130+
websocket-driver (0.7.5)
131+
websocket-extensions (>= 0.1.0)
132+
websocket-extensions (0.1.5)
133+
zeitwerk (2.4.2)
134+
135+
PLATFORMS
136+
x86_64-linux
137+
138+
DEPENDENCIES
139+
rails (~> 6.1.0)
140+
request.js-rails!
141+
142+
BUNDLED WITH
143+
2.2.19

MIT-LICENSE

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
Copyright (c) 2021 Marcelo Lauxen
2+
3+
Permission is hereby granted, free of charge, to any person obtaining
4+
a copy of this software and associated documentation files (the
5+
"Software"), to deal in the Software without restriction, including
6+
without limitation the rights to use, copy, modify, merge, publish,
7+
distribute, sublicense, and/or sell copies of the Software, and to
8+
permit persons to whom the Software is furnished to do so, subject to
9+
the following conditions:
10+
11+
The above copyright notice and this permission notice shall be
12+
included in all copies or substantial portions of the Software.
13+
14+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

README.md

Whitespace-only changes.

Rakefile

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
require "bundler/setup"
2+
3+
require "bundler/gem_tasks"
4+
5+
require "rake/testtask"
6+
7+
Rake::TestTask.new(:test) do |t|
8+
t.libs << 'test'
9+
t.pattern = 'test/**/*_test.rb'
10+
t.verbose = false
11+
end
12+
13+
task default: :test

app/assets/javascripts/request.js

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
//= require ./requestjs.js

0 commit comments

Comments
 (0)