lightek_vpm 0.3.4 → 0.3.6

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: 7d027d1b82a179f81aacd8d310fe3c6c4c230fcb4f52b41d9698c2fe4d6d5d50
4
- data.tar.gz: 6d09551ddb15fb678d88c5a6208d8cf3f57bccdccb584dab736d86c6e75f3279
3
+ metadata.gz: ffb4b8b9cddc8d10e30340ca01e6da858cafd1b0f271caf35ffcacd3a57c08bc
4
+ data.tar.gz: 8fe3fb092ef7fa61e98d466da80452aed10d593fa58f118a2a890ea65d1b3cf6
5
5
  SHA512:
6
- metadata.gz: c7af9bdf8bae0868025ea33c895fa29757cce1b9e783f9662dde17fc82583fcb4128347c8152a78637884446692686cd7732db8be91febe8ec913683204eef6c
7
- data.tar.gz: f704b31f2a09a42737d00f79aa58ea8106efdfd4f2b1ac8a754fe6f76e68b41483232951af12ef7f6850597bc304fa48739daf58c3d884a23807479410b2839d
6
+ metadata.gz: dd28772c6f3a8bd3219f3e0220efdeb4e48207580861f2ec2062c11ad07bcf3eb0992f3fb529d35a83ff0401143de1904e9e2ccc9bcf4b7b987d44bf41c852ae
7
+ data.tar.gz: 0d9dac3b0aa5318d5c021b527c12709ab8635d96079005be73f84e53ea0081018c4333f3c4538d36fe7770da5874f79c38e13ec993d7589acfc7a89bc514c713
@@ -1,54 +1,41 @@
1
1
  require 'rails/generators'
2
+
2
3
  module LightekVpm
3
- module Generators
4
- class InitGenerator < Rails::Generators::Base
5
- source_root File.expand_path('../templates', __FILE__)
6
-
7
- def add_gems_needed
8
- desc "Adding the gems and models needed for base work"
9
- # Add Bootstrap gem
10
- puts "Adding Bootstrap gem..."
11
- gem 'bootstrap', '~> 5.3.3'
12
-
13
- # Run bundle install
14
- puts "Running bundle install..."
15
- Bundler.with_clean_env { run 'bundle install' }
16
-
17
- # Add Devise gem
18
- puts "Adding Devise gem..."
19
- gem 'devise'
20
- Bundler.with_clean_env { run 'bundle install' }
21
-
22
- # Run Devise installation
23
- puts "Now installing Devise..."
24
- generate 'devise:install'
25
-
26
- # Create Devise User model
27
- puts "Creating User model with Devise..."
28
- generate 'devise User role:integer first_name:string last_name:string bio:text website:string twitter:string facebook:string instagram:string dob:date street:string city:string state:string'
29
- puts "Running db migration for user"
30
- rake 'db:migrate'
31
-
32
-
33
- # Add CanCanCan gem
34
- puts "Adding CanCanCan gem..."
35
- gem 'cancancan'
36
- Bundler.with_clean_env { run 'bundle install' }
37
-
38
- # Run CanCanCan installation (if needed)
39
- # Replace the following lines with CanCanCan installation commands if necessary
40
-
41
- # Add ActionText gem
42
- puts "Adding ActionText gem..."
43
- gem 'actiontext'
44
- Bundler.with_clean_env { run 'bundle install' }
45
-
46
- # Install Action Text
47
- puts "Installing Action Text..."
48
- generate 'action_text:install'
49
- rake 'db:migrate'
50
- end
4
+ module Generators
5
+ class InitGenerator < Rails::Generators::Base
6
+ source_root File.expand_path('../templates', __FILE__)
7
+ desc "Adding the gems and models needed for base work"
8
+
9
+ def add_gems_needed
10
+
11
+ # Add Bootstrap gem to Gemfile
12
+ gem 'bootstrap', '~> 5.3.3'
13
+
14
+ # Add Devise gem to Gemfile
15
+ gem 'devise'
16
+
17
+ # Add CanCanCan gem to Gemfile
18
+ gem 'cancancan'
51
19
 
52
- end
53
- end
54
- end
20
+ # Add ActionText gem to Gemfile
21
+ gem 'actiontext'
22
+
23
+ # Run bundle install
24
+ Bundler.with_clean_env { run 'bundle install' }
25
+
26
+ # Run Devise installation
27
+ generate 'devise:install'
28
+
29
+ # Create Devise User model
30
+ generate 'devise User role:integer first_name:string last_name:string bio:text website:string twitter:string facebook:string instagram:string dob:date street:string city:string state:string'
31
+
32
+ # Run database migration
33
+ rake 'db:migrate'
34
+
35
+ # Run CanCanCan installation (if needed)
36
+ # Run Action Text installation
37
+ generate 'action_text:install'
38
+ end
39
+ end
40
+ end
41
+ end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module LightekVpm
4
- VERSION = "0.3.4"
4
+ VERSION = "0.3.6"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lightek_vpm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.4
4
+ version: 0.3.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marlon Henry