rtcl 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/MIT-LICENSE +20 -0
- data/README.md +28 -0
- data/Rakefile +14 -0
- data/app/assets/config/rtcl_manifest.js +3 -0
- data/app/assets/images/user-sample.jpg +0 -0
- data/app/assets/javascripts/rtcl/application.js +174 -0
- data/app/assets/javascripts/rtcl/name-that-color.js +1 -0
- data/app/assets/stylesheets/rtcl/application.css +7 -0
- data/app/assets/stylesheets/rtcl/highlight-android.css +1 -0
- data/app/assets/stylesheets/rtcl/styles.css +2578 -0
- data/app/assets/stylesheets/rtcl/trix.css +556 -0
- data/app/controllers/rtcl/application_controller.rb +18 -0
- data/app/controllers/rtcl/articles/comments_controller.rb +11 -0
- data/app/controllers/rtcl/articles_controller.rb +65 -0
- data/app/controllers/rtcl/comments_controller.rb +27 -0
- data/app/helpers/rtcl/application_helper.rb +4 -0
- data/app/jobs/rtcl/application_job.rb +4 -0
- data/app/mailers/rtcl/application_mailer.rb +6 -0
- data/app/models/ability.rb +20 -0
- data/app/models/concerns/rtcl/blogger.rb +9 -0
- data/app/models/rtcl/application_record.rb +5 -0
- data/app/models/rtcl/article.rb +53 -0
- data/app/views/layouts/rtcl/application.html.erb +19 -0
- data/app/views/rtcl/articles/_article.html.erb +33 -0
- data/app/views/rtcl/articles/_article.json.jbuilder +5 -0
- data/app/views/rtcl/articles/_form.html.erb +69 -0
- data/app/views/rtcl/articles/edit.html.erb +17 -0
- data/app/views/rtcl/articles/index.html.erb +32 -0
- data/app/views/rtcl/articles/new.html.erb +16 -0
- data/app/views/rtcl/articles/show.html.erb +64 -0
- data/app/views/rtcl/comments/_comment.html.erb +47 -0
- data/app/views/rtcl/comments/_comments.html.erb +18 -0
- data/app/views/rtcl/comments/_form.html.erb +11 -0
- data/app/views/rtcl/comments/new.html.erb +7 -0
- data/app/views/rtcl/comments/show.html.erb +1 -0
- data/config/routes.rb +11 -0
- data/db/migrate/20220208044728_create_articles.rb +16 -0
- data/lib/generators/rtcl/install/install_generator.rb +28 -0
- data/lib/generators/rtcl/templates/active_model_serializers.rb +1 -0
- data/lib/generators/rtcl/templates/rtcl.rb +10 -0
- data/lib/rtcl/configuration.rb +7 -0
- data/lib/rtcl/engine.rb +33 -0
- data/lib/rtcl/railtie.rb +4 -0
- data/lib/rtcl/version.rb +3 -0
- data/lib/rtcl.rb +30 -0
- data/lib/tasks/rtcl_tasks.rake +4 -0
- metadata +252 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 94dea60a181f0e4b77d9ebc3c59e78546199b793e09b7d385887f5a651a1b9e3
|
4
|
+
data.tar.gz: c7c76d4c873e64474c12b2f8464e630c81295166ab41c31d8a2d9bcb971c6f45
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: d1e8e66b399354f108d8328b6c585f54b8cc19b2527e924bf3a966f31ace9e1fe9446113bce486d5718397407d2079c85ccd9400ffbacbe2a36a96540df2a85f
|
7
|
+
data.tar.gz: 95a2f964c69e0d848f7c56d7c530c1c2e32c545a7d68906f3cfca93697190a4671b74652cce0c48ea056561fca47d8c5f564861f8e086d3e3e0c7bcb68b71f52
|
data/MIT-LICENSE
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
Copyright 2022 Leo Neto
|
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.
|
data/README.md
ADDED
@@ -0,0 +1,28 @@
|
|
1
|
+
# Rtcl
|
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 "rtcl"
|
12
|
+
```
|
13
|
+
|
14
|
+
And then execute:
|
15
|
+
```bash
|
16
|
+
$ bundle
|
17
|
+
```
|
18
|
+
|
19
|
+
Or install it yourself as:
|
20
|
+
```bash
|
21
|
+
$ gem install rtcl
|
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).
|
data/Rakefile
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
require "bundler/setup"
|
2
|
+
|
3
|
+
APP_RAKEFILE = File.expand_path("spec/dummy/Rakefile", __dir__)
|
4
|
+
load "rails/tasks/engine.rake"
|
5
|
+
|
6
|
+
load "rails/tasks/statistics.rake"
|
7
|
+
|
8
|
+
require "bundler/gem_tasks"
|
9
|
+
|
10
|
+
require "rspec/core/rake_task"
|
11
|
+
|
12
|
+
RSpec::Core::RakeTask.new(:spec)
|
13
|
+
|
14
|
+
task default: :spec
|
Binary file
|