tracking_number 1.0.5 → 1.0.6
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 +4 -4
- data/.github/workflows/ruby.yml +20 -0
- data/README.md +1 -1
- data/lib/tracking_number/active_model_validator.rb +1 -1
- data/lib/tracking_number/version.rb +1 -1
- metadata +7 -7
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9ed74af1cfecc3cda961fbda900d62886e568fdc70df7e4a9b17556f488e23f3
|
|
4
|
+
data.tar.gz: cbe3f4bdf42808d2a51d181c8c3272180aed9ef236844bff89add1e2dabe73da
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 96c09ceb2f951cf8fec8cdbefdf218707d822478b3ed31ad91df7a89340078319ea4c1225e605606c6c9eb0cd830cb36e08226af6f356f95232117a3573c1cbc
|
|
7
|
+
data.tar.gz: b349c26da4af4495c32007768a83afab98bb44735c742c9ea894e040cf38236ec8087e30f408ee5e830ec714a5109b2ac69bdae12b1a5f988c0d72893eabbe5f
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
name: Ruby
|
|
2
|
+
|
|
3
|
+
on: [push]
|
|
4
|
+
|
|
5
|
+
jobs:
|
|
6
|
+
build:
|
|
7
|
+
|
|
8
|
+
runs-on: ubuntu-latest
|
|
9
|
+
|
|
10
|
+
steps:
|
|
11
|
+
- uses: actions/checkout@v1
|
|
12
|
+
- name: Set up Ruby 2.6
|
|
13
|
+
uses: actions/setup-ruby@v1
|
|
14
|
+
with:
|
|
15
|
+
ruby-version: 2.6.x
|
|
16
|
+
- name: Build and test with Rake
|
|
17
|
+
run: |
|
|
18
|
+
gem install bundler
|
|
19
|
+
bundle install --jobs 4 --retry 3
|
|
20
|
+
bundle exec rake
|
data/README.md
CHANGED
|
@@ -6,7 +6,7 @@ class TrackingNumberValidator < ActiveModel::EachValidator
|
|
|
6
6
|
elsif TrackingNumber.new(value).valid?
|
|
7
7
|
# looks good to me
|
|
8
8
|
else
|
|
9
|
-
record.errors
|
|
9
|
+
record.errors.add(attribute, options[:message] || 'is not a valid tracking number')
|
|
10
10
|
end
|
|
11
11
|
end
|
|
12
12
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: tracking_number
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.6
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Jeff Keen
|
|
8
|
-
autorequire:
|
|
8
|
+
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2021-02-01 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activesupport
|
|
@@ -132,6 +132,7 @@ extra_rdoc_files:
|
|
|
132
132
|
- LICENSE.txt
|
|
133
133
|
files:
|
|
134
134
|
- ".document"
|
|
135
|
+
- ".github/workflows/ruby.yml"
|
|
135
136
|
- ".gitignore"
|
|
136
137
|
- ".gitmodules"
|
|
137
138
|
- ".travis.yml"
|
|
@@ -163,7 +164,7 @@ homepage: http://github.com/jkeen/tracking_number
|
|
|
163
164
|
licenses:
|
|
164
165
|
- MIT
|
|
165
166
|
metadata: {}
|
|
166
|
-
post_install_message:
|
|
167
|
+
post_install_message:
|
|
167
168
|
rdoc_options: []
|
|
168
169
|
require_paths:
|
|
169
170
|
- lib
|
|
@@ -178,9 +179,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
178
179
|
- !ruby/object:Gem::Version
|
|
179
180
|
version: '0'
|
|
180
181
|
requirements: []
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
signing_key:
|
|
182
|
+
rubygems_version: 3.0.8
|
|
183
|
+
signing_key:
|
|
184
184
|
specification_version: 4
|
|
185
185
|
summary: Identifies valid tracking numbers
|
|
186
186
|
test_files:
|