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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ecbdaff003b73fec6771aa6adad0d1a3f1390f84
4
- data.tar.gz: 56f85745039132be788bd667e8f068f51a8b4eaa
3
+ metadata.gz: 771f63414cac475fbd0173f4c35f84d0259ec8c6
4
+ data.tar.gz: 344cb8bea00a3a9a7d971c3636b2cfe8702f0e6b
5
5
  SHA512:
6
- metadata.gz: 22e548acc7b0d58d03d9e916632fde5975a90a8832d4d2050fd778234aeadd558e72e4d762f37b8689cbd2e8c35e1dcf53ac63f250c4f46bd2e378837806965b
7
- data.tar.gz: be0397c3191f31f275924d7519e9cb619d321bf07f7a1da7532e3a10bcad9efb0aea2b45b04e14e8961e69215ada4bb1b22c2c5419e6325e84f50ef1fba01402
6
+ metadata.gz: 2aea575297b6989368dca3227e0419c23e305dfad857c7d084f445f8473b05a50400d12798fa9259170292e582e1ebc5a5c12d5982818d8ff82fd1e5b6186758
7
+ data.tar.gz: 1ac2f2f20a1b546bb86b03f03b3659b4811b1dd68d43b10ef4cbe5aae4209312069d49d271f0dd5d014e5595ea93c7c376338db2f0598574fa7c356856062df7
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'edesky-client'
3
- s.version = '0.0.7'
4
- s.date = '2015-11-29'
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
- raise "Not implemented yet!"
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.7
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-29 00:00:00.000000000 Z
11
+ date: 2015-12-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: xml-simple