sewing_kit 0.30.0 → 0.31.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/sewing_kit.rb +1 -0
- data/lib/sewing_kit/configuration.rb +2 -1
- data/lib/sewing_kit/railtie.rb +3 -3
- data/lib/sewing_kit/version.rb +1 -1
- data/lib/sewing_kit/webpack/compiler.rb +0 -1
- data/lib/sewing_kit/webpack/dev.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 21441a0459fdd78c584adb2504b32f2ba964017be52285f807039dcd13597b98
|
4
|
+
data.tar.gz: dccb4fa02846478b4034794ca7a3f5510ce75a1e57064a561ce589f205b8a828
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: afff024270869a6daa67dfda3d35f1568ff24427cfc0b388478266b5a1ec096c1412f399285da0ee2bdeb9a9998b493959eb7db4137c9d196ce71c729a1102e1
|
7
|
+
data.tar.gz: a2e18ad68fd40637eb8fcf94700df6806dde7b9bfc55aa6f531bae32f0b0bd6bbe54828de4b6fb583ea819f5983d0e4fe4b5888cce8f70233cb82512ec9c5f5f
|
data/lib/sewing_kit.rb
CHANGED
@@ -1,10 +1,11 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
module SewingKit
|
3
3
|
class Configuration
|
4
|
-
attr_accessor :build_options
|
4
|
+
attr_accessor :build_options, :dev_server_sewing_kit_bin
|
5
5
|
|
6
6
|
def initialize
|
7
7
|
@build_options = nil
|
8
|
+
@dev_server_sewing_kit_bin = 'node_modules/.bin/sewing-kit'
|
8
9
|
end
|
9
10
|
end
|
10
11
|
|
data/lib/sewing_kit/railtie.rb
CHANGED
@@ -16,19 +16,19 @@ require 'sewing_kit/webpack/dev'
|
|
16
16
|
|
17
17
|
module SewingKit
|
18
18
|
class Railtie < ::Rails::Railtie
|
19
|
-
|
19
|
+
# rubocop:disable Metrics/BlockLength
|
20
|
+
config.after_initialize do
|
20
21
|
is_development = Rails.env.development? && ENV['SK_SIMULATE_PRODUCTION'] != '1'
|
21
22
|
if is_development && (Rails.const_defined?(:Server) || ENV['SK_FORCE_DEV_SERVER'])
|
22
23
|
webpack_dev = SewingKit::Webpack::Dev.new
|
23
24
|
webpack_dev.start
|
24
25
|
end
|
25
|
-
end
|
26
26
|
|
27
|
-
config.after_initialize do
|
28
27
|
ActiveSupport.on_load(:action_view) do
|
29
28
|
include SewingKit::Webpack::Helper
|
30
29
|
end
|
31
30
|
end
|
31
|
+
# rubocop:enable Metrics/BlockLength
|
32
32
|
|
33
33
|
rake_tasks do
|
34
34
|
load "tasks/sewing_kit.rake"
|
data/lib/sewing_kit/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sewing_kit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.31.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Sauve
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-04-
|
11
|
+
date: 2019-04-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|