flextures 4.0.0 → 4.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +13 -1
- data/flextures.gemspec +1 -0
- data/lib/flextures/flextures_base_config.rb +7 -0
- data/lib/flextures/flextures_loader.rb +2 -2
- data/lib/flextures/version.rb +1 -1
- data/test/unit/flextures_loader_test.rb +2 -2
- metadata +15 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8328cf4e63d076ce5c3f3c43d21587e2071d4bf0
|
4
|
+
data.tar.gz: cb2dbb205578cca24ca5aa0f6119d9faf52a9c75
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 03d903f64bf6cd1164a0a17b21709f653cf07162ac3a1987add57c9b6551ce6559115a533c164377ce219b8b82618d558c69e912882beeed94ac475cc57d76df
|
7
|
+
data.tar.gz: 623544ec5c0cd3a639002e20a14a3e9757ffaae977368993fec9f71a410fa00c8904090a979f953ab8bd9a9c11228c8a24a85d11b7ac771af604937e30b60d87
|
data/Gemfile.lock
CHANGED
@@ -1,11 +1,19 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
flextures (4.0.
|
4
|
+
flextures (4.0.1)
|
5
5
|
|
6
6
|
GEM
|
7
7
|
remote: https://rubygems.org/
|
8
8
|
specs:
|
9
|
+
activesupport (4.2.5.2)
|
10
|
+
i18n (~> 0.7)
|
11
|
+
json (~> 1.7, >= 1.7.7)
|
12
|
+
minitest (~> 5.1)
|
13
|
+
thread_safe (~> 0.3, >= 0.3.4)
|
14
|
+
tzinfo (~> 1.1)
|
15
|
+
i18n (0.7.0)
|
16
|
+
json (1.8.3)
|
9
17
|
minitest (5.4.0)
|
10
18
|
minitest-bang (0.1.1)
|
11
19
|
minitest (>= 4.7.5, <= 5.4.0)
|
@@ -18,11 +26,15 @@ GEM
|
|
18
26
|
power_assert
|
19
27
|
power_assert (0.2.2)
|
20
28
|
rake (0.9.2.2)
|
29
|
+
thread_safe (0.3.5)
|
30
|
+
tzinfo (1.2.2)
|
31
|
+
thread_safe (~> 0.1)
|
21
32
|
|
22
33
|
PLATFORMS
|
23
34
|
ruby
|
24
35
|
|
25
36
|
DEPENDENCIES
|
37
|
+
activesupport
|
26
38
|
bundler (~> 1.6)
|
27
39
|
flextures!
|
28
40
|
minitest (= 5.4.0)
|
data/flextures.gemspec
CHANGED
@@ -1,3 +1,6 @@
|
|
1
|
+
require 'active_support'
|
2
|
+
require 'active_support/core_ext'
|
3
|
+
|
1
4
|
# base configurations
|
2
5
|
module Flextures
|
3
6
|
class Configuration
|
@@ -18,5 +21,9 @@ module Flextures
|
|
18
21
|
config_accessor :init_all_tables do
|
19
22
|
true
|
20
23
|
end
|
24
|
+
|
25
|
+
config_accessor :table_load_order do
|
26
|
+
[]
|
27
|
+
end
|
21
28
|
end
|
22
29
|
end
|
@@ -166,8 +166,8 @@ module Flextures
|
|
166
166
|
# @return [Proc] order rule block (user Array#sort methd)
|
167
167
|
def self.loading_order
|
168
168
|
->(a,b){
|
169
|
-
a = Flextures::
|
170
|
-
b = Flextures::
|
169
|
+
a = Flextures::Configuration.table_load_order.index(a) || -1
|
170
|
+
b = Flextures::Configuration.table_load_order.index(b) || -1
|
171
171
|
b <=> a
|
172
172
|
}
|
173
173
|
end
|
data/lib/flextures/version.rb
CHANGED
@@ -295,7 +295,7 @@ describe Flextures::Loader do
|
|
295
295
|
|
296
296
|
describe "set orderd table name" do
|
297
297
|
before do
|
298
|
-
Flextures::
|
298
|
+
Flextures::Configuration.table_load_order=["b"]
|
299
299
|
@proc = Flextures::Loader.loading_order
|
300
300
|
end
|
301
301
|
|
@@ -304,7 +304,7 @@ describe Flextures::Loader do
|
|
304
304
|
end
|
305
305
|
|
306
306
|
after do
|
307
|
-
Flextures::
|
307
|
+
Flextures::Configuration.table_load_order=[]
|
308
308
|
end
|
309
309
|
end
|
310
310
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: flextures
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.0.
|
4
|
+
version: 4.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- baban
|
@@ -38,6 +38,20 @@ dependencies:
|
|
38
38
|
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: activesupport
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
41
55
|
description: load and dump fixtures.
|
42
56
|
email:
|
43
57
|
- babanba.n@gmail.com
|