edesky-client 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/edesky-client.gemspec +2 -2
- data/lib/edesky_client.rb +2 -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: 771f63414cac475fbd0173f4c35f84d0259ec8c6
|
4
|
+
data.tar.gz: 344cb8bea00a3a9a7d971c3636b2cfe8702f0e6b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2aea575297b6989368dca3227e0419c23e305dfad857c7d084f445f8473b05a50400d12798fa9259170292e582e1ebc5a5c12d5982818d8ff82fd1e5b6186758
|
7
|
+
data.tar.gz: 1ac2f2f20a1b546bb86b03f03b3659b4811b1dd68d43b10ef4cbe5aae4209312069d49d271f0dd5d014e5595ea93c7c376338db2f0598574fa7c356856062df7
|
data/edesky-client.gemspec
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'edesky-client'
|
3
|
-
s.version = '0.0.
|
4
|
-
s.date = '2015-
|
3
|
+
s.version = '0.0.8'
|
4
|
+
s.date = '2015-12-01'
|
5
5
|
s.summary = "Ruby klient pro edesky.cz API"
|
6
6
|
s.description = "Ruby klient pro edesky.cz HTTP API, hledání dokumentů a úředních desek."
|
7
7
|
s.authors = ["Marek Aufart"]
|
data/lib/edesky_client.rb
CHANGED
@@ -44,12 +44,13 @@ class EdeskyClient
|
|
44
44
|
end
|
45
45
|
|
46
46
|
def query_dashboards(options = {})
|
47
|
-
|
47
|
+
fetch('dashboards', BOARD_QUERY_DEFAULTS.merge(options))
|
48
48
|
end
|
49
49
|
|
50
50
|
private
|
51
51
|
|
52
52
|
def fetch(type, params)
|
53
|
+
params['api_key'] = @api_key
|
53
54
|
uri = URI(URI.join(@endpoint_url, type))
|
54
55
|
uri.query = URI.encode_www_form(params)
|
55
56
|
http = Net::HTTP.new(uri.host, uri.port)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: edesky-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Marek Aufart
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-12-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: xml-simple
|