abyme 0.2.1 → 0.5.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/.DS_Store +0 -0
- data/.github/workflows/build.yml +60 -0
- data/.gitignore +10 -0
- data/.rspec +1 -3
- data/.simplecov +0 -0
- data/CHANGELOG.md +93 -0
- data/Gemfile.lock +210 -15
- data/README.md +119 -181
- data/Rakefile +47 -2
- data/abyme.gemspec +18 -2
- data/bin/rails +12 -0
- data/javascript/abyme_controller.js +86 -11
- data/lib/abyme.rb +2 -0
- data/lib/abyme/abyme_builder.rb +21 -10
- data/lib/abyme/action_view_extensions/builder.rb +15 -0
- data/lib/abyme/controller.rb +15 -0
- data/lib/abyme/engine.rb +3 -1
- data/lib/abyme/model.rb +79 -5
- data/lib/abyme/version.rb +4 -2
- data/lib/abyme/view_helpers.rb +182 -16
- data/package.json +2 -2
- metadata +182 -11
- data/.travis.yml +0 -7
- data/lib/generators/.DS_Store +0 -0
- data/lib/generators/abyme/install_generator.rb +0 -25
- data/lib/generators/abyme/templates/abyme_controller.js +0 -17
data/.travis.yml
DELETED
data/lib/generators/.DS_Store
DELETED
Binary file
|
@@ -1,25 +0,0 @@
|
|
1
|
-
# require 'rails/generators'
|
2
|
-
# require 'json'
|
3
|
-
|
4
|
-
# module Abyme
|
5
|
-
# module Generators
|
6
|
-
# class InstallGenerator < Rails::Generators::Base
|
7
|
-
# source_root File.expand_path("templates", __dir__)
|
8
|
-
|
9
|
-
# def setup
|
10
|
-
# # Creating stimulus abyme_controller.js file
|
11
|
-
# # ==========================================
|
12
|
-
# template "abyme_controller.js", "app/javascript/controllers/abyme_controller.js"
|
13
|
-
# add_stimulus
|
14
|
-
# end
|
15
|
-
|
16
|
-
# def add_stimulus
|
17
|
-
# # Checking if stimulus is present in package.json => yarn add if it's not
|
18
|
-
# # =======================================================================
|
19
|
-
# package = JSON.parse(File.open('package.json').read)
|
20
|
-
# exec('yarn add stimulus') if !package['dependencies'].keys.include?('stimulus')
|
21
|
-
# end
|
22
|
-
|
23
|
-
# end
|
24
|
-
# end
|
25
|
-
# end
|
@@ -1,17 +0,0 @@
|
|
1
|
-
import { Controller } from 'stimulus';
|
2
|
-
|
3
|
-
export default class extends Controller {
|
4
|
-
connect() {
|
5
|
-
console.log('Abyme Controller Connected');
|
6
|
-
}
|
7
|
-
|
8
|
-
add_association(event) {
|
9
|
-
event.preventDefault();
|
10
|
-
console.log('Add Association');
|
11
|
-
}
|
12
|
-
|
13
|
-
remove_association(event) {
|
14
|
-
event.preventDefault();
|
15
|
-
console.log('Remove Association');
|
16
|
-
}
|
17
|
-
}
|