lono 7.2.1 → 7.2.2

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: c17c7945bfc25050f4bba832aa84181fa3dbe5936b7091dbb9e229439ee791e7
4
- data.tar.gz: 9e70a07cf9b49154af4c35895e9168a8b044aeed73ed9ffab19d648727a2f5aa
3
+ metadata.gz: 2c7904cc5c721c5d971cbbb87469163d57b4864ecb8615a4ea8e0ff638abd416
4
+ data.tar.gz: 34737f1fa1a48ee2ecbb410a86435e82bfa1433c31b58ce66fcb467937cd3f05
5
5
  SHA512:
6
- metadata.gz: e8d2c8de40d9b10801fad58420696d8bc0ce40d831b84bd2d9a060c25295c8a0eba29084a12071c96c5347366811581ebc8004319b07be2049f6cc8811f12ca0
7
- data.tar.gz: '08fcdb268f588cf77f16c4c684940727533665c00e868a1f1c6251325a974987c92feeb68983e105288b21d47ff3db14bdad61e10a9fa84d66793f20b4e1dd07'
6
+ metadata.gz: 156b34c41daeab103d4f4c728b2502506bdb302a5c82acb6024e688902fd18f097b7beb0324d3bbc367261a4b04070149ca171d034e4b1b46f7d768f36095c22
7
+ data.tar.gz: d76ad3319c4832b13f27da14353af3f00ffa9528a4b40d2300605cc32ec5f129c73422487d111bf711091bdeefd1dab975810b34104a95b9ce83237cd399beca
@@ -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
 
@@ -1,4 +1,5 @@
1
1
  class Lono::Configset::Strategy::Dsl
2
2
  module Helpers
3
+ include Core
3
4
  end
4
5
  end
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Lono
2
- VERSION = "7.2.1"
2
+ VERSION = "7.2.2"
3
3
  end
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.1
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-27 00:00:00.000000000 Z
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