ohm 0.1.2 → 0.1.3

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 +22 -12
  2. data/lib/ohm/version.rb +1 -1
  3. metadata +10 -26
@@ -17,6 +17,16 @@ Join the mailing list: [http://groups.google.com/group/ohm-ruby](http://groups.g
17
17
 
18
18
  Meet us on IRC: [#ohm](irc://chat.freenode.net/#ohm) on [freenode.net](http://freenode.net/)
19
19
 
20
+
21
+ Related projects
22
+ ----------------
23
+
24
+ These are libraries in other languages that were inspired by Ohm.
25
+
26
+ * [JOhm](https://github.com/xetorthio/johm) for Java, created by xetorthio
27
+ * [Nohm](https://github.com/maritz/nohm) for Node.js, created by maritz
28
+ * [Redisco](https://github.com/iamteem/redisco) for Python, created by iamteem
29
+
20
30
  Getting started
21
31
  ---------------
22
32
 
@@ -44,7 +54,7 @@ Now, in an irb session you can test the Redis adapter directly:
44
54
  >> Ohm.redis.get "Foo"
45
55
  => "Bar"
46
56
 
47
- ## Connecting to the Redis database {: #connecting }
57
+ ## Connecting to the Redis database
48
58
 
49
59
  There are a couple of different strategies for connecting to your Redis
50
60
  database. The first is to explicitly set the `:host`, `:port`, `:db` and
@@ -231,7 +241,7 @@ You can add instances of `Person` to the set of attendees with the
231
241
  # ...do what you want with this person.
232
242
  end
233
243
 
234
- ## Sorting {: #sorting}
244
+ ## Sorting
235
245
 
236
246
  Since `attendees` is a {Ohm::Model::Set Set}, it exposes two sorting
237
247
  methods: {Ohm::Model::Collection#sort sort} returns the elements
@@ -323,7 +333,7 @@ After this, every time you refer to `post.comments` you will be talking
323
333
  about instances of the model `Comment`. If you want to get a list of IDs
324
334
  you can use `post.comments.key.smembers`.
325
335
 
326
- ### References explained {: #references }
336
+ ### References explained
327
337
 
328
338
  Doing a {Ohm::Model.reference reference} is actually just a shortcut for
329
339
  the following:
@@ -352,7 +362,7 @@ and also search comments using the `post_id` index.
352
362
  Comment.find(:post_id => 1)
353
363
 
354
364
 
355
- ### Collections explained {: #collections }
365
+ ### Collections explained
356
366
 
357
367
  The reason a {Ohm::Model.reference reference} and a
358
368
  {Ohm::Model.collection collection} go hand in hand, is that a collection is
@@ -545,14 +555,14 @@ Tutorials
545
555
 
546
556
  Check the examples to get a feeling of the design patterns for Redis.
547
557
 
548
- 1. [Activity Feed](examples/activity-feed.html)
549
- 2. [Chaining finds](examples/chaining.html)
550
- 3. [Serialization to JSON](examples/json-hash.html)
551
- 4. [One to many associations](examples/one-to-many.html)
552
- 5. [Philosophy behind Ohm](examples/philosophy.html)
553
- 6. [Learning Ohm internals](examples/redis-logging.html)
554
- 7. [Slugs and permalinks](examples/slug.html)
555
- 8. [Tagging](examples/tagging.html)
558
+ 1. [Activity Feed](http://ohm.keyvalue.org/examples/activity-feed.html)
559
+ 2. [Chaining finds](http://ohm.keyvalue.org/examples/chaining.html)
560
+ 3. [Serialization to JSON](http://ohm.keyvalue.org/examples/json-hash.html)
561
+ 4. [One to many associations](http://ohm.keyvalue.org/examples/one-to-many.html)
562
+ 5. [Philosophy behind Ohm](http://ohm.keyvalue.org/examples/philosophy.html)
563
+ 6. [Learning Ohm internals](http://ohm.keyvalue.org/examples/redis-logging.html)
564
+ 7. [Slugs and permalinks](http://ohm.keyvalue.org/examples/slug.html)
565
+ 8. [Tagging](http://ohm.keyvalue.org/examples/tagging.html)
556
566
 
557
567
  Versions
558
568
  ========
@@ -1,5 +1,5 @@
1
1
  # encoding: UTF-8
2
2
 
3
3
  module Ohm
4
- VERSION = "0.1.2"
4
+ VERSION = "0.1.3"
5
5
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 2
9
- version: 0.1.2
8
+ - 3
9
+ version: 0.1.3
10
10
  platform: ruby
11
11
  authors:
12
12
  - Michel Martens
@@ -15,28 +15,13 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-10-29 00:00:00 -03:00
18
+ date: 2010-11-05 00:00:00 -03:00
19
19
  default_executable:
20
20
  dependencies:
21
- - !ruby/object:Gem::Dependency
22
- name: redis
23
- prerelease: false
24
- requirement: &id001 !ruby/object:Gem::Requirement
25
- none: false
26
- requirements:
27
- - - ~>
28
- - !ruby/object:Gem::Version
29
- segments:
30
- - 2
31
- - 0
32
- - 0
33
- version: 2.0.0
34
- type: :runtime
35
- version_requirements: *id001
36
21
  - !ruby/object:Gem::Dependency
37
22
  name: nest
38
23
  prerelease: false
39
- requirement: &id002 !ruby/object:Gem::Requirement
24
+ requirement: &id001 !ruby/object:Gem::Requirement
40
25
  none: false
41
26
  requirements:
42
27
  - - ~>
@@ -44,14 +29,13 @@ dependencies:
44
29
  segments:
45
30
  - 1
46
31
  - 0
47
- - 0
48
- version: 1.0.0
32
+ version: "1.0"
49
33
  type: :runtime
50
- version_requirements: *id002
34
+ version_requirements: *id001
51
35
  - !ruby/object:Gem::Dependency
52
36
  name: cutest
53
37
  prerelease: false
54
- requirement: &id003 !ruby/object:Gem::Requirement
38
+ requirement: &id002 !ruby/object:Gem::Requirement
55
39
  none: false
56
40
  requirements:
57
41
  - - ~>
@@ -61,11 +45,11 @@ dependencies:
61
45
  - 1
62
46
  version: "0.1"
63
47
  type: :development
64
- version_requirements: *id003
48
+ version_requirements: *id002
65
49
  - !ruby/object:Gem::Dependency
66
50
  name: batch
67
51
  prerelease: false
68
- requirement: &id004 !ruby/object:Gem::Requirement
52
+ requirement: &id003 !ruby/object:Gem::Requirement
69
53
  none: false
70
54
  requirements:
71
55
  - - ~>
@@ -76,7 +60,7 @@ dependencies:
76
60
  - 1
77
61
  version: 0.0.1
78
62
  type: :development
79
- version_requirements: *id004
63
+ version_requirements: *id003
80
64
  description: Ohm is a library that allows to store an object in Redis, a persistent key-value database. It includes an extensible list of validations and has very good performance.
81
65
  email:
82
66
  - michel@soveran.com