versionaire 9.1.0 → 9.1.1

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: 7dd4a85312295a2cc1e5aa13d6252156a095da2718fe8bff2afaa6d4a5ca0689
4
- data.tar.gz: 6eadfe1ca935a2e35681a189562ee9fd5a6e49c9c757774ec977ee2e21820399
3
+ metadata.gz: 95e35f5d3112af653667a69f1421b1c2ffeb9f0ee37081679e42e40b02613fce
4
+ data.tar.gz: 604702a9d233a94faee6d8ecc20f19b7d17e8f1dda2972a6b72b46cda4f44acb
5
5
  SHA512:
6
- metadata.gz: 21b92646e48340c1fdde455bf0d45aed944e3d63440e304c86ed7d3b66877cfd1d66e9c7e49468a7e340d96015ecc8e995f64878755764f8bda5e98df4df6daa
7
- data.tar.gz: 7a5d2418831d0c11f0802bc5f3a554b610a39a21736fef4b08b1130963b594c074c4127871288eb05446b053ccebe4e6fbfbf68cd5cf74c8d16a564349d161b8
6
+ metadata.gz: 64a6327a293b8dd9989f000b1173541e83bb8855886c4da4213f2b7f70973c8d012ec58080c1ae6b675e4aa6033c5eacd6d2e23968a3ad9c66d58a32472aded0
7
+ data.tar.gz: 4ef00d34ac1dacff42fa208970bf53b36ba27b0d849a4dcb11d57c98ea756fd7499f3c51c9a0c41316b3451d73b18aa7adc8a0393823a20f96674644f3dc7164
checksums.yaml.gz.sig CHANGED
@@ -1,2 +1 @@
1
- ��tN�
2
- ��V=�Βk?!*V��ϖ�
1
+ `�+����RA
3
- ���pH�pe���ueŴ��T���%ļ�6-ʳ�[�k>��n#p� �r�m��y/ۺ�h��ǽ�7���b���m�l�lc1�AF�; �a=�w��CD�B��ꧺk8�_3lrҐB�a\�VV���H_]k��x]���V����p\>0���ד�l�-z�6����=����e!��3�*G
data.tar.gz.sig CHANGED
Binary file
@@ -4,9 +4,7 @@ module Versionaire
4
4
  # Refines Kernel in order to provide a top-level Version conversion function.
5
5
  module Cast
6
6
  refine Kernel do
7
- def Version object
8
- Versionaire::Version object
9
- end
7
+ def Version(object) = Versionaire::Version(object)
10
8
  end
11
9
  end
12
10
  end
@@ -4,9 +4,7 @@ module Versionaire
4
4
  module Errors
5
5
  # Thrown when not using numbers.
6
6
  class InvalidNumber < Base
7
- def initialize message = "Major, minor, and patch must be a number."
8
- super message
9
- end
7
+ def initialize(message = "Major, minor, and patch must be a number.") = super(message)
10
8
  end
11
9
  end
12
10
  end
@@ -67,13 +67,9 @@ module Versionaire
67
67
  .then { |arguments| Version.with_positions(*arguments) }
68
68
  end
69
69
 
70
- def required_keys?
71
- object.keys.all? { |key| Version.members.include? key }
72
- end
70
+ def required_keys? = object.keys.all? { |key| Version.members.include? key }
73
71
 
74
- def error_message object, body
75
- "Invalid version conversion: #{object}. #{body}"
76
- end
72
+ def error_message(object, body) = "Invalid version conversion: #{object}. #{body}"
77
73
  end
78
74
 
79
75
  private_constant :Converter
@@ -5,7 +5,7 @@ module Versionaire
5
5
  module Identity
6
6
  NAME = "versionaire"
7
7
  LABEL = "Versionaire"
8
- VERSION = "9.1.0"
8
+ VERSION = "9.1.1"
9
9
  VERSION_LABEL = "#{LABEL} #{VERSION}"
10
10
  end
11
11
  end
@@ -9,9 +9,7 @@ module Versionaire
9
9
 
10
10
  using Refinements::Structs
11
11
 
12
- def self.delimiter
13
- "."
14
- end
12
+ def self.delimiter = "."
15
13
 
16
14
  def self.pattern
17
15
  /
@@ -54,17 +52,11 @@ module Versionaire
54
52
  to_s <=> other.to_s
55
53
  end
56
54
 
57
- def down key, value = 1
58
- revalue(key => value) { |previous, current| previous - current }
59
- end
55
+ def down(key, value = 1) = revalue(key => value) { |previous, current| previous - current }
60
56
 
61
- def up key, value = 1
62
- revalue(key => value) { |previous, current| previous + current }
63
- end
57
+ def up(key, value = 1) = revalue(key => value) { |previous, current| previous + current }
64
58
 
65
- def to_s
66
- to_a.join self.class.delimiter
67
- end
59
+ def to_s = to_a.join(self.class.delimiter)
68
60
 
69
61
  alias_method :to_str, :to_s
70
62
  alias_method :values, :to_a
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: versionaire
3
3
  version: !ruby/object:Gem::Version
4
- version: 9.1.0
4
+ version: 9.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brooke Kuhlmann
@@ -10,9 +10,9 @@ bindir: bin
10
10
  cert_chain:
11
11
  - |
12
12
  -----BEGIN CERTIFICATE-----
13
- MIIC/jCCAeagAwIBAgIBAzANBgkqhkiG9w0BAQsFADAlMSMwIQYDVQQDDBpicm9v
14
- a2UvREM9YWxjaGVtaXN0cy9EQz1pbzAeFw0yMDAzMTUxNDQ1MzJaFw0yMTAzMTUx
15
- NDQ1MzJaMCUxIzAhBgNVBAMMGmJyb29rZS9EQz1hbGNoZW1pc3RzL0RDPWlvMIIB
13
+ MIIC/jCCAeagAwIBAgIBBDANBgkqhkiG9w0BAQsFADAlMSMwIQYDVQQDDBpicm9v
14
+ a2UvREM9YWxjaGVtaXN0cy9EQz1pbzAeFw0yMTAzMTkxMjQ4MDZaFw0yMjAzMTkx
15
+ MjQ4MDZaMCUxIzAhBgNVBAMMGmJyb29rZS9EQz1hbGNoZW1pc3RzL0RDPWlvMIIB
16
16
  IjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA6l1qpXTiomH1RfMRloyw7MiE
17
17
  xyVx/x8Yc3EupdH7uhNaTXQGyORN6aOY//1QXXMHIZ9tW74nZLhesWMSUMYy0XhB
18
18
  brs+KkurHnc9FnEJAbG7ebGvl/ncqZt72nQvaxpDxvuCBHgJAz+8i5wl6FhLw+oT
@@ -20,15 +20,15 @@ cert_chain:
20
20
  D5vkU0YlAm1r98BymuJlcQ1qdkVEI1d48ph4kcS0S0nv1RiuyVb6TCAR3Nu3VaVq
21
21
  3fPzZKJLZBx67UvXdbdicWPiUR75elI4PXpLIic3xytaF52ZJYyKZCNZJhNwfQID
22
22
  AQABozkwNzAJBgNVHRMEAjAAMAsGA1UdDwQEAwIEsDAdBgNVHQ4EFgQU0nzow9vc
23
- 2CdikiiE3fJhP/gY4ggwDQYJKoZIhvcNAQELBQADggEBAIHhAlD3po4sTYqacXaQ
24
- XI9jIhrfMy//2PgbHWcETtlJPBeNUbbSNBABcllUHKqYsVDlSvSmss034KSWNR8F
25
- bF1GcloicyvcCC4y6IoW4it0COAcdeaaxkxiBSgKdQFpff9REnDlIKK4uQ9lLxIo
26
- Y2G5xubiziKZkyfWFuSr67PIjW3Bu673D1JVBArhA1qbgQmYQcy1CkGOjo+iO8Nf
27
- 7u/QSfBHb+r/bXhKscDgPpnKwbUmvgO2+94zJG9KsrmIydlzYfsD09aXKx0t6Xy4
28
- 2XV8FRa7/JimI07sPLC13eLY3xd/aYTi85Z782KIA4j0G8XEEWAX0ouBhlXPocZv
29
- QWc=
23
+ 2CdikiiE3fJhP/gY4ggwDQYJKoZIhvcNAQELBQADggEBAEjpaOXHHp8s/7GL2qCb
24
+ YAs7urOLv9VHSPfQWAwaTMVnSsIf3Sw4xzISOP/mmfEPBPXtz61K5esrE/uTFtgb
25
+ FyjxQk2H0sEWgrRXGGNHBWQRhhEs7LP/TByoC15A0br++xLxRz4r7HBLGAWQQDpg
26
+ 66BJ2TBVjxS6K64tKbq7+ACyrOZGgTfNHACh4M076y0x0oRf/rwBrU39/KRfuhbb
27
+ cm+nNCEtO35gTmZ2bVDHLGvWazi3gJt6+huQjfXTCUUG2YYBxwhu+GPdAGQPxpf9
28
+ lkHilIrX69jq8wMPpBhlaw2mRmeSL50Wv5u6xVBvOHhXFSP1crXM95vfLhLyRYod
29
+ W2A=
30
30
  -----END CERTIFICATE-----
31
- date: 2021-01-20 00:00:00.000000000 Z
31
+ date: 2021-04-18 00:00:00.000000000 Z
32
32
  dependencies:
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: refinements
@@ -87,7 +87,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
87
87
  - !ruby/object:Gem::Version
88
88
  version: '0'
89
89
  requirements: []
90
- rubygems_version: 3.2.5
90
+ rubygems_version: 3.2.16
91
91
  signing_key:
92
92
  specification_version: 4
93
93
  summary: Provides an immutable, thread-safe, and semantic version type.
metadata.gz.sig CHANGED
Binary file