forecast 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/forecast/config.rb +6 -6
- data/lib/forecast/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
N2E0YjMzMTg4YzY3NDg4ZGVkYmE4NGVhMjcxZDk5MDRjYWU0ZWVmZQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
N2E2MWU1YjEyZDhkZTY2MmVjNDY2ZGRlNDJjMDQzNDEyZmJhMDFlNA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MTVkNGQwZGNmYTdjZWFlN2E4OWYxYTQxYjY1ODM3YWQzYjI1NTE0YzFlZThi
|
10
|
+
ZGUwNjYyMWNlMThmNWU4YTM0NWE4NzUzZjk3MDZiOWY5MjJhNDJiNTQwYWU2
|
11
|
+
ZDk4MWY4M2VjYzY3ZDU0ZmU1ZGY3ZWY0ZTcwMDFiOTQzYmZjNGI=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
M2MxMTVhMTc3ZDI1MjNlNDJiMWM0NDg4MmQyODQ2YzMzYTg2OTUwY2Q5NmRj
|
14
|
+
MDgxOTI2MTRjYTRlZjE2MDUwMGVmNDk5NzM2MDNmZGVkNjYzYzM5YWMxMGEz
|
15
|
+
YTQ4OTRhMTIyYjJjNDJiYjBhNDUzOGNlNTk3ZjI5ZWQxNzg0NDg=
|
data/lib/forecast/config.rb
CHANGED
@@ -5,10 +5,10 @@ class Forecast
|
|
5
5
|
|
6
6
|
def initialize
|
7
7
|
|
8
|
-
@config_file =
|
8
|
+
@config_file = nil
|
9
|
+
#File.dirname(File.dirname(File.dirname(__FILE__))) + "/config/forecast.yml"
|
9
10
|
|
10
11
|
self.load(File.dirname(__FILE__) + '/**/*.yml')
|
11
|
-
self.load(@config_file)
|
12
12
|
|
13
13
|
def theme
|
14
14
|
if @theme != nil
|
@@ -65,10 +65,10 @@ class Forecast
|
|
65
65
|
def self.configure
|
66
66
|
yield self.config
|
67
67
|
# puts 'configured'
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
68
|
+
if self.config.config_file != nil
|
69
|
+
puts '**** load config from file'
|
70
|
+
self.config.load(self.config.config_file)
|
71
|
+
end
|
72
72
|
end
|
73
73
|
|
74
74
|
|
data/lib/forecast/version.rb
CHANGED