torba 1.1.1 → 1.2.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: 42060e7719aaf33ebf638eefb20bdb1c24b2c8935dec839299c9569dac13ecee
4
- data.tar.gz: eb2fac5b9909e4fcadb2704ca04e57cdae0213a4fba0c7b1bd8042edb2ea55ee
3
+ metadata.gz: 9849d15bd1d02ad1f5c11d40d2d29cfdc48a52a1cd2232e9bd4f42d3e3ff5c5a
4
+ data.tar.gz: 0dbedc6624a2bcd9d65b94832d59ccf94cbe0cdf632ba48b4510df6317ccb498
5
5
  SHA512:
6
- metadata.gz: f4ac7cc0274933509ba47fa2ba4feb0ed12afc84aa6bcb0c3214df0df467ddc8a65656da395ff9df4111b56f630bc0c006bb22218524f1e51e17fedf302325d6
7
- data.tar.gz: ba528f929e0919a727b61cb894a41f069d01cc0761beb8d5c4a3ebb5a584ec8c12b8f8107c86e1a0ce9be411ff7f40f992cb6be78540a7cc7c85f87040d68626
6
+ metadata.gz: 6841aac3d6f672029f69397dccf0ea0ccb8681cc19d4a3cada4fc2925c80de4b6af15aa78c695acebb27e10310d4ad32918af80d88e9c4912eadf1fd76be0d5f
7
+ data.tar.gz: cff51fe06431dc8a36efa3bdfc539cbd687297f4bd33b89a8aa1484cf634f2cf3500e29a4053777d595bea50ff1bae12b4935f53e92e9726e9ed5511e8a03ac3
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  ## Unreleased
2
2
 
3
+ ## Version 1.2.0
4
+
5
+ ### Enhancements
6
+
7
+ * Support scoped names for NPM packages (e.g. "@lottiefiles/lottie-player")
8
+
3
9
  ## Version 1.1.1
4
10
 
5
11
  ### Enhancements
data/README.md CHANGED
@@ -17,7 +17,7 @@ Production ready.
17
17
 
18
18
  ## Documentation
19
19
 
20
- [Released version](http://rubydoc.info/gems/torba/1.1.1)
20
+ [Released version](http://rubydoc.info/gems/torba/1.2.0)
21
21
 
22
22
  ## Why
23
23
 
@@ -8,6 +8,7 @@ module Torba
8
8
  # @return [String] package name.
9
9
  # @example
10
10
  # "coffee-script"
11
+ # "@lottiefiles/lottie-player"
11
12
  attr_reader :package
12
13
 
13
14
  # @return [String] package version.
@@ -20,7 +21,12 @@ module Torba
20
21
  def initialize(package, version)
21
22
  @package = package
22
23
  @version = version
23
- super("https://registry.npmjs.org/#{package}/-/#{package}-#{version}.tgz")
24
+
25
+ # https://docs.npmjs.com/about-scopes
26
+ # "@lottiefiles/lottie-player" => "lottie-player"
27
+ unscoped_package = package.sub(%r{@[^/]+/}, "")
28
+
29
+ super("https://registry.npmjs.org/#{package}/-/#{unscoped_package}-#{version}.tgz")
24
30
  @digest = "#{package}-#{Torba.digest(url)}"
25
31
  end
26
32
  end
data/torba.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = "torba"
3
- spec.version = "1.1.1"
3
+ spec.version = "1.2.0"
4
4
  spec.authors = ["Andrii Malyshko"]
5
5
  spec.email = ["mail@nashbridges.me"]
6
6
  spec.description = "Bundler for Sprockets"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: torba
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrii Malyshko
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-05-23 00:00:00.000000000 Z
11
+ date: 2023-08-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor