solid_use_case 2.0.0 → 2.0.1

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bc18c2e9f16bf546cfc9d56f5337456213bbbe51
4
- data.tar.gz: 1e7c6aa6fd01fdd35095d2fc0d3e066b28237361
3
+ metadata.gz: 2623d1e04af22ee51de1e4746582707b9c5229d2
4
+ data.tar.gz: 7f9546142427b3e95209b807d3f55107f6c18057
5
5
  SHA512:
6
- metadata.gz: 41793a7fef1201f2ab179b85f7d55b8e91df49ef9fcd180c4fc6b11fe1fff29e0dd2aa01910903653dce8b0ff607f11adc5e316aa8631184096fc88ff462a562
7
- data.tar.gz: a4e35588c5d5def51e02dabb961b45ffb0dfe6450e19efdc11c7a24f793b47811a9dd203095f23aa280a5653248b3ffb5ef248d7c367931f7e358dbf104887a8
6
+ metadata.gz: 878297f0a78c9f4b558a2a18daf8358c12320aa031bf6268f0e311ff411280e55e73e66ecd5f24680604aa11bb80f95e86e1e4db24d0b27be45be67d9bf42957
7
+ data.tar.gz: 1ad7e0f4eeebb337bc12ab21723185d939ec78171f3bba1cd5f43c31624a83fc11c1dacb5f87d124f7aaef8626a8a93c4ab2b42b5dbd14ad1b3d3979db9314b1
data/README.md CHANGED
@@ -6,7 +6,7 @@
6
6
 
7
7
  Add this line to your application's Gemfile:
8
8
 
9
- gem 'solid_use_case', '~> 2.0.0'
9
+ gem 'solid_use_case', '~> 2.0.1'
10
10
 
11
11
  And then execute:
12
12
 
@@ -15,7 +15,7 @@ module SolidUseCase
15
15
  @result.is_a? Deterministic::Success
16
16
  end
17
17
 
18
- def failure_message_for_should
18
+ def failure_message
19
19
  "expected result to be a success\n" +
20
20
  if @result.value.is_a? SolidUseCase::Composable::ErrorStruct
21
21
  "Error & Data:\n #{@result.value.type} - #{@result.value.inspect}"
@@ -31,7 +31,7 @@ module SolidUseCase
31
31
  end
32
32
  end
33
33
 
34
- def failure_message_for_should_not
34
+ def failure_message_when_negated
35
35
  "expected result to not be a success"
36
36
  end
37
37
  end
@@ -48,7 +48,7 @@ module SolidUseCase
48
48
  @is_failure && @result.value.type == @expected_error_name
49
49
  end
50
50
 
51
- def failure_message_for_should
51
+ def failure_message
52
52
  if @is_failure
53
53
  "expected result to fail with :#{@expected_error_name} (failed with :#{@result.value.type} instead)"
54
54
  else
@@ -56,7 +56,7 @@ module SolidUseCase
56
56
  end
57
57
  end
58
58
 
59
- def failure_message_for_should_not
59
+ def failure_message_when_negated
60
60
  if @is_failure
61
61
  "expected result to fail with an error not equal to :#{@expected_error_name}"
62
62
  else
@@ -1,3 +1,3 @@
1
1
  module SolidUseCase
2
- VERSION = "2.0.0"
2
+ VERSION = "2.0.1"
3
3
  end
@@ -49,8 +49,8 @@ describe 'Custom RSpec Matchers' do
49
49
  matcher = be_a_success
50
50
  expect(matcher.matches? ExceptionCase.run).to eq(false)
51
51
 
52
- expect(matcher.failure_message_for_should).to include('oops')
53
- expect(matcher.failure_message_for_should).to_not include(
52
+ expect(matcher.failure_message).to include('oops')
53
+ expect(matcher.failure_message).to_not include(
54
54
  'deterministic/either/attempt_all.rb',
55
55
  'deterministic/core_ext/either.rb',
56
56
  'lib/rspec/core/example.rb'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: solid_use_case
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gilbert
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-08-08 00:00:00.000000000 Z
11
+ date: 2014-08-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: deterministic