txgh 6.0.0 → 6.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/txgh/resource_updater.rb +1 -1
- data/lib/txgh/version.rb +1 -1
- data/spec/resource_updater_spec.rb +2 -2
- 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: 2996cb9b6a48651b758c89e066099dd3f6450345
|
4
|
+
data.tar.gz: fa6422ba0abfd535e83603a2835c811db11b8d17
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a015b441163df5a77eef687251cb2168627d681cc49b78a9138395614c2aa9e544ada120873d1a53da2047bcb06979edc9e20e230cb3e5f8668d741ddda70f1c
|
7
|
+
data.tar.gz: f8116dbcec6211719ca2344e433342386e2d33fd74715de2f49fb12eea0b28ad9e84e0086ae07c2231e834c053d9f297754cdd3b25567002bcb0cb6b0d2f3035
|
@@ -16,7 +16,7 @@ module Txgh
|
|
16
16
|
# don't process the resource unless the project slugs are the same
|
17
17
|
return unless tx_resource.project_slug == project.name
|
18
18
|
branch = tx_resource.branch || repo.diff_point
|
19
|
-
file = repo.api.download(tx_resource.source_file)
|
19
|
+
file = repo.api.download(tx_resource.source_file, branch)
|
20
20
|
|
21
21
|
if repo.upload_diffs? && tx_resource.has_branch?
|
22
22
|
upload_diff(tx_resource, file, categories)
|
data/lib/txgh/version.rb
CHANGED
@@ -11,7 +11,7 @@ describe ResourceUpdater do
|
|
11
11
|
end
|
12
12
|
|
13
13
|
let(:branch) { nil }
|
14
|
-
let(:ref) {
|
14
|
+
let(:ref) { 'heads/master' }
|
15
15
|
let(:resource) { tx_config.resource(resource_slug, ref) }
|
16
16
|
let(:commit_sha) { '8765309' }
|
17
17
|
|
@@ -31,7 +31,7 @@ describe ResourceUpdater do
|
|
31
31
|
before(:each) do
|
32
32
|
modified_files.each do |file|
|
33
33
|
allow(github_api).to(
|
34
|
-
receive(:download).with(file[:path]).and_return(file)
|
34
|
+
receive(:download).with(file[:path], ref).and_return(file)
|
35
35
|
)
|
36
36
|
end
|
37
37
|
end
|