restpack_core_client 0.2.5 → 0.2.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/restpack_core_client/cache.rb +5 -0
- data/lib/restpack_core_client/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NTM3ZTA0Y2VmODc4MzExOTY4MmQ4YzNjOWExZWI3Y2Q1MWIxMTRhZA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MGYxZjgxNTkwZmUwYTVmN2FjMDkzMDA3YmMwMGM2ZWExMzY1NTlmNA==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YTQ2MjkyMGYwOTE2OTgzOTQyMzhlNjgyYWVlMTRkMDdhYmIyZjIyMzIyNjhj
|
10
|
+
MDRjNzVlNzRjMTBlZTg0OWI0MGVlNTczN2IzZmIzZjg5YzBiYTRkZGZkYTdj
|
11
|
+
ZDUwODAyMWY2MjYyMjkxZjljODRmMTM2ZTRhYmYzNzQ1ZTk1M2Q=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
YWYxZWYxNTRhZjgxM2JjZjM0NTQ4YWQ1YjM4NWJkZTAzY2U3MWQ0YzNiM2Q0
|
14
|
+
ZDVhYTk2ZmM3NjRjMjU0MzQ2NjViYWQ3MGY3YmVhMmE1NmExOWI4ZmJmMjVj
|
15
|
+
NDIxMjU3OTZhNWRkMmFkOGU1ZDMzODgzOWFlMzMzMGMxMDQwMWE=
|
@@ -16,6 +16,11 @@ module RestPack
|
|
16
16
|
Cache.new(api)
|
17
17
|
end
|
18
18
|
|
19
|
+
def get_domain(host)
|
20
|
+
channel = get_channel(host)
|
21
|
+
channel.get_domain_by_host(host)
|
22
|
+
end
|
23
|
+
|
19
24
|
def get_channel(host)
|
20
25
|
channel_id = get_channel_id(host)
|
21
26
|
@channels[channel_id] ||= @api.get_channel(channel_id)
|