bullet_train-super_scaffolding 1.0.3 → 1.0.4

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: 0f88d08b31dfa9eb57adacd423ceea81e66308ab0f990ac59580c984ec0ea2af
4
- data.tar.gz: 400340b2d11f3241fa2e2d760b076a7950bd1bc5564c11b9e75eb0a1f42b5fbe
3
+ metadata.gz: b74d02debf9e4e33f53350fccef42b9ebdc719a55388d164ffed4936e891ada6
4
+ data.tar.gz: f54b12ae6b42083f23ad6cfec6a948c0648d3baf640308e8c31f9f1c60a45d95
5
5
  SHA512:
6
- metadata.gz: b404385f5b6e27002a2fb38563d38a8f993ff4a00a75097040ae23e4ec28aa393e514190598c744d711d88b5f77de73a146ae16c4ee8a00f1dc0a242897da23a
7
- data.tar.gz: e7a89c613bfdae5ad447d8176506dca42ba2a9a7ebc3cb547a3d04e045fc3cee8a72f30a7a2cd9ecee692c410acd2de15645423b1591c86fcebcf21ed0e043ce
6
+ metadata.gz: 0ad73bfd8032dc0cf35e81a6c2fba7a6e2fb16cb75b1ac512590dd30658b38f0a8c81cb0c02436ad9104ee560234adafb1130e8d9bd59dc9da457908ff16b5a1
7
+ data.tar.gz: 6a3eb155cd4b23d821e0e2bf2482d59253fad99452de3d4236fd8d28f8ebdb50f4c257f665cbe432125b013f54f1b2846ea8dd5d99d227f4d1b8d666a7c9dab9
@@ -1,5 +1,5 @@
1
1
  module BulletTrain
2
2
  module SuperScaffolding
3
- VERSION = "1.0.3"
3
+ VERSION = "1.0.4"
4
4
  end
5
5
  end
@@ -19,8 +19,6 @@ module BulletTrain
19
19
  class Runner
20
20
  def run
21
21
  # Make `rake` invocation compatible with how this was run historically.
22
- ARGV.shift
23
-
24
22
  require "scaffolding/script"
25
23
  end
26
24
  end
@@ -23,6 +23,11 @@ ARGV.each do |arg|
23
23
  end
24
24
  end
25
25
 
26
+ def standard_protip
27
+ puts "🏆 Protip: Commit your other changes before running Super Scaffolding so it's easy to undo if you (or we) make any mistakes."
28
+ puts "If you do that, you can reset to your last commit state by using `git checkout .` and `git clean -d -f` ."
29
+ end
30
+
26
31
  def check_required_options_for_attributes(scaffolding_type, attributes, child, parent = nil)
27
32
  attributes.each do |attribute|
28
33
  parts = attribute.split(":")
@@ -1,6 +1,12 @@
1
1
  namespace :bullet_train do
2
2
  desc "Next-level code generation"
3
- task :super_scaffolding => :environment do
3
+ task :super_scaffolding, [:all_options] => :environment do |t, arguments|
4
+ ARGV.pop while ARGV.any?
5
+
6
+ arguments[:all_options]&.split&.each do |argument|
7
+ ARGV.push(argument)
8
+ end
9
+
4
10
  BulletTrain::SuperScaffolding::Runner.new.run
5
11
  end
6
12
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bullet_train-super_scaffolding
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Culver