jsonb_accessor 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.ruby-version +1 -1
- data/.travis.yml +1 -0
- data/README.md +4 -19
- data/db/config.yml +0 -3
- data/lib/jsonb_accessor/macro.rb +1 -0
- data/lib/jsonb_accessor/version.rb +1 -1
- metadata +3 -4
- data/docker-compose.yml +0 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dba6b66a157993e3d518a9ca752e01896450a31d
|
4
|
+
data.tar.gz: e66183b852574346ffbb79d1cc0bb1a5ffc3806c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6cc7e7aee5f2ac627f2d6e447744e6fc453e93e4ea6a19611b59e5c0dde20d1e996a3de94d870a96e1dd83ce8149e86c13738b032ab129811c9cceaeafeeac5f
|
7
|
+
data.tar.gz: e2f92dfb4f94a9886bc92772145d5d9b671a48055f2b0cad1857e50e62ee651a327d124c37202a2a84b7f577b12cc08bea5dcc2e3d180f453ff6fc9366f5443f
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.
|
1
|
+
2.3.0
|
data/.travis.yml
CHANGED
data/README.md
CHANGED
@@ -90,38 +90,23 @@ end
|
|
90
90
|
|
91
91
|
### Supported Types
|
92
92
|
|
93
|
-
|
93
|
+
Because the underlying storage mechanism is JSON, we attempt to abide by the limitations of what can be represented natively. We use [ActiveRecord::Type](https://github.com/rails/rails/blob/master/activerecord/lib/active_record/type.rb) for seralization, but any type defined in the [Postgres connection adapter](https://github.com/rails/rails/blob/master/activerecord/lib/active_record/connection_adapters/postgresql/oid.rb) will also be accepted. Beware of the impact of using complex Postgres column types such as inet, enum, hstore, etc... We plan to restrict which types are allowed in a future patch.
|
94
|
+
|
95
|
+
The following types are explicitly supported.
|
94
96
|
|
95
97
|
* big_integer
|
96
98
|
* binary
|
97
|
-
* bit
|
98
|
-
* bit_varying
|
99
99
|
* boolean
|
100
|
-
* bytea
|
101
|
-
* cidr
|
102
100
|
* date
|
103
101
|
* date_time
|
104
102
|
* decimal
|
105
|
-
* decimal_without_scale
|
106
|
-
* enum
|
107
103
|
* float
|
108
|
-
* hstore
|
109
|
-
* inet
|
110
104
|
* integer
|
111
|
-
* json
|
112
|
-
* jsonb
|
113
|
-
* money
|
114
|
-
* point
|
115
|
-
* range
|
116
|
-
* specialized_string
|
117
105
|
* string
|
118
106
|
* text
|
119
107
|
* time
|
120
|
-
* unsigned_integer
|
121
|
-
* uuid
|
122
108
|
* value
|
123
|
-
|
124
|
-
* xml
|
109
|
+
|
125
110
|
|
126
111
|
Typed arrays are also supported by specifying `:type_array` (i.e. `:float_array`). `:array` is interpreted as an array of `value` types.
|
127
112
|
|
data/db/config.yml
CHANGED
data/lib/jsonb_accessor/macro.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jsonb_accessor
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Crismali
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2016-04-11 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activerecord
|
@@ -245,7 +245,6 @@ files:
|
|
245
245
|
- db/config.yml
|
246
246
|
- db/migrate/20150407031737_set_up_testing_db.rb
|
247
247
|
- db/schema.rb
|
248
|
-
- docker-compose.yml
|
249
248
|
- gemfiles/activerecord_4.2.1.gemfile
|
250
249
|
- gemfiles/activerecord_4.2.1.gemfile.lock
|
251
250
|
- gemfiles/activerecord_4.2.2.gemfile
|
@@ -283,7 +282,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
283
282
|
version: '0'
|
284
283
|
requirements: []
|
285
284
|
rubyforge_project:
|
286
|
-
rubygems_version: 2.
|
285
|
+
rubygems_version: 2.5.1
|
287
286
|
signing_key:
|
288
287
|
specification_version: 4
|
289
288
|
summary: Adds typed jsonb backed fields to your ActiveRecord models.
|
data/docker-compose.yml
DELETED