conifer 0.2.1 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/conifer.rb +2 -1
- data/lib/conifer/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e65067414f6a9fcaf9bde6230138b19174617dd99c94368d0bdacbfbb5b9a49f
|
4
|
+
data.tar.gz: 3a307793593c2d0d07de4cd8ee9decfb10d72bec471343dec51216a4b38dfa8a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 77d67b7c3bc8a97cd4f40b55db432b499c7a496adf7638f7b1dc14f6636c4efefcbfabc73b736347e1dcb591b0579fcb6d5180b8893cc3ab2f6bde9d375ce765
|
7
|
+
data.tar.gz: 34ac10cf5e9c5c8d3f92ee867f8639ab54fe2e2e8944fe76c0f05a035904db60b1d3b7907dbcee74ac7b313246e4425c2355eaa1f2fa3d0ce9f44dc46ad393cd
|
data/Gemfile.lock
CHANGED
data/lib/conifer.rb
CHANGED
@@ -10,10 +10,11 @@ module Conifer
|
|
10
10
|
|
11
11
|
class_methods do
|
12
12
|
def conifer(file, prefix: nil, dir: nil, method: ::File.basename(file.to_s, '.yml'), singleton: false)
|
13
|
+
directory = dir || ::File.expand_path(::File.dirname(caller_locations.first.path))
|
14
|
+
|
13
15
|
body = proc do
|
14
16
|
return instance_variable_get("@conifer_#{method}") if instance_variable_defined?("@conifer_#{method}")
|
15
17
|
|
16
|
-
directory = dir || ::File.expand_path(::File.dirname(caller_locations.first.path))
|
17
18
|
instance_variable_set "@conifer_#{method}", Conifer::File.new(file, prefix: prefix, dir: directory)
|
18
19
|
end
|
19
20
|
|
data/lib/conifer/version.rb
CHANGED