merlin 0.1.12 → 0.1.13

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
2
  SHA1:
3
- metadata.gz: 1a96b0955fb7d27ce1d2f641e516edbd7d45c139
4
- data.tar.gz: 59a7c819d20bfb6384296a4497e0650184f7a762
3
+ metadata.gz: aefbc7d04351342e81bf2f3d2b2dbe0dc8601a5a
4
+ data.tar.gz: c53d8cf915038aa627650fadde02517b96898e14
5
5
  SHA512:
6
- metadata.gz: 3282098e17f0e448edea320aec6c5baa12fe5e95e0be887b6b716d1d042e2fd052f9a8e5b2372108758d025cb70e6a258ffd7493f0d67448867d9c0da3c3d635
7
- data.tar.gz: d4e1b49c90504621558688c00da463ff68204e367c1555a5e065407d23ec8ed44afc3ca95629013864a6acc86d7074af8025744a73fb2d134313035dea60cc6a
6
+ metadata.gz: 03c2a13f5380f2f7255c1532e9bd8f12674a63f5e0f5faa8d7eaa8c962c0e1c28574f215887a0d67c576e5f52d16843ea5c2783e5a878824384529caa8e5a107
7
+ data.tar.gz: 3c28ec40bb6c01fe68d6f5fdf2bd0ae2bd0d10e5cd070d67408ac830a84f7f676df11b60923a858b44b63904c6587c9e6a7a721dee150b3d75319c9fa0348a70
@@ -1,6 +1,5 @@
1
1
  require 'yaml'
2
2
  require 'faraday'
3
- require 'faraday_middleware'
4
3
  require 'deep_merge' unless {}.respond_to?(:deep_merge)
5
4
  require 'ostruct'
6
5
  require 'json'
@@ -52,7 +51,6 @@ module Merlin
52
51
 
53
52
  def from_server(connection = nil)
54
53
  connection ||= Faraday.new(merlin_server) do |conn|
55
- conn.response :json, :content_type => /\bjson$/
56
54
  conn.adapter Faraday.default_adapter
57
55
  end
58
56
 
@@ -61,7 +59,7 @@ module Merlin
61
59
  }
62
60
 
63
61
  if response.status == 200
64
- result = response.body
62
+ result = JSON.parse(response.body)
65
63
  dump_config(result) unless production_or_staging
66
64
  result
67
65
  else
@@ -1,3 +1,3 @@
1
1
  module Merlin
2
- VERSION = "0.1.12"
2
+ VERSION = "0.1.13"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: merlin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.12
4
+ version: 0.1.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Artur Roszczyk
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-12-18 00:00:00.000000000 Z
11
+ date: 2014-01-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -24,20 +24,6 @@ dependencies:
24
24
  - - '>='
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
- - !ruby/object:Gem::Dependency
28
- name: faraday_middleware
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - '>='
32
- - !ruby/object:Gem::Version
33
- version: '0'
34
- type: :runtime
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - '>='
39
- - !ruby/object:Gem::Version
40
- version: '0'
41
27
  - !ruby/object:Gem::Dependency
42
28
  name: deep_merge
43
29
  requirement: !ruby/object:Gem::Requirement