appoxy-simple_record 1.0.15 → 1.0.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. data/README.markdown +5 -42
  2. data/lib/simple_record.rb +7 -3
  3. metadata +1 -1
data/README.markdown CHANGED
@@ -1,52 +1,15 @@
1
- = simple_record
1
+ # simple_record
2
2
 
3
3
  http://code.google.com/p/simple-record/
4
4
 
5
- == DESCRIPTION:
5
+ ## DESCRIPTION:
6
6
 
7
- An ActiveRecord interface for SimpleDB that takes care of offsets and padding, etc.
8
- Can be used as a drop in replacement for ActiveRecord in rails.
7
+ An ActiveRecord interface for SimpleDB. Can be used as a drop in replacement for ActiveRecord in rails.
9
8
 
10
9
  Special thanks to Garrett Cox for creating Activerecord2sdb which SimpleRecord is based on:
11
10
  http://activrecord2sdb.rubyforge.org/
12
11
 
13
- == FEATURES/PROBLEMS:
12
+ ## Usage
14
13
 
15
- * FIX (list of features or problems)
14
+ See http://code.google.com/p/simple-record/ for documentation.
16
15
 
17
- == SYNOPSIS:
18
-
19
- FIX (code sample of usage)
20
-
21
- == REQUIREMENTS:
22
-
23
- * FIX (list of requirements)
24
-
25
- == INSTALL:
26
-
27
- sudo gem install activesupport right_aws local_cache
28
-
29
- == LICENSE:
30
-
31
- (The MIT License)
32
-
33
- Copyright (c) 2009 FIX
34
-
35
- Permission is hereby granted, free of charge, to any person obtaining
36
- a copy of this software and associated documentation files (the
37
- 'Software'), to deal in the Software without restriction, including
38
- without limitation the rights to use, copy, modify, merge, publish,
39
- distribute, sublicense, and/or sell copies of the Software, and to
40
- permit persons to whom the Software is furnished to do so, subject to
41
- the following conditions:
42
-
43
- The above copyright notice and this permission notice shall be
44
- included in all copies or substantial portions of the Software.
45
-
46
- THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
47
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
48
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
49
- IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
50
- CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
51
- TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
52
- SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/lib/simple_record.rb CHANGED
@@ -28,7 +28,7 @@ require 'sdb/active_sdb'
28
28
 
29
29
  module SimpleRecord
30
30
 
31
- VERSION = '1.0.9'
31
+ VERSION = '1.0.16'
32
32
 
33
33
  class Base < RightAws::ActiveSdb::Base
34
34
 
@@ -189,6 +189,10 @@ module SimpleRecord
189
189
  send(:define_method, arg) do
190
190
  options2 = @@belongs_to_map[arg]
191
191
  class_name = options2[:class_name] || arg.to_s[0...1].capitalize + arg.to_s[1...arg.to_s.length]
192
+
193
+ # Camelize classnames with underscores (ie my_model.rb --> MyModel)
194
+ class_name = class_name.camelize
195
+
192
196
  # puts "attr=" + @attributes[arg_id].inspect
193
197
  # puts 'val=' + @attributes[arg_id][0].inspect unless @attributes[arg_id].nil?
194
198
  ret = nil
@@ -693,9 +697,9 @@ This is done on getters now
693
697
 
694
698
  # Pad and Offset number attributes
695
699
  options = params[1]
696
- puts 'options=' + options.inspect
700
+ # puts 'options=' + options.inspect
697
701
  convert_condition_params(options)
698
- puts 'after collect=' + options.inspect
702
+ # puts 'after collect=' + options.inspect
699
703
 
700
704
  results = all ? [] : nil
701
705
  begin
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: appoxy-simple_record
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.15
4
+ version: 1.0.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Travis Reeder