power_assert 0.2.6 → 0.2.7

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: 23e0669403c76859a457a6b603d6654e1dac29a1
4
- data.tar.gz: 31bcdb3aa8bdb10472e13fea16f6ab918b3cfce7
3
+ metadata.gz: 40425b849bc13c3697522de357afa6176914bddc
4
+ data.tar.gz: fae40e27a12725faf59a05af5e3e9105a3d2a429
5
5
  SHA512:
6
- metadata.gz: dade7bfd8ddb550f749142a011c7e2a7aa4d6800e219fe86a7288ad71752840b811a4f1d88c39759af035648f1aaf51393987a9ab8ae46ad85368f418e362e0d
7
- data.tar.gz: 9046bea3244c4482f9f74d25ba7265333a11b52663cefc3aec0b17514b34c9c5e652bcb68b8822234342de6e5fb1510b92587b8ac6cf1bbf8b67bb8d1b6da873
6
+ metadata.gz: 338d87fbfb75835d6473fc244244929bf624fa55cc27df94e6e46fc5fee58843663d3b4ef9617836b0636d6c7bdc765d6270a2d4b30efb5350029154d148b877
7
+ data.tar.gz: 34c1313f33f65a78cd08177c236b16e33c5780aa1e5d9ede4f4cfff49b27ddfc3cdb0acda1575b16969f9e421908dabcc6f0a12491ff0879b9fb6a98d679aded
data/.travis.yml CHANGED
@@ -3,7 +3,10 @@ rvm:
3
3
  - 2.0.0
4
4
  - 2.1
5
5
  - 2.2
6
+ - 2.3.0
6
7
  - ruby-head
7
8
  matrix:
8
9
  allow_failures:
9
10
  - rvm: ruby-head
11
+ before_install:
12
+ - gem update bundler
@@ -18,6 +18,7 @@ if defined? RubyVM
18
18
  true
19
19
  end
20
20
  end
21
+ private_constant :Bug11182
21
22
 
22
23
  refine Bug11182 do
23
24
  def fixed?
@@ -28,6 +29,7 @@ if defined? RubyVM
28
29
  alias _fixed? fixed?
29
30
  protected :_fixed?
30
31
  end
32
+ private_constant :Bug11182Sub
31
33
 
32
34
  if (Bug11182.new.fixed? rescue false)
33
35
  basic_classes.each do |klass|
@@ -1,3 +1,3 @@
1
1
  module PowerAssert
2
- VERSION = "0.2.6"
2
+ VERSION = "0.2.7"
3
3
  end
@@ -345,27 +345,18 @@ END
345
345
  assertion_message { BasicObjectSubclass.new.foo }
346
346
 
347
347
 
348
- verbose = $VERBOSE
349
- default_external = Encoding.default_external
350
- default_internal = Encoding.default_internal
351
- begin
352
- $VERBOSE = nil
353
- Encoding.default_external = 'cp932'
354
- Encoding.default_internal = 'utf-8'
355
- ary = ["\u3042"]
356
- assert_match Regexp.new(<<END.chomp.gsub('|', "\\|")), assertion_message {
357
- ary.length
358
- | |
359
- | 1
360
- InspectionFailure: Encoding::CompatibilityError: .*
361
- END
362
- ary.length
363
- }
364
- ensure
365
- Encoding.default_internal = default_internal
366
- Encoding.default_external = default_external
367
- $VERBOSE = verbose
348
+ o = Object.new
349
+ def o.inspect
350
+ raise
368
351
  end
352
+ assert_equal <<END.chomp.b, assertion_message {
353
+ o.class
354
+ | |
355
+ | Object
356
+ InspectionFailure: RuntimeError:
357
+ END
358
+ o.class
359
+ }
369
360
  end
370
361
 
371
362
  def test_assertion_message_with_incompatible_encodings
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: power_assert
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.6
4
+ version: 0.2.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kazuki Tsujimoto
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-11-09 00:00:00.000000000 Z
11
+ date: 2016-01-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: test-unit
@@ -99,7 +99,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
99
99
  version: '0'
100
100
  requirements: []
101
101
  rubyforge_project:
102
- rubygems_version: 2.4.6
102
+ rubygems_version: 2.5.1
103
103
  signing_key:
104
104
  specification_version: 4
105
105
  summary: Power Assert for Ruby