pragmater 14.3.0 → 14.4.0

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: 7ebf5d206270403ac91a9024721fae0abf1ff7df45e46045e96aaf1721934137
4
- data.tar.gz: 2a6fcb98cfc4a1af1ff42f5422a5f07d71d1612007d499b8d763dfd1d2e5e117
3
+ metadata.gz: 02bacea7a0ace3e12fa01bbf21bf7c2d62bc2aede48bbeb833354f17bfb61e3f
4
+ data.tar.gz: c0dbd41ca4c6e76c72624017a25155b9c258b3bee9577010c4e099e567e340b8
5
5
  SHA512:
6
- metadata.gz: 75e2de41781dfe6d157afaa05c023c04d6973adbbe62ad57bb6fb36cb190556671e63974bd0816147e4fb53b5ce07d761b1ab80fe67fe01b036c47d5f9f1c931
7
- data.tar.gz: d3f0bfc7ff3035b1c62dc66295a71d08ed5fa0bdc01c61e5195f8d56beb03839983269bc6c1f2ea4579936e5ad1a4999bf3b0b81224b6471d07a2106324466d7
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:
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require "cogger"
4
- require "dry-container"
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 Dry::Container::Mixin
12
+ extend Containable
13
13
 
14
- register :configuration, memoize: true do
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, memoize: true do
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 :specification, memoize: true do
25
- Spek::Loader.call "#{__dir__}/../../pragmater.gemspec"
26
- end
27
-
28
- register(:input, memoize: true) { self[:configuration].dup }
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
@@ -3,5 +3,5 @@
3
3
  require "infusible"
4
4
 
5
5
  module Pragmater
6
- Import = Infusible.with Container
6
+ Import = Infusible[Container]
7
7
  end
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.3.0"
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 "dry-container", "~> 0.11"
27
+ spec.add_dependency "containable", "~> 0.0"
28
28
  spec.add_dependency "dry-schema", "~> 1.13"
29
- spec.add_dependency "etcher", "~> 1.0"
30
- spec.add_dependency "infusible", "~> 3.4"
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.4"
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.3.0
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-03-27 00:00:00.000000000 Z
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: dry-container
55
+ name: containable
56
56
  requirement: !ruby/object:Gem::Requirement
57
57
  requirements:
58
58
  - - "~>"
59
59
  - !ruby/object:Gem::Version
60
- version: '0.11'
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.11'
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.0'
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.0'
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.4'
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.4'
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.4'
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.4'
151
+ version: '0.8'
152
152
  - !ruby/object:Gem::Dependency
153
153
  name: spek
154
154
  requirement: !ruby/object:Gem::Requirement
metadata.gz.sig CHANGED
Binary file