dm-postgres-types 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 41186a22677f88a3295621deb3044ce5ef9b9691
4
- data.tar.gz: 722f25c14d97f0b4f81c8d99d4e0cf1b9d587704
3
+ metadata.gz: ac68ef4ab7b2267a163ab7997a29d7f0b9993e59
4
+ data.tar.gz: 2cf75d802f6f3ff3386457735d6209b5b12e6e03
5
5
  SHA512:
6
- metadata.gz: a5862e5f5e5ff4195a43c8ba22e86f3763b42c58952f1fe82247cebe454da0021d00b33418065fe04efffbdd4bac8cc39c30da8287e9100a3d7a084faef2177e
7
- data.tar.gz: 4480d05521ccee665aa95a76c064e0a2c5bf109326fb5f2af77df3eebfee71b6613b6e17bad6c6c063a4b2f20ac2de88382090f1c382a630f97dd44b0636f9d9
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: 10
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::PgArray
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/<my-github-username>/dm-postgres-types/fork )
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
- - `dm-pg-types` ([More Info](https://github.com/svs/dm-pg-types))
126
- - `dm-types` ([More Info](https://github.com/svs/dm-types))
127
- - `dm-pg-json` ([More Info](https://github.com/styleseek/dm-pg-json))
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)
@@ -18,7 +18,7 @@ module DataMapper
18
18
  raise ArgumentError, "precision must be greater than 0"
19
19
  end
20
20
 
21
- if scale <= 0
21
+ if scale < 0
22
22
  raise ArgumentError, "scale must be greater than or equal to 0"
23
23
  end
24
24
  end
@@ -1,5 +1,5 @@
1
1
  module DataMapper
2
2
  module PostgresTypes
3
- VERSION = "0.0.5"
3
+ VERSION = "0.0.6"
4
4
  end
5
5
  end
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.5
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: 2014-01-10 00:00:00.000000000 Z
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.2.0
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