rasti-app 7.0.2 → 7.1.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
  SHA256:
3
- metadata.gz: 98386715eb2b4ac8eaae5131385425f8bd3043d9b3316b05e38d8b58dd78f2c2
4
- data.tar.gz: 18a7f78fef15b3ebba6a2ee3dd6f28b770f2c1434e51a92e813f304040bdeab6
3
+ metadata.gz: 11b4efa00bb1294e325cf35ef3ad89ccc2cabb1df7558ee5f226a607a08eea7d
4
+ data.tar.gz: ecaa918db393e1ffb1f6cd177700ff441397796a0980b52a21a8498ab93fae19
5
5
  SHA512:
6
- metadata.gz: 1893dc1af67e97d0ed5c000f65bd1ea5574567899253ae05c58fdba9b5ea0c027e8a0188b33548840a6f64bb6ba9c849fcd2e9fc67dcbd030d6fbbfea8be3aa4
7
- data.tar.gz: 70610755aaab8b4f247b19ad4a5f8bc4a62ebfa41fb9cf48de35c5521649157d506eceb962a0246726561fe1c7304e1548f6bd0a64f862abd662a1f3283b274d
6
+ metadata.gz: fcf00fe745da58450d55412d605fd0967cd402dd46be7582c2bb2d61c3c6da6f2d1fef6df60bb5d45bd17eec2b4ef510db4121d611cf53cc89fdb8e5d9df5309
7
+ data.tar.gz: e893314f523ecbbd53db892362de6427d5b8be4bf9937ceae7500cc425d2c1c04d71d99ae14f3d94fd5daccb3ba9b0a20d59ff318e75c2d0d8669f029e3a574e
@@ -3,18 +3,18 @@ module Rasti
3
3
  class Settings
4
4
  class << self
5
5
 
6
- def load(environment)
7
- load_file File.join(Dir.pwd, "#{environment}.yml")
6
+ def load(environment, options={})
7
+ load_file File.join(Dir.pwd, "#{environment}.yml"), options
8
8
  end
9
9
 
10
- def load_file(filename)
11
- Hash::Accessible.new(evaluate(File.read(filename))).deep_freeze
10
+ def load_file(filename, options={})
11
+ Hash::Accessible.new(evaluate(File.read(filename), options)).deep_freeze
12
12
  end
13
13
 
14
14
  private
15
15
 
16
- def evaluate(yml)
17
- YAML.load ERB.new(yml).result
16
+ def evaluate(yml, options={})
17
+ YAML.load ERB.new(yml).result_with_hash(options)
18
18
  end
19
19
 
20
20
  end
@@ -1,5 +1,5 @@
1
1
  module Rasti
2
2
  class App
3
- VERSION = '7.0.2'
3
+ VERSION = '7.1.0'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rasti-app
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.0.2
4
+ version: 7.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gabriel Naiman
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-07-03 00:00:00.000000000 Z
11
+ date: 2020-07-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: inflecto