dakarai 4.1.0 → 4.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c676a0e2f8d05e296963e2c5246c57815fde4e54616629493b377c36a01b5e0d
4
- data.tar.gz: 6e76eb4ba6b4747c14eb73056b81e350015b80f648440518d0989c9415976fb6
3
+ metadata.gz: 2025426c1d2a03b3226ef4ca403147d49b38fc8fc26726ebfd398797461fc09a
4
+ data.tar.gz: ce53ebd9d9b07106eebf00fde9b9b40da6b98933ed3101a94a329e423746699d
5
5
  SHA512:
6
- metadata.gz: 8dd263892076752146a169c15ce7e80bf3dfd04f7bebf36e8775e91810fbc4ac8c65d79cdf89d6681a09822bb76302006b527bbcb1058bcdad7a54e02c7e5853
7
- data.tar.gz: ee74abec0cd4a44731e7970779011286666ede3a4691c0b861e9927b4a3d87bb0e0109dc411c0aa33bf0bc67e69438b1f753e37271e1f29e3657e294cc412e29
6
+ metadata.gz: eb3edea612a30416c4836648d9012e566f28881e0cb0045c6996fa1408a03d4054e0be7afb9310988505913f832180f6b77a9c35fdcf7e677c2c7a607e0e1cec
7
+ data.tar.gz: cb5ce821b25bfdd20d4f824aa4b7bf00ab8cc49b3440748c4ea82f91bb5b3b7dde60172a0cd390917f67dec3ef966e7edd46b738afa053fcdc06bc20b76eba97
@@ -0,0 +1,20 @@
1
+ Copyright 2017 Ideo SRL
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.
@@ -0,0 +1,48 @@
1
+ # Dakarai
2
+
3
+ [![Gem Version](https://badge.fury.io/rb/dakarai.svg)](https://badge.fury.io/rb/dakarai)
4
+
5
+ Code generator for new Rails projects.
6
+ This gem helps developers to start new Rails projects with a better starting boilerplate and popular gem integrations.
7
+
8
+ ## Installation
9
+
10
+ To install the gem you need to add it on your Rails application's Gemfile:
11
+
12
+ Latest version
13
+ ```ruby
14
+ gem 'dakarai', git: 'https://github.com/ideonetwork/dakarai'
15
+ ```
16
+
17
+ Legacy version
18
+ ```ruby
19
+ gem 'dakarai'
20
+ ```
21
+
22
+ ## Commands
23
+
24
+ Before any commands we recommend you to initialize your Rails app with Rails 5.2.* and the webpack option activated
25
+
26
+ ```shell
27
+ rails new my_app --webpack --skip-sprockets
28
+ ```
29
+
30
+ ### Initializer
31
+
32
+ To initialize your project with initial files run:
33
+
34
+ ```shell
35
+ rails generate dakarai:initializer
36
+ ```
37
+
38
+ This command should create all initial files for general purpose projects.
39
+
40
+ ### Sidekiq
41
+
42
+ To add Sidekiq gem support on your application run:
43
+
44
+ ```shell
45
+ rails generate dakarai:sidekiq
46
+ ```
47
+
48
+ This command should add all files used to manage sidekiq and sidekiq cron (with redis).
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Dakarai
4
+
5
+ VERSION = '4.1.1'
6
+
7
+ end
@@ -0,0 +1,18 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'rails/generators/base'
4
+
5
+ module Dakarai
6
+
7
+ # InitializerGenerator.
8
+ class InitializerGenerator < Rails::Generators::Base
9
+
10
+ source_root File.expand_path('../../../../templates', __FILE__)
11
+
12
+ def create_initializer
13
+ directory './initializer', './'
14
+ end
15
+
16
+ end
17
+
18
+ end
@@ -0,0 +1,18 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'rails/generators/base'
4
+
5
+ module Dakarai
6
+
7
+ # SidekiqGenerator.
8
+ class SidekiqGenerator < Rails::Generators::Base
9
+
10
+ source_root File.expand_path('../../../../templates', __FILE__)
11
+
12
+ def create_sidekiq
13
+ directory './sidekiq', './config'
14
+ end
15
+
16
+ end
17
+
18
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dakarai
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.1.0
4
+ version: 4.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ideonetwork
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-04-10 00:00:00.000000000 Z
11
+ date: 2018-04-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -30,7 +30,12 @@ email:
30
30
  executables: []
31
31
  extensions: []
32
32
  extra_rdoc_files: []
33
- files: []
33
+ files:
34
+ - MIT-LICENSE
35
+ - README.md
36
+ - lib/dakarai/version.rb
37
+ - lib/generators/dakarai/initializer_generator.rb
38
+ - lib/generators/dakarai/sidekiq_generator.rb
34
39
  homepage: http://ideonetwork.it/
35
40
  licenses:
36
41
  - MIT
@@ -39,7 +44,6 @@ post_install_message:
39
44
  rdoc_options: []
40
45
  require_paths:
41
46
  - lib
42
- - README.md
43
47
  required_ruby_version: !ruby/object:Gem::Requirement
44
48
  requirements:
45
49
  - - ">="