piggybak 0.6.25 → 0.6.26

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- piggybak (0.6.25)
4
+ piggybak (0.6.26)
5
5
  activemerchant
6
6
  countries
7
7
  devise
@@ -15,7 +15,7 @@ module Piggybak
15
15
  end
16
16
 
17
17
  validates_each :payment_method_values do |record, attr, value|
18
- if record.klass
18
+ if record.klass.present?
19
19
  payment_method = record.klass.constantize
20
20
  metadata_keys = value.collect { |v| v.key }.sort
21
21
  if payment_method::KEYS.sort != metadata_keys
@@ -10,7 +10,7 @@ module Piggybak
10
10
  attr_accessible :active, :tax_method_values_attributes, :description,
11
11
  :klass
12
12
  validates_each :tax_method_values do |record, attr, value|
13
- if record.klass
13
+ if record.klass.present?
14
14
  calculator = record.klass.constantize
15
15
  metadata_keys = value.collect { |v| v.key }.sort
16
16
  if calculator::KEYS.sort != metadata_keys
@@ -1,3 +1,3 @@
1
1
  module Piggybak
2
- VERSION = "0.6.25"
2
+ VERSION = "0.6.26"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: piggybak
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.25
4
+ version: 0.6.26
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2013-01-28 00:00:00.000000000 Z
14
+ date: 2013-02-18 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: rails
@@ -235,7 +235,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
235
235
  version: '0'
236
236
  segments:
237
237
  - 0
238
- hash: 1469996782340380432
238
+ hash: 1382762029700944046
239
239
  required_rubygems_version: !ruby/object:Gem::Requirement
240
240
  none: false
241
241
  requirements:
@@ -244,7 +244,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
244
244
  version: '0'
245
245
  segments:
246
246
  - 0
247
- hash: 1469996782340380432
247
+ hash: 1382762029700944046
248
248
  requirements: []
249
249
  rubyforge_project:
250
250
  rubygems_version: 1.8.23