dakarai 4.2.0 → 5.3.0

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: b0d7b9f6c3cfc37ba29f10cfb78c49f60ab69172dd6e5b74bcfa9cf5db1b73f7
4
- data.tar.gz: f5c9cb3574e04b9cd6ef16a0c554a1c06882e4cd6d6dd2c994a23fc7973c9d20
3
+ metadata.gz: 07ffa6cb548604aabb6a68fe0272e4a56c1c60c33f5572e7484b58acc375dbb9
4
+ data.tar.gz: f6e11ae8baeaca98d72a225ce962c67154db0e02f438959f1c2cc2a97e57aea5
5
5
  SHA512:
6
- metadata.gz: 4a556a11e04743d5ec0492704cfebaf5767a65113cd282a23a9c0dc74e0688378a8810241d473235ae8c4714265638c4ae1ee5eecae93db22d7c44ceefb0b185
7
- data.tar.gz: '083228a9d4048a138ac6db2729386fcc214c628c372091948d5dad25956fb92d5ab0937bea3c7779a527304e74486d1bdc930b4b724f5184080eabe6fb317fae'
6
+ metadata.gz: 7c70c40535569f23c75bff1bb8528d640fb7abad9cc76d2208090ec60b1192e4558d52cbfd4a709e55a8f9e52ba319b6ad94482e00f1c35e7ccb63b06da7ccf2
7
+ data.tar.gz: 62ae574c1b2070db7ec9acc467a7a89f653aa8820b6d7102dae5c5c5feecc077de0f0e5f01f8948db1a0e8dc5732a08f47cd2ab0b9a58248b51e385a63a27f20
data/MIT-LICENSE CHANGED
@@ -1,20 +1,21 @@
1
- Copyright 2017 Ideo SRL
1
+ The MIT License (MIT)
2
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:
3
+ Copyright (c) 2019 Gregorio Galante
10
4
 
11
- The above copyright notice and this permission notice shall be
12
- included in all copies or substantial portions of the Software.
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
13
11
 
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.
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md CHANGED
@@ -1,12 +1,13 @@
1
1
  # Dakarai
2
2
 
3
- [![Gem Version](https://badge.fury.io/rb/dakarai.svg)](https://badge.fury.io/rb/dakarai)
4
3
  [![Inline docs](http://inch-ci.org/github/ideonetwork/dakarai.svg?branch=master)](http://inch-ci.org/github/ideonetwork/dakarai)
5
4
 
6
5
  Code generator for new Rails projects.
7
6
  This gem helps developers to start new Rails projects with a better starting boilerplate and popular gem integrations.
8
7
 
9
- The full documentation of the gem can be found here: https://ideonetwork.github.io/dakarai
8
+ The current versione is updated to work with Rails 6.1.0.
9
+
10
+ The full documentation of the gem can be found here: <a href="https://github.com/ideonetwork/dakarai/wiki">https://github.com/ideonetwork/dakarai/wiki</a>
10
11
 
11
12
  ## Installation
12
13
 
@@ -21,19 +22,3 @@ Legacy version
21
22
  ```ruby
22
23
  gem 'dakarai'
23
24
  ```
24
-
25
- ## Development
26
-
27
- ### Docsify documentation
28
-
29
- Install docsify as global node dependency
30
-
31
- ```shell
32
- npm install -g docsify
33
- ```
34
-
35
- See documentation on local machine
36
-
37
- ```shell
38
- docsify serve ./docs
39
- ```
@@ -1,7 +1,5 @@
1
- # frozen_string_literal: true
2
-
3
1
  module Dakarai
4
2
 
5
- VERSION = '4.2.0'
3
+ VERSION = '5.3.0'
6
4
 
7
5
  end
@@ -0,0 +1,18 @@
1
+ require 'rails/generators/base'
2
+
3
+ module Dakarai
4
+
5
+ # BootstrapGenerator.
6
+ # Bootstrap integration to your application.
7
+ class BootstrapGenerator < Rails::Generators::Base
8
+
9
+ source_root File.expand_path('../../../../templates', __FILE__)
10
+
11
+ def create_bootstrap
12
+ directory './bootstrap', './'
13
+ run 'yarn add bootstrap jquery popper.js'
14
+ end
15
+
16
+ end
17
+
18
+ end
@@ -0,0 +1,17 @@
1
+ require 'rails/generators/base'
2
+
3
+ module Dakarai
4
+
5
+ # DockerizeGenerator.
6
+ # Make your applcation working with Docker.
7
+ class DockerizeGenerator < Rails::Generators::Base
8
+
9
+ source_root File.expand_path('../../../../templates', __FILE__)
10
+
11
+ def create_dockerize
12
+ directory './dockerize', './'
13
+ end
14
+
15
+ end
16
+
17
+ end
@@ -1,10 +1,9 @@
1
- # frozen_string_literal: true
2
-
3
1
  require 'rails/generators/base'
4
2
 
5
3
  module Dakarai
6
4
 
7
5
  # InitializerGenerator.
6
+ # Copy the base files structure to the Rails project.
8
7
  class InitializerGenerator < Rails::Generators::Base
9
8
 
10
9
  source_root File.expand_path('../../../../templates', __FILE__)
metadata CHANGED
@@ -1,32 +1,60 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dakarai
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.2.0
4
+ version: 5.3.0
5
5
  platform: ruby
6
6
  authors:
7
- - Ideonetwork
8
- autorequire:
7
+ - 1d3o
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-03-21 00:00:00.000000000 Z
11
+ date: 2021-06-30 00:00:00.000000000 Z
12
12
  dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rails
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '6.0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '6.0'
13
27
  - !ruby/object:Gem::Dependency
14
28
  name: bundler
15
29
  requirement: !ruby/object:Gem::Requirement
16
30
  requirements:
17
- - - ">="
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '2.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '2.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rake
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
18
46
  - !ruby/object:Gem::Version
19
- version: '0'
47
+ version: '13.0'
20
48
  type: :development
21
49
  prerelease: false
22
50
  version_requirements: !ruby/object:Gem::Requirement
23
51
  requirements:
24
- - - ">="
52
+ - - "~>"
25
53
  - !ruby/object:Gem::Version
26
- version: '0'
27
- description: Rails projects initializer
54
+ version: '13.0'
55
+ description: Ruby on Rails projects initializer
28
56
  email:
29
- - dev@ideonetwork.it
57
+ - dev@1d3o.it
30
58
  executables: []
31
59
  extensions: []
32
60
  extra_rdoc_files: []
@@ -34,16 +62,14 @@ files:
34
62
  - MIT-LICENSE
35
63
  - README.md
36
64
  - lib/dakarai/version.rb
37
- - lib/generators/dakarai/engine_configuration_generator.rb
38
- - lib/generators/dakarai/engine_webpacker_generator.rb
65
+ - lib/generators/dakarai/bootstrap_generator.rb
66
+ - lib/generators/dakarai/dockerize_generator.rb
39
67
  - lib/generators/dakarai/initializer_generator.rb
40
- - lib/generators/dakarai/services_generator.rb
41
- - lib/generators/dakarai/sidekiq_generator.rb
42
- homepage: http://ideonetwork.it/
68
+ homepage: https://1d3o.it
43
69
  licenses:
44
70
  - MIT
45
71
  metadata: {}
46
- post_install_message:
72
+ post_install_message:
47
73
  rdoc_options: []
48
74
  require_paths:
49
75
  - lib
@@ -59,8 +85,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
59
85
  - !ruby/object:Gem::Version
60
86
  version: '0'
61
87
  requirements: []
62
- rubygems_version: 3.0.1
63
- signing_key:
88
+ rubygems_version: 3.2.19
89
+ signing_key:
64
90
  specification_version: 4
65
- summary: Rails projectsinitializer
91
+ summary: Ruby on Rails projects initializer
66
92
  test_files: []
@@ -1,26 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'rails/generators/base'
4
-
5
- module Dakarai
6
-
7
- # EngineConfigurationGenerator.
8
- class EngineConfigurationGenerator < Rails::Generators::Base
9
-
10
- source_root File.expand_path('../../../../templates', __FILE__)
11
-
12
- argument :engine, type: :string, optional: false
13
-
14
- def create_engine_configuration
15
- @engine_class = engine.camelize
16
- @engine_name = engine.underscore
17
-
18
- template(
19
- 'engine_configuration/lib/engine/configuration.rb',
20
- "lib/#{@engine_name}/configuration.rb"
21
- )
22
- end
23
-
24
- end
25
-
26
- end
@@ -1,64 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'rails/generators/base'
4
-
5
- module Dakarai
6
-
7
- # EngineWebpackerGenerator.
8
- class EngineWebpackerGenerator < Rails::Generators::Base
9
-
10
- source_root File.expand_path('../../../../templates', __FILE__)
11
-
12
- argument :engine, type: :string, optional: false
13
-
14
- def create_engine_webpacker
15
- @engine_class = engine.camelize
16
- @engine_name = engine.underscore
17
-
18
- # prepare engine emplate
19
- template 'engine_webpacker/package.json', 'package.json'
20
- template 'engine_webpacker/webpack.config.js', 'webpack.config.js'
21
- template(
22
- 'engine_webpacker/lib/tasks/assets_management_tasks.rake',
23
- 'lib/tasks/assets_management_tasks.rake'
24
- )
25
- copy_file 'engine_webpacker/.babelrc', '.babelrc'
26
- copy_file 'engine_webpacker/Gemfile', 'Gemfile'
27
- copy_file 'engine_webpacker/.gitignore', '.gitignore'
28
- copy_file(
29
- 'engine_webpacker/app/javascript/engine/index.js',
30
- "app/javascript/#{@engine_name}/index.js"
31
- )
32
- copy_file(
33
- 'engine_webpacker/app/javascript/engine/scripts/main.js',
34
- "app/javascript/#{@engine_name}/scripts/main.js"
35
- )
36
- copy_file(
37
- 'engine_webpacker/app/javascript/engine/style/main.scss',
38
- "app/javascript/#{@engine_name}/style/main.scss"
39
- )
40
- copy_file(
41
- 'engine_webpacker/app/views/layouts/engine/application.html.erb',
42
- "app/views/layouts/#{@engine_name}/application.html.erb"
43
- )
44
-
45
- # install dependencies
46
- system 'bundle install'
47
- system 'npm install -g yarn'
48
- system 'yarn install'
49
- system 'cd test/dummy && rails webpacker:install'
50
-
51
- # prepare engine dummy app
52
- template(
53
- 'engine_webpacker/test/dummy/config/initializers/webpacker.rb',
54
- 'test/dummy/config/initializers/webpacker.rb'
55
- )
56
- copy_file(
57
- 'engine_webpacker/test/dummy/app/javascript/packs/application.js',
58
- 'test/dummy/app/javascript/packs/application.js'
59
- )
60
- end
61
-
62
- end
63
-
64
- end
@@ -1,19 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'rails/generators/base'
4
-
5
- module Dakarai
6
-
7
- # ServicesGenerator.
8
- class ServicesGenerator < Rails::Generators::Base
9
-
10
- source_root File.expand_path('../../../../templates', __FILE__)
11
-
12
- def create_services
13
- directory './services', './'
14
- application "config.autoload_paths += %W[\#{Rails.root}/app/services]"
15
- end
16
-
17
- end
18
-
19
- end
@@ -1,18 +0,0 @@
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', './'
14
- end
15
-
16
- end
17
-
18
- end