fedux_org-stdlib 0.6.23 → 0.6.25

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
  SHA1:
3
- metadata.gz: b41b05bdb8bfd2b58cb9934905750b608a6fe1a2
4
- data.tar.gz: 9268708b36967f1756ee5131d08e7bffbee32833
3
+ metadata.gz: 052fbbd99ff53b1610a8ce3a38865133ebbe6ccb
4
+ data.tar.gz: 9ab736dc5ec4123d0e55be0412a6b8258530519a
5
5
  SHA512:
6
- metadata.gz: fd30198edf16f42727e8cfdd7f5bb1abdf9904d9326366c899c913ac9b154b0fd9779fa4d9003fa305af4c7afbe14419441a65bb143d1fd0191dee8f2806c80c
7
- data.tar.gz: 9e04281d393f6fd512335008b11c8514b1b51b315a2b04695bfc371a610888179cd79afeb7957433205ec0c74af03d83a60501577053928626e76720ebae7578
6
+ metadata.gz: 8cb094d70b952c326966b8b5405f71984e5fcd26bbe26054c43bf492ee7dfe2b6a23fd5255fba8875cf70febf2a71a92decfd96282a453a39e4735912db66d9a
7
+ data.tar.gz: ed0568b688313b18b4472175b41b7321ae3002397bc07f6661b64b87db02cee1faa4ef8c6a352d82ce5373c641b19f72d1e23e7d0c2ff95b2fab56be8263f6dd
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- fedux_org-stdlib (0.6.22)
4
+ fedux_org-stdlib (0.6.24)
5
5
  activesupport
6
6
 
7
7
  GEM
@@ -12,11 +12,10 @@ module FeduxOrgStdlib
12
12
  #
13
13
  # By default it will look for a suitable template file in the given order:
14
14
  #
15
- # 1. $HOME/.config/<application_name>/<template_file>.yaml
16
- # 2. $HOME/.<application_name>/<template_file>.yaml
17
- # 2. $HOME/.<template_file>.yaml
18
- # 2. $HOME/.<template_file>rc
19
- # 3. /etc/.<application_name>/<template_file>.yaml
15
+ # 1. <current working directory>/templates/<template_file>.tt
16
+ # 1. $HOME/.config/<application_name>/templates/<template_file>.tt
17
+ # 2. $HOME/.<application_name>/templates/<template_file>.tt
18
+ # 3. /etc/<application_name>/templates/<template_file>.tt
20
19
  #
21
20
  # Please keep in mind
22
21
  #
@@ -92,7 +91,7 @@ module FeduxOrgStdlib
92
91
  # @return [String]
93
92
  # The path to the preferred template file
94
93
  def preferred_template_file
95
- _allowed_template_file_paths.first
94
+ _allowed_template_file_paths[1]
96
95
  end
97
96
 
98
97
  def content
@@ -162,6 +161,7 @@ module FeduxOrgStdlib
162
161
  # file.
163
162
  def _allowed_template_file_paths
164
163
  paths = []
164
+ paths << ::File.expand_path(::File.join(Dir.getwd, 'templates', _template_file))
165
165
  paths << ::File.expand_path(::File.join('~', '.config', _application_name, 'templates', _template_file))
166
166
  paths << ::File.expand_path(::File.join('~', format('.%s', _application_name), 'templates', _template_file))
167
167
  paths << ::File.expand_path(::File.join('/etc', _application_name, 'templates', _template_file))
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
2
  # FeduxOrgStdlib
3
3
  module FeduxOrgStdlib
4
- VERSION = '0.6.23'
4
+ VERSION = '0.6.25'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fedux_org-stdlib
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.23
4
+ version: 0.6.25
5
5
  platform: ruby
6
6
  authors:
7
7
  - Max Meyer