active_record_upsert 0.6.1 → 0.6.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +11 -0
- data/bin/release +1 -1
- data/lib/active_record_upsert/active_record.rb +3 -0
- data/lib/active_record_upsert/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: 06cacae1c820981edadf5e28f3b97de3478e2d63
|
4
|
+
data.tar.gz: 99b790bd618f5a56afc842a24f312c4f355a26c1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 322c3732887b857c93fbf804fcf8f85cbd7e5e6267036159ca2920576f21319ebb76b5a8fabec86686de2458b90f3b563ced8708d7dd52aa9331e49ee4098f1c
|
7
|
+
data.tar.gz: 9b5ab2a972e474ad1cbe4949e9209b8bd6fa53234ab69aefa0e9244e76b7437bf062ec43df7cc7230f20ff5b728baff9ce5ea5c7ea6db49e8c0b84528eec17be
|
data/README.md
CHANGED
@@ -57,6 +57,17 @@ r.upsert
|
|
57
57
|
=> #<MyRecord id: 2, name: "bar", created_at: "2016-02-20 14:17:50", updated_at: "2016-02-20 14:18:49", wisdom: 3>
|
58
58
|
```
|
59
59
|
|
60
|
+
## Tests
|
61
|
+
|
62
|
+
Make sure to have an upsert_test database:
|
63
|
+
|
64
|
+
```shell
|
65
|
+
DATABASE_URL=postgresql://localhost/upsert_test RAILS_ENV=test bundle exec bin/rails db:environment:set RAILS_ENV=test
|
66
|
+
DATABASE_URL=postgresql://localhost/upsert_test RAILS_ENV=test bundle exec rake db:create db:migrate
|
67
|
+
```
|
68
|
+
|
69
|
+
Then run `rspec`.
|
70
|
+
|
60
71
|
## Contributing
|
61
72
|
|
62
73
|
Bug reports and pull requests are welcome on GitHub at https://github.com/jesjos/active_record_upsert.
|
data/bin/release
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: active_record_upsert
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jesper Josefsson
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date: 2016-10-
|
12
|
+
date: 2016-10-16 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activerecord
|
@@ -200,7 +200,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
200
200
|
version: '0'
|
201
201
|
requirements: []
|
202
202
|
rubyforge_project:
|
203
|
-
rubygems_version: 2.
|
203
|
+
rubygems_version: 2.6.7
|
204
204
|
signing_key:
|
205
205
|
specification_version: 4
|
206
206
|
summary: Real PostgreSQL 9.5+ upserts using ON CONFLICT for ActiveRecord
|