github_export 0.1.1 → 0.1.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
- SHA1:
3
- metadata.gz: 1ee53ab8656f9e71f6ff5ecdcd091a888230b04d
4
- data.tar.gz: 2a572fc0c2cd86a3a9655c684d125baaffd35d8e
2
+ SHA256:
3
+ metadata.gz: e72ff3a02de09b7e1f53d2c30481d35136726ab4412eb0c44955743ffbb4a9ff
4
+ data.tar.gz: 00c8b606a766f6cfaea14f196ccfe72ead4e6d871888a036c6cfcb8665f6afcb
5
5
  SHA512:
6
- metadata.gz: 81612ccce6cb82f5b19ff6a1af3363011192e49334d4749de4b14f9a3d44dc7419e89b4b85137d479de97c881b0f2c9143932383820841a78005f2fd4f377386
7
- data.tar.gz: df66c2e2033a6f66632e3674c99d8b3c685f453e41bedda4ef2c70d6efdb505d19bec1ae490745b42c546c0e214b7847d15dd1c1fd41bad46306d465b7985e44
6
+ metadata.gz: 5ef902552c940d37de67838ed42d3692acdd2656849e669d20da6f4f0ed7cfaa9f856753676dc4727f7578b64f04e215be4748cd038568f2852ff53e0a6deb4f
7
+ data.tar.gz: 9f96d0338aef0b8604fa675787a621585733916653fbd5b7408077e3a6c6b5e5d8dfca22f847d4ea43fb935f53aa5767052a87ac1e4a02bfb2cee857e4592d2a
@@ -108,7 +108,12 @@ module GithubExport
108
108
  if options[:force] || !File.exist?(dest)
109
109
  verbose "DL #{url}"
110
110
  FileUtils.mkdir_p(File.dirname(dest))
111
- File.binwrite(dest, client.get(url))
111
+ # Assets might be downloaded from S3 so we use curl (or httpclient?) without auth info instead of `client` object
112
+ # File.binwrite(dest, client.get(url))
113
+ cmd = "curl -f -o #{dest} #{url}"
114
+ unless system(cmd)
115
+ puts "Download Error #{cmd}"
116
+ end
112
117
  else
113
118
  verbose "SKIP #{url}"
114
119
  end
@@ -1,3 +1,3 @@
1
1
  module GithubExport
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: github_export
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - akm
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-06-29 00:00:00.000000000 Z
11
+ date: 2018-04-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: octokit
@@ -137,7 +137,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
137
137
  version: '0'
138
138
  requirements: []
139
139
  rubyforge_project:
140
- rubygems_version: 2.6.4
140
+ rubygems_version: 2.7.3
141
141
  signing_key:
142
142
  specification_version: 4
143
143
  summary: Export Issues, Contents and so on