torba 0.2.0 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ce67e52a36d478eab2dc503c588b99ff40221fd0
4
- data.tar.gz: 9133124e1d23f67c688fddd7d8d58bcaaf68b54a
3
+ metadata.gz: 4c495a0072204461b990b7402bb14d18532d464f
4
+ data.tar.gz: 38c7b6bc9fea332a25043558988d14ca31a4165e
5
5
  SHA512:
6
- metadata.gz: da460e539b47b1e584543a3449e17acac02ae6dcf32d8c8a18bf0bfd8bed9d9e569b63fbcedbf4a5086b18deaffe5e57898b7049ad6070da41f1c23b15d54b7b
7
- data.tar.gz: 4936ecdb12589165bb49a6553f99434833eb2b97595e3dd75fbbd86c888fbd2e5b98175d61f38ad49b750350be1e86eff3876c03e6dfed4f1b79a7108be12590
6
+ metadata.gz: 2768e4344d21e27a85fffdae4a7e50d7b9782ea543f6c4b76eeff7241b33f7bf350eed98bad56cb50243a2c366d60125c3e098a9af17bf8913109aa58978a0b7
7
+ data.tar.gz: f9d1fe96818b48f069f8f2de44217ea696a0a1f731c3017ce0af0c379e372cba7176caf0897be20d4857c31187968348e672f748a43fbacb69e2b300c0960cb5
data/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  ## Unreleased
2
2
 
3
+ ## Version 0.2.1
4
+
5
+ ### Bug fixes
6
+
7
+ * Cached GithubRelease remote contains in path repository name, not nameless
8
+ version
9
+
3
10
  ## Version 0.2.0
4
11
 
5
12
  ### Enhancements
@@ -31,6 +31,7 @@ module Torba
31
31
  @tag = tag
32
32
  @repository_user, @repository_name = source.split("/")
33
33
  super("https://github.com/#{source}/archive/#{tag}.zip")
34
+ @digest = "#{repository_name}-#{Torba.digest(url)}"
34
35
  end
35
36
  end
36
37
  end
@@ -25,5 +25,18 @@ module Torba
25
25
  def test_url
26
26
  assert_equal "https://github.com/user/repo/archive/v.2.0.0.zip", remote.url
27
27
  end
28
+
29
+ def test_unique_digest
30
+ remote = RemoteSources::GithubRelease.new("user/repo", "v.2.0.0")
31
+ same_remote = RemoteSources::GithubRelease.new("user/repo", "v.2.0.0")
32
+ assert_equal remote.digest, same_remote.digest
33
+
34
+ another_remote = RemoteSources::GithubRelease.new("another/repo", "v.2.0.0")
35
+ refute_equal remote.digest, another_remote.digest
36
+ end
37
+
38
+ def test_digest_contains_repository_name
39
+ assert_match /^repo-/, remote.digest
40
+ end
28
41
  end
29
42
  end
data/torba.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = "torba"
3
- spec.version = "0.2.0"
3
+ spec.version = "0.2.1"
4
4
  spec.authors = ["Andrii Malyshko"]
5
5
  spec.email = ["mail@nashbridges.me"]
6
6
  spec.description = "Bundler for Sprockets"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: torba
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrii Malyshko