lono 7.2.1 → 7.2.2
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/CHANGELOG.md +3 -0
- data/lib/lono/configset/strategy/dsl/helpers.rb +1 -0
- data/lib/lono/configset/strategy/dsl/helpers/core.rb +13 -0
- data/lib/lono/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2c7904cc5c721c5d971cbbb87469163d57b4864ecb8615a4ea8e0ff638abd416
|
4
|
+
data.tar.gz: 34737f1fa1a48ee2ecbb410a86435e82bfa1433c31b58ce66fcb467937cd3f05
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 156b34c41daeab103d4f4c728b2502506bdb302a5c82acb6024e688902fd18f097b7beb0324d3bbc367261a4b04070149ca171d034e4b1b46f7d768f36095c22
|
7
|
+
data.tar.gz: d76ad3319c4832b13f27da14353af3f00ffa9528a4b40d2300605cc32ec5f129c73422487d111bf711091bdeefd1dab975810b34104a95b9ce83237cd399beca
|
data/CHANGELOG.md
CHANGED
@@ -3,6 +3,9 @@
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
4
4
|
This project *tries* to adhere to [Semantic Versioning](http://semver.org/), even before v1.0.
|
5
5
|
|
6
|
+
## [7.2.2]
|
7
|
+
- #52 configset: content_file helper
|
8
|
+
|
6
9
|
## [7.2.1]
|
7
10
|
- #51 fix extensions helpers loading and cleanup
|
8
11
|
|
@@ -0,0 +1,13 @@
|
|
1
|
+
module Lono::Configset::Strategy::Dsl::Helpers
|
2
|
+
module Core
|
3
|
+
def content_file(path)
|
4
|
+
content_path = "#{@root}/lib/content"
|
5
|
+
file = "#{content_path}/#{path}"
|
6
|
+
if File.exist?(file)
|
7
|
+
IO.read(file)
|
8
|
+
else
|
9
|
+
"File not found: #{file}"
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
data/lib/lono/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lono
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 7.2.
|
4
|
+
version: 7.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tung Nguyen
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-02-
|
11
|
+
date: 2020-02-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -505,6 +505,7 @@ files:
|
|
505
505
|
- lib/lono/configset/strategy/base.rb
|
506
506
|
- lib/lono/configset/strategy/dsl.rb
|
507
507
|
- lib/lono/configset/strategy/dsl/helpers.rb
|
508
|
+
- lib/lono/configset/strategy/dsl/helpers/core.rb
|
508
509
|
- lib/lono/configset/strategy/dsl/syntax.rb
|
509
510
|
- lib/lono/configset/strategy/erb.rb
|
510
511
|
- lib/lono/configset/strategy/erb/helpers.rb
|