dakarai 4.2.0 → 5.0.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: b450e7fdf08bba358948ad7cfaed2c8366d03b2a37e97523f9d4ac1dda329506
4
+ data.tar.gz: db2b84d8cb2ea01959999ab12013ad9b7d15eb96dad7fbdaf30a9d5b44efb265
5
5
  SHA512:
6
- metadata.gz: 4a556a11e04743d5ec0492704cfebaf5767a65113cd282a23a9c0dc74e0688378a8810241d473235ae8c4714265638c4ae1ee5eecae93db22d7c44ceefb0b185
7
- data.tar.gz: '083228a9d4048a138ac6db2729386fcc214c628c372091948d5dad25956fb92d5ab0937bea3c7779a527304e74486d1bdc930b4b724f5184080eabe6fb317fae'
6
+ metadata.gz: c76836f356e041cf30f3c03a6a19cc3951b522eeb3376ef9751c351b22894f4ed26136b32e800394efdd5970154ba952ea0750eda7b3c37728a7c527e15c69b6
7
+ data.tar.gz: 54ec4d11b082ae74bb2afe46e31a3f2c277d2aca1dab8d8b3cf6cf1c56633b36dfc86668234c9f15356ab102d87eb6b3683d2ea2168817bf676d3b050f5fb15b
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
@@ -6,6 +6,8 @@
6
6
  Code generator for new Rails projects.
7
7
  This gem helps developers to start new Rails projects with a better starting boilerplate and popular gem integrations.
8
8
 
9
+ The current versione is updated to work with Rails 6.0.
10
+
9
11
  The full documentation of the gem can be found here: https://ideonetwork.github.io/dakarai
10
12
 
11
13
  ## Installation
@@ -29,11 +31,11 @@ gem 'dakarai'
29
31
  Install docsify as global node dependency
30
32
 
31
33
  ```shell
32
- npm install -g docsify
34
+ npm install -g docsify-cli
33
35
  ```
34
36
 
35
37
  See documentation on local machine
36
38
 
37
39
  ```shell
38
40
  docsify serve ./docs
39
- ```
41
+ ```
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Dakarai
4
4
 
5
- VERSION = '4.2.0'
5
+ VERSION = '5.0.0'
6
6
 
7
7
  end
@@ -0,0 +1,19 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'rails/generators/base'
4
+
5
+ module Dakarai
6
+
7
+ # DockerizeGenerator.
8
+ # Make your applcation working with Docker.
9
+ class DockerizeGenerator < Rails::Generators::Base
10
+
11
+ source_root File.expand_path('../../../../templates', __FILE__)
12
+
13
+ def create_dockerize
14
+ directory './dockerize', './'
15
+ end
16
+
17
+ end
18
+
19
+ end
@@ -5,6 +5,7 @@ require 'rails/generators/base'
5
5
  module Dakarai
6
6
 
7
7
  # InitializerGenerator.
8
+ # Copy the base files structure to the Rails project.
8
9
  class InitializerGenerator < Rails::Generators::Base
9
10
 
10
11
  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.0.0
5
5
  platform: ruby
6
6
  authors:
7
- - Ideonetwork
7
+ - 1d3o
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-03-21 00:00:00.000000000 Z
11
+ date: 2019-09-18 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: '10.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: '10.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,12 +62,9 @@ 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/dockerize_generator.rb
39
66
  - 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/
67
+ homepage: https://1d3o.it
43
68
  licenses:
44
69
  - MIT
45
70
  metadata: {}
@@ -59,8 +84,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
59
84
  - !ruby/object:Gem::Version
60
85
  version: '0'
61
86
  requirements: []
62
- rubygems_version: 3.0.1
87
+ rubygems_version: 3.0.6
63
88
  signing_key:
64
89
  specification_version: 4
65
- summary: Rails projectsinitializer
90
+ summary: Ruby on Rails projects initializer
66
91
  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