txgh 6.0.1 → 6.0.2
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 +4 -4
- data/lib/txgh/resource_updater.rb +1 -1
- data/lib/txgh/version.rb +1 -1
- data/spec/resource_updater_spec.rb +11 -7
- 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: b43e37df7b3d9aef605305c73ba2b4eab3ed2a03
|
|
4
|
+
data.tar.gz: d402a224594a9c5bcef10fbecc8d7b275d4a1860
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
@@ -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(|
|