pragmater 10.1.0 → 10.2.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 +1 -5
- data/README.adoc +0 -7
- data/lib/pragmater/cli/parsers/core.rb +1 -1
- data/lib/pragmater/cli/shell.rb +1 -1
- data/lib/pragmater/container.rb +2 -3
- data/pragmater.gemspec +3 -4
- data.tar.gz.sig +0 -0
- metadata +19 -5
- metadata.gz.sig +4 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e850ef6208909e8c0e10f29ab568f5a5a5b152a06ac7da3ad8e4014573135b28
|
4
|
+
data.tar.gz: 311cd0d6b1c69d4f4bed97fd42b559d869a1f17cc7840674287388648f8109ff
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1242b52e7c62cec08a57cc68d6452cb65006a1f133eb9446bfe173dec937224781f2653053924f63b07e980640ce74117284f1a86b3cb698de6132365745a3d7
|
7
|
+
data.tar.gz: 5db8a0c8d3260dc1bfbdf63538e68b56f0e146830b5d2271104c566d3d8d06f0d9ccba36c72b46f2fe92676e03da0d36d37583dc2c3cc058ea90586d0a136f54
|
checksums.yaml.gz.sig
CHANGED
@@ -1,5 +1 @@
|
|
1
|
-
|
2
|
-
>��Aޱ
|
3
|
-
Xw��-�k��{6�3D�/
|
4
|
-
��c�$P���w���X�G'�� �*$/o��;A鄨��S��IR�
|
5
|
-
��G�uB=��^<Dba��m
|
1
|
+
Tr����7�9�!돈��H�l�p�^�r�ӹ{R��@i�x��y�G��$Ѥ�sc=U���5k5����q�-Sn���-�U��T�g�� ��)���CNP&����5&8�́[3U4�����Q���W@/q�t;�#+�JGew�q��,_��_���Z��tH^�-�I��r�}�Ƭ��A�^�Ĺ�*�8M?y�\���>,o=x\8�+�!jR�f�e�B� ):�kh��B%��`��0{r`�-�IH4��
|
data/README.adoc
CHANGED
@@ -4,13 +4,6 @@
|
|
4
4
|
|
5
5
|
= Pragmater
|
6
6
|
|
7
|
-
[link=http://badge.fury.io/rb/pragmater]
|
8
|
-
image::https://badge.fury.io/rb/pragmater.svg[Gem Version]
|
9
|
-
[link=https://www.alchemists.io/projects/code_quality]
|
10
|
-
image::https://img.shields.io/badge/code_style-alchemists-brightgreen.svg[Alchemists Style Guide]
|
11
|
-
[link=https://circleci.com/gh/bkuhlmann/pragmater]
|
12
|
-
image::https://circleci.com/gh/bkuhlmann/pragmater.svg?style=svg[Circle CI Status]
|
13
|
-
|
14
7
|
A command line interface that does one thing well by being entirely focused on managing/formatting
|
15
8
|
source file https://en.wikipedia.org/wiki/Directive_(programming)[directive pragmas] (a.k.a. _magic
|
16
9
|
comments_). Examples:
|
data/lib/pragmater/cli/shell.rb
CHANGED
@@ -26,7 +26,7 @@ module Pragmater
|
|
26
26
|
case configuration
|
27
27
|
in action_config: Symbol => action then config action
|
28
28
|
in {action_insert: true} | {action_remove: true} then run configuration
|
29
|
-
in action_version: true then logger.info {
|
29
|
+
in action_version: true then logger.info { specification.labeled_version }
|
30
30
|
else usage
|
31
31
|
end
|
32
32
|
end
|
data/lib/pragmater/container.rb
CHANGED
@@ -3,16 +3,15 @@
|
|
3
3
|
require "dry-container"
|
4
4
|
require "logger"
|
5
5
|
require "pastel"
|
6
|
+
require "spek"
|
6
7
|
|
7
8
|
module Pragmater
|
8
9
|
# Provides a global gem container for injection into other objects.
|
9
10
|
module Container
|
10
11
|
extend Dry::Container::Mixin
|
11
12
|
|
12
|
-
SPEC_PATH = "#{__dir__}/../../pragmater.gemspec".freeze
|
13
|
-
|
14
13
|
register(:configuration) { Configuration::Loader.call }
|
15
|
-
register(:specification) {
|
14
|
+
register(:specification) { Spek::Loader.call "#{__dir__}/../../pragmater.gemspec" }
|
16
15
|
register(:colorizer) { Pastel.new enabled: $stdout.tty? }
|
17
16
|
register(:kernel) { Kernel }
|
18
17
|
|
data/pragmater.gemspec
CHANGED
@@ -2,8 +2,7 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |spec|
|
4
4
|
spec.name = "pragmater"
|
5
|
-
spec.version = "10.
|
6
|
-
spec.platform = Gem::Platform::RUBY
|
5
|
+
spec.version = "10.2.0"
|
7
6
|
spec.authors = ["Brooke Kuhlmann"]
|
8
7
|
spec.email = ["brooke@alchemists.io"]
|
9
8
|
spec.homepage = "https://www.alchemists.io/projects/pragmater"
|
@@ -26,12 +25,12 @@ Gem::Specification.new do |spec|
|
|
26
25
|
spec.add_dependency "dry-container", "~> 0.9"
|
27
26
|
spec.add_dependency "pastel", "~> 0.8"
|
28
27
|
spec.add_dependency "refinements", "~> 9.1"
|
29
|
-
spec.add_dependency "runcom", "~> 8.
|
28
|
+
spec.add_dependency "runcom", "~> 8.2"
|
29
|
+
spec.add_dependency "spek", "~> 0.0"
|
30
30
|
spec.add_dependency "zeitwerk", "~> 2.5"
|
31
31
|
|
32
32
|
spec.bindir = "exe"
|
33
33
|
spec.executables << "pragmater"
|
34
34
|
spec.extra_rdoc_files = Dir["README*", "LICENSE*"]
|
35
35
|
spec.files = Dir["*.gemspec", "lib/**/*"]
|
36
|
-
spec.require_paths = ["lib"]
|
37
36
|
end
|
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: 10.
|
4
|
+
version: 10.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brooke Kuhlmann
|
@@ -28,7 +28,7 @@ cert_chain:
|
|
28
28
|
lkHilIrX69jq8wMPpBhlaw2mRmeSL50Wv5u6xVBvOHhXFSP1crXM95vfLhLyRYod
|
29
29
|
W2A=
|
30
30
|
-----END CERTIFICATE-----
|
31
|
-
date: 2022-
|
31
|
+
date: 2022-02-06 00:00:00.000000000 Z
|
32
32
|
dependencies:
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: dry-container
|
@@ -78,14 +78,28 @@ dependencies:
|
|
78
78
|
requirements:
|
79
79
|
- - "~>"
|
80
80
|
- !ruby/object:Gem::Version
|
81
|
-
version: '8.
|
81
|
+
version: '8.2'
|
82
82
|
type: :runtime
|
83
83
|
prerelease: false
|
84
84
|
version_requirements: !ruby/object:Gem::Requirement
|
85
85
|
requirements:
|
86
86
|
- - "~>"
|
87
87
|
- !ruby/object:Gem::Version
|
88
|
-
version: '8.
|
88
|
+
version: '8.2'
|
89
|
+
- !ruby/object:Gem::Dependency
|
90
|
+
name: spek
|
91
|
+
requirement: !ruby/object:Gem::Requirement
|
92
|
+
requirements:
|
93
|
+
- - "~>"
|
94
|
+
- !ruby/object:Gem::Version
|
95
|
+
version: '0.0'
|
96
|
+
type: :runtime
|
97
|
+
prerelease: false
|
98
|
+
version_requirements: !ruby/object:Gem::Requirement
|
99
|
+
requirements:
|
100
|
+
- - "~>"
|
101
|
+
- !ruby/object:Gem::Version
|
102
|
+
version: '0.0'
|
89
103
|
- !ruby/object:Gem::Dependency
|
90
104
|
name: zeitwerk
|
91
105
|
requirement: !ruby/object:Gem::Requirement
|
@@ -160,7 +174,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
160
174
|
- !ruby/object:Gem::Version
|
161
175
|
version: '0'
|
162
176
|
requirements: []
|
163
|
-
rubygems_version: 3.3.
|
177
|
+
rubygems_version: 3.3.6
|
164
178
|
signing_key:
|
165
179
|
specification_version: 4
|
166
180
|
summary: A command line interface for managing/formatting source file pragma comments.
|
metadata.gz.sig
CHANGED
@@ -1 +1,4 @@
|
|
1
|
-
�
|
1
|
+
煹����A��D�Y���S��iS���pR���C^ WǠM:�vdV
|
2
|
+
���u��N'��r���3{e��°��PI��h&��q\��K
|
3
|
+
�Ψ��p{Cȕ"�QlR����5���5�IJE{�s�E�K�F��z?��ˈ61?�l1T�7�6atG
|
4
|
+
��`4b�d�@�i^Ԍ11[xK^~e�w��z�������3�����Kp����k��S��w��.����
|