dm-postgres-types 0.0.5 → 0.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +6 -6
- data/lib/dm-postgres-types/property/pg_numeric_array.rb +1 -1
- data/lib/dm-postgres-types/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ac68ef4ab7b2267a163ab7997a29d7f0b9993e59
|
|
4
|
+
data.tar.gz: 2cf75d802f6f3ff3386457735d6209b5b12e6e03
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7facc342cf60b5931f455c8af5538e2aea3d70062edaa65207f293e8ed7bc832ce2c825d4fc253f186d95876e46a15a69d7e2b42a78c99cfb31e85c5aa48de4f
|
|
7
|
+
data.tar.gz: 5eaba9a8709fa5295442260df976ee16baf7839d943fb7ab5236a28b9e226e466adbfc0eb352edeb2314d67eb183f8e493b14f1d848d52004dcb33676313d91c
|
data/README.md
CHANGED
|
@@ -52,7 +52,7 @@ class MyModel
|
|
|
52
52
|
include DataMapper::Resource
|
|
53
53
|
|
|
54
54
|
property :id, Serial
|
|
55
|
-
property :decimals, PgNumericArray, scale: 5, precision:
|
|
55
|
+
property :decimals, PgNumericArray, scale: 5, precision: 2
|
|
56
56
|
end
|
|
57
57
|
|
|
58
58
|
m = MyModel.new(decimals: [1.13, 2.19, 5.11])
|
|
@@ -67,7 +67,7 @@ The default percision is `10` and the default scale is `0`, which is suitable fo
|
|
|
67
67
|
|
|
68
68
|
---
|
|
69
69
|
|
|
70
|
-
### DataMapper::Property::
|
|
70
|
+
### DataMapper::Property::PgHStore
|
|
71
71
|
|
|
72
72
|
Example:
|
|
73
73
|
|
|
@@ -113,7 +113,7 @@ Please note: JSON de/serializtion is being handled by the `Oj` gem, which is the
|
|
|
113
113
|
|
|
114
114
|
## Contributing
|
|
115
115
|
|
|
116
|
-
1. Fork it ( http://github.com
|
|
116
|
+
1. Fork it ( http://github.com/xentek/dm-postgres-types/fork )
|
|
117
117
|
2. Create your feature branch (`git checkout -b my-new-feature`)
|
|
118
118
|
3. Commit your changes (`git commit -am 'Add some feature'`)
|
|
119
119
|
4. Push to the branch (`git push origin my-new-feature`)
|
|
@@ -122,6 +122,6 @@ Please note: JSON de/serializtion is being handled by the `Oj` gem, which is the
|
|
|
122
122
|
## Shout Outs
|
|
123
123
|
|
|
124
124
|
This library is heavily inspired by and borrows ideas and sometimes code from:
|
|
125
|
-
-
|
|
126
|
-
-
|
|
127
|
-
-
|
|
125
|
+
- [dm-pg-types](https://github.com/svs/dm-pg-types)
|
|
126
|
+
- [dm-types](https://github.com/datamapper/dm-types)
|
|
127
|
+
- [dm-pg-json](https://github.com/styleseek/dm-pg-json)
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: dm-postgres-types
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.6
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Eric Marden
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2015-10-17 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: dm-core
|
|
@@ -176,7 +176,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
176
176
|
version: '0'
|
|
177
177
|
requirements: []
|
|
178
178
|
rubyforge_project:
|
|
179
|
-
rubygems_version: 2.
|
|
179
|
+
rubygems_version: 2.4.5.1
|
|
180
180
|
signing_key:
|
|
181
181
|
specification_version: 4
|
|
182
182
|
summary: Adds support for native PostgreSQL datatypes to DataMapper
|