fedux_org-stdlib 0.6.23 → 0.6.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/fedux_org_stdlib/file_template.rb +6 -6
- data/lib/fedux_org_stdlib/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 052fbbd99ff53b1610a8ce3a38865133ebbe6ccb
|
4
|
+
data.tar.gz: 9ab736dc5ec4123d0e55be0412a6b8258530519a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8cb094d70b952c326966b8b5405f71984e5fcd26bbe26054c43bf492ee7dfe2b6a23fd5255fba8875cf70febf2a71a92decfd96282a453a39e4735912db66d9a
|
7
|
+
data.tar.gz: ed0568b688313b18b4472175b41b7321ae3002397bc07f6661b64b87db02cee1faa4ef8c6a352d82ce5373c641b19f72d1e23e7d0c2ff95b2fab56be8263f6dd
|
data/Gemfile.lock
CHANGED
@@ -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.
|
16
|
-
#
|
17
|
-
# 2. $HOME/.<template_file>.
|
18
|
-
#
|
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
|
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))
|