Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

history.md and cleaned up the getters

  • Loading branch information...
commit 0a932f7967696d7efef0efb95ef37f87cf418777 1 parent 56dd5fb
@Radagaisus authored
View
2  README.md
@@ -212,7 +212,7 @@ user('putin')
```
### Getting the Model ID
-Only when new models are created `exec()` receives the model ID as the last argument.
+Only when new models are created `.exec()` receives the model ID as the last argument.
```coffee
user()
View
6 history.md
@@ -2,9 +2,11 @@
# 0.1.11
-- zscore, zrank and zrevrank added for getting stuff
+- `zscore`, `zrank`, `count`, `zrevrank`, `zrevrangebyscore` were added to the `getters` array.
-- removed returning the user_id for existing models.
+- `user_id` is not being passed to `.exec()` for existing models any more. Only new models will receive `user_id` inside `.exec()` as the last argument.
+
+- Everything is now being tested with redis 2.6.
# 0.1.10
View
7 lib/commands.coffee
@@ -38,11 +38,8 @@ module.exports =
# - brpoplpush and friends
getters: [
- # String, Number
- 'hget',
-
+
# List
- # - blpop and friends
'lrange',
# Set
@@ -59,7 +56,7 @@ module.exports =
'zrevrank',
'zcount',
- # Hash
+ # Hash, String, Number
'hget',
'hgetall',
'hmget'
View
15 lib/orpheus.coffee
@@ -446,16 +446,11 @@ class OrpheusAPI
for key, value of @model
type = value.type
switch type
- when 'str', 'num'
- @[key].get()
- when 'list'
- @[key].range 0, -1
- when 'set'
- @[key].members()
- when 'zset'
- @[key].range 0, -1, 'withscores'
- when 'hash'
- @[key].hgetall()
+ when 'str', 'num' then @[key].get()
+ when 'list' then @[key].range 0, -1
+ when 'set' then @[key].members()
+ when 'zset' then @[key].range 0, -1, 'withscores'
+ when 'hash' then @[key].hgetall()
@exec fn
View
3  test/orpheus.spec.coffee
@@ -921,7 +921,8 @@ describe 'Maps', ->
done()
-
+# Relations
+# -------------------------
describe 'Relations', ->
it 'One has', (done) ->
Please sign in to comment.
Something went wrong with that request. Please try again.