ecal_client 0.1.0 → 0.1.1

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: 640ccf1f3d78d04e37c4e7db19ec57da8faefc17
4
- data.tar.gz: 368947166b4e39ed6b90785415f6c5791ff88919
3
+ metadata.gz: d7be1ea0018c606e3e700bed0970b0fb635058e5
4
+ data.tar.gz: ddadbc3d56c281e745582f9d4af844ed94e27284
5
5
  SHA512:
6
- metadata.gz: 184272b4a147b658d1a266d2bef6fca1ad61ca787b4b1b28fb1912e5fdfda4b3fece6e2326a30a2888d01321f75d170fcf0886f8f92643d70f9d79bd1540544e
7
- data.tar.gz: 7b6cd941db4378a33d15ad1aa8d48703415288b789545764433735fbd615b83b7b250328aee88333e4fa9fa5e704b698d46a415a1b9d6ba8cb13581406d0a472
6
+ metadata.gz: 5ec2ac98a69df4c84ea59fade16567d4c1fd2a34c56919c6d824156a9595a5e5f1ce4b81ccc8a4f935b40286dc3b359b4d74b8fe6d05145cd7e82cebbe37e08f
7
+ data.tar.gz: c53116788532471f7cdade11c8e02fa382172a7535cff72ad8830b9065625f4e3b620a096b040894eadfe7aac8cef82a5f5a71591a55a6db099c45121719206a
@@ -9,6 +9,14 @@ module EcalClient
9
9
  SUBSCRIPTION_WIDGET = "/subscription-widget/".freeze
10
10
  SUBSCRIBER = "/subscriber/".freeze
11
11
 
12
+ def initialize(options = {})
13
+ key = options.delete(:key)
14
+ secret = options.delete(:secret)
15
+ EcalClient.configuration.key = key if key
16
+ EcalClient.configuration.secret = secret if secret
17
+ EcalClient.configuration.options.merge!(options)
18
+ end
19
+
12
20
  def organisation
13
21
  @organisation ||= Rest.new(endpoint_for(ORGANISATION), [:get, :post, :put])
14
22
  end
@@ -1,3 +1,3 @@
1
1
  module EcalClient
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ecal_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Faizal Zakaria
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-01-29 00:00:00.000000000 Z
11
+ date: 2016-02-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler