banktools-dk 0.1.0 → 0.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
- SHA1:
3
- metadata.gz: 3a101dabbe2ebea32c45bf2da3483e63954fead4
4
- data.tar.gz: 23bf30a82eeba810a911bc5188df233277333005
2
+ SHA256:
3
+ metadata.gz: 1353625ba39ada7fc0044334daa64a832360dc45f22cf388f9148f5988aa95e1
4
+ data.tar.gz: 5f3be53ea272c3b9c3b99404e1b0091be1d2a210b9a43a5eae2ecfd6e1658017
5
5
  SHA512:
6
- metadata.gz: ed46c0419f40c5b8af763bb68f308d6666ec44cb94f8f29a633173a6f546fc302d6bf7e878104e85ab74cb1e88c93fddf5d171cfc8389c7befe283cd935bb8dc
7
- data.tar.gz: b0233cdc5814da94eda9520c3cc4d6a86e1075c9de979d128d97ace5b1c233f2a8d344d7e54657de73ac0a57c9335d678ab6e739c4041f99d784a7f2cde2b4cf
6
+ metadata.gz: f0116ae9eff6779fe269dcdac73ff756b33f2d3529b5eb449a85369315e9870e055d4c561c413767c2031990f5ecb6042885e0236cebfca050bafebed3559c12
7
+ data.tar.gz: 1d89deae597bf841d9ed1552a369ca6d49ff1c32601eff8574b361bad2ad409b2331164f6558b2fdb70fea5c45730f23dbcc91ad5346b09fae8fcee7edfdb8bd
@@ -0,0 +1,24 @@
1
+ name: CI
2
+
3
+ on: [push, pull_request]
4
+
5
+ jobs:
6
+ build:
7
+ runs-on: ubuntu-latest
8
+
9
+ strategy:
10
+ matrix:
11
+ ruby-version:
12
+ - 2.5
13
+ - 2.6
14
+ - 2.7
15
+ - '3.0'
16
+ steps:
17
+ - uses: actions/checkout@v2
18
+ - name: Set up Ruby ${{ matrix.ruby-version }}
19
+ uses: ruby/setup-ruby@v1
20
+ with:
21
+ ruby-version: ${{ matrix.ruby-version }}
22
+ bundler-cache: true # runs 'bundle install' and caches installed gems automatically
23
+ - name: Run tests
24
+ run: bundle exec rake
data/.gitignore CHANGED
@@ -7,3 +7,4 @@
7
7
  /pkg/
8
8
  /spec/reports/
9
9
  /tmp/
10
+ .rspec_status
data/.rspec CHANGED
@@ -1,2 +1,3 @@
1
1
  --format documentation
2
2
  --color
3
+ --require spec_helper
data/.rubocop.yml ADDED
@@ -0,0 +1,3 @@
1
+ inherit_gem:
2
+ barsoom_utils:
3
+ - shared_rubocop.yml
data/Gemfile CHANGED
@@ -1,4 +1,11 @@
1
- source 'https://rubygems.org'
1
+ source "https://rubygems.org"
2
2
 
3
3
  # Specify your gem's dependencies in banktools-dk.gemspec
4
4
  gemspec
5
+
6
+ group :development, :test do
7
+ gem "barsoom_utils", github: "barsoom/barsoom_utils"
8
+ gem "rake"
9
+ gem "rspec"
10
+ gem "rubocop"
11
+ end
data/README.md CHANGED
@@ -1,4 +1,6 @@
1
- # Danish banktools
1
+ # Danish bank tools
2
+
3
+ [![CI](https://github.com/barsoom/banktools-dk/actions/workflows/ci.yml/badge.svg)](https://github.com/barsoom/banktools-dk/actions/workflows/ci.yml)
2
4
 
3
5
  Ruby gem to validate and normalize Danish account numbers.
4
6
 
@@ -8,19 +10,21 @@ If we got anything wrong, please file an issue or contribute a fix yourself.
8
10
 
9
11
  ## Usage
10
12
 
11
- account = BankTools::DK::Account.new("12345678901")
12
- account.valid? # => true
13
- account.errors # => []
13
+ ```ruby
14
+ account = BankTools::DK::Account.new("12345678901")
15
+ account.valid? # => true
16
+ account.errors # => []
14
17
 
15
- bad_account = BankTools::DK::Account.new("1")
16
- bad_account.valid? # => false
17
- bad_account.errors # => [:too_short]
18
+ bad_account = BankTools::DK::Account.new("1")
19
+ bad_account.valid? # => false
20
+ bad_account.errors # => [:too_short]
18
21
 
19
- # Error codes
22
+ # Error codes
20
23
 
21
- BankTools::SE::Errors::TOO_SHORT # => :too_short
22
- BankTools::SE::Errors::TOO_LONG # => :too_long
23
- BankTools::SE::Errors::INVALID_CHARACTERS # => :invalid_characters
24
+ BankTools::DK::Errors::TOO_SHORT # => :too_short
25
+ BankTools::DK::Errors::TOO_LONG # => :too_long
26
+ BankTools::DK::Errors::INVALID_CHARACTERS # => :invalid_characters
27
+ ```
24
28
 
25
29
  ## Tests
26
30
 
@@ -32,7 +36,9 @@ If we got anything wrong, please file an issue or contribute a fix yourself.
32
36
 
33
37
  Add this line to your application's Gemfile:
34
38
 
35
- gem 'banktools-dk'
39
+ ```ruby
40
+ gem 'banktools-dk'
41
+ ```
36
42
 
37
43
  And then execute:
38
44
 
@@ -49,8 +55,7 @@ Or install it yourself as:
49
55
 
50
56
  ## Also see
51
57
 
52
- * [BankTools::SE(Swedish)](https://github.com/barsoom/banktools-se)
53
- * [BankTools::DE (German)](https://github.com/barsoom/banktools-de)
58
+ * [Our other BankTools](https://github.com/barsoom?q=banktools)
54
59
  * [iban-tools](https://github.com/iulianu/iban-tools)
55
60
 
56
61
  ## License
data/Rakefile CHANGED
@@ -3,4 +3,4 @@ require "rspec/core/rake_task"
3
3
 
4
4
  RSpec::Core::RakeTask.new(:spec)
5
5
 
6
- task :default => :spec
6
+ task default: :spec
data/banktools-dk.gemspec CHANGED
@@ -6,19 +6,14 @@ require "banktools-dk/version"
6
6
  Gem::Specification.new do |spec|
7
7
  spec.name = "banktools-dk"
8
8
  spec.version = BankTools::DK::VERSION
9
- spec.authors = ["Kim Persson"]
10
- spec.email = ["kim@auctionet.com"]
9
+ spec.authors = [ "Kim Persson" ]
10
+ spec.email = [ "kim@auctionet.com" ]
11
11
 
12
12
  spec.summary = %q{Validate and normalise Danish bank account numbers.}
13
- spec.homepage = ""
13
+ spec.homepage = "https://github.com/barsoom/banktools-dk"
14
14
  spec.license = "MIT"
15
+ spec.metadata = { "rubygems_mfa_required" => "true" }
15
16
 
16
17
  spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
17
- spec.bindir = "exe"
18
- spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
19
- spec.require_paths = ["lib"]
20
-
21
- spec.add_development_dependency "bundler", "~> 1.11"
22
- spec.add_development_dependency "rake", "~> 10.0"
23
- spec.add_development_dependency "rspec", "~> 3.0"
18
+ spec.require_paths = [ "lib" ]
24
19
  end
@@ -1,5 +1,5 @@
1
1
  module BankTools
2
2
  module DK
3
- VERSION = "0.1.0"
3
+ VERSION = "0.1.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,57 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: banktools-dk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kim Persson
8
8
  autorequire:
9
- bindir: exe
9
+ bindir: bin
10
10
  cert_chain: []
11
- date: 2016-02-05 00:00:00.000000000 Z
12
- dependencies:
13
- - !ruby/object:Gem::Dependency
14
- name: bundler
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - "~>"
18
- - !ruby/object:Gem::Version
19
- version: '1.11'
20
- type: :development
21
- prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - "~>"
25
- - !ruby/object:Gem::Version
26
- version: '1.11'
27
- - !ruby/object:Gem::Dependency
28
- name: rake
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - "~>"
32
- - !ruby/object:Gem::Version
33
- version: '10.0'
34
- type: :development
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - "~>"
39
- - !ruby/object:Gem::Version
40
- version: '10.0'
41
- - !ruby/object:Gem::Dependency
42
- name: rspec
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - "~>"
46
- - !ruby/object:Gem::Version
47
- version: '3.0'
48
- type: :development
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - "~>"
53
- - !ruby/object:Gem::Version
54
- version: '3.0'
11
+ date: 2021-11-19 00:00:00.000000000 Z
12
+ dependencies: []
55
13
  description:
56
14
  email:
57
15
  - kim@auctionet.com
@@ -59,9 +17,10 @@ executables: []
59
17
  extensions: []
60
18
  extra_rdoc_files: []
61
19
  files:
20
+ - ".github/workflows/ci.yml"
62
21
  - ".gitignore"
63
22
  - ".rspec"
64
- - ".travis.yml"
23
+ - ".rubocop.yml"
65
24
  - Gemfile
66
25
  - LICENSE.txt
67
26
  - README.md
@@ -73,10 +32,11 @@ files:
73
32
  - lib/banktools-dk/account.rb
74
33
  - lib/banktools-dk/errors.rb
75
34
  - lib/banktools-dk/version.rb
76
- homepage: ''
35
+ homepage: https://github.com/barsoom/banktools-dk
77
36
  licenses:
78
37
  - MIT
79
- metadata: {}
38
+ metadata:
39
+ rubygems_mfa_required: 'true'
80
40
  post_install_message:
81
41
  rdoc_options: []
82
42
  require_paths:
@@ -92,8 +52,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
92
52
  - !ruby/object:Gem::Version
93
53
  version: '0'
94
54
  requirements: []
95
- rubyforge_project:
96
- rubygems_version: 2.2.1
55
+ rubygems_version: 3.2.29
97
56
  signing_key:
98
57
  specification_version: 4
99
58
  summary: Validate and normalise Danish bank account numbers.
data/.travis.yml DELETED
@@ -1,4 +0,0 @@
1
- language: ruby
2
- rvm:
3
- - 2.3.0
4
- before_install: gem install bundler -v 1.11.2