rails-bigint-pk 1.1.0 → 1.2.0
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/.ruby-version +1 -1
- data/.travis.yml +1 -1
- data/Changelog +7 -0
- data/Readme.md +11 -10
- data/lib/bigint_pk/version.rb +1 -1
- data/rails-bigint-pk.gemspec +6 -2
- data/spec/fixtures/Gemfile +1 -1
- metadata +8 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5227f3e51422713cbf2f5561bbdb1ea8cbdbd5e4
|
4
|
+
data.tar.gz: e4edf720d1967c57afc684877340f2815e35f56e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 28a0a561345e38398380179a91f66c6894f2f4dd0ecfb8b1cac55b677dc1f3a0f20eccc42450ed198b0bb6de2f1dfe94163795474ebb996f6e5e341fed2f54c0
|
7
|
+
data.tar.gz: 2b64548c7730f66fb50c6cf427cc3b63d13456fe97eea83d16f7b7699f0e957b71448906ae26727a087d2a971cc6c354971b8cf09539131d769980f82b9bdb88
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
ruby-2.1.
|
1
|
+
ruby-2.1.5
|
data/.travis.yml
CHANGED
data/Changelog
CHANGED
data/Readme.md
CHANGED
@@ -7,15 +7,15 @@ in MySQL and PostgreSQL.
|
|
7
7
|
|
8
8
|
### Requirements
|
9
9
|
|
10
|
-
rails-bigint-pk has been tested with rails 4.0
|
11
|
-
is the latest patch version for 4.
|
12
|
-
|
10
|
+
rails-bigint-pk has been tested with rails 4.2.0, which at the time of writing
|
11
|
+
is the latest patch version for 4.2. If you use a higher patch version, we
|
12
|
+
recommend that you run the test suite against your version of rails and activerecord.
|
13
13
|
|
14
14
|
### Installation & Usage
|
15
15
|
|
16
16
|
#### Rails 4
|
17
17
|
|
18
|
-
rails-bigint-pk supports Rails 4 and 4.
|
18
|
+
rails-bigint-pk supports Rails 4.2, 4.1, and 4.0. To install, you can either
|
19
19
|
download releases from Rubygems by adding the following to your
|
20
20
|
`Gemfile`:
|
21
21
|
|
@@ -70,22 +70,23 @@ end
|
|
70
70
|
add_column :my_table, :other_table_id, :int
|
71
71
|
```
|
72
72
|
|
73
|
-
|
74
73
|
### Running Tests Against Later Versions of Rails
|
75
74
|
|
76
75
|
```bash
|
77
76
|
git clone git://github.com/caboteria/rails-bigint-pk.git
|
78
77
|
cd rails-bigint-pk
|
79
78
|
|
80
|
-
# edit
|
79
|
+
# edit spec/fixtures/Gemfile to set the version of activerecord to
|
81
80
|
# the one you are using
|
82
81
|
|
83
|
-
|
84
|
-
|
85
|
-
# verify that Gemfile.lock's entry for activerecord matches the version you want
|
86
|
-
# to test against.
|
82
|
+
# purge the test fixture
|
83
|
+
rm -rf tmp/test\_rails\_app
|
87
84
|
|
88
85
|
# This will run integration specs against all supported database types, and
|
89
86
|
# requires running servers for postgres and mysql.
|
90
87
|
bundle exec rake spec
|
88
|
+
|
89
|
+
# verify that tmp/test_rails_app/Gemfile.lock's entry for activerecord
|
90
|
+
# matches the version you wanted to test against.
|
91
|
+
|
91
92
|
```
|
data/lib/bigint_pk/version.rb
CHANGED
data/rails-bigint-pk.gemspec
CHANGED
@@ -22,8 +22,12 @@ Gem::Specification.new do |s|
|
|
22
22
|
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
23
23
|
s.require_paths = ["lib"]
|
24
24
|
|
25
|
-
|
26
|
-
|
25
|
+
# we might work with older rubies but this is the oldest one that we
|
26
|
+
# test with
|
27
|
+
s.required_ruby_version = '>= 1.9.3'
|
28
|
+
|
29
|
+
s.add_runtime_dependency "activerecord", '>= 4.0', '< 5'
|
30
|
+
s.add_runtime_dependency "railties", '>= 4.0', '< 5'
|
27
31
|
|
28
32
|
s.add_development_dependency "rspec", '~> 2.14'
|
29
33
|
s.add_development_dependency "travis-lint", '~> 1.7'
|
data/spec/fixtures/Gemfile
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails-bigint-pk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David J. Hamilton
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-12-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
@@ -19,7 +19,7 @@ dependencies:
|
|
19
19
|
version: '4.0'
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: '
|
22
|
+
version: '5'
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -29,7 +29,7 @@ dependencies:
|
|
29
29
|
version: '4.0'
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: '
|
32
|
+
version: '5'
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: railties
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -39,7 +39,7 @@ dependencies:
|
|
39
39
|
version: '4.0'
|
40
40
|
- - "<"
|
41
41
|
- !ruby/object:Gem::Version
|
42
|
-
version: '
|
42
|
+
version: '5'
|
43
43
|
type: :runtime
|
44
44
|
prerelease: false
|
45
45
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -49,7 +49,7 @@ dependencies:
|
|
49
49
|
version: '4.0'
|
50
50
|
- - "<"
|
51
51
|
- !ruby/object:Gem::Version
|
52
|
-
version: '
|
52
|
+
version: '5'
|
53
53
|
- !ruby/object:Gem::Dependency
|
54
54
|
name: rspec
|
55
55
|
requirement: !ruby/object:Gem::Requirement
|
@@ -278,7 +278,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
278
278
|
requirements:
|
279
279
|
- - ">="
|
280
280
|
- !ruby/object:Gem::Version
|
281
|
-
version:
|
281
|
+
version: 1.9.3
|
282
282
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
283
283
|
requirements:
|
284
284
|
- - ">="
|
@@ -286,7 +286,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
286
286
|
version: '0'
|
287
287
|
requirements: []
|
288
288
|
rubyforge_project:
|
289
|
-
rubygems_version: 2.
|
289
|
+
rubygems_version: 2.4.3
|
290
290
|
signing_key:
|
291
291
|
specification_version: 4
|
292
292
|
summary: Easily use 64-bit primary keys in rails
|
@@ -309,4 +309,3 @@ test_files:
|
|
309
309
|
- spec/support/logging.rb
|
310
310
|
- spec/support/rails.rb
|
311
311
|
- spec/support/rspec.rb
|
312
|
-
has_rdoc:
|