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.
@@ -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)
@@ -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)
@@ -1,3 +1,3 @@
1
1
  module TinyDS
2
- VERSION = '0.0.1'.freeze
2
+ VERSION = '0.0.2'.freeze
3
3
  end
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.1
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-04 00:00:00 +09:00
12
+ date: 2010-01-06 00:00:00 +09:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency