uptriever 0.1.0 → 0.1.1

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: ef0c09b8b1aaaa5e6fbed152bb6f54f555afe79106a5cd96ac0e2181e16d1e34
4
- data.tar.gz: 352a763cc73f0875d60ecc2af9b06f4cb5d5dd644084e685f993e906cd9cda60
3
+ metadata.gz: f44598b07e4b7c130e49c2308587dcc675eda01710f9ad24ce2fb4284fcfea63
4
+ data.tar.gz: 98ba686f341d7cdb66c06db19b2c0fba4c871a9c8b92c760177a6fd8f51d673e
5
5
  SHA512:
6
- metadata.gz: 21345da63b6abb10004dad561afbe502da916ef5a357f7bd63962c00ad9d94adce8a7f8bfb8c01f34c12321464db8677c340df364d89f1b8afd9c595f67eca3c
7
- data.tar.gz: e2588b54b5ea1bbaa86f7b09ebe69491bfcaf547dc1e31f9f1b2b22bd9c7d1ff9ad9b821be1a0c4054ea299b9d51bb95e6a5fee453ccffb47dea7d7fbe10c335
6
+ metadata.gz: 7627037babef9668fd456b79bd09e34686e543871e51eff72e8126ebf08113f3cc79517fa2a62846f192651e34d2e36bebb30a8d8d574aeeb9eef67685fa1f3a
7
+ data.tar.gz: a74448f80ab208acbf768c31464f730ea9402e73a68630fc4f71f372b93f26b573890d329640213dedc2afe977b9b9e5acd78fc59929e9285614ee16201677dc
data/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  ## master
4
4
 
5
+ ## 0.1.1 (2024-07-25)
6
+
7
+ - Add ERB support to allow include dynamic fragments to configs. ([@palkan][])
8
+
5
9
  ## 0.1.0 (2024-07-24)
6
10
 
7
11
  - Initial release. ([@palkan][])
@@ -1,6 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require "yaml"
4
+ require "erb"
4
5
 
5
6
  module Uptriever
6
7
  class Config
@@ -40,7 +41,9 @@ module Uptriever
40
41
 
41
42
  private
42
43
 
43
- def config = @config ||= YAML.load_file(config_path)
44
+ def config
45
+ @config ||= YAML.load(ERB.new(File.read(config_path)).result)
46
+ end
44
47
 
45
48
  def unwrap_pages(items)
46
49
  items.flat_map do |item|
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Uptriever # :nodoc:
4
- VERSION = "0.1.0"
4
+ VERSION = "0.1.1"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: uptriever
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vladimir Dementyev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-07-24 00:00:00.000000000 Z
11
+ date: 2024-07-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: redcarpet
@@ -108,6 +108,20 @@ dependencies:
108
108
  - - ">="
109
109
  - !ruby/object:Gem::Version
110
110
  version: '0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: erb
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :runtime
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
111
125
  - !ruby/object:Gem::Dependency
112
126
  name: bundler
113
127
  requirement: !ruby/object:Gem::Requirement