repack 2.1.0 → 2.1.1

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: 10d12948ef43c30268284738b43e2c56d3aaa094
4
- data.tar.gz: 0f7e1753c40194e20ecd04286adc8786ba61d2b1
3
+ metadata.gz: 0b57ef44b3d4641984e5c5f5fadd827c5de5c7bb
4
+ data.tar.gz: fb37e9348522aed662844a798f41acc5c1cf4b67
5
5
  SHA512:
6
- metadata.gz: 31d08660d630e16d6444d6047e9f0f197383bd536a2cd5de14029752fbbca8660a773a8cdba27224265f9b1e44e6637c6afe4925bbaf0d89158ee5bf7967dad6
7
- data.tar.gz: b42d6137c4d5fb5430fe8db4d88bb30f72dfac6cc82f2d8b9e2ae7af1fad3cb567adba0af93d0225cf8aa8a044bad4cce8d266f32cf5651fc5a1c6cacc64d30d
6
+ metadata.gz: 97b02615f9d5b339ff1f487578281a187d2747090c7e1e821dcb2fe426fdbc8248b67e7064dc66c59133bfb29bde9a4d5feda13d6dd3e5a145260e296b10a887
7
+ data.tar.gz: ebec2d12c4c710f94f282d4a7e644ed6a2d18f8cdded33bb3429a710dd9982afb18b10587f917b28689a75b67679997f12b79ae9268178db73e6748da23fec32
@@ -34,8 +34,7 @@ module Repack
34
34
  end
35
35
  def copy_webpack_conf
36
36
  copy_file "webpack.config.js", "config/webpack.config.js"
37
- puts 'Are you going to be deploying to heroku? (yes \ no)'
38
- if gets.strip.downcase =~ /y(es)?/
37
+ if yes?('Are you going to be deploying to heroku? (yes \ no)')
39
38
  puts 'copying heroku webpack config!'
40
39
  copy_file "webpack.config.heroku.js", "config/webpack.config.heroku.js"
41
40
  end
@@ -76,8 +75,7 @@ module Repack
76
75
  application_view = haml_installed ? "#{layouts_dir}/application.html.haml" : "#{layouts_dir}/application.html.erb"
77
76
 
78
77
  if haml_installed
79
- puts 'Convert all existing ERB views into HAML? (yes / no)'
80
- if gets.strip.downcase =~ /y(es)?/
78
+ if yes?('Convert all existing ERB views into HAML? (yes / no)')
81
79
  begin
82
80
  require 'html2haml'
83
81
  rescue LoadError
@@ -125,8 +123,7 @@ module Repack
125
123
  end
126
124
 
127
125
  def install_yarn
128
- puts 'Do you want to install and use yarn as your package manager? (yes / no)'
129
- if gets.strip.downcase =~ /y(es)?/
126
+ if yes?('Do you want to install and use yarn as your package manager? (yes / no)')
130
127
  @yarn_installed = true
131
128
  run "npm install yarn --save-dev"
132
129
  end
@@ -1,3 +1,3 @@
1
1
  module Repack
2
- VERSION = "2.1.0"
2
+ VERSION = "2.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: repack
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 2.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dave Jungst
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-10-27 00:00:00.000000000 Z
12
+ date: 2016-11-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails