flextures 2.0.4 → 2.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.0.4
1
+ 2.0.5
data/flextures.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "flextures"
8
- s.version = "2.0.4"
8
+ s.version = "2.0.5"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["baban"]
@@ -139,15 +139,15 @@ module Flextures
139
139
  #
140
140
  # @params [Hash] 読み込むテーブルとファイル名のペア
141
141
  def self.flextures *fixtures
142
- loas_hash, options = parse_flextures_options(*fixtures)
142
+ load_hash, options = parse_flextures_options(*fixtures)
143
143
  load_hash.each{ |params| Loader::load params }
144
144
  end
145
145
 
146
146
  # csv 優先で存在している fixtures をロード
147
- def self.load format, option
147
+ def self.load format, options = {}
148
148
  table_name, file_name, method = file_exist format
149
149
  if method
150
- send(method, format)
150
+ send(method, format, options)
151
151
  else
152
152
  # ファイルが存在しない時
153
153
  print "Warning: #{file_name} is not exist!\n"
@@ -184,7 +184,7 @@ module Flextures
184
184
  end
185
185
 
186
186
  # YAML形式でデータをロードする
187
- def self.yml format, option={}
187
+ def self.yml format, options={}
188
188
  table_name, file_name, ext = file_exist format, [:yml]
189
189
 
190
190
  # キャッシュ利用可能ならそれをそのまま使う
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: 2.0.4
4
+ version: 2.0.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -114,7 +114,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
114
114
  version: '0'
115
115
  segments:
116
116
  - 0
117
- hash: -204193459
117
+ hash: 778676083
118
118
  required_rubygems_version: !ruby/object:Gem::Requirement
119
119
  none: false
120
120
  requirements: