api_client 0.5.11 → 0.5.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/Makefile +30 -0
- data/lib/api_client.rb +25 -23
- data/lib/api_client/base.rb +0 -3
- data/lib/api_client/connection/abstract.rb +0 -3
- data/lib/api_client/connection/basic.rb +0 -3
- data/lib/api_client/connection/json.rb +0 -2
- data/lib/api_client/connection/middlewares/request/json.rb +0 -3
- data/lib/api_client/connection/middlewares/request/oauth.rb +1 -1
- data/lib/api_client/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d701efe0559b37e3cf87f4d54be040beeed8cf63
|
4
|
+
data.tar.gz: 9ad51f5c23652fc1a31d2bbe3642cd45d7c46d28
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f63350c1e48cd18ab72b07ce5ea40be030f904f74245946b00b3977165ee5b7fbeb075377d78950deb730547b4181235bd3e2a02cabb6d163d4ee5ccc7d6c97a
|
7
|
+
data.tar.gz: c195cba0d61896ef5df07cc0f36ee3283252b7df8d041bc035d23b01c3106bfedf9665a39335b384e6f4d8029977a49cfc231dc115e81df5037d6ee885e2d54d
|
data/CHANGELOG.md
CHANGED
data/Makefile
ADDED
@@ -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
|
data/lib/api_client.rb
CHANGED
@@ -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
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
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
|
-
|
23
|
-
|
24
|
-
|
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
|
-
|
37
|
-
|
38
|
-
|
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
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
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
|
data/lib/api_client/base.rb
CHANGED
data/lib/api_client/version.rb
CHANGED
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.
|
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-
|
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
|