spek 0.4.0 → 0.6.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: a0d110b06f870184e5a72b35e8228a3a00438cc500945d89ef76f04d92b8df37
4
- data.tar.gz: c7c1db38a1a5a47b08755fbdc0c1a40893d6f0ce0ae6ccf9eb731a9da228a923
3
+ metadata.gz: c8b14372b605c6d8edbb25fc49bac85b5a2b26d711f4c8d220c56531112f88f3
4
+ data.tar.gz: 7d413fb0082964e481e1a00c2a83cafeef10182c7338119759a9f635fdc492bf
5
5
  SHA512:
6
- metadata.gz: c9355a3853bda314f7f420e3281ecd5623fd34444e99b3b1043947ff60894b0a6232d43bb94d6328e233106687b9739ae13532f061bda5da0c92bad26f76bd99
7
- data.tar.gz: 50c84bda737737e77ebfc4f246ea505824294e37b7adfa415892cae3876ea23901ae87973479f6cb69b6df1eef68d2758fbf6e8e2bdf2720ce1ba5c39e2cf27c
6
+ metadata.gz: 397c36961414d73482c009109a460602543d1753cca82bf0302825ca243101fc990fb279cf03ea1ec43ecdeb6d8bbc169487bccd8210300c88a3ff437357dabf
7
+ data.tar.gz: f0e625ec42187a30d8d9b4892dda4eeccd69f6a95049502a49d52ce798d71e3432f6be2f5e2fffcd12b3bf305997a204c81db6631ecc2a18fc865f78631a66b6
checksums.yaml.gz.sig CHANGED
Binary file
data/README.adoc CHANGED
@@ -116,6 +116,15 @@ This makes it easier to automate the updating of your gem specification version
116
116
 
117
117
  == Development
118
118
 
119
+ To contribute, run:
120
+
121
+ [source,bash]
122
+ ----
123
+ git clone https://github.com/bkuhlmann/spek
124
+ cd spek
125
+ bin/setup
126
+ ----
127
+
119
128
  You can also use the IRB console for direct access to all objects:
120
129
 
121
130
  [source,bash]
data/lib/spek/finder.rb CHANGED
@@ -10,7 +10,7 @@ module Spek
10
10
  @presenter = presenter
11
11
  end
12
12
 
13
- def call(name) = client.find_all_by_name(name).map { |record| presenter.new record }
13
+ def call(name) = client.find_all_by_name(name).map { |record| presenter.with_default record }
14
14
 
15
15
  private
16
16
 
data/lib/spek/loader.rb CHANGED
@@ -10,7 +10,7 @@ module Spek
10
10
  @presenter = presenter
11
11
  end
12
12
 
13
- def call(path) = client.load(path.to_s).then { |record| presenter.new record }
13
+ def call(path) = client.load(path.to_s).then { |record| presenter.with_default record }
14
14
 
15
15
  private
16
16
 
@@ -31,14 +31,18 @@ module Spek
31
31
  summary
32
32
  ] => :record
33
33
 
34
+ def self.with_default record = nil, model: Gem::Specification
35
+ record && record.is_a?(model) ? new(record) : new(model.new)
36
+ end
37
+
34
38
  def initialize record
35
39
  @record = record
36
40
  end
37
41
 
38
- def allowed_push_key = metadata.fetch "allowed_push_key", "rubygems_api_key"
39
-
40
42
  def allowed_push_host = metadata.fetch "allowed_push_host", ::Gem::DEFAULT_HOST
41
43
 
44
+ def allowed_push_key = metadata.fetch "allowed_push_key", "rubygems_api_key"
45
+
42
46
  def authors = Array record.author
43
47
 
44
48
  def certificate_chain = Array(record.cert_chain).map { |path| Pathname path.to_s }
@@ -57,13 +61,13 @@ module Spek
57
61
 
58
62
  def labeled_summary(delimiter: " - ") = [label, summary].compress.join delimiter
59
63
 
60
- def labeled_version = "#{label} #{version}"
64
+ def labeled_version = [label, version].compress.join " "
61
65
 
62
- def named_version = "#{name} #{version}"
66
+ def named_version = [name, version].compress.join " "
63
67
 
64
- def package_path = Pathname("tmp").join package_name
68
+ def package_name = %(#{[name, version].compress.join "-"}.gem)
65
69
 
66
- def package_name = "#{name}-#{version}.gem"
70
+ def package_path = Pathname("tmp").join package_name
67
71
 
68
72
  def rubygems_mfa? = metadata.fetch("rubygems_mfa_required", "false").to_bool
69
73
 
data/spek.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |spec|
4
4
  spec.name = "spek"
5
- spec.version = "0.4.0"
5
+ spec.version = "0.6.0"
6
6
  spec.authors = ["Brooke Kuhlmann"]
7
7
  spec.email = ["brooke@alchemists.io"]
8
8
  spec.homepage = "https://www.alchemists.io/projects/spek"
@@ -23,10 +23,10 @@ Gem::Specification.new do |spec|
23
23
  spec.cert_chain = [Gem.default_cert_path]
24
24
 
25
25
  spec.required_ruby_version = "~> 3.1"
26
- spec.add_dependency "dry-monads", "~> 1.4"
27
- spec.add_dependency "refinements", "~> 9.6"
28
- spec.add_dependency "versionaire", "~> 10.5"
29
- spec.add_dependency "zeitwerk", "~> 2.5"
26
+ spec.add_dependency "dry-monads", "~> 1.5"
27
+ spec.add_dependency "refinements", "~> 9.7"
28
+ spec.add_dependency "versionaire", "~> 10.6"
29
+ spec.add_dependency "zeitwerk", "~> 2.6"
30
30
 
31
31
  spec.extra_rdoc_files = Dir["README*", "LICENSE*"]
32
32
  spec.files = Dir["*.gemspec", "lib/**/*"]
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spek
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brooke Kuhlmann
@@ -28,7 +28,7 @@ cert_chain:
28
28
  CxDe2+VuChj4I1nvIHdu+E6XoEVlanUPKmSg6nddhkKn2gC45Kyzh6FZqnzH/CRp
29
29
  RFE=
30
30
  -----END CERTIFICATE-----
31
- date: 2022-07-17 00:00:00.000000000 Z
31
+ date: 2022-10-22 00:00:00.000000000 Z
32
32
  dependencies:
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: dry-monads
@@ -36,56 +36,56 @@ dependencies:
36
36
  requirements:
37
37
  - - "~>"
38
38
  - !ruby/object:Gem::Version
39
- version: '1.4'
39
+ version: '1.5'
40
40
  type: :runtime
41
41
  prerelease: false
42
42
  version_requirements: !ruby/object:Gem::Requirement
43
43
  requirements:
44
44
  - - "~>"
45
45
  - !ruby/object:Gem::Version
46
- version: '1.4'
46
+ version: '1.5'
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: refinements
49
49
  requirement: !ruby/object:Gem::Requirement
50
50
  requirements:
51
51
  - - "~>"
52
52
  - !ruby/object:Gem::Version
53
- version: '9.6'
53
+ version: '9.7'
54
54
  type: :runtime
55
55
  prerelease: false
56
56
  version_requirements: !ruby/object:Gem::Requirement
57
57
  requirements:
58
58
  - - "~>"
59
59
  - !ruby/object:Gem::Version
60
- version: '9.6'
60
+ version: '9.7'
61
61
  - !ruby/object:Gem::Dependency
62
62
  name: versionaire
63
63
  requirement: !ruby/object:Gem::Requirement
64
64
  requirements:
65
65
  - - "~>"
66
66
  - !ruby/object:Gem::Version
67
- version: '10.5'
67
+ version: '10.6'
68
68
  type: :runtime
69
69
  prerelease: false
70
70
  version_requirements: !ruby/object:Gem::Requirement
71
71
  requirements:
72
72
  - - "~>"
73
73
  - !ruby/object:Gem::Version
74
- version: '10.5'
74
+ version: '10.6'
75
75
  - !ruby/object:Gem::Dependency
76
76
  name: zeitwerk
77
77
  requirement: !ruby/object:Gem::Requirement
78
78
  requirements:
79
79
  - - "~>"
80
80
  - !ruby/object:Gem::Version
81
- version: '2.5'
81
+ version: '2.6'
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: '2.5'
88
+ version: '2.6'
89
89
  description:
90
90
  email:
91
91
  - brooke@alchemists.io
@@ -130,7 +130,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
130
130
  - !ruby/object:Gem::Version
131
131
  version: '0'
132
132
  requirements: []
133
- rubygems_version: 3.3.18
133
+ rubygems_version: 3.3.24
134
134
  signing_key:
135
135
  specification_version: 4
136
136
  summary: Enhances gem specifications with additional information and tooling.
metadata.gz.sig CHANGED
@@ -1,3 +1 @@
1
- *P��.�
2
- =�A�^wm��O�}$9�����N>H��ء�u^��u��bo��m���
3
- 9p�7�-����L����.D=�X���r�<��[K}=�椔�a��2���>���C�]DW��M{s���| �kg0�A�%)'�P�;=&���Ք'R ��Ko��mhi�.&lFEf���o�߻>%�i��?vj�!�vR��[�]׳���L����~�ڮ֛���-�oq��6^����Fr�N����H��W])��כ
1
+ ~\�9D�V��<vx=*d�P�.�m���$�)d��-�u�Z���H��eIN��� ��t&<��N0�-mԝI�����龆k�+&��`~y3��I�@ķqҭ];A�oBZ�]�Ʒqx:���=�@ЍԠ?���3���S�[�Qґ{�Ɵ�^,�����:,@Պ�kwk<- ���� _�J�����%{�l1�:�ֆuĚ;�tm@�|�Ҿ��#��=U�3u������/�1X��I�t�7ݟ��Pz<���!�