roboparts 0.5.2 → 0.5.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/roboparts/app_builder.rb +28 -1
- data/lib/roboparts/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8c6c1c9858a369b51e586757eb09aa878275d8dc
|
4
|
+
data.tar.gz: 8ebffaa1a9189de94d403d5b7f24b3bce18ec457
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0e1f60e2d4c1c564c494baa23705699b053f85a096328c30bf70245ffb75f92a5b9c89991b35e379f833f2b5ff97d57390d91441927ad6d8b3708fb6f25d0762
|
7
|
+
data.tar.gz: 26630d8e38e7b2221d22438ddcfeb96224632b2a4eaf289d0e5255d710085b57df10f63fea41211edd352d8aac882072598f636b3307bf45fd085f94e2f5b97a
|
@@ -27,7 +27,7 @@ module Roboparts
|
|
27
27
|
end
|
28
28
|
|
29
29
|
def provide_setup_script
|
30
|
-
template 'bin_setup.erb', 'bin/setup', port_number: port_number
|
30
|
+
template 'bin_setup.erb', 'bin/setup', port_number: port_number, force: true
|
31
31
|
run 'chmod a+x bin/setup'
|
32
32
|
end
|
33
33
|
|
@@ -349,4 +349,31 @@ end
|
|
349
349
|
"Rails.application.routes.draw do\nend"
|
350
350
|
end
|
351
351
|
end
|
352
|
+
|
353
|
+
private
|
354
|
+
|
355
|
+
def raise_on_missing_translations_in(environment)
|
356
|
+
config = 'config.action_view.raise_on_missing_translations = true'
|
357
|
+
|
358
|
+
uncomment_lines("config/environments/#{environment}.rb", config)
|
359
|
+
end
|
360
|
+
|
361
|
+
def override_path_for_tests
|
362
|
+
if ENV["TESTING"]
|
363
|
+
support_bin = File.expand_path(File.join('..', '..', 'spec', 'fakes', 'bin'))
|
364
|
+
"PATH=#{support_bin}:$PATH"
|
365
|
+
end
|
366
|
+
end
|
367
|
+
|
368
|
+
def factories_spec_rake_task
|
369
|
+
IO.read find_in_source_paths('factories_spec_rake_task.rb')
|
370
|
+
end
|
371
|
+
|
372
|
+
def generate_secret
|
373
|
+
SecureRandom.hex(64)
|
374
|
+
end
|
375
|
+
|
376
|
+
def port
|
377
|
+
@port ||= [3000, 4000, 5000, 7000, 8000, 9000].sample
|
378
|
+
end
|
352
379
|
end
|
data/lib/roboparts/version.rb
CHANGED