sixarm_ruby_active_record_migration_mock 2.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +2 -0
- data/Rakefile +11 -0
- data/lib/sixarm_ruby_active_record_migration_mock.rb +10 -0
- data/lib/sixarm_ruby_active_record_migration_mock/active_record_migration_column_mock.rb +18 -0
- data/lib/sixarm_ruby_active_record_migration_mock/active_record_migration_index_mock.rb +16 -0
- data/lib/sixarm_ruby_active_record_migration_mock/active_record_migration_mock.rb +30 -0
- data/lib/sixarm_ruby_active_record_migration_mock/active_record_migration_table_mock.rb +40 -0
- data/test/sixarm_ruby_active_record_migration_mock_test.rb +9 -0
- data/test/sixarm_ruby_active_record_migration_mock_test/active_record_migration_column_mock_test.rb +11 -0
- data/test/sixarm_ruby_active_record_migration_mock_test/active_record_migration_index_mock_test.rb +10 -0
- data/test/sixarm_ruby_active_record_migration_mock_test/active_record_migration_mock_test.rb +8 -0
- data/test/sixarm_ruby_active_record_migration_mock_test/active_record_migration_table_mock_test.rb +72 -0
- data/test/sixarm_ruby_active_record_migration_mock_test/integration_test.rb +49 -0
- metadata +277 -0
- metadata.gz.sig +0 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: c5032cfb8dbd7e7d5bc7bdcea1cb1d655d33c4297a06589c31e497725f0417ca
|
4
|
+
data.tar.gz: 312f48f0a0a989209b522baaab8549f914eaed6240e0b952003189945c3b3029
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 6dc1df1532d7ee5f23257bf004f6cfd56772e1e0787821898dd04d1990d9fbc180e39416ccc67f7a706a5fb0d9faa8dcd0c89299d622cd5af7d205e38f0e0fa4
|
7
|
+
data.tar.gz: 26613495063493fa0e3b5ea1bf31142d178001fb036c03f0f792a0744eabe6321f5ef6bec8b4280df927649009a9e6f5d5ea09dc9c31f2871ffe94b103c66fe7
|
checksums.yaml.gz.sig
ADDED
Binary file
|
data.tar.gz.sig
ADDED
data/Rakefile
ADDED
@@ -0,0 +1,10 @@
|
|
1
|
+
# -*- coding: utf-8 -*-
|
2
|
+
|
3
|
+
[
|
4
|
+
"active_record_migration_mock",
|
5
|
+
"active_record_migration_table_mock",
|
6
|
+
"active_record_migration_column_mock",
|
7
|
+
"active_record_migration_index_mock",
|
8
|
+
].each{|x|
|
9
|
+
require_relative "sixarm_ruby_active_record_migration_mock/#{x}"
|
10
|
+
}
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# -*- coding: utf-8 -*-
|
2
|
+
|
3
|
+
class ActiveRecordMigrationColumnMock
|
4
|
+
attr_accessor :name
|
5
|
+
attr_accessor :type
|
6
|
+
attr_accessor :options
|
7
|
+
|
8
|
+
def initialize(name, type, options = {})
|
9
|
+
@name = name
|
10
|
+
@type = type
|
11
|
+
@options = options
|
12
|
+
end
|
13
|
+
|
14
|
+
def to_s
|
15
|
+
"column name:#{name} type:#{type} options:#{options.inspect}"
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
@@ -0,0 +1,16 @@
|
|
1
|
+
# -*- coding: utf-8 -*-
|
2
|
+
|
3
|
+
class ActiveRecordMigrationIndexMock
|
4
|
+
attr_accessor :table_name
|
5
|
+
attr_accessor :column_name
|
6
|
+
|
7
|
+
def initialize(table_name, column_name)
|
8
|
+
@table_name = table_name
|
9
|
+
@column_name = column_name
|
10
|
+
end
|
11
|
+
|
12
|
+
def to_s
|
13
|
+
"index table_name:#{table_name} column_name:#{column_name}"
|
14
|
+
end
|
15
|
+
|
16
|
+
end
|
@@ -0,0 +1,30 @@
|
|
1
|
+
# -*- coding: utf-8 -*-
|
2
|
+
|
3
|
+
class ActiveRecordMigrationMock
|
4
|
+
@@tables = {} # table name to table mock
|
5
|
+
|
6
|
+
def self.tables
|
7
|
+
@@tables
|
8
|
+
end
|
9
|
+
|
10
|
+
def self.has_table?(name)
|
11
|
+
@@tables[name] != nil
|
12
|
+
end
|
13
|
+
|
14
|
+
def self.create_table(table_name, *_a)
|
15
|
+
t = ActiveRecordMigrationTableMock.new(table_name)
|
16
|
+
@@tables[table_name] = t
|
17
|
+
yield t
|
18
|
+
t
|
19
|
+
end
|
20
|
+
|
21
|
+
def self.add_index(table_name, column_name)
|
22
|
+
(t = @@tables[table_name]) || raise("Table not found with name:#{table_name}")
|
23
|
+
t.index(column_name)
|
24
|
+
end
|
25
|
+
|
26
|
+
def self.drop_table(table_name)
|
27
|
+
@@tables.delete(table_name)
|
28
|
+
end
|
29
|
+
|
30
|
+
end
|
@@ -0,0 +1,40 @@
|
|
1
|
+
# -*- coding: utf-8 -*-
|
2
|
+
|
3
|
+
class ActiveRecordMigrationTableMock
|
4
|
+
attr_accessor :name
|
5
|
+
attr_accessor :columns
|
6
|
+
attr_accessor :indexes
|
7
|
+
|
8
|
+
def initialize(name)
|
9
|
+
@name = name
|
10
|
+
@columns = {}
|
11
|
+
@indexes = {}
|
12
|
+
end
|
13
|
+
|
14
|
+
def to_s
|
15
|
+
"table name:#{name}\n" +
|
16
|
+
@columns.values.map{|x| x.to_s + "\n"}.join +
|
17
|
+
@indexes.values.map{|x| x.to_s + "\n"}.join
|
18
|
+
end
|
19
|
+
|
20
|
+
def column(column_name, column_type, column_options = {})
|
21
|
+
col = ActiveRecordMigrationColumnMock.new(column_name, column_type, column_options)
|
22
|
+
@columns[column_name] = col
|
23
|
+
col
|
24
|
+
end
|
25
|
+
|
26
|
+
def has_column?(column_name)
|
27
|
+
@columns[column_name] != nil
|
28
|
+
end
|
29
|
+
|
30
|
+
def index(column_name)
|
31
|
+
ind = ActiveRecordMigrationIndexMock.new(name, column_name)
|
32
|
+
@indexes[column_name] = ind
|
33
|
+
ind
|
34
|
+
end
|
35
|
+
|
36
|
+
def has_index?(column_name)
|
37
|
+
@indexes[column_name] != nil
|
38
|
+
end
|
39
|
+
|
40
|
+
end
|
data/test/sixarm_ruby_active_record_migration_mock_test/active_record_migration_column_mock_test.rb
ADDED
@@ -0,0 +1,11 @@
|
|
1
|
+
# -*- coding: utf-8 -*-
|
2
|
+
require "sixarm_ruby_active_record_migration_mock_test"
|
3
|
+
|
4
|
+
class ActiveRecordMigrationColumnMockTest < Minitest::Test
|
5
|
+
def test_exist
|
6
|
+
name = "c"
|
7
|
+
type = "x"
|
8
|
+
options = {a: :b}
|
9
|
+
assert_instance_of(ActiveRecordMigrationColumnMock, ActiveRecordMigrationColumnMock.new(name, type, options))
|
10
|
+
end
|
11
|
+
end
|
data/test/sixarm_ruby_active_record_migration_mock_test/active_record_migration_index_mock_test.rb
ADDED
@@ -0,0 +1,10 @@
|
|
1
|
+
# -*- coding: utf-8 -*-
|
2
|
+
require "sixarm_ruby_active_record_migration_mock_test"
|
3
|
+
|
4
|
+
class ActiveRecordMigrationIndexMockTest < Minitest::Test
|
5
|
+
def test_exist
|
6
|
+
table_name = "t"
|
7
|
+
column_name = "c"
|
8
|
+
assert_instance_of(ActiveRecordMigrationIndexMock, ActiveRecordMigrationIndexMock.new(table_name, column_name))
|
9
|
+
end
|
10
|
+
end
|
data/test/sixarm_ruby_active_record_migration_mock_test/active_record_migration_table_mock_test.rb
ADDED
@@ -0,0 +1,72 @@
|
|
1
|
+
# -*- coding: utf-8 -*-
|
2
|
+
require "sixarm_ruby_active_record_migration_mock_test"
|
3
|
+
|
4
|
+
class ActiveRecordMigrationTableMockTest < Minitest::Test
|
5
|
+
|
6
|
+
def test_exist
|
7
|
+
name = "t"
|
8
|
+
assert_instance_of(ActiveRecordMigrationTableMock, ActiveRecordMigrationTableMock.new(name))
|
9
|
+
end
|
10
|
+
|
11
|
+
def test_to_s
|
12
|
+
name = "t"
|
13
|
+
table = ActiveRecordMigrationTableMock.new(name)
|
14
|
+
column_1_name = "c1n"
|
15
|
+
column_1_type = "c1t"
|
16
|
+
column_1_options = {}
|
17
|
+
column_2_name = "c2n"
|
18
|
+
column_2_type = "c2t"
|
19
|
+
column_2_options = {}
|
20
|
+
table.column(column_1_name, column_1_type, column_1_options)
|
21
|
+
table.column(column_2_name, column_2_type, column_2_options)
|
22
|
+
table.index(column_1_name)
|
23
|
+
table.index(column_2_name)
|
24
|
+
expect = "table name:#{name}\ncolumn name:#{column_1_name} type:#{column_1_type} options:#{column_1_options}\ncolumn name:#{column_2_name} type:#{column_2_type} options:#{column_2_options}\nindex table_name:#{name} column_name:#{column_1_name}\nindex table_name:#{name} column_name:#{column_2_name}\n"
|
25
|
+
actual = table.to_s
|
26
|
+
assert_equal(expect, actual)
|
27
|
+
end
|
28
|
+
|
29
|
+
def test_column
|
30
|
+
name = "t"
|
31
|
+
table = ActiveRecordMigrationTableMock.new(name)
|
32
|
+
column_1_name = "c1n"
|
33
|
+
column_1_type = "c1t"
|
34
|
+
table.column(column_1_name, column_1_type)
|
35
|
+
assert_equal(1, table.columns.size)
|
36
|
+
assert_equal(column_1_name, table.columns[column_1_name].name)
|
37
|
+
assert_equal(column_1_type, table.columns[column_1_name].type)
|
38
|
+
end
|
39
|
+
|
40
|
+
def test_has_column
|
41
|
+
name = "t"
|
42
|
+
table = ActiveRecordMigrationTableMock.new(name)
|
43
|
+
column_1_name = "c1n"
|
44
|
+
column_1_type = "c1t"
|
45
|
+
column_2_name = "c2n"
|
46
|
+
column_2_type = "c2t"
|
47
|
+
table.column(column_1_name, column_1_type)
|
48
|
+
assert(table.has_column?(column_1_name))
|
49
|
+
refute(table.has_column?(column_2_name))
|
50
|
+
end
|
51
|
+
|
52
|
+
def test_index
|
53
|
+
name = "t"
|
54
|
+
table = ActiveRecordMigrationTableMock.new(name)
|
55
|
+
column_name = "c"
|
56
|
+
table.index(column_name)
|
57
|
+
assert_equal(1, table.indexes.size)
|
58
|
+
assert_equal(name, table.indexes[column_name].table_name)
|
59
|
+
assert_equal(column_name, table.indexes[column_name].column_name)
|
60
|
+
end
|
61
|
+
|
62
|
+
def test_has_index
|
63
|
+
name = "t"
|
64
|
+
table = ActiveRecordMigrationTableMock.new(name)
|
65
|
+
index_1_name = "i1n"
|
66
|
+
index_2_name = "i2n"
|
67
|
+
table.index(index_1_name)
|
68
|
+
assert(table.has_index?(index_1_name))
|
69
|
+
refute(table.has_index?(index_2_name))
|
70
|
+
end
|
71
|
+
|
72
|
+
end
|
@@ -0,0 +1,49 @@
|
|
1
|
+
# -*- coding: utf-8 -*-
|
2
|
+
require "sixarm_ruby_active_record_migration_mock_test"
|
3
|
+
|
4
|
+
class CreateFoosMigration < ActiveRecordMigrationMock
|
5
|
+
|
6
|
+
def self.up
|
7
|
+
create_table 'foos', :force => true do |t|
|
8
|
+
t.column :abc, :integer
|
9
|
+
t.column :def, :string # with default options
|
10
|
+
t.column :def, :string, length: 123 # with custom options
|
11
|
+
end
|
12
|
+
add_index 'foos', :abc
|
13
|
+
end
|
14
|
+
|
15
|
+
def self.down
|
16
|
+
drop_table 'foos'
|
17
|
+
end
|
18
|
+
|
19
|
+
end
|
20
|
+
|
21
|
+
class IntegratinoTest < Minitest::Test
|
22
|
+
|
23
|
+
def test_migration
|
24
|
+
CreateFoosMigration.up
|
25
|
+
|
26
|
+
assert_equal(true, ActiveRecordMigrationMock.has_table?('foos'),'has_table foos')
|
27
|
+
assert_equal(false, ActiveRecordMigrationMock.has_table?('bars'),'has_table bars')
|
28
|
+
|
29
|
+
tables = ActiveRecordMigrationMock.tables
|
30
|
+
refute_nil(tables,'tables hash')
|
31
|
+
|
32
|
+
table=tables['foos']
|
33
|
+
refute_nil(table,'table foos')
|
34
|
+
|
35
|
+
assert_equal(true, table.has_column?(:abc),'has_column abc')
|
36
|
+
assert_equal(true, table.has_column?(:def),'has_column def')
|
37
|
+
assert_equal(false, table.has_column?(:xyz),'has_column xyz')
|
38
|
+
|
39
|
+
assert_equal(true, table.has_index?(:abc),'has_index abc')
|
40
|
+
assert_equal(false, table.has_index?(:def),'has_index def')
|
41
|
+
assert_equal(false, table.has_index?(:xyz),'has_index xyz')
|
42
|
+
|
43
|
+
assert_equal(:integer, table.columns[:abc].type, 'column abc type:integer')
|
44
|
+
assert_equal(:string, table.columns[:def].type, 'column def type:string')
|
45
|
+
|
46
|
+
end
|
47
|
+
|
48
|
+
end
|
49
|
+
|
metadata
ADDED
@@ -0,0 +1,277 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: sixarm_ruby_active_record_migration_mock
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 2.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- SixArm
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain:
|
11
|
+
- |
|
12
|
+
-----BEGIN CERTIFICATE-----
|
13
|
+
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
|
41
|
+
-----END CERTIFICATE-----
|
42
|
+
date: 2018-06-24 00:00:00.000000000 Z
|
43
|
+
dependencies:
|
44
|
+
- !ruby/object:Gem::Dependency
|
45
|
+
name: minitest
|
46
|
+
requirement: !ruby/object:Gem::Requirement
|
47
|
+
requirements:
|
48
|
+
- - ">="
|
49
|
+
- !ruby/object:Gem::Version
|
50
|
+
version: 5.11.3
|
51
|
+
- - "<"
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '6'
|
54
|
+
type: :development
|
55
|
+
prerelease: false
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
requirements:
|
58
|
+
- - ">="
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
version: 5.11.3
|
61
|
+
- - "<"
|
62
|
+
- !ruby/object:Gem::Version
|
63
|
+
version: '6'
|
64
|
+
- !ruby/object:Gem::Dependency
|
65
|
+
name: sixarm_ruby_minitest_extensions
|
66
|
+
requirement: !ruby/object:Gem::Requirement
|
67
|
+
requirements:
|
68
|
+
- - ">="
|
69
|
+
- !ruby/object:Gem::Version
|
70
|
+
version: 1.0.8
|
71
|
+
- - "<"
|
72
|
+
- !ruby/object:Gem::Version
|
73
|
+
version: '2'
|
74
|
+
type: :development
|
75
|
+
prerelease: false
|
76
|
+
version_requirements: !ruby/object:Gem::Requirement
|
77
|
+
requirements:
|
78
|
+
- - ">="
|
79
|
+
- !ruby/object:Gem::Version
|
80
|
+
version: 1.0.8
|
81
|
+
- - "<"
|
82
|
+
- !ruby/object:Gem::Version
|
83
|
+
version: '2'
|
84
|
+
- !ruby/object:Gem::Dependency
|
85
|
+
name: rake
|
86
|
+
requirement: !ruby/object:Gem::Requirement
|
87
|
+
requirements:
|
88
|
+
- - ">="
|
89
|
+
- !ruby/object:Gem::Version
|
90
|
+
version: 12.3.1
|
91
|
+
- - "<"
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
version: '13'
|
94
|
+
type: :development
|
95
|
+
prerelease: false
|
96
|
+
version_requirements: !ruby/object:Gem::Requirement
|
97
|
+
requirements:
|
98
|
+
- - ">="
|
99
|
+
- !ruby/object:Gem::Version
|
100
|
+
version: 12.3.1
|
101
|
+
- - "<"
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '13'
|
104
|
+
- !ruby/object:Gem::Dependency
|
105
|
+
name: simplecov
|
106
|
+
requirement: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: 0.16.1
|
111
|
+
- - "<"
|
112
|
+
- !ruby/object:Gem::Version
|
113
|
+
version: '2'
|
114
|
+
type: :development
|
115
|
+
prerelease: false
|
116
|
+
version_requirements: !ruby/object:Gem::Requirement
|
117
|
+
requirements:
|
118
|
+
- - ">="
|
119
|
+
- !ruby/object:Gem::Version
|
120
|
+
version: 0.16.1
|
121
|
+
- - "<"
|
122
|
+
- !ruby/object:Gem::Version
|
123
|
+
version: '2'
|
124
|
+
- !ruby/object:Gem::Dependency
|
125
|
+
name: flog
|
126
|
+
requirement: !ruby/object:Gem::Requirement
|
127
|
+
requirements:
|
128
|
+
- - ">="
|
129
|
+
- !ruby/object:Gem::Version
|
130
|
+
version: 4.6.2
|
131
|
+
- - "<"
|
132
|
+
- !ruby/object:Gem::Version
|
133
|
+
version: '5'
|
134
|
+
type: :development
|
135
|
+
prerelease: false
|
136
|
+
version_requirements: !ruby/object:Gem::Requirement
|
137
|
+
requirements:
|
138
|
+
- - ">="
|
139
|
+
- !ruby/object:Gem::Version
|
140
|
+
version: 4.6.2
|
141
|
+
- - "<"
|
142
|
+
- !ruby/object:Gem::Version
|
143
|
+
version: '5'
|
144
|
+
- !ruby/object:Gem::Dependency
|
145
|
+
name: flay
|
146
|
+
requirement: !ruby/object:Gem::Requirement
|
147
|
+
requirements:
|
148
|
+
- - ">="
|
149
|
+
- !ruby/object:Gem::Version
|
150
|
+
version: 2.12.0
|
151
|
+
- - "<"
|
152
|
+
- !ruby/object:Gem::Version
|
153
|
+
version: '3'
|
154
|
+
type: :development
|
155
|
+
prerelease: false
|
156
|
+
version_requirements: !ruby/object:Gem::Requirement
|
157
|
+
requirements:
|
158
|
+
- - ">="
|
159
|
+
- !ruby/object:Gem::Version
|
160
|
+
version: 2.12.0
|
161
|
+
- - "<"
|
162
|
+
- !ruby/object:Gem::Version
|
163
|
+
version: '3'
|
164
|
+
- !ruby/object:Gem::Dependency
|
165
|
+
name: reek
|
166
|
+
requirement: !ruby/object:Gem::Requirement
|
167
|
+
requirements:
|
168
|
+
- - ">="
|
169
|
+
- !ruby/object:Gem::Version
|
170
|
+
version: 4.8.1
|
171
|
+
- - "<"
|
172
|
+
- !ruby/object:Gem::Version
|
173
|
+
version: '5'
|
174
|
+
type: :development
|
175
|
+
prerelease: false
|
176
|
+
version_requirements: !ruby/object:Gem::Requirement
|
177
|
+
requirements:
|
178
|
+
- - ">="
|
179
|
+
- !ruby/object:Gem::Version
|
180
|
+
version: 4.8.1
|
181
|
+
- - "<"
|
182
|
+
- !ruby/object:Gem::Version
|
183
|
+
version: '5'
|
184
|
+
- !ruby/object:Gem::Dependency
|
185
|
+
name: rubycritic
|
186
|
+
requirement: !ruby/object:Gem::Requirement
|
187
|
+
requirements:
|
188
|
+
- - ">="
|
189
|
+
- !ruby/object:Gem::Version
|
190
|
+
version: 3.4.0
|
191
|
+
- - "<"
|
192
|
+
- !ruby/object:Gem::Version
|
193
|
+
version: '4'
|
194
|
+
type: :development
|
195
|
+
prerelease: false
|
196
|
+
version_requirements: !ruby/object:Gem::Requirement
|
197
|
+
requirements:
|
198
|
+
- - ">="
|
199
|
+
- !ruby/object:Gem::Version
|
200
|
+
version: 3.4.0
|
201
|
+
- - "<"
|
202
|
+
- !ruby/object:Gem::Version
|
203
|
+
version: '4'
|
204
|
+
- !ruby/object:Gem::Dependency
|
205
|
+
name: rubocop
|
206
|
+
requirement: !ruby/object:Gem::Requirement
|
207
|
+
requirements:
|
208
|
+
- - ">="
|
209
|
+
- !ruby/object:Gem::Version
|
210
|
+
version: 0.57.2
|
211
|
+
- - "<"
|
212
|
+
- !ruby/object:Gem::Version
|
213
|
+
version: '1'
|
214
|
+
type: :development
|
215
|
+
prerelease: false
|
216
|
+
version_requirements: !ruby/object:Gem::Requirement
|
217
|
+
requirements:
|
218
|
+
- - ">="
|
219
|
+
- !ruby/object:Gem::Version
|
220
|
+
version: 0.57.2
|
221
|
+
- - "<"
|
222
|
+
- !ruby/object:Gem::Version
|
223
|
+
version: '1'
|
224
|
+
description: ActiveRecord migration mock object for testing
|
225
|
+
email: sixarm@sixarm.com
|
226
|
+
executables: []
|
227
|
+
extensions: []
|
228
|
+
extra_rdoc_files: []
|
229
|
+
files:
|
230
|
+
- Rakefile
|
231
|
+
- lib/sixarm_ruby_active_record_migration_mock.rb
|
232
|
+
- lib/sixarm_ruby_active_record_migration_mock/active_record_migration_column_mock.rb
|
233
|
+
- lib/sixarm_ruby_active_record_migration_mock/active_record_migration_index_mock.rb
|
234
|
+
- lib/sixarm_ruby_active_record_migration_mock/active_record_migration_mock.rb
|
235
|
+
- lib/sixarm_ruby_active_record_migration_mock/active_record_migration_table_mock.rb
|
236
|
+
- test/sixarm_ruby_active_record_migration_mock_test.rb
|
237
|
+
- test/sixarm_ruby_active_record_migration_mock_test/active_record_migration_column_mock_test.rb
|
238
|
+
- test/sixarm_ruby_active_record_migration_mock_test/active_record_migration_index_mock_test.rb
|
239
|
+
- test/sixarm_ruby_active_record_migration_mock_test/active_record_migration_mock_test.rb
|
240
|
+
- test/sixarm_ruby_active_record_migration_mock_test/active_record_migration_table_mock_test.rb
|
241
|
+
- test/sixarm_ruby_active_record_migration_mock_test/integration_test.rb
|
242
|
+
homepage: http://sixarm.com/
|
243
|
+
licenses:
|
244
|
+
- Apache-2.0
|
245
|
+
- Artistic-2.0
|
246
|
+
- BSD-3-Clause
|
247
|
+
- GPL-3.0
|
248
|
+
- MIT
|
249
|
+
- MPL-2.0
|
250
|
+
metadata: {}
|
251
|
+
post_install_message:
|
252
|
+
rdoc_options: []
|
253
|
+
require_paths:
|
254
|
+
- lib
|
255
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
256
|
+
requirements:
|
257
|
+
- - ">="
|
258
|
+
- !ruby/object:Gem::Version
|
259
|
+
version: '2.5'
|
260
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
261
|
+
requirements:
|
262
|
+
- - ">="
|
263
|
+
- !ruby/object:Gem::Version
|
264
|
+
version: '0'
|
265
|
+
requirements: []
|
266
|
+
rubyforge_project:
|
267
|
+
rubygems_version: 2.7.7
|
268
|
+
signing_key:
|
269
|
+
specification_version: 4
|
270
|
+
summary: SixArm.com → Ruby → ActiveRecord migration mock
|
271
|
+
test_files:
|
272
|
+
- test/sixarm_ruby_active_record_migration_mock_test.rb
|
273
|
+
- test/sixarm_ruby_active_record_migration_mock_test/active_record_migration_mock_test.rb
|
274
|
+
- test/sixarm_ruby_active_record_migration_mock_test/active_record_migration_table_mock_test.rb
|
275
|
+
- test/sixarm_ruby_active_record_migration_mock_test/active_record_migration_column_mock_test.rb
|
276
|
+
- test/sixarm_ruby_active_record_migration_mock_test/active_record_migration_index_mock_test.rb
|
277
|
+
- test/sixarm_ruby_active_record_migration_mock_test/integration_test.rb
|
metadata.gz.sig
ADDED
Binary file
|