little-dutch 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/little-dutch/configuration.rb +8 -8
- data/lib/little-dutch/version.rb +1 -1
- 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: 3437dd2883eafd9b13320b6eeac77b73cc6bc598
|
4
|
+
data.tar.gz: 7f7b842d83e71c7b0fe342dbf0f456c5debfecda
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a9ea180ed4ccd8d44265a28f3708cb1bcc8da44ac95457f1539a2f3226f995770634990b3831dd82ccaea75d5620814f58158f39afd7a1647f2e88379d509a7b
|
7
|
+
data.tar.gz: c287f62400bf745d1c38f91455735a9782574a314a9716aac5049eaa282bb03ffae87ee545b74a73ad7216b870a8731f202f66c55a1b102b46b924300cd06810
|
@@ -19,14 +19,6 @@ module LittleDutch
|
|
19
19
|
names.each { |n| define_option_reader n }
|
20
20
|
end
|
21
21
|
|
22
|
-
private
|
23
|
-
|
24
|
-
def define_option_reader(name)
|
25
|
-
define_method name do
|
26
|
-
@options[name.to_s]
|
27
|
-
end
|
28
|
-
end
|
29
|
-
|
30
22
|
def env
|
31
23
|
if defined?(Rails)
|
32
24
|
Rails.env
|
@@ -35,6 +27,14 @@ module LittleDutch
|
|
35
27
|
end
|
36
28
|
end
|
37
29
|
|
30
|
+
private
|
31
|
+
|
32
|
+
def define_option_reader(name)
|
33
|
+
define_method name do
|
34
|
+
@options[name.to_s]
|
35
|
+
end
|
36
|
+
end
|
37
|
+
|
38
38
|
end
|
39
39
|
|
40
40
|
option_reader :endpoint, :token, :enabled, :interval, :app_name,
|
data/lib/little-dutch/version.rb
CHANGED