haveapi-client 0.4.2 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG +4 -0
- data/haveapi-client.gemspec +1 -1
- data/lib/haveapi/client/parameters/typed.rb +1 -1
- data/lib/haveapi/client/resource.rb +6 -5
- data/lib/haveapi/client/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 840df0f77708fe4989863028214ef4d5c4fa9766
|
4
|
+
data.tar.gz: e11a71e8dd445c300dd6d50eb8299e9807cfd5bf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b844cbb73490a46e9998030520a73869e77cb0b1d7ae56ac34c913f47273eb262bc7d1ee94490879a9485463a62ab51f180412e6bcea427978e5307007e4bcc5
|
7
|
+
data.tar.gz: 5ca4a116bee236baab8b678fe45832c89566071bf2f1d4d47df66911171def317eac980070191bd3177fc9c031e217b3d2f41e9f68d6ca823f785d16001f2c10
|
data/CHANGELOG
CHANGED
data/haveapi-client.gemspec
CHANGED
@@ -6,7 +6,7 @@ require 'haveapi/client/version'
|
|
6
6
|
Gem::Specification.new do |spec|
|
7
7
|
spec.name = 'haveapi-client'
|
8
8
|
spec.version = HaveAPI::Client::VERSION
|
9
|
-
spec.date = '2016-
|
9
|
+
spec.date = '2016-02-09'
|
10
10
|
spec.authors = ['Jakub Skokan']
|
11
11
|
spec.email = ['jakub.skokan@vpsfree.cz']
|
12
12
|
spec.summary =
|
@@ -9,12 +9,11 @@ module HaveAPI::Client
|
|
9
9
|
@api = api
|
10
10
|
@name = name
|
11
11
|
@prepared_args = []
|
12
|
-
end
|
13
|
-
|
14
|
-
def setup(description)
|
15
12
|
@actions = {}
|
16
13
|
@resources = {}
|
14
|
+
end
|
17
15
|
|
16
|
+
def setup(description)
|
18
17
|
description[:actions].each do |name, desc|
|
19
18
|
action = HaveAPI::Client::Action.new(@api, name, desc, [])
|
20
19
|
define_action(action)
|
@@ -32,12 +31,14 @@ module HaveAPI::Client
|
|
32
31
|
# Copy actions and resources from the +original+ resource
|
33
32
|
# and create methods for this instance.
|
34
33
|
def setup_from_clone(original)
|
35
|
-
original.actions.
|
34
|
+
original.actions.each do |name, action|
|
36
35
|
define_action(action)
|
36
|
+
@actions[name] = action
|
37
37
|
end
|
38
38
|
|
39
|
-
original.resources.
|
39
|
+
original.resources.each do |name, resource|
|
40
40
|
define_resource(resource)
|
41
|
+
@resources[name] = resource
|
41
42
|
end
|
42
43
|
end
|
43
44
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: haveapi-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jakub Skokan
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-02-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|