vin_exploder 0.4.0 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -37,7 +37,7 @@ module VinExploder
37
37
  if block_given?
38
38
  if hash.nil?
39
39
  hash = yield
40
- write(vin, hash) unless hash.empty? || (hash[:errors] && !hash[:errors].empty?)
40
+ cachewrite(vin, hash) unless hash.empty? || (hash[:errors] && !hash[:errors].empty?)
41
41
  end
42
42
  end
43
43
  hash
@@ -6,7 +6,7 @@ module VinExploder
6
6
 
7
7
  attr_reader :vin, :success, :errors, :make, :model, :year, :driveline, :body_style, :fuel_type, :number_of_doors, :all
8
8
 
9
- def initialize(vin, vin_hash, errors={})
9
+ def initialize(vin, vin_hash, errors=[])
10
10
  @vin = vin
11
11
  @all = vin_hash
12
12
  @make = @all[:make]
@@ -1,3 +1,3 @@
1
1
  module VinExploder
2
- VERSION = '0.4.0'
2
+ VERSION = '0.4.1'
3
3
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: vin_exploder
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.4.0
5
+ version: 0.4.1
6
6
  platform: ruby
7
7
  authors:
8
8
  - Jake Mallory
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-06-28 00:00:00 Z
13
+ date: 2011-07-06 00:00:00 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rspec