activerecord-pg_array 0.1.3 → 0.1.4
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 +1 -1
- data/activerecord-pg_array.gemspec +1 -1
- data/lib/activerecord/pg_array/version.rb +1 -1
- data/spec/lib/pg_array_spec.rb +5 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 84b371ce9afd7b7d3105306e2c936a4b28a30f27
|
4
|
+
data.tar.gz: e3d48d01f780fb13d5b2930c1da52aaf5759ee08
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 13650867ba62d8df654497947c45f6f5536a4f53a3bc7cfd0cc8950093294d3c77ee08c247aac031e2fa7a2d5186034e8044f8e0cc08afd63e0e7d37649f99a0
|
7
|
+
data.tar.gz: d777f5ee40b572899804e950bca6ed60fdf4511f129701a2d32a65bf7c67a57814220df36b6b6e58cf791102aeab961445f4e7dd2ec99e204fd61dff21b085cb
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# ActiveRecord::PGArray
|
2
2
|
|
3
|
-
This gem defines methods in your models for ActiveRecord attributes that use Postgresql's arrays.
|
3
|
+
This gem defines methods in your models for ActiveRecord 4.0+ attributes that use Postgresql's arrays.
|
4
4
|
|
5
5
|
I wrote this gem because I realized that working with Postgresql arrays was not as straight-forward as I had hoped.
|
6
6
|
|
@@ -19,7 +19,7 @@ Gem::Specification.new do |spec|
|
|
19
19
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
20
20
|
spec.require_paths = ["lib"]
|
21
21
|
|
22
|
-
spec.add_dependency "activerecord", "~> 4.0
|
22
|
+
spec.add_dependency "activerecord", "~> 4.0"
|
23
23
|
spec.add_development_dependency "bundler", "~> 1.3"
|
24
24
|
spec.add_development_dependency "rake", "~> 10.1"
|
25
25
|
spec.add_development_dependency "rspec", "~> 2.14"
|
data/spec/lib/pg_array_spec.rb
CHANGED
@@ -51,6 +51,11 @@ describe WolfTracker do
|
|
51
51
|
context 'persistence' do
|
52
52
|
|
53
53
|
context "add_<attr_name>" do
|
54
|
+
it "should contain the id in the <attr>_ids attribute" do
|
55
|
+
wolf_tracker.add_wolf(wolfy)
|
56
|
+
expect(wolf_tracker.wolf_ids).to eq [wolfy.id]
|
57
|
+
end
|
58
|
+
|
54
59
|
it "should add_<attr>" do
|
55
60
|
wolf_tracker.add_wolf(wolfy)
|
56
61
|
wolf_tracker.save!
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: activerecord-pg_array
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sean McCleary
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-07-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
@@ -173,3 +173,4 @@ test_files:
|
|
173
173
|
- spec/schema.rb
|
174
174
|
- spec/spec_helper.rb
|
175
175
|
- spec/support/active_record.rb
|
176
|
+
has_rdoc:
|