494b64c63a
Remove redundant private method Rackstash::Fields::Array#new
...
The method is already provided by the parent class AbstractCollection
2017-02-16 23:04:57 +01:00
6958b8f509
Add Rubocop config and resolve most style issues
2017-02-16 22:47:17 +01:00
f6453e0f47
Replace overwritten conversion methods with implicit method to retain expected method behavior
2017-02-16 21:55:30 +01:00
b9a1b0c386
Clarify how the scope parameter works on field methods
2017-02-16 20:53:41 +01:00
057cf2c8f7
Add Rackstash::Fields::Array#merge and #merge! which work similar to the union operator
2017-02-16 20:50:38 +01:00
b14f7a95af
Clarify that all field methods accepting values can also accept Proc
2017-02-16 20:38:25 +01:00
890b193234
Add basic array operations to Rackstash::Fields::Array
2017-02-16 01:14:20 +01:00
c401a29ab3
Allow to specify a custom scope in Rackstash::Fields::Array#concat
2017-02-16 00:41:40 +01:00
bd376af884
Use thread-safe raw objects for field hashes and arrays
2017-02-14 22:47:55 +01:00
5fc679a63a
Document additional public methods
2017-02-10 23:48:49 +01:00
ad038f4317
Add Rackstash::Fields::Array#<< to add a value at the end of the array
2017-02-10 23:22:41 +01:00
0292a7eacb
Resolve class ambiguity in Hash and Array constructors
2017-02-02 23:03:53 +01:00
b91a31335a
Add empty? predicate to Fields::Array
2017-02-02 23:03:53 +01:00
407b52120a
Add basic fields to hold additional data on Buffers
...
The fields follow the basic structure of basic Hashes and Arrays but
provide an interface better suitable for us. Specifically:
* They check and enforce the datatypes for keys and values to be
strictly JSON-conforming. Only the basic data-types are accepted
respectively converted to.
* Hashes only accept String keys.
* Basic values are always frozen.
2017-02-02 15:04:02 +01:00