factory_toys 1.0.4 → 1.0.5

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.4
1
+ 1.0.5
data/factory_toys.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "factory_toys"
8
- s.version = "1.0.4"
8
+ s.version = "1.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 = ["David Henry", "Thomas Brand"]
data/lib/factory_toys.rb CHANGED
@@ -11,6 +11,7 @@ module FactoryToys
11
11
  attr_accessor :features_directory, :source_directory
12
12
  attr_accessor :factories
13
13
  attr_accessor :scenario, :scenarios
14
+ attr_accessor :max_feature_length
14
15
 
15
16
  def factories
16
17
  @factories ||= []
@@ -60,3 +61,4 @@ FactoryToys.scenarios = 'feature'
60
61
  FactoryToys.scenario = 'scenario'
61
62
  FactoryToys.features_directory = 'features'
62
63
  FactoryToys.source_directory = 'ffactories'
64
+ FactoryToys.max_feature_length = 60
@@ -21,7 +21,7 @@ module FactoryToys
21
21
 
22
22
  def check_output_length
23
23
  @outputs ||= []
24
- unless @output && @output.size < 400
24
+ unless @output && @output.size < FactoryToys.max_feature_length
25
25
  @outputs << @output if @output
26
26
  @output = []
27
27
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: factory_toys
3
3
  version: !ruby/object:Gem::Version
4
- hash: 31
4
+ hash: 29
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 4
10
- version: 1.0.4
9
+ - 5
10
+ version: 1.0.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - David Henry