loose_tight_dictionary 0.0.7 → 0.0.8

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
- 0.0.7
1
+ 0.0.8
@@ -63,6 +63,7 @@ class LooseTightDictionary
63
63
  @tee = options[:tee]
64
64
  @tee_format = options[:tee_format] || :fixed_width
65
65
  @case_sensitive = options[:case_sensitive] || false
66
+ @blocking_only = options[:blocking_only] || false
66
67
  end
67
68
 
68
69
  # def tightenings
@@ -60,6 +60,7 @@ class TestLooseTightDictionary < Test::Unit::TestCase
60
60
  :blockings => @blockings,
61
61
  :positives => @positives,
62
62
  :negatives => @negatives,
63
+ :blocking_only => @blocking_only,
63
64
  :logger => $logger,
64
65
  :tee => $tee
65
66
  end
@@ -70,11 +71,14 @@ class TestLooseTightDictionary < Test::Unit::TestCase
70
71
  if ENV['OLD'] == 'true' or ENV['ALL'] == 'true'
71
72
  should "optionally only pay attention to things that match blockings" do
72
73
  assert_equal @a_right, ltd.left_to_right(@a_left)
73
- ltd.blocking_only = true
74
+
75
+ clear_ltd
76
+ @blocking_only = true
74
77
  assert_equal nil, ltd.left_to_right(@a_left)
78
+
75
79
  clear_ltd
80
+ @blocking_only = true
76
81
  @blockings.push ['/dash/i']
77
- ltd.blocking_only = true
78
82
  assert_equal @a_right, ltd.left_to_right(@a_left)
79
83
  end
80
84
 
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 7
9
- version: 0.0.7
8
+ - 8
9
+ version: 0.0.8
10
10
  platform: ruby
11
11
  authors:
12
12
  - Seamus Abshere