Skip to content

Commit 1e35bd1

Browse files
committed
Make attractor a rails engine
0 parents  commit 1e35bd1

File tree

85 files changed

+1473
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

85 files changed

+1473
-0
lines changed

.dir-locals.el

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
;;; Directory Local Variables
2+
;;; For more information see (info "(emacs) Directory Variables")
3+
4+
((ruby-mode
5+
(flycheck-checker . ruby-standard)))

.gitignore

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
.bundle/
2+
log/*.log
3+
pkg/
4+
test/dummy/db/*.sqlite3
5+
test/dummy/db/*.sqlite3-journal
6+
test/dummy/db/*.sqlite3-*
7+
test/dummy/log/*.log
8+
test/dummy/storage/
9+
test/dummy/tmp/
10+
11+
#*#
12+
*~

Gemfile

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
source "https://rubygems.org"
2+
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
3+
4+
# Declare your gem's dependencies in attractor-rails.gemspec.
5+
# Bundler will treat runtime dependencies like base dependencies, and
6+
# development dependencies will be added by default to the :development group.
7+
gemspec
8+
9+
# Declare any dependencies that are still in development here instead of in
10+
# your gemspec. These might include edge Rails or gems from your path or
11+
# Git. Remember to move these dependencies to your gemspec before releasing
12+
# your gem to rubygems.org.
13+
14+
# To use a debugger
15+
# gem 'byebug', group: [:development, :test]

Gemfile.lock

+233
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,233 @@
1+
PATH
2+
remote: .
3+
specs:
4+
attractor-rails (0.1.0)
5+
attractor (>= 2.0.3)
6+
attractor-javascript (~> 0.1)
7+
attractor-ruby (~> 0.1)
8+
rails (~> 6.0.3)
9+
10+
GEM
11+
remote: https://rubygems.org/
12+
specs:
13+
actioncable (6.0.3)
14+
actionpack (= 6.0.3)
15+
nio4r (~> 2.0)
16+
websocket-driver (>= 0.6.1)
17+
actionmailbox (6.0.3)
18+
actionpack (= 6.0.3)
19+
activejob (= 6.0.3)
20+
activerecord (= 6.0.3)
21+
activestorage (= 6.0.3)
22+
activesupport (= 6.0.3)
23+
mail (>= 2.7.1)
24+
actionmailer (6.0.3)
25+
actionpack (= 6.0.3)
26+
actionview (= 6.0.3)
27+
activejob (= 6.0.3)
28+
mail (~> 2.5, >= 2.5.4)
29+
rails-dom-testing (~> 2.0)
30+
actionpack (6.0.3)
31+
actionview (= 6.0.3)
32+
activesupport (= 6.0.3)
33+
rack (~> 2.0, >= 2.0.8)
34+
rack-test (>= 0.6.3)
35+
rails-dom-testing (~> 2.0)
36+
rails-html-sanitizer (~> 1.0, >= 1.2.0)
37+
actiontext (6.0.3)
38+
actionpack (= 6.0.3)
39+
activerecord (= 6.0.3)
40+
activestorage (= 6.0.3)
41+
activesupport (= 6.0.3)
42+
nokogiri (>= 1.8.5)
43+
actionview (6.0.3)
44+
activesupport (= 6.0.3)
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 (6.0.3)
50+
activesupport (= 6.0.3)
51+
globalid (>= 0.3.6)
52+
activemodel (6.0.3)
53+
activesupport (= 6.0.3)
54+
activerecord (6.0.3)
55+
activemodel (= 6.0.3)
56+
activesupport (= 6.0.3)
57+
activestorage (6.0.3)
58+
actionpack (= 6.0.3)
59+
activejob (= 6.0.3)
60+
activerecord (= 6.0.3)
61+
marcel (~> 0.3.1)
62+
activesupport (6.0.3)
63+
concurrent-ruby (~> 1.0, >= 1.0.2)
64+
i18n (>= 0.7, < 2)
65+
minitest (~> 5.1)
66+
tzinfo (~> 1.1)
67+
zeitwerk (~> 2.2, >= 2.2.2)
68+
addressable (2.7.0)
69+
public_suffix (>= 2.0.2, < 5.0)
70+
arrayfields (4.9.2)
71+
ast (2.4.0)
72+
attractor (2.0.3)
73+
churn (>= 1.0.4)
74+
descriptive_statistics
75+
flog (~> 4.0)
76+
launchy
77+
listen (~> 3.0)
78+
rack-livereload
79+
sinatra
80+
thor
81+
tilt
82+
attractor-javascript (0.1.0)
83+
attractor (~> 2.0)
84+
attractor-ruby (0.1.0)
85+
attractor (~> 2.0)
86+
builder (3.2.4)
87+
chronic (0.10.2)
88+
churn (1.0.8)
89+
chronic (>= 0.2.3)
90+
hirb
91+
main
92+
ruby_parser (~> 3.0)
93+
sexp_processor (~> 4.1)
94+
concurrent-ruby (1.1.6)
95+
crass (1.0.6)
96+
descriptive_statistics (2.5.1)
97+
erubi (1.9.0)
98+
fattr (2.4.0)
99+
ffi (1.12.2)
100+
flog (4.6.4)
101+
path_expander (~> 1.0)
102+
ruby_parser (~> 3.1, > 3.1.0)
103+
sexp_processor (~> 4.8)
104+
globalid (0.4.2)
105+
activesupport (>= 4.2.0)
106+
hirb (0.7.3)
107+
i18n (1.8.2)
108+
concurrent-ruby (~> 1.0)
109+
jaro_winkler (1.5.4)
110+
launchy (2.5.0)
111+
addressable (~> 2.7)
112+
listen (3.2.1)
113+
rb-fsevent (~> 0.10, >= 0.10.3)
114+
rb-inotify (~> 0.9, >= 0.9.10)
115+
loofah (2.5.0)
116+
crass (~> 1.0.2)
117+
nokogiri (>= 1.5.9)
118+
mail (2.7.1)
119+
mini_mime (>= 0.1.1)
120+
main (6.2.3)
121+
arrayfields (~> 4.7, >= 4.7.4)
122+
chronic (~> 0.6, >= 0.6.2)
123+
fattr (~> 2.2, >= 2.2.0)
124+
map (~> 6.1, >= 6.1.0)
125+
map (6.6.0)
126+
marcel (0.3.3)
127+
mimemagic (~> 0.3.2)
128+
method_source (1.0.0)
129+
mimemagic (0.3.5)
130+
mini_mime (1.0.2)
131+
mini_portile2 (2.4.0)
132+
minitest (5.14.1)
133+
mustermann (1.1.1)
134+
ruby2_keywords (~> 0.0.1)
135+
nio4r (2.5.2)
136+
nokogiri (1.10.9)
137+
mini_portile2 (~> 2.4.0)
138+
parallel (1.19.1)
139+
parser (2.7.1.2)
140+
ast (~> 2.4.0)
141+
path_expander (1.1.0)
142+
public_suffix (4.0.5)
143+
rack (2.2.2)
144+
rack-livereload (0.3.17)
145+
rack
146+
rack-protection (2.0.8.1)
147+
rack
148+
rack-test (1.1.0)
149+
rack (>= 1.0, < 3)
150+
rails (6.0.3)
151+
actioncable (= 6.0.3)
152+
actionmailbox (= 6.0.3)
153+
actionmailer (= 6.0.3)
154+
actionpack (= 6.0.3)
155+
actiontext (= 6.0.3)
156+
actionview (= 6.0.3)
157+
activejob (= 6.0.3)
158+
activemodel (= 6.0.3)
159+
activerecord (= 6.0.3)
160+
activestorage (= 6.0.3)
161+
activesupport (= 6.0.3)
162+
bundler (>= 1.3.0)
163+
railties (= 6.0.3)
164+
sprockets-rails (>= 2.0.0)
165+
rails-dom-testing (2.0.3)
166+
activesupport (>= 4.2.0)
167+
nokogiri (>= 1.6)
168+
rails-html-sanitizer (1.3.0)
169+
loofah (~> 2.3)
170+
railties (6.0.3)
171+
actionpack (= 6.0.3)
172+
activesupport (= 6.0.3)
173+
method_source
174+
rake (>= 0.8.7)
175+
thor (>= 0.20.3, < 2.0)
176+
rainbow (3.0.0)
177+
rake (13.0.1)
178+
rb-fsevent (0.10.4)
179+
rb-inotify (0.10.1)
180+
ffi (~> 1.0)
181+
rexml (3.2.4)
182+
rubocop (0.82.0)
183+
jaro_winkler (~> 1.5.1)
184+
parallel (~> 1.10)
185+
parser (>= 2.7.0.1)
186+
rainbow (>= 2.2.2, < 4.0)
187+
rexml
188+
ruby-progressbar (~> 1.7)
189+
unicode-display_width (>= 1.4.0, < 2.0)
190+
rubocop-performance (1.5.2)
191+
rubocop (>= 0.71.0)
192+
ruby-progressbar (1.10.1)
193+
ruby2_keywords (0.0.2)
194+
ruby_parser (3.14.2)
195+
sexp_processor (~> 4.9)
196+
sexp_processor (4.14.1)
197+
sinatra (2.0.8.1)
198+
mustermann (~> 1.0)
199+
rack (~> 2.0)
200+
rack-protection (= 2.0.8.1)
201+
tilt (~> 2.0)
202+
sprockets (4.0.0)
203+
concurrent-ruby (~> 1.0)
204+
rack (> 1, < 3)
205+
sprockets-rails (3.2.1)
206+
actionpack (>= 4.0)
207+
activesupport (>= 4.0)
208+
sprockets (>= 3.0.0)
209+
sqlite3 (1.4.2)
210+
standard (0.4.1)
211+
rubocop (~> 0.82.0)
212+
rubocop-performance (~> 1.5.2)
213+
thor (1.0.1)
214+
thread_safe (0.3.6)
215+
tilt (2.0.10)
216+
tzinfo (1.2.7)
217+
thread_safe (~> 0.1)
218+
unicode-display_width (1.7.0)
219+
websocket-driver (0.7.1)
220+
websocket-extensions (>= 0.1.0)
221+
websocket-extensions (0.1.4)
222+
zeitwerk (2.3.0)
223+
224+
PLATFORMS
225+
ruby
226+
227+
DEPENDENCIES
228+
attractor-rails!
229+
sqlite3
230+
standard
231+
232+
BUNDLED WITH
233+
2.1.4

MIT-LICENSE

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
Copyright 2020 Julian Rubisch
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

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Attractor::Rails
2+
Short description and motivation.
3+
4+
## Usage
5+
How to use my plugin.
6+
7+
## Installation
8+
Add this line to your application's Gemfile:
9+
10+
```ruby
11+
gem 'attractor-rails'
12+
```
13+
14+
And then execute:
15+
```bash
16+
$ bundle
17+
```
18+
19+
Or install it yourself as:
20+
```bash
21+
$ gem install attractor-rails
22+
```
23+
24+
## Contributing
25+
Contribution directions go here.
26+
27+
## License
28+
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).

Rakefile

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
begin
2+
require "bundler/setup"
3+
rescue LoadError
4+
puts "You must `gem install bundler` and `bundle install` to run rake tasks"
5+
end
6+
7+
require "rdoc/task"
8+
9+
RDoc::Task.new(:rdoc) do |rdoc|
10+
rdoc.rdoc_dir = "rdoc"
11+
rdoc.title = "Attractor::Rails"
12+
rdoc.options << "--line-numbers"
13+
rdoc.rdoc_files.include("README.md")
14+
rdoc.rdoc_files.include("lib/**/*.rb")
15+
end
16+
17+
APP_RAKEFILE = File.expand_path("test/dummy/Rakefile", __dir__)
18+
load "rails/tasks/engine.rake"
19+
20+
load "rails/tasks/statistics.rake"
21+
22+
require "bundler/gem_tasks"
23+
24+
require "rake/testtask"
25+
26+
Rake::TestTask.new(:test) do |t|
27+
t.libs << "test"
28+
t.pattern = "test/**/*_test.rb"
29+
t.verbose = false
30+
end
31+
32+
task default: :test
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
//= link_directory ../stylesheets/attractor/rails .css
2.49 KB
Loading

app/assets/images/attractor_logo.png

15.4 KB
Loading

0 commit comments

Comments
 (0)