dagger 0.8.0 → 0.8.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/dagger/parsers.rb +2 -1
- data/lib/dagger/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f6ad5b2966387630b567d92a4eb54dc526e7a438
|
4
|
+
data.tar.gz: b20fb218baf727a58c22da843bd8505429063685
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9642e40bba7bf9ee0457d1b371dfbb08a80f3e2a7ad047f61a245cba7583ff076c1ac4bc5210a9bbe1cf0ec957a9ec35cb3c6a6265b0bc3f92582996b83b12c7
|
7
|
+
data.tar.gz: 4e9e1ce44eea6689d8d824ad5bf26e654a06f581c6a6db1300be02f29974e3410dffe823e5299039fd0cdfd090560b09a2abcbcbd6d43f287a4c5ce99f559768
|
data/lib/dagger/parsers.rb
CHANGED
@@ -6,7 +6,7 @@ class Parsers
|
|
6
6
|
|
7
7
|
def initialize(response)
|
8
8
|
@body = response.body
|
9
|
-
@normalized = response.content_type.to_s.
|
9
|
+
@normalized = response.content_type.to_s.split(';').first.gsub(/[^a-z]/, '_')
|
10
10
|
end
|
11
11
|
|
12
12
|
def process
|
@@ -20,6 +20,7 @@ class Parsers
|
|
20
20
|
end
|
21
21
|
|
22
22
|
alias_method :text_javascript, :application_json
|
23
|
+
alias_method :application_x_javascript, :application_json
|
23
24
|
|
24
25
|
def text_xml(body)
|
25
26
|
Ox.parse(body)
|
data/lib/dagger/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dagger
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tomás Pollak
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-07-
|
11
|
+
date: 2017-07-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|