torba 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/lib/torba/remote_sources/github_release.rb +1 -0
- data/test/remote_sources/github_release_test.rb +13 -0
- data/torba.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4c495a0072204461b990b7402bb14d18532d464f
|
4
|
+
data.tar.gz: 38c7b6bc9fea332a25043558988d14ca31a4165e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2768e4344d21e27a85fffdae4a7e50d7b9782ea543f6c4b76eeff7241b33f7bf350eed98bad56cb50243a2c366d60125c3e098a9af17bf8913109aa58978a0b7
|
7
|
+
data.tar.gz: f9d1fe96818b48f069f8f2de44217ea696a0a1f731c3017ce0af0c379e372cba7176caf0897be20d4857c31187968348e672f748a43fbacb69e2b300c0960cb5
|
data/CHANGELOG.md
CHANGED
@@ -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