bigrecord 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- data/LICENSE +0 -0
- data/README.rdoc +9 -1
- data/Rakefile +0 -0
- data/VERSION +1 -1
- data/examples/bigrecord.yml +2 -5
- data/generators/bigrecord/bigrecord_generator.rb +0 -0
- data/generators/bigrecord/templates/bigrecord.rake +0 -0
- data/generators/bigrecord_migration/bigrecord_migration_generator.rb +0 -0
- data/generators/bigrecord_migration/templates/migration.rb +0 -0
- data/generators/bigrecord_model/bigrecord_model_generator.rb +0 -0
- data/generators/bigrecord_model/templates/migration.rb +0 -0
- data/generators/bigrecord_model/templates/model.rb +0 -0
- data/generators/bigrecord_model/templates/model_spec.rb +0 -0
- data/{doc → guides}/bigrecord_specs.rdoc +0 -0
- data/guides/deployment.rdoc +21 -0
- data/{doc → guides}/getting_started.rdoc +30 -18
- data/init.rb +0 -0
- data/install.rb +0 -0
- data/lib/big_record/abstract_base.rb +50 -28
- data/lib/big_record/action_view_extensions.rb +1 -1
- data/lib/big_record/ar_associations/association_collection.rb +0 -0
- data/lib/big_record/ar_associations/association_proxy.rb +0 -0
- data/lib/big_record/ar_associations/belongs_to_association.rb +0 -0
- data/lib/big_record/ar_associations/belongs_to_many_association.rb +0 -0
- data/lib/big_record/ar_associations/has_and_belongs_to_many_association.rb +0 -0
- data/lib/big_record/ar_associations/has_many_association.rb +0 -0
- data/lib/big_record/ar_associations/has_one_association.rb +0 -0
- data/lib/big_record/ar_associations.rb +0 -0
- data/lib/big_record/ar_reflection.rb +0 -0
- data/lib/big_record/attribute_methods.rb +0 -0
- data/lib/big_record/base.rb +49 -24
- data/lib/big_record/br_associations/association_collection.rb +0 -0
- data/lib/big_record/br_associations/association_proxy.rb +0 -0
- data/lib/big_record/br_associations/belongs_to_association.rb +0 -0
- data/lib/big_record/br_associations/belongs_to_many_association.rb +0 -0
- data/lib/big_record/br_associations/cached_item_proxy.rb +0 -0
- data/lib/big_record/br_associations/cached_item_proxy_factory.rb +0 -0
- data/lib/big_record/br_associations/has_and_belongs_to_many_association.rb +0 -0
- data/lib/big_record/br_associations/has_one_association.rb +0 -0
- data/lib/big_record/br_associations.rb +0 -0
- data/lib/big_record/br_reflection.rb +0 -0
- data/lib/big_record/callbacks.rb +0 -0
- data/lib/big_record/connection_adapters/abstract/connection_specification.rb +0 -0
- data/lib/big_record/connection_adapters/abstract/database_statements.rb +0 -0
- data/lib/big_record/connection_adapters/abstract/quoting.rb +1 -1
- data/lib/big_record/connection_adapters/abstract_adapter.rb +0 -0
- data/lib/big_record/connection_adapters/column.rb +30 -0
- data/lib/big_record/connection_adapters/hbase_adapter.rb +0 -0
- data/lib/big_record/connection_adapters/hbase_rest_adapter.rb +424 -0
- data/lib/big_record/connection_adapters/view.rb +63 -0
- data/lib/big_record/connection_adapters.rb +1 -0
- data/lib/big_record/deletion.rb +0 -0
- data/lib/big_record/dynamic_schema.rb +0 -0
- data/lib/big_record/embedded.rb +128 -1
- data/lib/big_record/embedded_associations/association_proxy.rb +0 -0
- data/lib/big_record/family_span_columns.rb +0 -0
- data/lib/big_record/fixtures.rb +0 -0
- data/lib/big_record/migration.rb +30 -8
- data/lib/big_record/routing_ext.rb +6 -4
- data/lib/big_record/timestamp.rb +0 -0
- data/lib/big_record/validations.rb +0 -0
- data/lib/big_record.rb +5 -3
- data/lib/bigrecord.rb +0 -0
- data/rails/init.rb +3 -2
- data/spec/adapter_benchmark.rb +55 -0
- data/spec/connections/bigrecord.yml +4 -2
- data/spec/connections/cassandra/connection.rb +0 -0
- data/spec/connections/hbase/connection.rb +0 -0
- data/spec/debug.log +156 -40724
- data/spec/integration/br_associations_spec.rb +0 -0
- data/spec/lib/animal.rb +0 -0
- data/spec/lib/book.rb +0 -0
- data/spec/lib/broken_migrations/duplicate_name/20090706182535_add_animals_table.rb +0 -0
- data/spec/lib/broken_migrations/duplicate_name/20090706193019_add_animals_table.rb +0 -0
- data/spec/lib/broken_migrations/duplicate_version/20090706190623_add_books_table.rb +0 -0
- data/spec/lib/broken_migrations/duplicate_version/20090706190623_add_companies_table.rb +0 -0
- data/spec/lib/company.rb +0 -0
- data/spec/lib/embedded/web_link.rb +0 -0
- data/spec/lib/employee.rb +0 -0
- data/spec/lib/migrations/20090706182535_add_animals_table.rb +0 -0
- data/spec/lib/migrations/20090706190623_add_books_table.rb +0 -0
- data/spec/lib/migrations/20090706193019_add_companies_table.rb +0 -0
- data/spec/lib/migrations/20090706194512_add_employees_table.rb +0 -0
- data/spec/lib/migrations/20090706195741_add_zoos_table.rb +0 -0
- data/spec/lib/novel.rb +2 -0
- data/spec/lib/zoo.rb +0 -0
- data/spec/spec.opts +0 -0
- data/spec/spec_helper.rb +7 -1
- data/spec/unit/abstract_base_spec.rb +0 -0
- data/spec/unit/adapters/abstract_adapter_spec.rb +0 -0
- data/spec/unit/adapters/adapter_shared_spec.rb +0 -0
- data/spec/unit/adapters/hbase_adapter_spec.rb +0 -0
- data/spec/unit/ar_associations_spec.rb +0 -0
- data/spec/unit/base_spec.rb +0 -0
- data/spec/unit/br_associations_spec.rb +0 -0
- data/spec/unit/embedded_spec.rb +0 -0
- data/spec/unit/find_spec.rb +0 -0
- data/spec/unit/hash_helper_spec.rb +0 -0
- data/spec/unit/migration_spec.rb +0 -0
- data/spec/unit/model_spec.rb +0 -0
- data/spec/unit/validations_spec.rb +0 -0
- data/tasks/bigrecord_tasks.rake +0 -0
- data/tasks/data_store.rb +8 -1
- data/tasks/gem.rb +2 -2
- data/tasks/rdoc.rb +14 -8
- data/tasks/spec.rb +0 -0
- metadata +10 -6
File without changes
|
data/spec/lib/animal.rb
CHANGED
File without changes
|
data/spec/lib/book.rb
CHANGED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/spec/lib/company.rb
CHANGED
File without changes
|
File without changes
|
data/spec/lib/employee.rb
CHANGED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/spec/lib/novel.rb
CHANGED
data/spec/lib/zoo.rb
CHANGED
File without changes
|
data/spec/spec.opts
CHANGED
File without changes
|
data/spec/spec_helper.rb
CHANGED
@@ -7,7 +7,13 @@ require 'spec'
|
|
7
7
|
SPEC_ROOT = Pathname(__FILE__).dirname.expand_path
|
8
8
|
require SPEC_ROOT.parent + 'lib/big_record'
|
9
9
|
|
10
|
-
|
10
|
+
if ENV["HBASE_REST_ADDRESS"]
|
11
|
+
config = YAML::load(File.open(File.join(File.dirname(__FILE__), "connections", "bigrecord.yml")))
|
12
|
+
config["hbase"]["api_address"] = ENV["HBASE_REST_ADDRESS"]
|
13
|
+
BigRecord::Base.configurations = config
|
14
|
+
else
|
15
|
+
BigRecord::Base.configurations = YAML::load(File.open(File.join(File.dirname(__FILE__), "connections", "bigrecord.yml")))
|
16
|
+
end
|
11
17
|
BigRecord::Base.logger = Logger.new(File.join(File.dirname(__FILE__), "debug.log"))
|
12
18
|
|
13
19
|
begin
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/spec/unit/base_spec.rb
CHANGED
File without changes
|
File without changes
|
data/spec/unit/embedded_spec.rb
CHANGED
File without changes
|
data/spec/unit/find_spec.rb
CHANGED
File without changes
|
File without changes
|
data/spec/unit/migration_spec.rb
CHANGED
File without changes
|
data/spec/unit/model_spec.rb
CHANGED
File without changes
|
File without changes
|
data/tasks/bigrecord_tasks.rake
CHANGED
File without changes
|
data/tasks/data_store.rb
CHANGED
@@ -1,6 +1,13 @@
|
|
1
1
|
namespace :data_store do
|
2
2
|
require 'lib/big_record'
|
3
|
-
|
3
|
+
|
4
|
+
if ENV["HBASE_REST_ADDRESS"]
|
5
|
+
config = YAML::load(File.open(File.join(ROOT, "spec", "connections", "bigrecord.yml")))
|
6
|
+
config["hbase"]["api_address"] = ENV["HBASE_REST_ADDRESS"]
|
7
|
+
BigRecord::Base.configurations = config
|
8
|
+
else
|
9
|
+
BigRecord::Base.configurations = YAML::load(File.open(File.join(ROOT, "spec", "connections", "bigrecord.yml")))
|
10
|
+
end
|
4
11
|
BigRecord::Base.logger = Logger.new(File.expand_path(File.join(ROOT, "migrate.log")))
|
5
12
|
|
6
13
|
@migrations_path = File.expand_path(File.join(ROOT, "spec", "lib", "migrations"))
|
data/tasks/gem.rb
CHANGED
@@ -8,8 +8,8 @@ begin
|
|
8
8
|
gemspec.homepage = "http://www.bigrecord.org"
|
9
9
|
gemspec.summary = "Object mapper for supporting column-oriented data stores (supports #{DATA_STORES.join(" ")}) in Ruby on Rails."
|
10
10
|
gemspec.description = "BigRecord is built from ActiveRecord, and intended to seamlessly integrate into your Ruby on Rails applications."
|
11
|
-
gemspec.files = FileList["{
|
12
|
-
gemspec.extra_rdoc_files = FileList["
|
11
|
+
gemspec.files = FileList["{examples,guides,generators,lib,rails,spec,tasks}/**/*","init.rb","install.rb","Rakefile","VERSION"].to_a
|
12
|
+
gemspec.extra_rdoc_files = FileList["guides/**/*","LICENSE","README.rdoc"].to_a
|
13
13
|
|
14
14
|
gemspec.add_development_dependency "rspec"
|
15
15
|
gemspec.add_dependency "uuidtools", ">= 2.0.0"
|
data/tasks/rdoc.rb
CHANGED
@@ -1,8 +1,14 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
end
|
1
|
+
begin
|
2
|
+
require 'yard'
|
3
|
+
|
4
|
+
desc 'Generate documentation for BigRecord.'
|
5
|
+
YARD::Rake::YardocTask.new do |t|
|
6
|
+
t.files = %w(- guides/*.rdoc)
|
7
|
+
t.options = ["--title", "BigRecord Documentation"]
|
8
|
+
end
|
9
|
+
|
10
|
+
desc 'Generate documentation for BigRecord.'
|
11
|
+
task :rdoc => :yardoc
|
12
|
+
rescue LoadError
|
13
|
+
puts "yard not available. Install it with: sudo gem install yard"
|
14
|
+
end
|
data/tasks/spec.rb
CHANGED
File without changes
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bigrecord
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- openplaces.org
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-
|
12
|
+
date: 2009-11-25 00:00:00 -05:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -71,13 +71,12 @@ extensions: []
|
|
71
71
|
extra_rdoc_files:
|
72
72
|
- LICENSE
|
73
73
|
- README.rdoc
|
74
|
-
-
|
75
|
-
-
|
74
|
+
- guides/bigrecord_specs.rdoc
|
75
|
+
- guides/deployment.rdoc
|
76
|
+
- guides/getting_started.rdoc
|
76
77
|
files:
|
77
78
|
- Rakefile
|
78
79
|
- VERSION
|
79
|
-
- doc/bigrecord_specs.rdoc
|
80
|
-
- doc/getting_started.rdoc
|
81
80
|
- examples/bigrecord.yml
|
82
81
|
- generators/bigrecord/bigrecord_generator.rb
|
83
82
|
- generators/bigrecord/templates/bigrecord.rake
|
@@ -87,6 +86,9 @@ files:
|
|
87
86
|
- generators/bigrecord_model/templates/migration.rb
|
88
87
|
- generators/bigrecord_model/templates/model.rb
|
89
88
|
- generators/bigrecord_model/templates/model_spec.rb
|
89
|
+
- guides/bigrecord_specs.rdoc
|
90
|
+
- guides/deployment.rdoc
|
91
|
+
- guides/getting_started.rdoc
|
90
92
|
- init.rb
|
91
93
|
- install.rb
|
92
94
|
- lib/big_record.rb
|
@@ -121,6 +123,7 @@ files:
|
|
121
123
|
- lib/big_record/connection_adapters/abstract_adapter.rb
|
122
124
|
- lib/big_record/connection_adapters/column.rb
|
123
125
|
- lib/big_record/connection_adapters/hbase_adapter.rb
|
126
|
+
- lib/big_record/connection_adapters/hbase_rest_adapter.rb
|
124
127
|
- lib/big_record/connection_adapters/view.rb
|
125
128
|
- lib/big_record/deletion.rb
|
126
129
|
- lib/big_record/dynamic_schema.rb
|
@@ -134,6 +137,7 @@ files:
|
|
134
137
|
- lib/big_record/validations.rb
|
135
138
|
- lib/bigrecord.rb
|
136
139
|
- rails/init.rb
|
140
|
+
- spec/adapter_benchmark.rb
|
137
141
|
- spec/connections/bigrecord.yml
|
138
142
|
- spec/connections/cassandra/connection.rb
|
139
143
|
- spec/connections/hbase/connection.rb
|