active_record_migrations 4.2.6.1 → 5.0.0.0.pre.optimistic
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +12 -12
- data/active_record_migrations.gemspec +6 -5
- data/lib/active_record_migrations/version.rb +1 -1
- metadata +24 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dc50d7a8ecbbe71f5a428629e5d76a5240f7011b
|
4
|
+
data.tar.gz: cebfdda0a6354adf111378a535d70bf33fedea82
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f25eff66744a723dfaa62e4bf92e426491d2fcfdfbdae1b821ccb7ce69fd2974a2bf3e6140af2b04fb31687ca4d45b6bad4926c67e8c71f997952b44b7ff27c2
|
7
|
+
data.tar.gz: d4521ef45d0c300dcf3cf97ce533d7ae6f001c4e1e65f259ec9f3ed0da99d1010d51094748b1112f7e475cdeeadb5fe310f673785fdfaf2f6861c9df3e18e90d
|
data/README.md
CHANGED
@@ -2,11 +2,19 @@
|
|
2
2
|
|
3
3
|
Allows you to use ActiveRecord migrations in non-Rails projects.
|
4
4
|
|
5
|
+
This branch is for the _optimistic_ version, assuming the internals of AR migrations we rely on
|
6
|
+
won't change until the next major version. However, we can't really promiss the related AR
|
7
|
+
migrations code won't change in minor or patch versions of AR. That's why we can't release this
|
8
|
+
branch as a final version.
|
9
|
+
|
10
|
+
But at least you should be able to try it with basically any AR version in case you have to deal
|
11
|
+
with conflicts.
|
12
|
+
|
5
13
|
## Installation
|
6
14
|
|
7
15
|
Add this line to your application's Gemfile (run `bundle init` if you don't have one):
|
8
16
|
|
9
|
-
gem 'active_record_migrations'
|
17
|
+
gem 'active_record_migrations', '5.0.0.0.pre.optimistic'
|
10
18
|
gem 'sqlite3' # or 'pg', 'mysql2', ...
|
11
19
|
|
12
20
|
And then execute:
|
@@ -71,18 +79,10 @@ You can specify the environment by setting the `db` environment variable:
|
|
71
79
|
|
72
80
|
## Versioning
|
73
81
|
|
74
|
-
|
75
|
-
AR version is 4.0.1, this gem will be versioned 4.0.1.x with x starting in 0.
|
76
|
-
|
77
|
-
## I can't find a release for the AR version we rely on
|
78
|
-
|
79
|
-
We have to use pessimistic versioning because we rely on internal details of AR migrations in
|
80
|
-
order to override the migrations path. So far the internal implementation since 4.0.0.0 hasn't
|
81
|
-
changed, so if you're interested on another version with optimistic versioning dependency in
|
82
|
-
order to have more flexibility you should check out the [optimistic](../../tree/optimistic) branch.
|
82
|
+
For final releases, the version follows ActiveRecord versions plus a patch version from our own.
|
83
|
+
For instance, if AR version is 4.0.1, this gem will be versioned 4.0.1.x with x starting in 0.
|
83
84
|
|
84
|
-
|
85
|
-
pull requests ignored a few times without feedback I gave up.
|
85
|
+
This branch however won't use pessimistic locking so that you have some flexibility if you need.
|
86
86
|
|
87
87
|
## Contributing
|
88
88
|
|
@@ -20,13 +20,14 @@ Gem::Specification.new do |spec|
|
|
20
20
|
|
21
21
|
spec.add_development_dependency "bundler"
|
22
22
|
spec.add_dependency "rake"
|
23
|
-
# spec.add_dependency "railties", "~> 4.2.6"
|
24
|
-
# spec.add_dependency "activerecord", "~> 4.2.6"
|
25
23
|
# We rely on a kind of monkey patch for allowing us to override the migrations path.
|
26
|
-
#
|
24
|
+
# The final releases fix on an specific version of AR and check if the override of
|
27
25
|
# ActiveRecord::Generators::MigrationGenerator#create_migration_file is correct
|
28
26
|
# before upgrading AR dependency. See ARM::Generators::MigrationGenerator impl.
|
29
|
-
|
30
|
-
|
27
|
+
# The "optimistic" versions allow more flexibility to support other AR versions but
|
28
|
+
# on the other side we can't really guarantee that it will actually work since it depends
|
29
|
+
# on internal implementation of AR migrations that could change any time.
|
30
|
+
spec.add_dependency "railties", ">= 4.0.0", "< 6.0"
|
31
|
+
spec.add_dependency "activerecord", ">= 4.0.0", "< 6.0"
|
31
32
|
end
|
32
33
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: active_record_migrations
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 5.0.0.0.pre.optimistic
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rodrigo Rosenfeld Rosas
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-07-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -42,30 +42,42 @@ dependencies:
|
|
42
42
|
name: railties
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- -
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: 4.0.0
|
48
|
+
- - "<"
|
46
49
|
- !ruby/object:Gem::Version
|
47
|
-
version:
|
50
|
+
version: '6.0'
|
48
51
|
type: :runtime
|
49
52
|
prerelease: false
|
50
53
|
version_requirements: !ruby/object:Gem::Requirement
|
51
54
|
requirements:
|
52
|
-
- -
|
55
|
+
- - ">="
|
53
56
|
- !ruby/object:Gem::Version
|
54
|
-
version: 4.
|
57
|
+
version: 4.0.0
|
58
|
+
- - "<"
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
version: '6.0'
|
55
61
|
- !ruby/object:Gem::Dependency
|
56
62
|
name: activerecord
|
57
63
|
requirement: !ruby/object:Gem::Requirement
|
58
64
|
requirements:
|
59
|
-
- -
|
65
|
+
- - ">="
|
60
66
|
- !ruby/object:Gem::Version
|
61
|
-
version: 4.
|
67
|
+
version: 4.0.0
|
68
|
+
- - "<"
|
69
|
+
- !ruby/object:Gem::Version
|
70
|
+
version: '6.0'
|
62
71
|
type: :runtime
|
63
72
|
prerelease: false
|
64
73
|
version_requirements: !ruby/object:Gem::Requirement
|
65
74
|
requirements:
|
66
|
-
- -
|
75
|
+
- - ">="
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: 4.0.0
|
78
|
+
- - "<"
|
67
79
|
- !ruby/object:Gem::Version
|
68
|
-
version:
|
80
|
+
version: '6.0'
|
69
81
|
description: ActiveRecord Stand-alone migrations
|
70
82
|
email:
|
71
83
|
- rr.rosas@gmail.com
|
@@ -99,9 +111,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
99
111
|
version: '0'
|
100
112
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
101
113
|
requirements:
|
102
|
-
- - "
|
114
|
+
- - ">"
|
103
115
|
- !ruby/object:Gem::Version
|
104
|
-
version:
|
116
|
+
version: 1.3.1
|
105
117
|
requirements: []
|
106
118
|
rubyforge_project:
|
107
119
|
rubygems_version: 2.5.1
|