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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fdb375cbcf07846e95058205f81ffbf09fc2e1b0
4
- data.tar.gz: d6056b35652b183e771a14694e2b20c009d1b4d7
3
+ metadata.gz: 06cacae1c820981edadf5e28f3b97de3478e2d63
4
+ data.tar.gz: 99b790bd618f5a56afc842a24f312c4f355a26c1
5
5
  SHA512:
6
- metadata.gz: c0bba59eda8cec0d58f8856629f7f2b9ff2d89f106558150a4262c8dd15585ebadb5275e318e3345205b579b7b1c3c9601cffc5f06b8b867aa130c7ea42edacf
7
- data.tar.gz: bae1fee3ff3b0896ac2e4220ac58cd56f83eb351e2b0bfec3b117362147dc525baaf3f1c71046ec7fb0de8b159d4d387d27fb9568d0d1a31882febd980f2820b
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
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env bash
2
2
  set -e
3
- OUR_RUBY=2.2.3
3
+ OUR_RUBY=2.3.1
4
4
 
5
5
  rvm $OUR_RUBY do bundle check
6
6
  rvm $OUR_RUBY do bundle exec rake release
@@ -1,3 +1,6 @@
1
+ unless defined?(::ActiveRecord::ConnectionAdapters::PostgreSQLAdapter)
2
+ require 'active_record/connection_adapters/postgresql_adapter'
3
+ end
1
4
  Dir.glob(File.join(__dir__, 'active_record/**/*.rb')) do |f|
2
5
  require f
3
6
  end
@@ -1,3 +1,3 @@
1
1
  module ActiveRecordUpsert
2
- VERSION = "0.6.1"
2
+ VERSION = "0.6.2"
3
3
  end
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.1
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-14 00:00:00.000000000 Z
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.4.5.1
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