attr_json 0.7.0 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/README.md +4 -6
- data/lib/attr_json.rb +0 -1
- data/lib/attr_json/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 23ec569c6ce1f117952719d5ec18e8cd30f2e80a13d55eab307d37db26308c19
|
4
|
+
data.tar.gz: bd676e6b2d8f606f1578cff495b4843e8722ca3f3dce2863226c59e7a716639b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c99101b1123256008aca96b8590a20906ca1650b1c70f82d24231043102296948070e2bcba78ec0c963e84c81f453b91bf82c2a0c7593f2ed57bc458365bf2f8
|
7
|
+
data.tar.gz: 0fe8b60b2b96116b298c44b27ea044f97278eb66114d97cb6f00f868e1c60444bf6a23fecdeceb2a2f52ae670af3cfd809dd6065af3f9bd062df8373f4887897
|
data/CHANGELOG.md
ADDED
@@ -0,0 +1,8 @@
|
|
1
|
+
# Changelog
|
2
|
+
Notable changes to this project will be documented in this file.
|
3
|
+
|
4
|
+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
5
|
+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
6
|
+
|
7
|
+
## [Unreleased]
|
8
|
+
|
data/README.md
CHANGED
@@ -11,8 +11,6 @@ Typed and cast like Active Record. Supporting [nested models](#nested), [dirty t
|
|
11
11
|
|
12
12
|
[Why might you want or not want this?](#why)
|
13
13
|
|
14
|
-
AttrJson is pre-1.0. The functionality that is documented here _is_ already implemented (these docs are real, not vaporware) and seems pretty solid. It may still have backwards-incompat changes before 1.0 release. Review and feedback is very welcome.
|
15
|
-
|
16
14
|
Developed for postgres, but most features should work with MySQL json columns too, although
|
17
15
|
has not yet been tested with MySQL.
|
18
16
|
|
@@ -397,16 +395,16 @@ to prevent overwriting other updates from processes.
|
|
397
395
|
|
398
396
|
## State of Code, and To Be Done
|
399
397
|
|
400
|
-
|
401
|
-
|
402
|
-
Backwards incompatible changes are possible before 1.0. Once I tag something 1.0, I'm pretty serious about minimizing backwards incompats.
|
398
|
+
The functionality that is here seems pretty solid, and is being used by jrochkind in a production app.
|
403
399
|
|
404
|
-
|
400
|
+
We are committed to [semantic versioning](https://semver.org/) and will endeavor to release no backwards breaking changes without a major version. We are also serious about minimizing backwards incompat releases altogether (ie minimiing major version releases).
|
405
401
|
|
406
402
|
Feedback of any kind of _very welcome_, please feel free to use the issue tracker.
|
407
403
|
|
408
404
|
Except for the jsonb_contains stuff using postgres jsonb contains operator, I don't believe any postgres-specific features are used. It ought to work with MySQL, testing and feedback welcome. (Or a PR to test on MySQL?). My own interest is postgres.
|
409
405
|
|
406
|
+
This is still mostly a single-maintainer operation, so has all the sustainability risks of that. Although there are other people using and contributing to it, check out the Github Issues and Pull Request tabs yourself to get a sense.
|
407
|
+
|
410
408
|
### Possible future features:
|
411
409
|
|
412
410
|
* partial updates for json hashes would be really nice: Using postgres jsonb merge operators to only overwrite what changed. In my initial attempts, AR doesn't make it easy to customize this.
|
data/lib/attr_json.rb
CHANGED
data/lib/attr_json/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: attr_json
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jonathan Rochkind
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-10-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
@@ -133,6 +133,7 @@ files:
|
|
133
133
|
- ".travis.yml"
|
134
134
|
- ".yardopts"
|
135
135
|
- Appraisals
|
136
|
+
- CHANGELOG.md
|
136
137
|
- Gemfile
|
137
138
|
- LICENSE.txt
|
138
139
|
- README.md
|