txgh 6.0.1 → 6.0.2

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
  SHA1:
3
- metadata.gz: 2996cb9b6a48651b758c89e066099dd3f6450345
4
- data.tar.gz: fa6422ba0abfd535e83603a2835c811db11b8d17
3
+ metadata.gz: b43e37df7b3d9aef605305c73ba2b4eab3ed2a03
4
+ data.tar.gz: d402a224594a9c5bcef10fbecc8d7b275d4a1860
5
5
  SHA512:
6
- metadata.gz: a015b441163df5a77eef687251cb2168627d681cc49b78a9138395614c2aa9e544ada120873d1a53da2047bcb06979edc9e20e230cb3e5f8668d741ddda70f1c
7
- data.tar.gz: f8116dbcec6211719ca2344e433342386e2d33fd74715de2f49fb12eea0b28ad9e84e0086ae07c2231e834c053d9f297754cdd3b25567002bcb0cb6b0d2f3035
6
+ metadata.gz: 9e372c7233c494a4b6a96f6f34170e4ec42335ed2bb9146b2fe1a1363d577568185d9799afa408074e953cad953a4c0ef25fa51950e32dd6b77b76abd4b744f3
7
+ data.tar.gz: ef056f51f4244424d10e3d68c7f7c3ade0ed4123f6a6d3db4b84158ffa9e25d25f205ff3182841f2fb39cb76ff0097e40573d18932cf8089aeebc38ce2fb6b7a
@@ -69,7 +69,7 @@ module Txgh
69
69
  end
70
70
 
71
71
  def diff_point_content(tx_resource, file)
72
- raw_content = repo.api.download(file[:path], repo.diff_point)
72
+ raw_content = repo.api.download(file[:path], repo.diff_point)[:content]
73
73
  ResourceContents.from_string(tx_resource, raw_content)
74
74
  end
75
75
 
data/lib/txgh/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Txgh
2
- VERSION = '6.0.1'
2
+ VERSION = '6.0.2'
3
3
  end
@@ -116,14 +116,18 @@ describe ResourceUpdater do
116
116
  end
117
117
 
118
118
  it 'uploads a diff instead of the whole resource' do
119
+ file = {
120
+ path: 'en.yml',
121
+ commit_sha: commit_sha,
122
+ content: YAML.load("|
123
+ en:
124
+ welcome: Hello
125
+ goodbye: Goodbye
126
+ ")
127
+ }
128
+
119
129
  expect(github_api).to(
120
- receive(:download)
121
- .with('en.yml', diff_point)
122
- .and_return(YAML.load("|
123
- en:
124
- welcome: Hello
125
- goodbye: Goodbye
126
- "))
130
+ receive(:download).with('en.yml', diff_point).and_return(file)
127
131
  )
128
132
 
129
133
  diff = YAML.load(%Q(|
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: txgh
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.0.1
4
+ version: 6.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthew Jackowski