luhn_checksum 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
2
  SHA1:
3
- metadata.gz: bba83f5dccd61078071b604f550054f0e85c45d9
4
- data.tar.gz: 552dd983f28211e6c4fff247dc18f758baee5e3e
3
+ metadata.gz: 46aca18fcd7985b4da04e379dc2d7453d08396ff
4
+ data.tar.gz: fa5c9d60a868ac681a3a3ec541a3a5796f15564b
5
5
  SHA512:
6
- metadata.gz: 77c4deca6a8d19eb95a7e900190512a1e468e63a98fb842851b7972b6dcfc98888ec3cd3190b0d6c445166368d3ad55c263835055752a8321923b974e716ae1e
7
- data.tar.gz: 2e3982606e0258bfd2233c45dee006da231e80861df7241132e04582421883e4bc9ce2e5f4337463136d2b63ffc8fc4df71b98db8269fb4cb1ba787f4d4c8f50
6
+ metadata.gz: daa599c9e2e3433a46e62ec62c08a7608d470efe386824796c94cd058b0d4106aceedfa2e74e4351b663dbdf5034a67876440d61a4effdbd38d4ff91fa3ca96f
7
+ data.tar.gz: b6d09468e83cd5e809cc02ec27cb74ee80ded127ab8d534e7222fe13201dee73c998a7465707e3e172ca108977587c0ba7aefb5945542a8b1fcec6347d8a886d
@@ -0,0 +1,6 @@
1
+ language: ruby
2
+ bundler_args: ""
3
+ rvm:
4
+ - 1.9.3
5
+ - 2.0.0
6
+ - 2.1.1
@@ -1,16 +1,25 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- luhn_checksum (0.1.0)
4
+ luhn_checksum (0.1.1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
8
8
  specs:
9
+ appraisal (1.0.0)
10
+ bundler
11
+ rake
12
+ thor (>= 0.14.0)
9
13
  minitest (5.2.0)
14
+ rake (10.3.1)
15
+ thor (0.19.1)
10
16
 
11
17
  PLATFORMS
12
18
  ruby
13
19
 
14
20
  DEPENDENCIES
21
+ appraisal
22
+ bundler
15
23
  luhn_checksum!
16
24
  minitest
25
+ rake
data/README.md CHANGED
@@ -1,2 +1,25 @@
1
+ [![Build Status](https://travis-ci.org/zendesk/luhn_checksum.png)](https://travis-ci.org/zendesk/luhn_checksum)
2
+
1
3
  luhn_checksum
2
4
  =============
5
+
6
+ Implementation of the [Luhn algorithm](http://en.wikipedia.org/wiki/Luhn_algorithm) for detecting credit
7
+ card numbers in a stream of input text.
8
+
9
+ Example:
10
+
11
+ ```Ruby
12
+ LuhnChecksum.valid?('123451234512348')
13
+ ```
14
+
15
+ ### Limitations
16
+
17
+ * `LuhnChecksum.valid?` currently assumes that input text has already been validated to consist of only
18
+ digits. An exception will be thrown if non-digits are passed in.
19
+ * `LuhnChecksum.valid?` does not validate that the number passed in is any particular length.
20
+ The number `6789` will be considered valid, even though most credit card numbers are between
21
+ 13 and 19 digits in length.
22
+
23
+ ### License
24
+
25
+ Apache License 2.0
@@ -0,0 +1,14 @@
1
+ require 'bundler/gem_tasks'
2
+
3
+ require 'appraisal'
4
+
5
+ require 'rake/testtask'
6
+
7
+ Rake::TestTask.new(:test) do |t|
8
+ t.libs << 'lib'
9
+ t.libs << 'test'
10
+ t.pattern = 'test/**/*_test.rb'
11
+ t.verbose = false
12
+ end
13
+
14
+ task :default => :test
@@ -1,8 +1,8 @@
1
1
  # encoding: utf-8
2
2
 
3
3
  Gem::Specification.new do |gem|
4
- gem.authors = ["Eric Chapweske"]
5
- gem.email = ["eac@zendesk.com"]
4
+ gem.authors = ["Eric Chapweske", "Gary Grossman"]
5
+ gem.email = ["ggrossman@zendesk.com"]
6
6
  gem.description = "Efficient Luhn checksum validator"
7
7
  gem.summary = %q{}
8
8
  gem.homepage = ""
@@ -11,5 +11,9 @@ Gem::Specification.new do |gem|
11
11
  gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
12
12
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
13
13
  gem.name = "luhn_checksum"
14
- gem.version = '0.1.0'
14
+ gem.version = '0.1.1'
15
+
16
+ gem.add_development_dependency('appraisal')
17
+ gem.add_development_dependency('rake')
18
+ gem.add_development_dependency('bundler')
15
19
  end
metadata CHANGED
@@ -1,26 +1,71 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: luhn_checksum
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
  - Eric Chapweske
8
+ - Gary Grossman
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2013-12-16 00:00:00.000000000 Z
12
- dependencies: []
12
+ date: 2014-07-15 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: appraisal
16
+ requirement: !ruby/object:Gem::Requirement
17
+ requirements:
18
+ - - ">="
19
+ - !ruby/object:Gem::Version
20
+ version: '0'
21
+ type: :development
22
+ prerelease: false
23
+ version_requirements: !ruby/object:Gem::Requirement
24
+ requirements:
25
+ - - ">="
26
+ - !ruby/object:Gem::Version
27
+ version: '0'
28
+ - !ruby/object:Gem::Dependency
29
+ name: rake
30
+ requirement: !ruby/object:Gem::Requirement
31
+ requirements:
32
+ - - ">="
33
+ - !ruby/object:Gem::Version
34
+ version: '0'
35
+ type: :development
36
+ prerelease: false
37
+ version_requirements: !ruby/object:Gem::Requirement
38
+ requirements:
39
+ - - ">="
40
+ - !ruby/object:Gem::Version
41
+ version: '0'
42
+ - !ruby/object:Gem::Dependency
43
+ name: bundler
44
+ requirement: !ruby/object:Gem::Requirement
45
+ requirements:
46
+ - - ">="
47
+ - !ruby/object:Gem::Version
48
+ version: '0'
49
+ type: :development
50
+ prerelease: false
51
+ version_requirements: !ruby/object:Gem::Requirement
52
+ requirements:
53
+ - - ">="
54
+ - !ruby/object:Gem::Version
55
+ version: '0'
13
56
  description: Efficient Luhn checksum validator
14
57
  email:
15
- - eac@zendesk.com
58
+ - ggrossman@zendesk.com
16
59
  executables: []
17
60
  extensions: []
18
61
  extra_rdoc_files: []
19
62
  files:
63
+ - ".travis.yml"
20
64
  - Gemfile
21
65
  - Gemfile.lock
22
66
  - LICENSE
23
67
  - README.md
68
+ - Rakefile
24
69
  - lib/luhn_checksum.rb
25
70
  - luhn_checksum.gemspec
26
71
  - test/helper.rb
@@ -34,17 +79,17 @@ require_paths:
34
79
  - lib
35
80
  required_ruby_version: !ruby/object:Gem::Requirement
36
81
  requirements:
37
- - - '>='
82
+ - - ">="
38
83
  - !ruby/object:Gem::Version
39
84
  version: '0'
40
85
  required_rubygems_version: !ruby/object:Gem::Requirement
41
86
  requirements:
42
- - - '>='
87
+ - - ">="
43
88
  - !ruby/object:Gem::Version
44
89
  version: '0'
45
90
  requirements: []
46
91
  rubyforge_project:
47
- rubygems_version: 2.0.7
92
+ rubygems_version: 2.2.2
48
93
  signing_key:
49
94
  specification_version: 4
50
95
  summary: ''