summaryrefslogtreecommitdiff
path: root/lib/github/response.rb
diff options
context:
space:
mode:
authorYorick Peterse <yorickpeterse@gmail.com>2017-10-18 21:46:05 +0200
committerYorick Peterse <yorickpeterse@gmail.com>2017-11-07 23:25:03 +0100
commit6e242e82237ad2cf362098f3f42f4a9dd1a4ad27 (patch)
tree415639ff14183a4914dac69fcc400806cb477525 /lib/github/response.rb
parent4dfe26cd8b6863b7e6c81f5c280cdafe9b6e17b6 (diff)
downloadgitlab-ce-github-importer-refactor.tar.gz
Replace old GH importer with the parallel importergithub-importer-refactor
Diffstat (limited to 'lib/github/response.rb')
-rw-r--r--lib/github/response.rb25
1 files changed, 0 insertions, 25 deletions
diff --git a/lib/github/response.rb b/lib/github/response.rb
deleted file mode 100644
index 761c524b553..00000000000
--- a/lib/github/response.rb
+++ /dev/null
@@ -1,25 +0,0 @@
-module Github
- class Response
- attr_reader :raw, :headers, :status
-
- def initialize(response)
- @raw = response
- @headers = response.headers
- @status = response.status
- end
-
- def body
- Oj.load(raw.body, class_cache: false, mode: :compat)
- end
-
- def rels
- links = headers['Link'].to_s.split(', ').map do |link|
- href, name = link.match(/<(.*?)>; rel="(\w+)"/).captures
-
- [name.to_sym, href]
- end
-
- Hash[*links.flatten]
- end
- end
-end