barcodevalidation 2.3.1 → 2.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 69f00057d24894273af1d7404d7152f18067b861c8c0a9c553995cc442328768
4
- data.tar.gz: 30864684c4ea4a27b44907ba99ba9325109344ff257cb2da3bdd10055a5d0ead
3
+ metadata.gz: 6aa7aea902c16d451d7a53b8b69979013f1b8d438165cf8f4c3c3940be359047
4
+ data.tar.gz: ea0ca124f7e9e5cdf919c791747f3663215ab33f073140832a88e936a6f11a9b
5
5
  SHA512:
6
- metadata.gz: d81de8495506f006796a5f40db56b365faf3df44859f954eba74dda4ec17dd18bd86c5f9b51e9e4205b845d1593be82e50f61245e0151b9d52cff9f2e4b5fd6a
7
- data.tar.gz: 46ca1e1ea7522c114501e8d72c9cbc70eaabae4886d50885a6f620abf0bb28a9ce6f982f9177b0c324fd9aa418b7d0f6558a4923e9eb51e801a350910ee9fc0b
6
+ metadata.gz: cbc4e8901c64e54995f4f62dec98e3711a386b88dd693bacc571e22ea4f3e7ae48a6910a75c562456b8e7c788a65a18b1c571395c34a129f3a4da9844e9782a6
7
+ data.tar.gz: ee148eacfcae331bbcc83fa454ed564024668145e3580d01f21cc21622d976bd2f9ac17872c69b7eb63050e040edd7fb69223f640ec3407aeea59abb3f4d0a64
data/README.md CHANGED
@@ -1,11 +1,11 @@
1
1
  barcodevalidation
2
2
  =================
3
3
 
4
- [![Build Status][travis-badge]][travis]
4
+ [![Build Status][ci-badge]][ci]
5
5
  [![Gem Version][rubygems-badge]][rubygems]
6
6
 
7
- [travis]: <https://travis-ci.org/marketplacer/barcodevalidation>
8
- [travis-badge]: <https://travis-ci.org/marketplacer/barcodevalidation.svg?branch=master>
7
+ [ci]: <https://buildkite.com/marketplacer/barcodevalidation>
8
+ [ci-badge]: <https://badge.buildkite.com/d0d578653bc319cd41e9adb2ac23f1c0d59cf56ee6cc329d78.svg?branch=main>
9
9
  [rubygems]: <https://badge.fury.io/rb/barcodevalidation>
10
10
  [rubygems-badge]: <https://badge.fury.io/rb/barcodevalidation.svg>
11
11
 
@@ -103,11 +103,10 @@ bin/rubocop --help
103
103
 
104
104
 
105
105
 
106
- Continuous Integration
106
+ Tests & Publishing
107
107
  ----------------------
108
108
 
109
- Code is automatically tested with each push, on both Travis CI and
110
- Marketplacer's internal Buildkite.
109
+ Code is automatically tested with each push on Buildkite. Assuming all tests pass, commits on `main` will be parsed with [Semantic Release](https://github.com/semantic-release/semantic-release) to produce new Git tags, and to publish to RubyGems.
111
110
 
112
111
 
113
112
 
@@ -139,4 +138,4 @@ This project is licensed under the [MIT License]. See [LICENSE.md] for
139
138
  the full text.
140
139
 
141
140
  [MIT License]: <https://opensource.org/licenses/MIT>
142
- [LICENSE.md]: <https://github.com/marketplacer/barcodevalidation/blob/master/LICENSE.md>
141
+ [LICENSE.md]: <https://github.com/marketplacer/barcodevalidation/blob/main/LICENSE.md>
@@ -5,7 +5,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
5
  require "barcodevalidation/version"
6
6
 
7
7
  Gem::Specification.new do |spec|
8
- spec.required_ruby_version = "~> 2.5"
8
+ spec.required_ruby_version = ">= 2.5"
9
9
  spec.name = "barcodevalidation"
10
10
  spec.version = BarcodeValidation::VERSION
11
11
  spec.authors = ["Marketplacer"]
@@ -24,6 +24,4 @@ Gem::Specification.new do |spec|
24
24
  spec.executables = spec.files
25
25
  .grep(%r{^exe/}) { |f| File.basename(f) }
26
26
  spec.require_paths = ["lib"]
27
-
28
- spec.add_runtime_dependency "adamantium"
29
27
  end
@@ -5,7 +5,6 @@ require_relative "error/argument_error_class"
5
5
 
6
6
  module BarcodeValidation
7
7
  class Digit < DelegateClass(Integer)
8
- include Adamantium
9
8
  include Mixin::ValueObject
10
9
 
11
10
  INTEGER_CAST_ERRORS = [::ArgumentError, ::TypeError].freeze
@@ -6,7 +6,6 @@ require_relative "error/argument_error_class"
6
6
  module BarcodeValidation
7
7
  class DigitSequence < Array
8
8
  extend Forwardable
9
- include Adamantium::Flat
10
9
  include Mixin::ValueObject
11
10
 
12
11
  delegate to_s: :join
@@ -32,6 +31,10 @@ module BarcodeValidation
32
31
  end
33
32
  end
34
33
 
34
+ def *(other)
35
+ self.class.new(super)
36
+ end
37
+
35
38
  ArgumentError = Error::ArgumentErrorClass.new(DigitSequence)
36
39
  end
37
40
  end
@@ -3,7 +3,6 @@
3
3
  module BarcodeValidation
4
4
  module GTIN
5
5
  class CheckDigit < DelegateClass(Digit)
6
- include Adamantium::Flat
7
6
  include Mixin::ValueObject
8
7
 
9
8
  attr_reader :actual, :expected
@@ -1,7 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require "adamantium"
4
-
5
3
  module BarcodeValidation
6
4
  module Mixin
7
5
  module ValueObject
@@ -10,10 +8,6 @@ module BarcodeValidation
10
8
  end
11
9
 
12
10
  module ClassMethods
13
- # Memoizes return values based on the inputs
14
- def new(*args)
15
- (@__new_cache ||= {})[args] ||= super
16
- end
17
11
  end
18
12
 
19
13
  def eql?(other)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module BarcodeValidation
4
- VERSION = "2.3.1"
4
+ VERSION = "2.4.0"
5
5
  end
metadata CHANGED
@@ -1,29 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: barcodevalidation
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.1
4
+ version: 2.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marketplacer
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-11-05 00:00:00.000000000 Z
12
- dependencies:
13
- - !ruby/object:Gem::Dependency
14
- name: adamantium
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - ">="
18
- - !ruby/object:Gem::Version
19
- version: '0'
20
- type: :runtime
21
- prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - ">="
25
- - !ruby/object:Gem::Version
26
- version: '0'
11
+ date: 2022-02-03 00:00:00.000000000 Z
12
+ dependencies: []
27
13
  description: A RubyGem to parse and validate barcodes
28
14
  email:
29
15
  - it@marketplacer.com
@@ -56,13 +42,13 @@ homepage: https://github.com/marketplacer/barcodevalidation
56
42
  licenses:
57
43
  - MIT
58
44
  metadata: {}
59
- post_install_message:
45
+ post_install_message:
60
46
  rdoc_options: []
61
47
  require_paths:
62
48
  - lib
63
49
  required_ruby_version: !ruby/object:Gem::Requirement
64
50
  requirements:
65
- - - "~>"
51
+ - - ">="
66
52
  - !ruby/object:Gem::Version
67
53
  version: '2.5'
68
54
  required_rubygems_version: !ruby/object:Gem::Requirement
@@ -71,9 +57,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
71
57
  - !ruby/object:Gem::Version
72
58
  version: '0'
73
59
  requirements: []
74
- rubyforge_project:
75
- rubygems_version: 2.7.6.2
76
- signing_key:
60
+ rubygems_version: 3.1.4
61
+ signing_key:
77
62
  specification_version: 4
78
63
  summary: Parses and validates barcodes
79
64
  test_files: []