riak-record 0.8.0 → 0.8.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: 7ac4b19f9c1851d3ad91962afa2bf5feb098659b
4
- data.tar.gz: 1f0f42bde745441a2e853749e6d1506b503a1487
3
+ metadata.gz: 22ab04b398e94247af90d6c742800aa9572a6f4c
4
+ data.tar.gz: 2f3b0ed2893c0fa239aa679a849624c93f4933c9
5
5
  SHA512:
6
- metadata.gz: d2ddfc8567dde15c17386c2f2949f22f90c21c649773b9dfe554711ad3b151cd73dc1a058b45b3d203051ebbc4b5b745e6a84edc1be92dd794bd96fa4da21f14
7
- data.tar.gz: 7005462108cdb4a7cca7a6e8639f8fbee34e60f147a85d93d1b062b70960993af8d57371f87ef33e23767baf90b0aea1e315b33843aeda62412a16aab31530b2
6
+ metadata.gz: 3713521678d48f802d9efa49c2db41f656001978533ab596481851d00c1c542754f7765c9908a17a79758f2ad94363959a80b349a8776b8085ad85522eb977d8
7
+ data.tar.gz: cbb415ef1c0b1d47658ec8e327dce41a06e17026b3bbf6fe48531024fd9e77d141fe56fb577a87bcf3b35e105210a19ee4697a74d046258319c06efe85710ee1
data/TODO.md CHANGED
@@ -4,6 +4,7 @@
4
4
  * id_generator
5
5
  * don't delegate count to map_reduce_count
6
6
  * reload should reset associations
7
+ * add any_keys? and empty_keys? -- let user decide method
7
8
  * Document methods in classes
8
9
  * Validations support
9
10
  * Validate key is unique (bucket.get_or_new)
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.8.0
1
+ 0.8.1
@@ -69,9 +69,10 @@ module Finder
69
69
  def empty?(&block)
70
70
  if block_given?
71
71
  !any?(&block)
72
- else
73
- load_next_page(1) unless load_started?
72
+ elsif load_started?
74
73
  @loaded_objects.count.zero?
74
+ else
75
+ Riak::SecondaryIndex.new(@bucket, @index, @value, :max_results => 1).keys.empty?
75
76
  end
76
77
  end
77
78
  alias :none? :empty?
data/riak-record.gemspec CHANGED
@@ -2,16 +2,16 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: riak-record 0.8.0 ruby lib
5
+ # stub: riak-record 0.8.1 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "riak-record"
9
- s.version = "0.8.0"
9
+ s.version = "0.8.1"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
12
  s.require_paths = ["lib"]
13
13
  s.authors = ["Robert Graff"]
14
- s.date = "2014-10-29"
14
+ s.date = "2014-11-04"
15
15
  s.description = "RiakRecord is a thin and immature wrapper around riak-ruby-client. It creates a bucket for\n each class, provides a simple finder, and creates attribute reader."
16
16
  s.email = "robert_graff@yahoo.com"
17
17
  s.extra_rdoc_files = [
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: riak-record
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.8.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robert Graff
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-10-29 00:00:00.000000000 Z
11
+ date: 2014-11-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: riak-client