flextures 1.9.10 → 1.9.11
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/flextures.gemspec +2 -2
- data/lib/flextures/flextures.rb +2 -1
- data/lib/flextures/flextures_command.rb +3 -3
- data/lib/flextures/flextures_loader.rb +1 -1
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.9.
|
1
|
+
1.9.11
|
data/flextures.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "flextures"
|
8
|
-
s.version = "1.9.
|
8
|
+
s.version = "1.9.11"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["baban"]
|
12
|
-
s.date = "2012-
|
12
|
+
s.date = "2012-05-12"
|
13
13
|
s.description = "load and dump fixtures"
|
14
14
|
s.email = "babanba.n@gmail.com"
|
15
15
|
s.extra_rdoc_files = [
|
data/lib/flextures/flextures.rb
CHANGED
@@ -43,10 +43,11 @@ module Flextures
|
|
43
43
|
end
|
44
44
|
end
|
45
45
|
|
46
|
-
#
|
46
|
+
# 全テーブル削除のときにほんとうに消去して良いテーブル一覧を返す
|
47
47
|
def self.deletable_tables
|
48
48
|
tables = ActiveRecord::Base.connection.tables
|
49
49
|
tables.delete "schema_migrations"
|
50
|
+
tables.delete "admin_tables"
|
50
51
|
tables
|
51
52
|
end
|
52
53
|
|
@@ -39,7 +39,7 @@ module Flextures
|
|
39
39
|
def self.load
|
40
40
|
table_names = Flextures::ARGS.parse
|
41
41
|
Flextures::init_load
|
42
|
-
Flextures::init_tables
|
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
|
@@ -47,7 +47,7 @@ module Flextures
|
|
47
47
|
def self.csvload
|
48
48
|
table_names = Flextures::ARGS.parse
|
49
49
|
Flextures::init_load
|
50
|
-
Flextures::init_tables
|
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
|
@@ -55,7 +55,7 @@ module Flextures
|
|
55
55
|
def self.ymlload
|
56
56
|
table_names = Flextures::ARGS::parse
|
57
57
|
Flextures::init_load
|
58
|
-
Flextures::init_tables
|
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) }
|
61
61
|
end
|
@@ -133,7 +133,7 @@ module Flextures
|
|
133
133
|
def self.csv format
|
134
134
|
table_name, file_name, ext = file_exist format, [:csv]
|
135
135
|
|
136
|
-
print "try loading #{file_name}.
|
136
|
+
print "try loading #{file_name}.csv\n" unless [:fun].include? format[:loader]
|
137
137
|
return nil unless File.exist? "#{file_name}.csv"
|
138
138
|
|
139
139
|
klass = PARENT::create_model table_name
|
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.11
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-05-12 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
@@ -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: 621201837
|
94
94
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
95
95
|
none: false
|
96
96
|
requirements:
|