couch-migrate 1.1.1 → 1.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/couch-migrate.gemspec +1 -1
- data/lib/couch_migrate/base_migrater.rb +3 -0
- data/lib/couch_migrate/couch_executer.rb +2 -0
- data/lib/couch_migrate/couch_migrater.rb +4 -2
- data/lib/couch_migrate/couch_persisted_list.rb +1 -0
- data/lib/couch_migrate/file_migrater.rb +4 -2
- metadata +14 -14
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.1.
|
1
|
+
1.1.2
|
data/couch-migrate.gemspec
CHANGED
@@ -1,10 +1,12 @@
|
|
1
1
|
require_relative 'base_migrater'
|
2
|
+
require_relative 'couch_persisted_list'
|
3
|
+
require_relative 'couch_executer'
|
2
4
|
|
3
5
|
module CouchMigrate
|
4
6
|
class CouchMigrater < BaseMigrater
|
5
7
|
def initialize(database, migration_directory="db/migrate")
|
6
|
-
persisted_list =
|
7
|
-
executer =
|
8
|
+
persisted_list = CouchPersistedList.new(database)
|
9
|
+
executer = CouchExecuter
|
8
10
|
super(persisted_list, executer, migration_directory)
|
9
11
|
self
|
10
12
|
end
|
@@ -1,10 +1,12 @@
|
|
1
1
|
require_relative 'base_migrater'
|
2
|
+
require_relative 'file_persisted_list'
|
3
|
+
require_relative 'couch_executer'
|
2
4
|
|
3
5
|
module CouchMigrate
|
4
6
|
class FileMigrater < BaseMigrater
|
5
7
|
def initialize(migration_directory="db/migrate")
|
6
|
-
persisted_list =
|
7
|
-
executer =
|
8
|
+
persisted_list = FilePersistedList.new(migration_directory)
|
9
|
+
executer = CouchExecuter
|
8
10
|
super(persisted_list, executer, migration_directory)
|
9
11
|
self
|
10
12
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: couch-migrate
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -14,7 +14,7 @@ default_executable:
|
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: couchrest
|
17
|
-
requirement: &
|
17
|
+
requirement: &2158537840 !ruby/object:Gem::Requirement
|
18
18
|
none: false
|
19
19
|
requirements:
|
20
20
|
- - ! '>='
|
@@ -22,10 +22,10 @@ dependencies:
|
|
22
22
|
version: '0'
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
|
-
version_requirements: *
|
25
|
+
version_requirements: *2158537840
|
26
26
|
- !ruby/object:Gem::Dependency
|
27
27
|
name: rspec
|
28
|
-
requirement: &
|
28
|
+
requirement: &2158536380 !ruby/object:Gem::Requirement
|
29
29
|
none: false
|
30
30
|
requirements:
|
31
31
|
- - ~>
|
@@ -33,10 +33,10 @@ dependencies:
|
|
33
33
|
version: 2.3.0
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
|
-
version_requirements: *
|
36
|
+
version_requirements: *2158536380
|
37
37
|
- !ruby/object:Gem::Dependency
|
38
38
|
name: yard
|
39
|
-
requirement: &
|
39
|
+
requirement: &2158534860 !ruby/object:Gem::Requirement
|
40
40
|
none: false
|
41
41
|
requirements:
|
42
42
|
- - ~>
|
@@ -44,10 +44,10 @@ dependencies:
|
|
44
44
|
version: 0.6.0
|
45
45
|
type: :development
|
46
46
|
prerelease: false
|
47
|
-
version_requirements: *
|
47
|
+
version_requirements: *2158534860
|
48
48
|
- !ruby/object:Gem::Dependency
|
49
49
|
name: bundler
|
50
|
-
requirement: &
|
50
|
+
requirement: &2158513340 !ruby/object:Gem::Requirement
|
51
51
|
none: false
|
52
52
|
requirements:
|
53
53
|
- - ~>
|
@@ -55,10 +55,10 @@ dependencies:
|
|
55
55
|
version: 1.0.0
|
56
56
|
type: :development
|
57
57
|
prerelease: false
|
58
|
-
version_requirements: *
|
58
|
+
version_requirements: *2158513340
|
59
59
|
- !ruby/object:Gem::Dependency
|
60
60
|
name: jeweler
|
61
|
-
requirement: &
|
61
|
+
requirement: &2158512000 !ruby/object:Gem::Requirement
|
62
62
|
none: false
|
63
63
|
requirements:
|
64
64
|
- - ~>
|
@@ -66,10 +66,10 @@ dependencies:
|
|
66
66
|
version: 1.6.4
|
67
67
|
type: :development
|
68
68
|
prerelease: false
|
69
|
-
version_requirements: *
|
69
|
+
version_requirements: *2158512000
|
70
70
|
- !ruby/object:Gem::Dependency
|
71
71
|
name: rcov
|
72
|
-
requirement: &
|
72
|
+
requirement: &2158510080 !ruby/object:Gem::Requirement
|
73
73
|
none: false
|
74
74
|
requirements:
|
75
75
|
- - ! '>='
|
@@ -77,7 +77,7 @@ dependencies:
|
|
77
77
|
version: '0'
|
78
78
|
type: :development
|
79
79
|
prerelease: false
|
80
|
-
version_requirements: *
|
80
|
+
version_requirements: *2158510080
|
81
81
|
description: A simple migration system for CouchDB.
|
82
82
|
email: greg@greglearns.com
|
83
83
|
executables: []
|
@@ -132,7 +132,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
132
132
|
version: '0'
|
133
133
|
segments:
|
134
134
|
- 0
|
135
|
-
hash:
|
135
|
+
hash: 126001030709164033
|
136
136
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
137
137
|
none: false
|
138
138
|
requirements:
|