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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c68dba617d8e0545cddd1cc5755edfadedb01a37715c6d4275b9f2eef5867c88
4
- data.tar.gz: 97194015c550ae2aaed5ee8c6b5ce0190e5de7699729b0239d3ae5a4ad59121c
3
+ metadata.gz: e65067414f6a9fcaf9bde6230138b19174617dd99c94368d0bdacbfbb5b9a49f
4
+ data.tar.gz: 3a307793593c2d0d07de4cd8ee9decfb10d72bec471343dec51216a4b38dfa8a
5
5
  SHA512:
6
- metadata.gz: 6f213d2a3e0ce582043e58ffb5a0a583c9d7ccbf90308004e97c4e4087d3cdd9277247a8a141e01c0a04b70bbe1082e8265fdd85609346ef7014b522f8c507ca
7
- data.tar.gz: ec6b46ea5d9ff44582da67cad8707639c9b99639e95215ac51144228d566738fde202708c94040b2fbd89e33cb8ad605dbf456180b8f9d95c5ea1fa7a0e1062d
6
+ metadata.gz: 77d67b7c3bc8a97cd4f40b55db432b499c7a496adf7638f7b1dc14f6636c4efefcbfabc73b736347e1dcb591b0579fcb6d5180b8893cc3ab2f6bde9d375ce765
7
+ data.tar.gz: 34ac10cf5e9c5c8d3f92ee867f8639ab54fe2e2e8944fe76c0f05a035904db60b1d3b7907dbcee74ac7b313246e4425c2355eaa1f2fa3d0ce9f44dc46ad393cd
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- conifer (0.2.1)
4
+ conifer (0.3.0)
5
5
  activesupport (>= 5.0.0)
6
6
 
7
7
  GEM
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
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Conifer
4
- VERSION = '0.2.1'
4
+ VERSION = '0.3.0'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: conifer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hamed Asghari