active_record_migrations 5.0.0.1.pre.optimistic → 5.0.0.1

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: 0c2328cd7436b833ea5792737def813f1ccf6f61
4
- data.tar.gz: 198fa286927c074400dcaa3df32b9ed16aa1fd11
3
+ metadata.gz: 47912ffbd2b1cd1519c1ff6d5a86313c373ab505
4
+ data.tar.gz: cc0f033e669b7de79ceb7d0ff12388bb44213b54
5
5
  SHA512:
6
- metadata.gz: ecc7b2ed0818f9e7ce96b3c24f057a569092b6febd1ac23668152b093a0fd868ef99fed966a7f37b1bdc9a1c0689204e562da08b8a507da9a320d04e317de900
7
- data.tar.gz: 1c38744b93d9ebd6ce8563667a6aa8b655e19fd996cc45a86a2130676c9ec7385bbf73934b22c8144b77d31ae8f32c71a2539f7ccb64654ea2cad73f9a62573e
6
+ metadata.gz: c8a44c00a493baa65b49d03d557e9f5fad273a265c3f4c284d0a26046b3982167177f4c19a243d224791d20a4108add3be20ab5d39e2b58b35c9a37836999bcb
7
+ data.tar.gz: 1d92313a577082c99c19dcd826f49151c483daf4779e1a03d6436d58df91557a9919a2c0349194369ce9b9bcccf8e33b46b8ffea92168a7dd8207bdfdc5c5939
data/README.md CHANGED
@@ -2,19 +2,11 @@
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
-
13
5
  ## Installation
14
6
 
15
7
  Add this line to your application's Gemfile (run `bundle init` if you don't have one):
16
8
 
17
- gem 'active_record_migrations', '5.0.0.1.pre.optimistic'
9
+ gem 'active_record_migrations'
18
10
  gem 'sqlite3' # or 'pg', 'mysql2', ...
19
11
 
20
12
  And then execute:
@@ -48,7 +40,7 @@ will be created under `db/migrate`. If you want to keep with the defaults, creat
48
40
  ```
49
41
 
50
42
  If you prefer to specify your settings in plain Ruby, add this to your Rakefile,
51
- before calling `ActiveRecordMigrations.load_taks`:
43
+ before calling `ActiveRecordMigrations.load_tasks`:
52
44
 
53
45
  ```ruby
54
46
  ActiveRecordMigrations.configure do |c|
@@ -79,10 +71,18 @@ You can specify the environment by setting the `db` environment variable:
79
71
 
80
72
  ## Versioning
81
73
 
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.
74
+ The version follows ActiveRecord versions plus a patch version from our own. For instance, if
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.
84
83
 
85
- This branch however won't use pessimistic locking so that you have some flexibility if you need.
84
+ I've already tried to merge the required changes to AR itself a few times but after having my
85
+ pull requests ignored a few times without feedback I gave up.
86
86
 
87
87
  ## Contributing
88
88
 
@@ -20,14 +20,15 @@ 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", "~> 5.0.0"
24
+ # spec.add_dependency "activerecord", "~> 5.0.0"
23
25
  # We rely on a kind of monkey patch for allowing us to override the migrations path.
24
- # The final releases fix on an specific version of AR and check if the override of
26
+ # So it's better to fix on an specific version of AR and check if the override of
25
27
  # ActiveRecord::Generators::MigrationGenerator#create_migration_file is correct
26
28
  # before upgrading AR dependency. See ARM::Generators::MigrationGenerator impl.
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"
29
+ #spec.add_dependency "railties", "5.0.0"
30
+ #spec.add_dependency "activerecord", "5.0.0"
31
+ spec.add_dependency "railties", "5.0.0"
32
+ spec.add_dependency "activerecord", "5.0.0"
32
33
  end
33
34
 
@@ -5,10 +5,6 @@ require 'rails'
5
5
  require 'rails/application'
6
6
  require 'active_record_migrations/configurations'
7
7
 
8
- # those requires are missing from AR but are required:
9
- require 'zlib'
10
- require 'digest'
11
-
12
8
  module ActiveRecordMigrations
13
9
  include ActiveRecord::Tasks
14
10
 
@@ -1,3 +1,3 @@
1
1
  module ActiveRecordMigrations
2
- VERSION = "5.0.0.1-optimistic"
2
+ VERSION = "5.0.0.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_record_migrations
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.0.0.1.pre.optimistic
4
+ version: 5.0.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rodrigo Rosenfeld Rosas
@@ -42,42 +42,30 @@ dependencies:
42
42
  name: railties
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ">="
46
- - !ruby/object:Gem::Version
47
- version: 4.0.0
48
- - - "<"
45
+ - - '='
49
46
  - !ruby/object:Gem::Version
50
- version: '6.0'
47
+ version: 5.0.0
51
48
  type: :runtime
52
49
  prerelease: false
53
50
  version_requirements: !ruby/object:Gem::Requirement
54
51
  requirements:
55
- - - ">="
52
+ - - '='
56
53
  - !ruby/object:Gem::Version
57
- version: 4.0.0
58
- - - "<"
59
- - !ruby/object:Gem::Version
60
- version: '6.0'
54
+ version: 5.0.0
61
55
  - !ruby/object:Gem::Dependency
62
56
  name: activerecord
63
57
  requirement: !ruby/object:Gem::Requirement
64
58
  requirements:
65
- - - ">="
59
+ - - '='
66
60
  - !ruby/object:Gem::Version
67
- version: 4.0.0
68
- - - "<"
69
- - !ruby/object:Gem::Version
70
- version: '6.0'
61
+ version: 5.0.0
71
62
  type: :runtime
72
63
  prerelease: false
73
64
  version_requirements: !ruby/object:Gem::Requirement
74
65
  requirements:
75
- - - ">="
76
- - !ruby/object:Gem::Version
77
- version: 4.0.0
78
- - - "<"
66
+ - - '='
79
67
  - !ruby/object:Gem::Version
80
- version: '6.0'
68
+ version: 5.0.0
81
69
  description: ActiveRecord Stand-alone migrations
82
70
  email:
83
71
  - rr.rosas@gmail.com
@@ -111,9 +99,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
111
99
  version: '0'
112
100
  required_rubygems_version: !ruby/object:Gem::Requirement
113
101
  requirements:
114
- - - ">"
102
+ - - ">="
115
103
  - !ruby/object:Gem::Version
116
- version: 1.3.1
104
+ version: '0'
117
105
  requirements: []
118
106
  rubyforge_project:
119
107
  rubygems_version: 2.5.1