dagger 0.8.0 → 0.8.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7001f9f21c0adb0ff7d27a307bd28934229c4dc9
4
- data.tar.gz: 4a51b1dacd01ddad0570f93e3255fa28dcccea0c
3
+ metadata.gz: f6ad5b2966387630b567d92a4eb54dc526e7a438
4
+ data.tar.gz: b20fb218baf727a58c22da843bd8505429063685
5
5
  SHA512:
6
- metadata.gz: f95c6b8ca528061ba9ce150457d9d60808965f65f67b704e759e964b8c98df789df48fdb9e272fd2ebc52d42b023538566804e6296a95fa26ce0f6787d4f0c3e
7
- data.tar.gz: d266954e4321d11af50608ad8bb055ed030d4e17d60667b6ebfbd2f291e8f8af483a62fd4260849e174ac00e4119df7f7d4f3e3c2d423404c9a81e1b732aeb31
6
+ metadata.gz: 9642e40bba7bf9ee0457d1b371dfbb08a80f3e2a7ad047f61a245cba7583ff076c1ac4bc5210a9bbe1cf0ec957a9ec35cb3c6a6265b0bc3f92582996b83b12c7
7
+ data.tar.gz: 4e9e1ce44eea6689d8d824ad5bf26e654a06f581c6a6db1300be02f29974e3410dffe823e5299039fd0cdfd090560b09a2abcbcbd6d43f287a4c5ce99f559768
@@ -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.sub('/', '_').split(';').first
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)
@@ -1,7 +1,7 @@
1
1
  module Dagger
2
2
  MAJOR = 0
3
3
  MINOR = 8
4
- PATCH = 0
4
+ PATCH = 1
5
5
 
6
6
  VERSION = [MAJOR, MINOR, PATCH].join('.')
7
7
  end
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.0
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-10 00:00:00.000000000 Z
11
+ date: 2017-07-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler