configature 0.3.7 → 0.4.0
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 +19 -16
- data/VERSION +1 -1
- data/configature.gemspec +2 -0
- data/lib/configature/stamper.rb +7 -3
- metadata +18 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ee6c275a728530ed00a099806fa3f85533c31529ff92cd9db94368c57c8708c2
|
4
|
+
data.tar.gz: cb23bbc46676159334bfc820f5faad62a9d824c31f126393dd1f7ec2854433ed
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 758526740b609c06fd97ac288204c6c9b05b45bf5ad55c36f3cdc0d4fbede29eff9ff8a279ef33d9c2bca2c5166aa80a7c3172716df1082ff1e487da340fdae2
|
7
|
+
data.tar.gz: 6d5189acd62a10217b2faeb3b33a3ee463f8740057e2eecd58a01eab6a7a057538308f96e152608c823800e5d11988b6ace0539b7b2525ff36ecd40f2a3c9ae3
|
data/Gemfile.lock
CHANGED
@@ -1,28 +1,31 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
configature (0.3.
|
4
|
+
configature (0.3.8)
|
5
|
+
ostruct
|
5
6
|
|
6
7
|
GEM
|
7
8
|
remote: https://rubygems.org/
|
8
9
|
specs:
|
9
|
-
diff-lcs (1.
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
rspec-
|
14
|
-
rspec-
|
15
|
-
|
16
|
-
|
17
|
-
|
10
|
+
diff-lcs (1.6.2)
|
11
|
+
ostruct (0.6.1)
|
12
|
+
rake (13.3.0)
|
13
|
+
rspec (3.13.1)
|
14
|
+
rspec-core (~> 3.13.0)
|
15
|
+
rspec-expectations (~> 3.13.0)
|
16
|
+
rspec-mocks (~> 3.13.0)
|
17
|
+
rspec-core (3.13.5)
|
18
|
+
rspec-support (~> 3.13.0)
|
19
|
+
rspec-expectations (3.13.5)
|
18
20
|
diff-lcs (>= 1.2.0, < 2.0)
|
19
|
-
rspec-support (~> 3.
|
20
|
-
rspec-mocks (3.
|
21
|
+
rspec-support (~> 3.13.0)
|
22
|
+
rspec-mocks (3.13.5)
|
21
23
|
diff-lcs (>= 1.2.0, < 2.0)
|
22
|
-
rspec-support (~> 3.
|
23
|
-
rspec-support (3.
|
24
|
+
rspec-support (~> 3.13.0)
|
25
|
+
rspec-support (3.13.5)
|
24
26
|
|
25
27
|
PLATFORMS
|
28
|
+
arm64-darwin-24
|
26
29
|
ruby
|
27
30
|
|
28
31
|
DEPENDENCIES
|
@@ -33,7 +36,7 @@ DEPENDENCIES
|
|
33
36
|
rspec-core
|
34
37
|
|
35
38
|
RUBY VERSION
|
36
|
-
ruby 3.
|
39
|
+
ruby 3.3.4p94
|
37
40
|
|
38
41
|
BUNDLED WITH
|
39
|
-
2.
|
42
|
+
2.5.23
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.4.0
|
data/configature.gemspec
CHANGED
@@ -32,6 +32,8 @@ Gem::Specification.new do |spec|
|
|
32
32
|
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
33
33
|
end
|
34
34
|
|
35
|
+
spec.add_dependency 'ostruct'
|
36
|
+
|
35
37
|
spec.bindir = 'exe'
|
36
38
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
37
39
|
spec.require_paths = %w[ lib ]
|
data/lib/configature/stamper.rb
CHANGED
@@ -4,9 +4,13 @@ class Configature::Stamper
|
|
4
4
|
end
|
5
5
|
|
6
6
|
def examples
|
7
|
-
map =
|
7
|
+
map = (
|
8
|
+
Dir.glob(File.expand_path('*.example', @dir)).map do |source|
|
8
9
|
[ source, source.delete_suffix('.example') ]
|
9
|
-
|
10
|
+
end + Dir.glob(File.expand_path('*.example.*', @dir)).map do |source|
|
11
|
+
[ source, source.sub(/\.example\./, '.') ]
|
12
|
+
end
|
13
|
+
).to_h
|
10
14
|
|
11
15
|
if (block_given?)
|
12
16
|
map.each do |k,v|
|
@@ -39,7 +43,7 @@ class Configature::Stamper
|
|
39
43
|
) if (block_given?)
|
40
44
|
else
|
41
45
|
FileUtils.copy(source, target)
|
42
|
-
|
46
|
+
|
43
47
|
yield(
|
44
48
|
source,
|
45
49
|
target,
|
metadata
CHANGED
@@ -1,15 +1,28 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: configature
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Scott Tadman
|
8
|
-
autorequire:
|
9
8
|
bindir: exe
|
10
9
|
cert_chain: []
|
11
|
-
date:
|
12
|
-
dependencies:
|
10
|
+
date: 2025-08-20 00:00:00.000000000 Z
|
11
|
+
dependencies:
|
12
|
+
- !ruby/object:Gem::Dependency
|
13
|
+
name: ostruct
|
14
|
+
requirement: !ruby/object:Gem::Requirement
|
15
|
+
requirements:
|
16
|
+
- - ">="
|
17
|
+
- !ruby/object:Gem::Version
|
18
|
+
version: '0'
|
19
|
+
type: :runtime
|
20
|
+
prerelease: false
|
21
|
+
version_requirements: !ruby/object:Gem::Requirement
|
22
|
+
requirements:
|
23
|
+
- - ">="
|
24
|
+
- !ruby/object:Gem::Version
|
25
|
+
version: '0'
|
13
26
|
description: Assists in the creation of config files from example templates and can
|
14
27
|
identify when some customization is necessary.
|
15
28
|
email:
|
@@ -48,7 +61,6 @@ metadata:
|
|
48
61
|
homepage_uri: https://postageapp.com/
|
49
62
|
source_code_uri: https://github.com/postageapp/configuature
|
50
63
|
changelog_uri: https://github.com/postageapp/configuature
|
51
|
-
post_install_message:
|
52
64
|
rdoc_options: []
|
53
65
|
require_paths:
|
54
66
|
- lib
|
@@ -63,8 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
63
75
|
- !ruby/object:Gem::Version
|
64
76
|
version: '0'
|
65
77
|
requirements: []
|
66
|
-
rubygems_version: 3.2
|
67
|
-
signing_key:
|
78
|
+
rubygems_version: 3.6.2
|
68
79
|
specification_version: 4
|
69
80
|
summary: Configuration file auto-generator
|
70
81
|
test_files: []
|