pragmater 14.2.0 → 14.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/README.adoc +2 -0
- data/lib/pragmater/container.rb +9 -12
- data/lib/pragmater/import.rb +1 -1
- data/pragmater.gemspec +5 -5
- data.tar.gz.sig +0 -0
- metadata +12 -12
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 02bacea7a0ace3e12fa01bbf21bf7c2d62bc2aede48bbeb833354f17bfb61e3f
|
4
|
+
data.tar.gz: c0dbd41ca4c6e76c72624017a25155b9c258b3bee9577010c4e099e567e340b8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 36994e9e5ae706a1aaada84f2a632f4db2bdd77ab99463537bccf4b5f5e17911ef50bcb699c84abc96f78d3a17b23f173291c48710b0907f138b52fcf1a73bf5
|
7
|
+
data.tar.gz: c75d2a540fea5d5eab2dbe93e039f937150b3b7c8116885b6aac0cb29abd1d7788e5aced6d8d02421b174fda845c5775d0d183ffc03b318c0939129320347ed6
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/README.adoc
CHANGED
@@ -193,6 +193,8 @@ down frozen string literal issues:
|
|
193
193
|
--debug=frozen-string-literal
|
194
194
|
....
|
195
195
|
|
196
|
+
Finally, you can use `--debug` (or `$DEBUG=true`) to force all raised exceptions to print to the console whether they are rescued or not. This best used in conjunction with the above.
|
197
|
+
|
196
198
|
Ruby 2.3.0 also added the following methods to the `String` class:
|
197
199
|
|
198
200
|
* `String#+@`: Answers a duplicated, mutable, string if not already frozen. Example:
|
data/lib/pragmater/container.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
require "cogger"
|
4
|
-
require "
|
4
|
+
require "containable"
|
5
5
|
require "etcher"
|
6
6
|
require "runcom"
|
7
7
|
require "spek"
|
@@ -9,26 +9,23 @@ require "spek"
|
|
9
9
|
module Pragmater
|
10
10
|
# Provides a global gem container for injection into other objects.
|
11
11
|
module Container
|
12
|
-
extend
|
12
|
+
extend Containable
|
13
13
|
|
14
|
-
register :configuration
|
14
|
+
register :configuration do
|
15
15
|
self[:defaults].add_loader(Etcher::Loaders::YAML.new(self[:xdg_config].active))
|
16
16
|
.then { |registry| Etcher.call registry }
|
17
17
|
end
|
18
18
|
|
19
|
-
register :defaults
|
19
|
+
register :defaults do
|
20
20
|
Etcher::Registry.new(contract: Configuration::Contract, model: Configuration::Model)
|
21
21
|
.add_loader(Etcher::Loaders::YAML.new(self[:defaults_path]))
|
22
22
|
end
|
23
23
|
|
24
|
-
register
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
register(:
|
29
|
-
register(:defaults_path, memoize: true) { Pathname(__dir__).join("configuration/defaults.yml") }
|
30
|
-
register(:xdg_config, memoize: true) { Runcom::Config.new "pragmater/configuration.yml" }
|
31
|
-
register(:logger, memoize: true) { Cogger.new id: :pragmater }
|
24
|
+
register(:specification) { Spek::Loader.call "#{__dir__}/../../pragmater.gemspec" }
|
25
|
+
register(:input) { self[:configuration].dup }
|
26
|
+
register(:defaults_path) { Pathname(__dir__).join("configuration/defaults.yml") }
|
27
|
+
register(:xdg_config) { Runcom::Config.new "pragmater/configuration.yml" }
|
28
|
+
register(:logger) { Cogger.new id: :pragmater }
|
32
29
|
register :kernel, Kernel
|
33
30
|
end
|
34
31
|
end
|
data/lib/pragmater/import.rb
CHANGED
data/pragmater.gemspec
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |spec|
|
4
4
|
spec.name = "pragmater"
|
5
|
-
spec.version = "14.
|
5
|
+
spec.version = "14.4.0"
|
6
6
|
spec.authors = ["Brooke Kuhlmann"]
|
7
7
|
spec.email = ["brooke@alchemists.io"]
|
8
8
|
spec.homepage = "https://alchemists.io/projects/pragmater"
|
@@ -24,13 +24,13 @@ Gem::Specification.new do |spec|
|
|
24
24
|
|
25
25
|
spec.required_ruby_version = "~> 3.3"
|
26
26
|
spec.add_dependency "cogger", "~> 0.15"
|
27
|
-
spec.add_dependency "
|
27
|
+
spec.add_dependency "containable", "~> 0.0"
|
28
28
|
spec.add_dependency "dry-schema", "~> 1.13"
|
29
|
-
spec.add_dependency "etcher", "~> 1.
|
30
|
-
spec.add_dependency "infusible", "~> 3.
|
29
|
+
spec.add_dependency "etcher", "~> 1.3"
|
30
|
+
spec.add_dependency "infusible", "~> 3.5"
|
31
31
|
spec.add_dependency "refinements", "~> 12.1"
|
32
32
|
spec.add_dependency "runcom", "~> 11.0"
|
33
|
-
spec.add_dependency "sod", "~> 0.
|
33
|
+
spec.add_dependency "sod", "~> 0.8"
|
34
34
|
spec.add_dependency "spek", "~> 3.0"
|
35
35
|
spec.add_dependency "zeitwerk", "~> 2.6"
|
36
36
|
|
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pragmater
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 14.
|
4
|
+
version: 14.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brooke Kuhlmann
|
@@ -35,7 +35,7 @@ cert_chain:
|
|
35
35
|
3n5C8/6Zh9DYTkpcwPSuIfAga6wf4nXc9m6JAw8AuMLaiWN/r/2s4zJsUHYERJEu
|
36
36
|
gZGm4JqtuSg8pYjPeIJxS960owq+SfuC+jxqmRA54BisFCv/0VOJi7tiJVY=
|
37
37
|
-----END CERTIFICATE-----
|
38
|
-
date: 2024-
|
38
|
+
date: 2024-04-03 00:00:00.000000000 Z
|
39
39
|
dependencies:
|
40
40
|
- !ruby/object:Gem::Dependency
|
41
41
|
name: cogger
|
@@ -52,19 +52,19 @@ dependencies:
|
|
52
52
|
- !ruby/object:Gem::Version
|
53
53
|
version: '0.15'
|
54
54
|
- !ruby/object:Gem::Dependency
|
55
|
-
name:
|
55
|
+
name: containable
|
56
56
|
requirement: !ruby/object:Gem::Requirement
|
57
57
|
requirements:
|
58
58
|
- - "~>"
|
59
59
|
- !ruby/object:Gem::Version
|
60
|
-
version: '0.
|
60
|
+
version: '0.0'
|
61
61
|
type: :runtime
|
62
62
|
prerelease: false
|
63
63
|
version_requirements: !ruby/object:Gem::Requirement
|
64
64
|
requirements:
|
65
65
|
- - "~>"
|
66
66
|
- !ruby/object:Gem::Version
|
67
|
-
version: '0.
|
67
|
+
version: '0.0'
|
68
68
|
- !ruby/object:Gem::Dependency
|
69
69
|
name: dry-schema
|
70
70
|
requirement: !ruby/object:Gem::Requirement
|
@@ -85,28 +85,28 @@ dependencies:
|
|
85
85
|
requirements:
|
86
86
|
- - "~>"
|
87
87
|
- !ruby/object:Gem::Version
|
88
|
-
version: '1.
|
88
|
+
version: '1.3'
|
89
89
|
type: :runtime
|
90
90
|
prerelease: false
|
91
91
|
version_requirements: !ruby/object:Gem::Requirement
|
92
92
|
requirements:
|
93
93
|
- - "~>"
|
94
94
|
- !ruby/object:Gem::Version
|
95
|
-
version: '1.
|
95
|
+
version: '1.3'
|
96
96
|
- !ruby/object:Gem::Dependency
|
97
97
|
name: infusible
|
98
98
|
requirement: !ruby/object:Gem::Requirement
|
99
99
|
requirements:
|
100
100
|
- - "~>"
|
101
101
|
- !ruby/object:Gem::Version
|
102
|
-
version: '3.
|
102
|
+
version: '3.5'
|
103
103
|
type: :runtime
|
104
104
|
prerelease: false
|
105
105
|
version_requirements: !ruby/object:Gem::Requirement
|
106
106
|
requirements:
|
107
107
|
- - "~>"
|
108
108
|
- !ruby/object:Gem::Version
|
109
|
-
version: '3.
|
109
|
+
version: '3.5'
|
110
110
|
- !ruby/object:Gem::Dependency
|
111
111
|
name: refinements
|
112
112
|
requirement: !ruby/object:Gem::Requirement
|
@@ -141,14 +141,14 @@ dependencies:
|
|
141
141
|
requirements:
|
142
142
|
- - "~>"
|
143
143
|
- !ruby/object:Gem::Version
|
144
|
-
version: '0.
|
144
|
+
version: '0.8'
|
145
145
|
type: :runtime
|
146
146
|
prerelease: false
|
147
147
|
version_requirements: !ruby/object:Gem::Requirement
|
148
148
|
requirements:
|
149
149
|
- - "~>"
|
150
150
|
- !ruby/object:Gem::Version
|
151
|
-
version: '0.
|
151
|
+
version: '0.8'
|
152
152
|
- !ruby/object:Gem::Dependency
|
153
153
|
name: spek
|
154
154
|
requirement: !ruby/object:Gem::Requirement
|
@@ -239,7 +239,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
239
239
|
- !ruby/object:Gem::Version
|
240
240
|
version: '0'
|
241
241
|
requirements: []
|
242
|
-
rubygems_version: 3.5.
|
242
|
+
rubygems_version: 3.5.7
|
243
243
|
signing_key:
|
244
244
|
specification_version: 4
|
245
245
|
summary: A command line interface for managing pragma comments.
|
metadata.gz.sig
CHANGED
Binary file
|