api_client 0.5.11 → 0.5.12

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: fa72f20faca901deb66fb6f1b73599829a0ef633
4
- data.tar.gz: 38f72c8e3f27ec6c708bba8aa6cc22a2729f0e40
3
+ metadata.gz: d701efe0559b37e3cf87f4d54be040beeed8cf63
4
+ data.tar.gz: 9ad51f5c23652fc1a31d2bbe3642cd45d7c46d28
5
5
  SHA512:
6
- metadata.gz: dc9414f6a69354c668012ce321773f83d45e845cf109dbe0a3e4b77146ba986bac7b866ba13cd187dc4c3bac3b05d4c4f6dd8a2939562cf31a4a93f1ca13f6de
7
- data.tar.gz: e4195081871e961a05ec586042de5b9aad01c0e92143a5abc4b5c5298e8842a2d8759976c96d46c53a21ecebbda92c47031203837b03c7a90ccf7bf36118d532
6
+ metadata.gz: f63350c1e48cd18ab72b07ce5ea40be030f904f74245946b00b3977165ee5b7fbeb075377d78950deb730547b4181235bd3e2a02cabb6d163d4ee5ccc7d6c97a
7
+ data.tar.gz: c195cba0d61896ef5df07cc0f36ee3283252b7df8d041bc035d23b01c3106bfedf9665a39335b384e6f4d8029977a49cfc231dc115e81df5037d6ee885e2d54d
@@ -1,3 +1,7 @@
1
+ # 0.5.12
2
+
3
+ * fix threading problem on ruby 1.8.7 and earlier
4
+
1
5
  # 0.5.11
2
6
 
3
7
  * fix handling errors
@@ -0,0 +1,30 @@
1
+ ENV18=RBENV_VERSION=`rbenv versions --bare | grep "^1\.8" | tail -n 1`
2
+ ENV19=RBENV_VERSION=`rbenv versions --bare | grep "^1\.9" | tail -n 1`
3
+ ENV22=RBENV_VERSION=`rbenv versions --bare | grep "^2\.2" | tail -n 1`
4
+
5
+ .PHONY: all install_ruby18 ruby18 install_ruby19 ruby19 install_ruby22 ruby22
6
+
7
+ all: ruby18 ruby19 ruby22
8
+
9
+ install: install_ruby18 install_ruby19 install_ruby22
10
+
11
+ install_ruby18:
12
+ @$(ENV18) bundle
13
+
14
+ ruby18:
15
+ @echo ruby 1.8
16
+ @$(ENV18) bundle exec rspec
17
+
18
+ install_ruby19:
19
+ @$(ENV19) bundle
20
+
21
+ ruby19:
22
+ @echo ruby 1.9
23
+ @$(ENV19) bundle exec rspec
24
+
25
+ install_ruby22:
26
+ @$(ENV22) bundle
27
+
28
+ ruby22:
29
+ @echo ruby 2.2
30
+ @$(ENV22) bundle exec rspec
@@ -1,31 +1,34 @@
1
1
  require "api_client/version"
2
+ require "faraday"
3
+ require "hashie"
4
+ require "multi_json"
5
+
2
6
  module ApiClient
3
7
  class << self
4
8
  attr_accessor :logger
5
9
  end
6
10
 
7
- autoload :Base, "api_client/base"
8
- autoload :Errors, "api_client/errors"
9
- autoload :Scope, "api_client/scope"
10
- autoload :Utils, "api_client/utils"
11
-
12
11
  module Mixins
13
- autoload :ConnectionHooks, "api_client/mixins/connection_hooks"
14
- autoload :Delegation, "api_client/mixins/delegation"
15
- autoload :Configuration, "api_client/mixins/configuration"
16
- autoload :Inheritance, "api_client/mixins/inheritance"
17
- autoload :Instantiation, "api_client/mixins/instantiation"
18
- autoload :Scoping, "api_client/mixins/scoping"
12
+ require "api_client/mixins/connection_hooks"
13
+ require "api_client/mixins/delegation"
14
+ require "api_client/mixins/configuration"
15
+ require "api_client/mixins/inheritance"
16
+ require "api_client/mixins/instantiation"
17
+ require "api_client/mixins/scoping"
19
18
  end
20
19
 
20
+ require "api_client/base"
21
+ require "api_client/errors"
22
+ require "api_client/scope"
23
+ require "api_client/utils"
24
+
21
25
  module Resource
22
- autoload :Base, "api_client/resource/base"
23
- autoload :Scope, "api_client/resource/scope"
24
- autoload :NameResolver, "api_client/resource/name_resolver"
26
+ require "api_client/resource/base"
27
+ require "api_client/resource/scope"
28
+ require "api_client/resource/name_resolver"
25
29
  end
26
30
 
27
31
  module Connection
28
-
29
32
  class << self
30
33
  attr_accessor :default
31
34
  end
@@ -33,16 +36,15 @@ module ApiClient
33
36
 
34
37
  module Middlewares
35
38
  module Request
36
- autoload :OAuth, "api_client/connection/middlewares/request/oauth"
37
- autoload :Logger, "api_client/connection/middlewares/request/logger"
38
- autoload :Json, "api_client/connection/middlewares/request/json"
39
+ require "api_client/connection/middlewares/request/oauth"
40
+ require "api_client/connection/middlewares/request/logger"
41
+ require "api_client/connection/middlewares/request/json"
39
42
  end
40
43
  end
41
44
 
42
- autoload :Abstract, "api_client/connection/abstract"
43
- autoload :Basic, "api_client/connection/basic"
44
- autoload :Json, "api_client/connection/json"
45
- autoload :Oauth, "api_client/connection/oauth"
45
+ require "api_client/connection/abstract"
46
+ require "api_client/connection/basic"
47
+ require "api_client/connection/json"
48
+ require "api_client/connection/oauth"
46
49
  end
47
-
48
50
  end
@@ -1,6 +1,3 @@
1
- require "hashie"
2
- require "multi_json"
3
-
4
1
  module ApiClient
5
2
 
6
3
  class Base < Hashie::Mash
@@ -1,6 +1,3 @@
1
- # Faraday for making requests
2
- require 'faraday'
3
-
4
1
  module ApiClient
5
2
 
6
3
  module Connection
@@ -1,6 +1,3 @@
1
- # Faraday for making requests
2
- require 'faraday'
3
-
4
1
  module ApiClient
5
2
 
6
3
  module Connection
@@ -1,5 +1,3 @@
1
- require 'faraday'
2
-
3
1
  # Exactly like Basic, but uses JSON encoding for request body
4
2
  # if applicable
5
3
  module ApiClient
@@ -1,6 +1,3 @@
1
- require "faraday"
2
- require "multi_json"
3
-
4
1
  class ApiClient::Connection::Middlewares::Request::Json < Faraday::Middleware
5
2
  CONTENT_TYPE = "Content-Type".freeze
6
3
 
@@ -19,4 +19,4 @@ class ApiClient::Connection::Middlewares::Request::OAuth < Faraday::Middleware
19
19
  @app, @options = app, options
20
20
  end
21
21
 
22
- end
22
+ end
@@ -1,3 +1,3 @@
1
1
  module ApiClient
2
- VERSION = "0.5.11"
2
+ VERSION = "0.5.12"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: api_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.11
4
+ version: 0.5.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marcin Bunsch
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-05-06 00:00:00.000000000 Z
11
+ date: 2015-07-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: yajl-ruby
@@ -93,6 +93,7 @@ files:
93
93
  - CHANGELOG.md
94
94
  - Gemfile
95
95
  - LICENSE
96
+ - Makefile
96
97
  - README.md
97
98
  - Rakefile
98
99
  - api_client.gemspec