vidsy-cloudkit 0.2.2 → 0.3.0

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: c99823693899ba8d07242ec2b2651a4d3d19e475
4
- data.tar.gz: ef3d7fad5ff9199762dc9fe7c8036cb13e824bb8
3
+ metadata.gz: 4c23b7fb603191be08c8c9956f3acc46ebd3bbd1
4
+ data.tar.gz: ac747ea0d93193fa804426931d482ed066f07ab7
5
5
  SHA512:
6
- metadata.gz: e2085b5749bf929a0d9f51e3b01a3c17fbd60185b1c68507c01a21bb551af606992858eb3fc7a221101a99a1aa98e78810938dafb966ac039828dc554ce55ea2
7
- data.tar.gz: 06084e7eac1a2fdc4c52b64417f8d53b152392854bd58bb315f296dcb6fc004e8864af12f198f0135e1bcba767351e27bd0597d80698e7f5d22a913e912db041
6
+ metadata.gz: b492955cc8a3932424c9f9727af5a35c68735efb3f173296dbaf84ad567d5e2bd2eab1cf159b283660227bf00fafa15c2bbaa774d52efe6f7dd4d772f8698f02
7
+ data.tar.gz: 39e917b3ad5479353ad6327dea83e035f8c5b641b1fbaeb8f538f36282bdcea579da8f838aaab6173209828302a99fc25a9c2cfa304c2ba05447bb45409cd3db
@@ -3,8 +3,8 @@ require "vidsy/cloudkit/configuration"
3
3
 
4
4
  module Vidsy
5
5
  module Cloudkit
6
- def self.config
7
- Configuration.app_config
6
+ def self.config(node = nil)
7
+ node ? Configuration.app_config.node(node) : Configuration.app_config.all
8
8
  end
9
9
 
10
10
  def self.configure(&block)
@@ -9,6 +9,14 @@ module Vidsy
9
9
  @json = parse
10
10
  end
11
11
 
12
+ def all
13
+ json
14
+ end
15
+
16
+ def node(s)
17
+ OpenStruct.new json[s]
18
+ end
19
+
12
20
  private
13
21
 
14
22
  attr_reader :json
@@ -1,5 +1,5 @@
1
1
  module Vidsy
2
2
  module Cloudkit
3
- VERSION = "0.2.2"
3
+ VERSION = "0.3.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vidsy-cloudkit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Charlie Revett