vidsy-cloudkit 0.9.0 → 0.10.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: f0e76f16f9413e945c4d7e1b7600e2f355767c66
4
- data.tar.gz: ef98cfa1e9b14d080acf03bfd2fc8b9494218439
3
+ metadata.gz: 8e3c0e0186000bedeeda5e023cd4052f806c187a
4
+ data.tar.gz: 6ba50e4a415b31bae92570e54f8b7cc42eb038e5
5
5
  SHA512:
6
- metadata.gz: a32e3c3223e01bd30371c6527b14859b7a7efd9ed4a16cfae0b57db431ebdf3f48bfeefeabfb7a3de2cb34a248b6aa8a78b46234d4edefd590b7a4eac5cd197f
7
- data.tar.gz: 5337835268efb5b8dbe8739177afd639b7c44a4e754867f2157f65b67537b0d7236261ec21df69fb48b3bd1b2dd67d88b6ecb84eee1b224d3349bdb09689d536
6
+ metadata.gz: c6ed0e2fa1b03eed2e749e435481c90ae4738886600cd061af9df04499b780f820e4bbe84139bcafb856314fd9b5e3496bf11bb0b635283032247ffcf7bb8581
7
+ data.tar.gz: d50e7ae843cbd3e9f8db36ebf0fe6f10ad48a1c902b14026b97595208ae5303e98f9fb32e2fd23c2ae177ffb02bb8b3c6c08f192a03a992e1ef54c15dce591b7
@@ -25,20 +25,20 @@ module Vidsy
25
25
  Configuration
26
26
  end
27
27
 
28
- def env
29
- configuration.env
28
+ def aws_env
29
+ configuration.aws_env
30
30
  end
31
31
 
32
32
  def path
33
33
  File.join(
34
- root, "config", "#{env}.config.json"
34
+ root, "config", "#{aws_env}.config.json"
35
35
  )
36
36
  end
37
37
 
38
38
  def parse
39
39
  OpenStruct.new(
40
40
  JSON.parse(
41
- File.read path
41
+ File.read(path)
42
42
  )
43
43
  )
44
44
  end
@@ -10,6 +10,10 @@ module Vidsy
10
10
  @app_config = AppConfig.new
11
11
  end
12
12
 
13
+ def aws_env
14
+ ENV["AWS_ENV"] || "development"
15
+ end
16
+
13
17
  def configure(&block)
14
18
  yield self
15
19
  self
@@ -1,5 +1,5 @@
1
1
  module Vidsy
2
2
  module Cloudkit
3
- VERSION = "0.9.0"
3
+ VERSION = "0.10.0".freeze
4
4
  end
5
5
  end
@@ -14,7 +14,7 @@ module Vidsy
14
14
  end
15
15
 
16
16
  def self.configure(&block)
17
- Configuration.configure &block
17
+ Configuration.configure(&block)
18
18
  end
19
19
 
20
20
  def self.dev?
@@ -27,7 +27,7 @@ module Vidsy
27
27
 
28
28
  def self.go!
29
29
  $LOAD_PATH << File.join(Configuration.root)
30
- require "pry" if self.dev?
30
+ require "pry" if dev?
31
31
  end
32
32
 
33
33
  def self.prod?
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vidsy-cloudkit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 0.10.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Charlie Revett
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-02-16 00:00:00.000000000 Z
11
+ date: 2016-02-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler