prosto_cache 0.2.4 → 0.2.5

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.
@@ -196,6 +196,8 @@ module ProstoCache
196
196
  [].tap { |rows| raw_result.each(:as => :hash) { |h| rows << h } }
197
197
  when 'PGresult', 'PG::Result'
198
198
  raw_result.map(&:to_hash)
199
+ when 'Array' # assuming sqlite
200
+ raw_result
199
201
  else
200
202
  fail "Result class #{raw_result.class.name} is unsupported"
201
203
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: prosto_cache
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.2.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-04-07 00:00:00.000000000 Z
12
+ date: 2014-11-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec
@@ -44,23 +44,23 @@ dependencies:
44
44
  - !ruby/object:Gem::Version
45
45
  version: '1.1'
46
46
  description: Use this gem if you want a simple 'enum-like' cache for your models that
47
- does not restrict updates, but will stay current with them.
47
+ does not restrict updates, but will stays current with them.
48
48
  email: olek@woodenbits.com
49
49
  executables: []
50
50
  extensions: []
51
51
  extra_rdoc_files: []
52
52
  files:
53
- - lib/prosto_cache/extensions.rb
54
- - lib/prosto_cache/prosto_hash.rb
55
53
  - lib/prosto_cache/prosto_model_cache.rb
54
+ - lib/prosto_cache/prosto_hash.rb
55
+ - lib/prosto_cache/extensions.rb
56
56
  - lib/prosto_cache.rb
57
- - Gemfile
58
57
  - Gemfile.lock
59
58
  - LICENSE.txt
60
59
  - Rakefile
60
+ - Gemfile
61
61
  - README.rdoc
62
- - spec/prosto_cache_spec.rb
63
62
  - spec/spec_helper.rb
63
+ - spec/prosto_cache_spec.rb
64
64
  - .rspec
65
65
  homepage: http://github.com/olek/prosto_cache
66
66
  licenses:
@@ -86,7 +86,7 @@ rubyforge_project:
86
86
  rubygems_version: 1.8.23.2
87
87
  signing_key:
88
88
  specification_version: 3
89
- summary: Very simple caching for your ActiveRecord models.
89
+ summary: Simple caching for your ActiveRecord models.
90
90
  test_files:
91
- - spec/prosto_cache_spec.rb
92
91
  - spec/spec_helper.rb
92
+ - spec/prosto_cache_spec.rb