credit_card_support 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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: d28f5ada154ffad6494b10e654dd28ce5a70ef43
4
+ data.tar.gz: a2b190748bda184e408bb857ac3c58738f485071
5
+ SHA512:
6
+ metadata.gz: fea56635c7c333e07d03b5cc1b6a8f38f3d4d71cbbcb194ce06932a66bdf8315346b1765fcc9021d3ee0b1b922bfb8fe2e359f9ff17bcfe84ec666c264ec85a0
7
+ data.tar.gz: 310fc7c7a36fcbd4d29a1452d901c7dc2b6fb5adb24cbb438bc7dcf0f1b2708ab909f9eabbeac9082cd63967dfc969c351efe5b85c7a240b4ac0304118a3dfff
data/Gemfile CHANGED
@@ -1,7 +1,2 @@
1
1
  source "http://rubygems.org"
2
-
3
- group :development, :test do
4
- gem "activemodel" # for rails validations
5
- gem "rspec"
6
- gem "yard"
7
- end
2
+ gemspec
@@ -1,7 +1,7 @@
1
1
  module CreditCardSupport
2
2
  module Version
3
3
  MAJOR = 2
4
- MINOR = 1
4
+ MINOR = 2
5
5
  PATCH = 0
6
6
 
7
7
  STRING = [MAJOR, MINOR, PATCH].compact.join('.')
@@ -1,3 +1,8 @@
1
1
  require 'credit_card_support/luhn_number'
2
2
  require 'credit_card_support/credit_card_number'
3
- require 'credit_card_support/validators/credit_card_number_validator' if Object.const_defined?(:ActiveModel)
3
+
4
+ if Object.const_defined?(:ActiveModel)
5
+ require 'credit_card_support/validators/credit_card_number_validator'
6
+ else
7
+ puts "CreditCardSupport: ActiveModel validations not loaded"
8
+ end
metadata CHANGED
@@ -1,16 +1,57 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: credit_card_support
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
5
- prerelease:
4
+ version: 2.2.0
6
5
  platform: ruby
7
6
  authors:
8
7
  - Margus Pärt
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-08-07 00:00:00.000000000 Z
13
- dependencies: []
11
+ date: 2013-10-30 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: activemodel
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - '>='
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - '>='
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rspec
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - '>='
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - '>='
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: yard
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - '>='
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
14
55
  description: Detects issuer from a number, has ActiveModel validations and translations
15
56
  support.
16
57
  email: margus@tione.eu
@@ -34,27 +75,26 @@ files:
34
75
  - spec/spec_helper.rb
35
76
  homepage: https://github.com/tione/credit_card_support
36
77
  licenses: []
78
+ metadata: {}
37
79
  post_install_message:
38
80
  rdoc_options: []
39
81
  require_paths:
40
82
  - lib
41
83
  required_ruby_version: !ruby/object:Gem::Requirement
42
- none: false
43
84
  requirements:
44
- - - ! '>='
85
+ - - '>='
45
86
  - !ruby/object:Gem::Version
46
87
  version: 1.9.3
47
88
  required_rubygems_version: !ruby/object:Gem::Requirement
48
- none: false
49
89
  requirements:
50
- - - ! '>='
90
+ - - '>='
51
91
  - !ruby/object:Gem::Version
52
92
  version: '0'
53
93
  requirements: []
54
94
  rubyforge_project:
55
- rubygems_version: 1.8.24
95
+ rubygems_version: 2.0.6
56
96
  signing_key:
57
- specification_version: 3
97
+ specification_version: 4
58
98
  summary: Libary to handle CreditCard number, expiration and Luhn.
59
99
  test_files: []
60
100
  has_rdoc: