gem-wizard 0.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/lib/gem_wizard.rb +27 -0
- metadata +43 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: e5b0aa2d3be9abbcd39c97a9da06c471031d63cfb3272aa9a28b3efd35a2ed32
|
4
|
+
data.tar.gz: 0f5c12d28e82cb29741983d2a0b358d5e88ff4d72401ef80a4688c3c7afc4fc5
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: d3774d9cd9283be7aee1836427ffc239d33f2c0d1d4accf3702d4d9f32a6ccf40a1cec68427d0a0be49bd0da33b597c3c0793d6a465b46e5b61ff2a98f006d94
|
7
|
+
data.tar.gz: f658b7cec478c6839e43b2d3ef55137957d9406e4c4eef636a5956f50892f2ba25399bb51458585f3bfe30687e1c49a39ee32dc512ce28747e3e43b63990c69c
|
data/lib/gem_wizard.rb
ADDED
@@ -0,0 +1,27 @@
|
|
1
|
+
class GemWizard
|
2
|
+
|
3
|
+
def self.start
|
4
|
+
@use_haml = false
|
5
|
+
@convert_to_haml = false
|
6
|
+
|
7
|
+
puts "Hello! Let's gemify your rails application install some essential gems."
|
8
|
+
|
9
|
+
setup_haml
|
10
|
+
|
11
|
+
gemify!
|
12
|
+
end
|
13
|
+
|
14
|
+
def self.setup_haml
|
15
|
+
puts "Do you want to use haml views instead of erb? [Y/N]"
|
16
|
+
@use_haml = true if gets.chomp == 'Y' || 'y'
|
17
|
+
|
18
|
+
puts "Convert all existing view files to haml? [Y/N]"
|
19
|
+
@convert_to_haml = true if gets.chomp == 'Y' || 'y'
|
20
|
+
end
|
21
|
+
|
22
|
+
def self.gemify!
|
23
|
+
system('bundle add haml-rails') if @use_haml == true
|
24
|
+
system('bundle install')
|
25
|
+
system('HAML_RAILS_DELETE_ERB=true rails haml:erb2haml')
|
26
|
+
end
|
27
|
+
end
|
metadata
ADDED
@@ -0,0 +1,43 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: gem-wizard
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- John Paul
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2022-07-28 00:00:00.000000000 Z
|
12
|
+
dependencies: []
|
13
|
+
description: Install and setup essential gems for a rails application.
|
14
|
+
email: john@rockfort.city
|
15
|
+
executables: []
|
16
|
+
extensions: []
|
17
|
+
extra_rdoc_files: []
|
18
|
+
files:
|
19
|
+
- lib/gem_wizard.rb
|
20
|
+
homepage:
|
21
|
+
licenses:
|
22
|
+
- MIT
|
23
|
+
metadata: {}
|
24
|
+
post_install_message:
|
25
|
+
rdoc_options: []
|
26
|
+
require_paths:
|
27
|
+
- lib
|
28
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
29
|
+
requirements:
|
30
|
+
- - ">="
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '0'
|
33
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
34
|
+
requirements:
|
35
|
+
- - ">="
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: '0'
|
38
|
+
requirements: []
|
39
|
+
rubygems_version: 3.2.15
|
40
|
+
signing_key:
|
41
|
+
specification_version: 4
|
42
|
+
summary: Install and setup essential gems for a rails application.
|
43
|
+
test_files: []
|