acme-client 0.3.5 → 0.3.6

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: 0283d5a846c22816ee65c187bb936be93562fdab
4
- data.tar.gz: 8b7035e28c9bcc537b17830e4db3872e0aa12cd3
3
+ metadata.gz: 44c84cbfeeee02a36b07cae292b7466dfafa928b
4
+ data.tar.gz: d3f6a5474c6d65abad6dc8d3a2674e6af8710adc
5
5
  SHA512:
6
- metadata.gz: e54fd1f95394793b0f6727d6d45aca5b17bd9a2caa739b66ebfe53cc7fc541352fe37c1408a64564852c03aa1b8411bd130d089dabe949871cdb5eb7b99bb860
7
- data.tar.gz: 10ad84bf0dd9fe40f97d03a73fb22475a56801adec5bad6919d129f9f18636859ac2149c3ebaaf11ec1bdc031f2aa85668ec88f44230bc583eed868d0a8d48e6
6
+ metadata.gz: 2574977b8a14c135fabbe3b1caa7b29605b19d1c1f20362536f06ef77a3af13bf722a2c2a52fc8397756cf7a690148535915af8ab4dbcd6ae7b4fc156f850d92
7
+ data.tar.gz: 035c701ac78c523d0ad1dc699856320aa730f19a8b5b4c485d10ac915f1a098d9e66b55b1b520e0f7e064fe2e63cd27e3cc66b9fec3cf2c880557ad35f525e24
data/Gemfile CHANGED
@@ -5,4 +5,8 @@ group :development, :test do
5
5
  gem 'pry'
6
6
  gem 'rubocop', '0.36.0'
7
7
  gem 'ruby-prof', require: false
8
+
9
+ if Gem::Version.new(RUBY_VERSION) <= Gem::Version.new('2.2.2')
10
+ gem 'activesupport', '~> 4.2.6'
11
+ end
8
12
  end
@@ -55,7 +55,8 @@ class Acme::Client::FaradayMiddleware < Faraday::Middleware
55
55
 
56
56
  def error_name
57
57
  @error_name ||= begin
58
- return unless env.present? && env.body.present? && env.body.key?('type')
58
+ return unless env.body.is_a?(Hash)
59
+ return unless env.body.key?('type')
59
60
 
60
61
  env.body['type'].gsub('urn:acme:error:', '').classify
61
62
  end
@@ -1,5 +1,5 @@
1
1
  module Acme
2
2
  class Client
3
- VERSION = '0.3.5'.freeze
3
+ VERSION = '0.3.6'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: acme-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.5
4
+ version: 0.3.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Charles Barbier
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-06-29 00:00:00.000000000 Z
11
+ date: 2016-07-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler