intersect_rails_composer 0.0.4 → 0.0.6

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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/rails_wizard/command.rb +32 -3
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 934697531f4f201cc8c592b9298d94eb575aabbf
4
- data.tar.gz: fd998851e223dbf39caa9f82c1b84beef47ffbfe
3
+ metadata.gz: c96bdca10705c3d28087cf4640d7caa937501e18
4
+ data.tar.gz: b7ff4a52f4e9800796079f4c1ca7ba15c70f262a
5
5
  SHA512:
6
- metadata.gz: ce2853dfe98e90fc75229433ad669bccc64e59129779893395bfd6f2183ee6b70fa26bff47137f8d84e98971b235f74a9db88fb9d17057601419a528b0062401
7
- data.tar.gz: 27868677665e7678df207373121f94caec062954e1185221e079ddbe9a67676ca7db269eb1dbdaa55c1d0853fbd1659ac55522b9250fbfbbe625e0af4933506f
6
+ metadata.gz: 41270d7388ec662c62395156f80c14ba437d3dcdbbe3bc204fa1c4bd5a8abec77ae7e110a2c7074a1007521ec055a7a51fa2ac21c53728e22f07c7906a29c558
7
+ data.tar.gz: 31ae58dd61a0098cb0bf2116449ca1dca698270625415d47517254d0eabc049f52ed5cceadbedc587483e645d4baa438c0c0f70cc67a810e730435c91f30d9de
@@ -6,7 +6,7 @@ module RailsWizard
6
6
  include Thor::Actions
7
7
  desc "new APP_NAME", "create a new Rails app"
8
8
  method_option :recipes, :type => :array, :aliases => "-r"
9
- method_option :defaults, :type => :string, :aliases => "-d"
9
+ method_option :interactive, :type => :string, :aliases => "-i"
10
10
  method_option :recipe_dirs, :type => :array, :aliases => "-l"
11
11
  method_option :no_default_recipes, :type => :boolean, :aliases => "-L"
12
12
  method_option :template_root, :type => :string, :aliases => '-t'
@@ -66,8 +66,37 @@ module RailsWizard
66
66
  def load_defaults
67
67
  # Load defaults from a file; if a file specifies recipes, they'll be run *before*
68
68
  # any on the command line (or prompted for)..
69
- return [[], {}] unless options[:defaults]
70
- defaults = File.open(options[:defaults]) {|f| YAML.load(f) }
69
+ return [[], {}] if options[:interactive]
70
+ defaults = {
71
+ "recipes" => ["core"],
72
+ "prefs" => {
73
+ :apps4 => "none",
74
+ :dev_webserver => "webrick",
75
+ :prod_webserver => "same",
76
+ :database => "postgresql",
77
+ :templates => "haml",
78
+ :unit_test => "rspec",
79
+ :integration => "cucumber",
80
+ :fixtures => "factory_girl",
81
+ :frontend => "bootstrap3",
82
+ :form_builder => "simple_form",
83
+ :email => "gmail",
84
+ :authentication => "devise",
85
+ :devise_modules => "default",
86
+ :authorization => "cancan",
87
+ :continuous_testing => "none",
88
+ :starter_app => "admin_app",
89
+ :ban_spiders => true,
90
+ :github => false,
91
+ :local_env_file => true,
92
+ :quiet_assets => true,
93
+ :better_errors => true,
94
+ :rvmrc => true },
95
+ "gems" => nil,
96
+ "args" => {
97
+ :skip_test_unit => true,
98
+ :skip_active_record => false }
99
+ }
71
100
  recipes = defaults.delete('recipes') { [] }
72
101
  [recipes, defaults]
73
102
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: intersect_rails_composer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marc Ziani de Ferranti