assert_value 1.5 → 1.5.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 0e1b3426a5565c3344835bf0960810bd8e18256b
4
+ data.tar.gz: 6cdf16e9801f6e4d273004a155ac01cc96a3936d
5
+ SHA512:
6
+ metadata.gz: 594c663c72839638835295a2373ad5de903f6e950f084ae2e9d058edb5038a4e8d0737c833aa4e27ea10e9e6e41e29ef80e712e08c2447f0e1eacd7def5d4cd1
7
+ data.tar.gz: ae14af979d8d9cf6235b42fed67a0350f4a9990b61f64a48005daef603d8e42176b0b5beac19cd8a1c36d77b9a4807dda6ee84abaee8836b12848dfc83da33b1
data/assert_value.gemspec CHANGED
@@ -2,7 +2,7 @@ require 'rubygems'
2
2
 
3
3
  SPEC = Gem::Specification.new do |s|
4
4
  s.name = "assert_value"
5
- s.version = "1.5"
5
+ s.version = "1.5.1"
6
6
  s.author = "Pluron, Inc."
7
7
  s.email = "support@pluron.com"
8
8
  s.homepage = "http://github.com/acunote/assert_value"
data/lib/assert_value.rb CHANGED
@@ -6,7 +6,7 @@
6
6
  # 3) Minitest > 5.0 bundles with Ruby >= 2.2.2 or installed via gem
7
7
  # 4) RSpec
8
8
  begin
9
- require 'minitest/autorun' # Minitest 5.x
9
+ require 'minitest' # Minitest 5.x
10
10
  rescue LoadError
11
11
  begin
12
12
  require 'minitest/unit' # old Minitest
@@ -25,8 +25,10 @@ elsif defined?(MiniTest)
25
25
  ASSERT_VALUE_TEST_FRAMEWORK = :old_minitest
26
26
  elsif defined?(Test)
27
27
  ASSERT_VALUE_TEST_FRAMEWORK = :test_unit
28
- else
28
+ elsif defined?(RSpec)
29
29
  ASSERT_VALUE_TEST_FRAMEWORK = :rspec_only
30
+ else
31
+ raise "assert_value requires at least one of the minitest, test-unit, and rspec gems"
30
32
  end
31
33
 
32
34
  require 'text_diff'
@@ -2,12 +2,19 @@
2
2
 
3
3
  require 'assert_value'
4
4
 
5
- test_case_class = case ASSERT_VALUE_TEST_FRAMEWORK
6
- when :new_minitest then Minitest::Test
7
- when :old_minitest then MiniTest::Unit::TestCase
8
- when :test_unit then Test::Unit::TestCase
9
- when :rspec_only then raise "This test case requires either Minitest or Test::Unit"
10
- else raise "Unknown test framework"
5
+ case ASSERT_VALUE_TEST_FRAMEWORK
6
+ when :new_minitest then
7
+ require 'minitest/autorun'
8
+ test_case_class = Minitest::Test
9
+ when :old_minitest then
10
+ require 'minitest/autorun'
11
+ test_case_class = MiniTest::Unit::TestCase
12
+ when :test_unit then
13
+ test_case_class = Test::Unit::TestCase
14
+ when :rspec_only then
15
+ raise "This test case requires either Minitest or Test::Unit"
16
+ else
17
+ raise "Unknown test framework"
11
18
  end
12
19
 
13
20
  class AssertValueTest < test_case_class
metadata CHANGED
@@ -1,15 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: assert_value
3
3
  version: !ruby/object:Gem::Version
4
- version: '1.5'
5
- prerelease:
4
+ version: 1.5.1
6
5
  platform: ruby
7
6
  authors:
8
7
  - Pluron, Inc.
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2015-10-14 00:00:00.000000000 Z
11
+ date: 2015-11-05 00:00:00.000000000 Z
13
12
  dependencies: []
14
13
  description: assert_value assertion
15
14
  email: support@pluron.com
@@ -17,8 +16,8 @@ executables: []
17
16
  extensions: []
18
17
  extra_rdoc_files: []
19
18
  files:
20
- - .gitignore
21
- - .travis.yml
19
+ - ".gitignore"
20
+ - ".travis.yml"
22
21
  - Gemfile
23
22
  - LICENSE
24
23
  - README.md
@@ -42,27 +41,26 @@ files:
42
41
  homepage: http://github.com/acunote/assert_value
43
42
  licenses:
44
43
  - MIT
44
+ metadata: {}
45
45
  post_install_message:
46
46
  rdoc_options: []
47
47
  require_paths:
48
48
  - lib
49
49
  required_ruby_version: !ruby/object:Gem::Requirement
50
- none: false
51
50
  requirements:
52
- - - ! '>='
51
+ - - ">="
53
52
  - !ruby/object:Gem::Version
54
53
  version: '0'
55
54
  required_rubygems_version: !ruby/object:Gem::Requirement
56
- none: false
57
55
  requirements:
58
- - - ! '>='
56
+ - - ">="
59
57
  - !ruby/object:Gem::Version
60
58
  version: '0'
61
59
  requirements: []
62
60
  rubyforge_project:
63
- rubygems_version: 1.8.23.2
61
+ rubygems_version: 2.4.5
64
62
  signing_key:
65
- specification_version: 3
63
+ specification_version: 4
66
64
  summary: Assert that checks that two values (strings, expected and actual) are same
67
65
  and which can magically replace expected value with the actual in case the new behavior
68
66
  (and new actual value) is correct