sewing_kit 0.129.0 → 0.130.0

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
  SHA256:
3
- metadata.gz: 192f93794571de06b57d5125eec9da37d1331c3dbb47a2c530e29d6f4693cb47
4
- data.tar.gz: d06a650795388f99d0680e007e7402b8d964562be69610aa92032e9e24abdac1
3
+ metadata.gz: 0fdcc87f6ded6c59b84ea7be01819dc8ffa127cff77907535db27a3b1129b734
4
+ data.tar.gz: e8ed84b2243a54ce366f86529911695c6fb94339f2315b3289052b5a1d5ed392
5
5
  SHA512:
6
- metadata.gz: 773c4e613be0301501b9d8e31b12bce81027f7aaf39aabafa87c07a5a76430498b6c39d81801f4af44b1ea48e47cf127edddca88e7c2031dc22c44ffc202fe58
7
- data.tar.gz: 056bdc1ff814b70f35ffac31bcba3b7d95560002437272f8e615ae93d8e6a4bdcb49bb08b0d8db9961c99f88488ff3cd616cb991b044c125578ca41f660455de
6
+ metadata.gz: 962c94d0fbceadae0b190b957b832e5f92a0994a3e47f15671bfe98ff460e076eabaa4556c82929cf5e04df660aa849bc60decb570090c351456564e1cb80d3c
7
+ data.tar.gz: 720383ee164b982057f814e599467af8ab387ea1e1bbf8b463f578afaaf427316b23e986f5e38ac83e9eaa9306fa05e3e86217fffae54dc4a00c30aea33aeded
data/README.md CHANGED
@@ -103,13 +103,13 @@ end
103
103
 
104
104
  For fast tests with consistent results, test front-end components using Jest instead of Rails integration tests.
105
105
 
106
- Use [`sewing-kit test`](https://github.com/Shopify/sewing-kit/blob/master/docs/commands/test.md#L3) to run all `.test.tsx` files in the `app/ui` directory. [Jest](https://jestjs.io) is used as a test runner, with customization available via [its sewing-kit plugin](https://github.com/Shopify/sewing-kit/blob/master/docs/plugins/jest.md).
106
+ Use [`sewing-kit test`](https://github.com/Shopify/sewing-kit/blob/main/docs/commands/test.md#L3) to run all `.test.tsx` files in the `app/ui` directory. [Jest](https://jestjs.io) is used as a test runner, with customization available via [its sewing-kit plugin](https://github.com/Shopify/sewing-kit/blob/main/docs/plugins/jest.md).
107
107
 
108
108
  ### Customizing the test environment
109
109
 
110
110
  Often you will want to hook up custom polyfills, global mocks, or other logic that needs to run either before the initialization of the test environment, or once for each test suite.
111
111
 
112
- By default, sewing-kit will look for such test setup files under `/app/ui/tests`. Check out the [documentation](https://github.com/Shopify/sewing-kit/blob/master/docs/plugins/jest.md#smart-defaults) for more details.
112
+ By default, sewing-kit will look for such test setup files under `/app/ui/tests`. Check out the [documentation](https://github.com/Shopify/sewing-kit/blob/main/docs/plugins/jest.md#smart-defaults) for more details.
113
113
 
114
114
  ### Rails tests
115
115
 
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module SewingKit
3
- VERSION = "0.129.0"
3
+ VERSION = "0.130.0"
4
4
  end
@@ -29,6 +29,7 @@ module SewingKit
29
29
  'NODE_ENV' => 'development',
30
30
  'BLUEBIRD_DEBUG' => '0',
31
31
  'BLUEBIRD_LONG_STACK_TRACES' => '0',
32
+ 'FORCE_COLOR' => 'true',
32
33
  },
33
34
  command,
34
35
  chdir: Rails.root.to_s,
@@ -10,7 +10,6 @@ module SewingKit
10
10
 
11
11
  Asset = Struct.new(:path, :integrity)
12
12
 
13
- # rubocop:disable Metrics/CyclomaticComplexity, Metrics/PerceivedComplexity
14
13
  def sewing_kit_assets(entrypoint_name, extension: 'js')
15
14
  return '' unless entrypoint_name.present?
16
15
 
@@ -20,12 +19,10 @@ module SewingKit
20
19
  return [] unless assets && assets[extension]
21
20
 
22
21
  dependencies = assets[extension]
23
- dependencies.unshift(dll_asset) if serve_development_assets? && extension == 'js'
24
22
  dependencies.map do |raw_asset|
25
23
  Asset.new(raw_asset['path'], raw_asset['integrity'])
26
24
  end
27
25
  end
28
- # rubocop:enable Metrics/CyclomaticComplexity, Metrics/PerceivedComplexity
29
26
 
30
27
  def sewing_kit_link_tag(*assets)
31
28
  options = assets.extract_options!
@@ -82,10 +79,6 @@ module SewingKit
82
79
  def raise_unknown_error?(assets)
83
80
  assets.nil? && serve_development_assets?
84
81
  end
85
-
86
- def dll_asset
87
- Asset.new('/webpack/assets/dll/vendor.js')
88
- end
89
82
  end
90
83
  end
91
84
  end
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.129.0
4
+ version: 0.130.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: 2020-11-26 00:00:00.000000000 Z
11
+ date: 2022-04-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties
@@ -141,11 +141,11 @@ files:
141
141
  - lib/sewing_kit/webpack/server.rb
142
142
  - lib/sewing_kit/webpack/webpack.rb
143
143
  - lib/tasks/sewing_kit.rake
144
- homepage: https://github.com/Shopify/sewing-kit/tree/master/gems/sewing_kit
144
+ homepage: https://github.com/Shopify/sewing-kit/tree/main/gems/sewing_kit
145
145
  licenses:
146
146
  - MIT
147
147
  metadata:
148
- changelog_uri: https://github.com/Shopify/sewing-kit/blob/master/gems/sewing_kit/CHANGELOG.md
148
+ changelog_uri: https://github.com/Shopify/sewing-kit/blob/main/gems/sewing_kit/CHANGELOG.md
149
149
  allowed_push_host: https://rubygems.org
150
150
  post_install_message:
151
151
  rdoc_options: []
@@ -162,7 +162,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
162
162
  - !ruby/object:Gem::Version
163
163
  version: '0'
164
164
  requirements: []
165
- rubygems_version: 3.0.3
165
+ rubygems_version: 3.2.20
166
166
  signing_key:
167
167
  specification_version: 4
168
168
  summary: Shopify's modern front-end tooling, nicely packaged for Rails