bank_account_validator 0.0.1 → 0.0.2

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.
data/.rspec ADDED
@@ -0,0 +1,2 @@
1
+ --color
2
+ --format progress
@@ -11,6 +11,9 @@ Gem::Specification.new do |gem|
11
11
  gem.description = %q{Validate a bank account}
12
12
  gem.summary = %q{Validates a bank account number number by checking if the number complies to the bank account validation rules for a certain country}
13
13
  gem.homepage = ""
14
+
15
+ gem.add_development_dependency 'rspec'
16
+
14
17
  gem.files = `git ls-files`.split($/)
15
18
  gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
16
19
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
@@ -1,7 +1,15 @@
1
1
  require "bank_account_validator/version"
2
2
 
3
3
  module BankAccountValidator
4
- def self.valid?
5
- true
4
+
5
+ class BankAccountVaidator
6
+
7
+ def initialize(account_number)
8
+ @account_number = account_number
9
+ end
10
+
11
+ def valid?
12
+ true
13
+ end
6
14
  end
7
15
  end
@@ -1,3 +1,3 @@
1
1
  module BankAccountValidator
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
@@ -0,0 +1,17 @@
1
+ # This file was generated by the `rspec --init` command. Conventionally, all
2
+ # specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
3
+ # Require this file using `require "spec_helper"` to ensure that it is only
4
+ # loaded once.
5
+ #
6
+ # See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
7
+ RSpec.configure do |config|
8
+ config.treat_symbols_as_metadata_keys_with_true_values = true
9
+ config.run_all_when_everything_filtered = true
10
+ config.filter_run :focus
11
+
12
+ # Run specs in random order to surface order dependencies. If you find an
13
+ # order dependency and want to debug it, you can fix the order by providing
14
+ # the seed, which is printed after each run.
15
+ # --seed 1234
16
+ config.order = 'random'
17
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bank_account_validator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,8 +9,24 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-01-17 00:00:00.000000000 Z
13
- dependencies: []
12
+ date: 2013-01-21 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: rspec
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
22
+ type: :development
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: '0'
14
30
  description: Validate a bank account
15
31
  email:
16
32
  - johnvanarkelen@gmail.com
@@ -19,6 +35,7 @@ extensions: []
19
35
  extra_rdoc_files: []
20
36
  files:
21
37
  - .gitignore
38
+ - .rspec
22
39
  - Gemfile
23
40
  - LICENSE.txt
24
41
  - README.md
@@ -26,6 +43,7 @@ files:
26
43
  - bank_account_validator.gemspec
27
44
  - lib/bank_account_validator.rb
28
45
  - lib/bank_account_validator/version.rb
46
+ - spec/spec_helper.rb
29
47
  homepage: ''
30
48
  licenses: []
31
49
  post_install_message:
@@ -51,4 +69,5 @@ signing_key:
51
69
  specification_version: 3
52
70
  summary: Validates a bank account number number by checking if the number complies
53
71
  to the bank account validation rules for a certain country
54
- test_files: []
72
+ test_files:
73
+ - spec/spec_helper.rb