flextures 1.9.11 → 1.9.12
Sign up to get free protection for your applications and to get access to all the features.
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.9.
|
1
|
+
1.9.12
|
data/flextures.gemspec
CHANGED
data/lib/flextures/flextures.rb
CHANGED
@@ -46,8 +46,9 @@ module Flextures
|
|
46
46
|
# 全テーブル削除のときにほんとうに消去して良いテーブル一覧を返す
|
47
47
|
def self.deletable_tables
|
48
48
|
tables = ActiveRecord::Base.connection.tables
|
49
|
-
|
50
|
-
|
49
|
+
Flextures::Config.ignore_tables.each do |name|
|
50
|
+
tables.delete name
|
51
|
+
end
|
51
52
|
tables
|
52
53
|
end
|
53
54
|
|
@@ -37,24 +37,24 @@ module Flextures
|
|
37
37
|
end
|
38
38
|
|
39
39
|
def self.load
|
40
|
-
table_names = Flextures::ARGS.parse
|
41
40
|
Flextures::init_load
|
41
|
+
table_names = Flextures::ARGS.parse
|
42
42
|
Flextures::init_tables unless ENV["T"] or ENV["TABLE"] or ENV["M"] or ENV["MODEL"] or ENV["F"] or ENV["FIXTUES"]
|
43
43
|
puts "loading..."
|
44
44
|
table_names.map { |fmt| Flextures::Loader::load(fmt) }
|
45
45
|
end
|
46
46
|
|
47
47
|
def self.csvload
|
48
|
-
table_names = Flextures::ARGS.parse
|
49
48
|
Flextures::init_load
|
49
|
+
table_names = Flextures::ARGS.parse
|
50
50
|
Flextures::init_tables unless ENV["T"] or ENV["TABLE"] or ENV["M"] or ENV["MODEL"] or ENV["F"] or ENV["FIXTUES"]
|
51
51
|
puts "loading..."
|
52
52
|
table_names.map { |fmt| Flextures::Loader::csv(fmt) }
|
53
53
|
end
|
54
54
|
|
55
55
|
def self.ymlload
|
56
|
-
table_names = Flextures::ARGS::parse
|
57
56
|
Flextures::init_load
|
57
|
+
table_names = Flextures::ARGS::parse
|
58
58
|
Flextures::init_tables unless ENV["T"] or ENV["TABLE"] or ENV["M"] or ENV["MODEL"] or ENV["F"] or ENV["FIXTUES"]
|
59
59
|
puts "loading..."
|
60
60
|
table_names.map { |fmt| Flextures::Loader::yml(fmt) }
|
@@ -62,10 +62,14 @@ module Flextures
|
|
62
62
|
},
|
63
63
|
string:->(d){
|
64
64
|
return d if d.nil?
|
65
|
+
return d.to_yaml if d.is_a?(Hash)
|
66
|
+
return d.to_yaml if d.is_a?(Array)
|
65
67
|
d.to_s
|
66
68
|
},
|
67
69
|
text:->(d){
|
68
70
|
return d if d.nil?
|
71
|
+
return d.to_yaml if d.is_a?(Hash)
|
72
|
+
return d.to_yaml if d.is_a?(Array)
|
69
73
|
d.to_s
|
70
74
|
},
|
71
75
|
time:->(d){
|
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: 1.9.
|
4
|
+
version: 1.9.12
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -90,7 +90,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
90
90
|
version: '0'
|
91
91
|
segments:
|
92
92
|
- 0
|
93
|
-
hash:
|
93
|
+
hash: -388338803
|
94
94
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
95
95
|
none: false
|
96
96
|
requirements:
|