rails_plan 0.0.2 → 0.0.3

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: 88472b9ad2b2bdcf2c55e8c78edad02cd8f7803aef5b36d5d4ea0b492ce027a3
4
- data.tar.gz: f7355e7a282adee10c1c72cf532341a09d262ce8432d88371d1ae3bbd64f7770
3
+ metadata.gz: 637cf6bb65b71b6c3d5abb4156d904e10291ac9bedf20155572b287f9a58fba4
4
+ data.tar.gz: 18da9973257fb0d88d24e6aa29d93423085f68d04ee1f22a3fb6711721a358e5
5
5
  SHA512:
6
- metadata.gz: 9bb98024808017686220f952bafd61632549998bb1af3566047929a416eaef7aa4b00d159cedf59479da3bb9a5558f3739b63bba06edc67d4fe015f354e42c4c
7
- data.tar.gz: f08c6967228a92a62e8f56903ea56fcf7dc789eb9eb8e27efc471aa2d6556f25672faa5163db0a972dd9cc9c3c404597eca173a5e43ab09f9c344f340b7f3023
6
+ metadata.gz: 75beefe685a677aa49ea3858ce9e37cbbdfc892817a797042f8f6018ae8523283a47b417f9cef8bcfc1f1a08086bc14e295be766c096ea10f43aae122f6cd75f
7
+ data.tar.gz: 12555f000a2c7430a73e6d2a769798ad7c64924c1f723eadc3a3f8b053bd1a65990b40526ee43835e8034327adda986c21ed53243b6de441619397196248d5e4
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RailsPlan
4
- VERSION = '0.0.2'
4
+ VERSION = '0.0.3'
5
5
  RAILS_VERSION = '7.1.3.3'
6
6
  end
data/lib/rails_plan.rb CHANGED
@@ -19,15 +19,22 @@ module RailsPlan
19
19
  ::RailsPlan::GemVersion.validate!
20
20
 
21
21
  verify_rails_installation
22
+
22
23
  generate_project(template)
23
24
  generate_files(template['files'])
24
- run_commands(template['commands'])
25
+ run_commands(template['before_commands'])
25
26
  clone_files(template['clones'])
26
27
  inject_code(template['inject_code'])
27
28
  append_code(template['append_code'])
28
29
  update_files(template['gsub'])
29
30
 
30
31
  puts 'Time for coding! 🚀'
32
+
33
+ template['steps'].each do |step|
34
+ run_commands(step['before_commands'])
35
+ generate_files(step['files'])
36
+ run_commands(step['after_commands'])
37
+ end
31
38
  end
32
39
 
33
40
  private
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_plan
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paweł Dąbrowski
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-05-30 00:00:00.000000000 Z
11
+ date: 2024-06-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client