tiny_ds 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/tiny_ds.rb +1 -0
- data/lib/tiny_ds/base.rb +1 -0
- data/lib/tiny_ds/version.rb +1 -1
- metadata +2 -2
data/lib/tiny_ds.rb
CHANGED
@@ -6,6 +6,7 @@ require File.dirname(__FILE__)+"/tiny_ds/base.rb"
|
|
6
6
|
require File.dirname(__FILE__)+"/tiny_ds/query.rb"
|
7
7
|
require File.dirname(__FILE__)+"/tiny_ds/validations.rb"
|
8
8
|
require File.dirname(__FILE__)+"/tiny_ds/base_tx.rb"
|
9
|
+
require File.dirname(__FILE__)+"/tiny_ds/version.rb"
|
9
10
|
|
10
11
|
module TinyDS
|
11
12
|
def self.tx(retries=0, &block)
|
data/lib/tiny_ds/base.rb
CHANGED
@@ -25,6 +25,7 @@ module TinyDS
|
|
25
25
|
class Base
|
26
26
|
class << self; attr_accessor :_property_definitions; end
|
27
27
|
RESERVED_PROPERTY_NAME = [:id, :name, :key, :entity, :parent_key, :parent]
|
28
|
+
VALID_PROPERTY_TYPE = [:string, :integer, :text, :time, :list]
|
28
29
|
def self.property(pname, ptype, opts={})
|
29
30
|
pname = pname.to_sym
|
30
31
|
if RESERVED_PROPERTY_NAME.include?(pname)
|
data/lib/tiny_ds/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tiny_ds
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Takeru Sasaki
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2010-01-
|
12
|
+
date: 2010-01-06 00:00:00 +09:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|