barcodevalidation 2.1.0 → 2.2.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
- SHA1:
3
- metadata.gz: 897dd3cdb0c9e0bf7d9f50bfeb98b0ac8be7b79d
4
- data.tar.gz: 93fb7cc3b723a9ce5c935c6eba57bfadad217d6a
2
+ SHA256:
3
+ metadata.gz: 2783879bb9ef02f2f9e35dbb44141f4c21de2d6bebfb6b3643806a18eec2f13f
4
+ data.tar.gz: 0d839d223853a598a05434a401dd0282ea2f48713ab27ea99bf4043bdda68e77
5
5
  SHA512:
6
- metadata.gz: 5a6cee629384d5ff836f8ca9df2a29bbbd3a982498cd3d5f232bfd5b8b86dde9c6cbc569ae2ca01658fd0b887d24c185e5ee523ff82b90f21aa2f280e133b21d
7
- data.tar.gz: 2d6659bfb3bf670a7b28d7c55e25ecc81412706421ffeee3ea19043f0d28df50e16d7e4f51d0f6f093d959435725e48d38c74b771af1d5f50229499654a07809
6
+ metadata.gz: 252f2f26e2787311a8772b2513c017de0c7c9ad0d5acec5e52fbf6ab859781df4fdb30da4b477a942d42ec8997408a5193ba9ffbf7c42800c8d04f5bd5713f6c
7
+ data.tar.gz: 55ee58d3b10b39756e384d00e9eb3c3b2950b28572fcdd264e203639a936a92aea5523d636b0513ef329b273c45f015e21fefea4eb1b26cd3a53b5b9370b453e
@@ -1,5 +1,4 @@
1
- # coding: utf-8
2
- lib = File.expand_path("../lib", __FILE__)
1
+ lib = File.expand_path("lib", __dir__)
3
2
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
3
  require "barcodevalidation/version"
5
4
 
@@ -14,8 +13,8 @@ Gem::Specification.new do |spec|
14
13
  spec.homepage = "https://github.com/marketplacer/#{spec.name}"
15
14
  spec.license = "MIT"
16
15
 
17
- spec.files = %w(LICENSE.md README.md barcodevalidation.gemspec
18
- config/*.rb lib/**/*.rb)
16
+ spec.files = %w[LICENSE.md README.md barcodevalidation.gemspec
17
+ config/*.rb lib/**/*.rb]
19
18
  .flat_map { |pattern| Dir.glob(pattern) }
20
19
  .reject { |f| File.directory?(f) }
21
20
  spec.bindir = "exe"
@@ -10,7 +10,7 @@ module BarcodeValidation
10
10
  def self.new(input)
11
11
  super
12
12
  rescue BarcodeValidation::Error => e
13
- return InvalidGTIN.new(input, error: e)
13
+ InvalidGTIN.new(input, error: e)
14
14
  end
15
15
 
16
16
  def valid?
@@ -22,8 +22,8 @@ module BarcodeValidation
22
22
  "#<#{description}>"
23
23
  end
24
24
 
25
- def pretty_print(pp)
26
- pp.text inspect
25
+ def pretty_print(value)
26
+ value.text inspect
27
27
  end
28
28
 
29
29
  private
@@ -1,3 +1,3 @@
1
1
  module BarcodeValidation
2
- VERSION = "2.1.0".freeze
2
+ VERSION = "2.2.0".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: barcodevalidation
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 2.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marketplacer
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-04-13 00:00:00.000000000 Z
11
+ date: 2018-08-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: adamantium
@@ -66,7 +66,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
66
66
  version: '0'
67
67
  requirements: []
68
68
  rubyforge_project:
69
- rubygems_version: 2.4.5.1
69
+ rubygems_version: 2.7.6
70
70
  signing_key:
71
71
  specification_version: 4
72
72
  summary: Parses and validates barcodes