test-unit 3.1.3 → 3.1.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e9def7f8553bdcaaefdc8a289cdaf35bf1a9fbcb
4
- data.tar.gz: 707bef5ddbcc5c8c768bd2b0a7e923b6c1a85bcb
3
+ metadata.gz: 57805613cde6a22cb8cf71430b2c0ecde57ac984
4
+ data.tar.gz: e5bdf146e30e219136e936f888987ea87e95ee1c
5
5
  SHA512:
6
- metadata.gz: 0aa58204ba7a0edcea7204eba1dbbb607645061214ef59f72702a034f9819c0b8c3b517b5bf8a0d6891de27707bba0a37b319c3aef373562fbefe21aff183a8a
7
- data.tar.gz: 57dae04e712d130a912e63f7dead347e31920d0bdc62f18ecc01270986c931b3e4e5bc02d99c085f4f86fc251462140c3b599b9fff87adca0d9ab69aea016991
6
+ metadata.gz: 57453b7fdd0cce483d76874b7b159d2c9a6b66b552dc3fcbc3038ca12b332d44d00019bd2e345daf18a4974828ec13936dabf339368bf748b2e4498b63d18251
7
+ data.tar.gz: 7fd93592e734a30c95b0591c477778c3ae9abf1dd70cc511b3b43dbdfcae1e532086742a252c7cc823aa2a46fd35a7750f584df870e7ff3f7f059b553077caca
@@ -67,6 +67,8 @@ Here are the syntax of color scheme definitions:
67
67
  ...
68
68
  ...
69
69
 
70
+ | Definition | Description |
71
+ |-------------|------------------------------|
70
72
  | SCHEME_NAME | the name of the color scheme |
71
73
  | EVENT_NAME | success, failure, pending, omission, notification, error |
72
74
  | COLOR_NAME | black, red, green, yellow, blue, magenta, cyan, white |
@@ -1,5 +1,25 @@
1
1
  # News
2
2
 
3
+ ## 3.1.4 - 2015-09-26 {#version-3-1-4}
4
+
5
+ It's a minor improvement release.
6
+
7
+ ### Improvements
8
+
9
+ * Updated sample code. [GitHub#109][Patch by takiy33]
10
+ * Updated .travis.yml. [GitHub#110][Patch by takiy33]
11
+ * document: Added table header in how to document.
12
+ [GitHub#111][Patch by takiy33]
13
+ * Removed duplicated code.
14
+ [GitHub#112][Patch by takiy33]
15
+ * Removed needless encoding conversion in fetching code snippet.
16
+ [GitHub#113][Patch by NARUSE, Yui]
17
+
18
+ ### Thanks
19
+
20
+ * takiy33
21
+ * NARUSE, Yui
22
+
3
23
  ## 3.1.3 - 2015-07-26 {#version-3-1-3}
4
24
 
5
25
  It's a bug fix release.
@@ -32,7 +32,7 @@ module Test
32
32
  encoding = detect_encoding(first_line)
33
33
  if encoding
34
34
  first_line.force_encoding(encoding)
35
- file.set_encoding(encoding)
35
+ file.set_encoding(encoding, encoding)
36
36
  end
37
37
  lines << first_line
38
38
  lines.concat(file.readlines)
@@ -64,16 +64,15 @@ module Test
64
64
 
65
65
  state = next_state(@state_stack.last, uri, local)
66
66
  @state_stack.push(state)
67
+ @values = {}
67
68
  case state
68
69
  when :test_suite, :test_case
69
- @values = {}
70
+ # do nothing
70
71
  when :test
71
- @values = {}
72
72
  @n_pass_assertions = 0 if _parent_tag == "start-test"
73
73
  when :backtrace
74
74
  @backtrace = []
75
75
  @values_backup = @values
76
- @values = {}
77
76
  end
78
77
  end
79
78
 
@@ -1,5 +1,5 @@
1
1
  module Test
2
2
  module Unit
3
- VERSION = '3.1.3'
3
+ VERSION = '3.1.4'
4
4
  end
5
5
  end
@@ -7,7 +7,7 @@ class Adder
7
7
  @number = number
8
8
  end
9
9
  def add(number)
10
- return @number + number
10
+ @number + number
11
11
  end
12
12
  end
13
13
 
@@ -7,6 +7,6 @@ class Subtracter
7
7
  @number = number
8
8
  end
9
9
  def subtract(number)
10
- return @number - number
10
+ @number - number
11
11
  end
12
12
  end
@@ -3,7 +3,7 @@
3
3
  # License:: Ruby license.
4
4
 
5
5
  require 'test/unit'
6
- require 'adder'
6
+ require_relative 'adder'
7
7
 
8
8
  class TestAdder < Test::Unit::TestCase
9
9
  def setup
@@ -3,7 +3,7 @@
3
3
  # License:: Ruby license.
4
4
 
5
5
  require 'test/unit'
6
- require 'subtracter'
6
+ require_relative 'subtracter'
7
7
 
8
8
  class TestSubtracter < Test::Unit::TestCase
9
9
  def setup
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: test-unit
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.3
4
+ version: 3.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kouhei Sutou
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-07-26 00:00:00.000000000 Z
12
+ date: 2015-09-26 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: power_assert