dakarai 4.1.2 → 5.2.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: 71e5c1ab723e3d8360545aebd61638da7a69a02022acea613fe0e2b7b6062eb1
4
- data.tar.gz: 3ca6d67c4c2b05eac8a91b595bddc88ce7bb584a59d965ce56be5fdddd3397b1
3
+ metadata.gz: c885f27c8a325fe3d9882545b0a75b1eb9355c4a565734ed11027c276148233b
4
+ data.tar.gz: 54547ef2352de35fe676b8684d7235509269c79f2fafc5185ec62b764d492db7
5
5
  SHA512:
6
- metadata.gz: 60d12f97d38cc0a5c2b157f764d3e155aa270fd7708ed19e4c7af78d5a039285493288d5a0040058b6b6d1ea5d73d46c85232cfd8539ec258f95c3be41b3b5e2
7
- data.tar.gz: e629e3715f3f49c2698dac03c697265cafc8f7b982b8e14e6bd791ed5d40e71b06667fe5fdebb62a2e7b30d05fd96a479ff8c752ee7e35d6bd3fcacbace99af1
6
+ metadata.gz: 1dd79e8806ea6f545af68dce32b205fedd495bd888e9171895456466b341d5b92139b37604c1e08492781b2e50acd685c4412109ecabaffafe68e539d684b25b
7
+ data.tar.gz: 2ccc023f56d1a35c4a773a67da7bcadf9de100113915650e1f45c7d788c558ec6acb54fe7e29456e7026311fca103ea05fc4720f02d331141ddb64ac69db7591
@@ -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,7 +6,9 @@
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 full documentation of the gem can be found here: https://ideonetwork.github.io/dakarai
9
+ The current versione is updated to work with Rails 6.0.
10
+
11
+ 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
12
 
11
13
  ## Installation
12
14
 
@@ -21,19 +23,3 @@ Legacy version
21
23
  ```ruby
22
24
  gem 'dakarai'
23
25
  ```
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.1.2'
3
+ VERSION = '5.2.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.1.2
4
+ version: 5.2.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: 2018-05-28 00:00:00.000000000 Z
11
+ date: 2020-10-17 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,12 +62,10 @@ 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: {}
@@ -59,9 +85,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
59
85
  - !ruby/object:Gem::Version
60
86
  version: '0'
61
87
  requirements: []
62
- rubyforge_project:
63
- rubygems_version: 2.7.3
88
+ rubygems_version: 3.0.6
64
89
  signing_key:
65
90
  specification_version: 4
66
- summary: Rails projectsinitializer
91
+ summary: Ruby on Rails projects initializer
67
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