lhc 3.7.1 → 3.7.2

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: 3c8743276bc3e95f6692660682c68f0e1db0eb6d
4
- data.tar.gz: d7e232ede3de6c48a8e03ae593ae7b95d895384b
3
+ metadata.gz: 397933f597d9cf158be45317b4aba6295ffdb896
4
+ data.tar.gz: a6b9cd7bae4b181b5180f45d89939cd28d517cba
5
5
  SHA512:
6
- metadata.gz: 3a5c0ef4e4540459694ee0e1f6dbad6ab98c49429f4b4e047b650f5b275473a7bdb3c8e9c5b98260781af15fffb13199141306b564d7b2a632f6f03c94a270f0
7
- data.tar.gz: 41275480184ac6fbcc56272e372b486e07953f2186d27611e0f3b2c49b85b5fa49cd701e7663a86646542a274ea1d9ba92d3d8caa56b269c7cb9054db3c63450
6
+ metadata.gz: 1deac3be083e59de5617b25b0dd8c6e5c59c571b4abaa54f7b9458ea5175c0726c7f8080ca14c5d95491a53b18eb7f78338d883a48e3c351f4124f89598a031d
7
+ data.tar.gz: d002a91dc88a7fe83f110874ba1dd299c6640e042a13090461b6e38e2c272788d68d341fa76795ea8ec60d5f52a1724d90a9f745be8ff717a2ca9cad13c4264e
data/lib/lhc/endpoint.rb CHANGED
@@ -2,8 +2,8 @@
2
2
  # The url can also be an url-template.
3
3
  class LHC::Endpoint
4
4
 
5
- PLACEHOLDER = %r{:[^\/\.:;\d\&]+}
6
- ANYTHING_BUT_SINGLE_SLASH_AND_DOT = '([^\/\.]|\/\/)+'.freeze
5
+ PLACEHOLDER ||= %r{:[^\/\.:;\d\&]+}
6
+ ANYTHING_BUT_SINGLE_SLASH_AND_DOT ||= '([^\/\.]|\/\/)+'.freeze
7
7
 
8
8
  attr_accessor :url, :options
9
9
 
data/lib/lhc/request.rb CHANGED
@@ -7,7 +7,7 @@ require 'active_support/core_ext/object/deep_dup'
7
7
  # and it communicates with interceptors.
8
8
  class LHC::Request
9
9
 
10
- TYPHOEUS_OPTIONS = [:params, :method, :body, :headers, :follow_location]
10
+ TYPHOEUS_OPTIONS ||= [:params, :method, :body, :headers, :follow_location]
11
11
 
12
12
  attr_accessor :response, :options, :raw, :format, :error_handler
13
13
 
@@ -1,3 +1,4 @@
1
+ require 'ostruct'
1
2
  # Response data is data provided through the response body
2
3
  # but made accssible in the ruby world
3
4
  class LHC::Response::Data < OpenStruct
data/lib/lhc/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module LHC
2
- VERSION = "3.7.1"
2
+ VERSION ||= "3.7.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lhc
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.7.1
4
+ version: 3.7.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - local.ch
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-10-26 00:00:00.000000000 Z
11
+ date: 2016-11-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus