aerospike 0.1.6 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (51) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +22 -0
  3. data/lib/aerospike.rb +5 -0
  4. data/lib/aerospike/atomic/atomic.rb +3 -1
  5. data/lib/aerospike/client.rb +98 -32
  6. data/lib/aerospike/cluster/cluster.rb +25 -8
  7. data/lib/aerospike/cluster/connection.rb +1 -1
  8. data/lib/aerospike/cluster/node.rb +16 -3
  9. data/lib/aerospike/cluster/node_validator.rb +16 -4
  10. data/lib/aerospike/cluster/partition.rb +1 -1
  11. data/lib/aerospike/cluster/partition_tokenizer_new.rb +4 -2
  12. data/lib/aerospike/cluster/partition_tokenizer_old.rb +1 -1
  13. data/lib/aerospike/command/admin_command.rb +353 -0
  14. data/lib/aerospike/command/batch_command.rb +12 -42
  15. data/lib/aerospike/command/batch_command_exists.rb +1 -1
  16. data/lib/aerospike/command/batch_command_get.rb +1 -1
  17. data/lib/aerospike/command/batch_item.rb +1 -1
  18. data/lib/aerospike/command/batch_node.rb +1 -1
  19. data/lib/aerospike/command/command.rb +9 -14
  20. data/lib/aerospike/command/delete_command.rb +1 -1
  21. data/lib/aerospike/command/execute_command.rb +1 -1
  22. data/lib/aerospike/command/exists_command.rb +1 -1
  23. data/lib/aerospike/command/operate_command.rb +1 -1
  24. data/lib/aerospike/command/read_command.rb +12 -38
  25. data/lib/aerospike/command/read_header_command.rb +2 -2
  26. data/lib/aerospike/command/roles.rb +36 -0
  27. data/lib/aerospike/command/single_command.rb +1 -1
  28. data/lib/aerospike/command/touch_command.rb +1 -1
  29. data/lib/aerospike/command/write_command.rb +1 -1
  30. data/lib/aerospike/info.rb +1 -1
  31. data/lib/aerospike/loggable.rb +1 -1
  32. data/lib/aerospike/policy/admin_policy.rb +33 -0
  33. data/lib/aerospike/policy/batch_policy.rb +5 -5
  34. data/lib/aerospike/policy/client_policy.rb +15 -4
  35. data/lib/aerospike/policy/generation_policy.rb +0 -5
  36. data/lib/aerospike/policy/policy.rb +6 -6
  37. data/lib/aerospike/policy/query_policy.rb +2 -2
  38. data/lib/aerospike/policy/scan_policy.rb +6 -6
  39. data/lib/aerospike/policy/write_policy.rb +8 -8
  40. data/lib/aerospike/query/query_command.rb +1 -1
  41. data/lib/aerospike/query/scan_command.rb +1 -1
  42. data/lib/aerospike/query/stream_command.rb +1 -1
  43. data/lib/aerospike/record.rb +2 -3
  44. data/lib/aerospike/result_code.rb +11 -1
  45. data/lib/aerospike/user_role.rb +30 -0
  46. data/lib/aerospike/utils/buffer.rb +22 -2
  47. data/lib/aerospike/utils/epoc.rb +3 -1
  48. data/lib/aerospike/utils/pool.rb +1 -1
  49. data/lib/aerospike/value/value.rb +12 -13
  50. data/lib/aerospike/version.rb +1 -1
  51. metadata +6 -2
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aerospike
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Khosrow Afroozeh
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-12-28 00:00:00.000000000 Z
11
+ date: 2015-01-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: atomic
@@ -61,6 +61,7 @@ files:
61
61
  - lib/aerospike/cluster/partition.rb
62
62
  - lib/aerospike/cluster/partition_tokenizer_new.rb
63
63
  - lib/aerospike/cluster/partition_tokenizer_old.rb
64
+ - lib/aerospike/command/admin_command.rb
64
65
  - lib/aerospike/command/batch_command.rb
65
66
  - lib/aerospike/command/batch_command_exists.rb
66
67
  - lib/aerospike/command/batch_command_get.rb
@@ -74,6 +75,7 @@ files:
74
75
  - lib/aerospike/command/operate_command.rb
75
76
  - lib/aerospike/command/read_command.rb
76
77
  - lib/aerospike/command/read_header_command.rb
78
+ - lib/aerospike/command/roles.rb
77
79
  - lib/aerospike/command/single_command.rb
78
80
  - lib/aerospike/command/touch_command.rb
79
81
  - lib/aerospike/command/write_command.rb
@@ -88,6 +90,7 @@ files:
88
90
  - lib/aerospike/ldt/large_stack.rb
89
91
  - lib/aerospike/loggable.rb
90
92
  - lib/aerospike/operation.rb
93
+ - lib/aerospike/policy/admin_policy.rb
91
94
  - lib/aerospike/policy/batch_policy.rb
92
95
  - lib/aerospike/policy/client_policy.rb
93
96
  - lib/aerospike/policy/commit_level.rb
@@ -112,6 +115,7 @@ files:
112
115
  - lib/aerospike/task/udf_register_task.rb
113
116
  - lib/aerospike/task/udf_remove_task.rb
114
117
  - lib/aerospike/udf.rb
118
+ - lib/aerospike/user_role.rb
115
119
  - lib/aerospike/utils/buffer.rb
116
120
  - lib/aerospike/utils/epoc.rb
117
121
  - lib/aerospike/utils/pool.rb