fracassandra 0.3.2 → 0.3.3

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.2
1
+ 0.3.3
data/fracassandra.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{fracassandra}
8
- s.version = "0.3.2"
8
+ s.version = "0.3.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Jeremy Tregunna"]
@@ -48,8 +48,8 @@ module Fracassandra
48
48
  end
49
49
  end
50
50
 
51
- def self.create(key=nil, defaults={})
52
- self.new(key, defaults)
51
+ def self.create(defaults={})
52
+ self.new(defaults)
53
53
  end
54
54
 
55
55
  def self.[](key, sub_key=nil)
@@ -5,6 +5,9 @@
5
5
  #
6
6
 
7
7
  if defined?(Sunspot)
8
+ require 'sunspot'
9
+ require 'sunspot/adapters'
10
+
8
11
  module Fracassandra
9
12
  class FracassandraInstanceAdapter < Sunspot::Adapters::InstanceAdapter
10
13
  def id
@@ -20,5 +23,5 @@ if defined?(Sunspot)
20
23
  end
21
24
 
22
25
  Sunspot::Adapters::InstanceAdapter.register(Fracassandra::FracassandraInstanceAdapter, Fracassandra::Model)
23
- Sunspot::Adapters::DataAdapter.register(Fracassandra::FracassandraDataAdapter, Fracassandra::Model)
24
- end
26
+ Sunspot::Adapters::DataAccessor.register(Fracassandra::FracassandraDataAccessor, Fracassandra::Model)
27
+ end
data/lib/fracassandra.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  # Frac.as Cassandra Library
2
2
  # Copyright © 2011, Jeremy Tregunna, All Rights Reserved.
3
3
 
4
- FRACASSANDRA_VERSION = "0.3.2"
4
+ FRACASSANDRA_VERSION = "0.3.3"
5
5
 
6
6
  require 'fracassandra/model'
7
7
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fracassandra
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 21
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 3
9
- - 2
10
- version: 0.3.2
9
+ - 3
10
+ version: 0.3.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Jeremy Tregunna