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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9626d5c60dd4ca7a6dffa53e6079e3f1400996ff
4
- data.tar.gz: 7f8bd33c1444e438bd29a5dfb2dd35c2900e8867
3
+ metadata.gz: 8c6c1c9858a369b51e586757eb09aa878275d8dc
4
+ data.tar.gz: 8ebffaa1a9189de94d403d5b7f24b3bce18ec457
5
5
  SHA512:
6
- metadata.gz: a6c0bdb5d6f0b4dad64fc4a27a54e5465ba65e9495f4195c1843e43c1a299884e0d16429cd9e5f093dcd15ce15f7c0f2bc3c2fa7c65c5468ab956c2a6dddd2fc
7
- data.tar.gz: 1bc1dce9ba9cdcbff483fe8179e40ab6d3e317a07c72ee1c9f20ad9a64202804749fae215a65465c53c921903610d5ea58dd3dbf3af750dfaa3d44add6e8def0
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
@@ -1,5 +1,5 @@
1
1
  module Roboparts
2
2
  RAILS_VERSION = "4.1.8"
3
3
  RUBY_VERSION = IO.read("#{File.dirname(__FILE__)}/../../.ruby-version").strip
4
- VERSION = "0.5.2"
4
+ VERSION = "0.5.3"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: roboparts
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.2
4
+ version: 0.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Strunk