vidsy-cloudkit 0.5.1 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/vidsy/cloudkit/version.rb +1 -1
- data/lib/vidsy/cloudkit.rb +12 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4bd3119b3a65a4ec0f090da00094249bda46c955
|
4
|
+
data.tar.gz: 267fc560eeefbe9bc110c605f0990b4b95ec019f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4ac1c72d72cce3e7e71989e3b3731e44d768cb9cebbc2d78ecb9f29f6c1e2be17ce3e0a1cc163ad0ce66b8a4ed4a350686b64ceaf38876e1c56a9ccd32779041
|
7
|
+
data.tar.gz: c6a476c6d21dd861fc2906cb61e273c36eac6d76521f3df18ad3a4396fdc2d8b479a060f23fc834d1036f369e5f4a71c21c18d7323d0997f7c6105776ed445e2
|
data/lib/vidsy/cloudkit.rb
CHANGED
@@ -11,16 +11,25 @@ module Vidsy
|
|
11
11
|
Configuration.configure &block
|
12
12
|
end
|
13
13
|
|
14
|
+
def self.dev?
|
15
|
+
Configuration.env == "development"
|
16
|
+
end
|
17
|
+
|
14
18
|
def self.env
|
15
19
|
Configuration.env
|
16
20
|
end
|
17
21
|
|
18
22
|
def self.go!
|
19
23
|
$LOAD_PATH << File.join(Configuration.root)
|
24
|
+
require "pry" if self.dev?
|
25
|
+
end
|
26
|
+
|
27
|
+
def self.prod?
|
28
|
+
Configuration.env == "production"
|
29
|
+
end
|
20
30
|
|
21
|
-
|
22
|
-
|
23
|
-
end
|
31
|
+
def self.test?
|
32
|
+
Configuration.env == "test"
|
24
33
|
end
|
25
34
|
end
|
26
35
|
end
|