rspec_fixtures 0.4.0 → 0.4.1

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
  SHA256:
3
- metadata.gz: 45b4a358e1d0676243ab8e196d564a24004925cea26a4e4e7fea2260c207947b
4
- data.tar.gz: 24e457d02d6cb4508da343bbce5bf55bc8c69978db0590a2fc78ea305c1aeef5
3
+ metadata.gz: e05621463994adf32ada5f141cd4453f86bac5aff0f98cd4c8ed32ebeaaba2a3
4
+ data.tar.gz: bd13876b57104f73cfa294cc3122795cca16cf245630a6b576c887b7a580bc74
5
5
  SHA512:
6
- metadata.gz: 5b0ba1c117b24f8f5eda492b846d6e398e284243823a64039fb8178a5921f19eaf5ccf55880a3f370a0d7f5b16f2dff174b64f994ca748fb4429ad515066ebe7
7
- data.tar.gz: 2143684b0101b840ef918a91d8eaf55ae87cac86bcfd2772207c8c24dc93b96f57cf10bb248a79302a7e83a7d85d4f551b05bcc216779c342a649016d82b3cee
6
+ metadata.gz: cb41048c1d31439321c0299b212ae54238cd2c4b5e388c5998f9dcfca08135ce88b98ea30e697f3c3feb17111a20a76d2aefa24d9f73948cda07270e2e7dd86e
7
+ data.tar.gz: e32ea13df4866b9f57b8cd2fc29835c3452c4ec24aa81e17972d983c56c32394c6adca52c23eb4b7374a7eab90b23ea8853cd1daa79ea589ad71e5226d216c60
data/README.md CHANGED
@@ -84,8 +84,8 @@ expect{ $stderr.puts "hello" }.to output_fixture('fixture_filename').to_stderr
84
84
 
85
85
  Adding `diff(distance)` to either `match_fixture` or `output_fixture` will
86
86
  change the matching behavior. Instead of expecting the strings to be exactly
87
- the same, using `diff` compares the strings using the Levenshtein text
88
- similarity algorithm.
87
+ the same, using `diff` compares the strings using the
88
+ [Levenshtein distance][1] algorithm.
89
89
 
90
90
  In the below example, we allow up to 5 characters to be different.
91
91
 
@@ -94,8 +94,6 @@ expect('some string').to match_fixture('fixture_filename').diff(5)
94
94
  expect{ puts 'some string' }.to output_fixture('fixture_filename').diff(5)
95
95
  ```
96
96
 
97
- Distance is measured using the Levenshtein algorithm.
98
-
99
97
 
100
98
 
101
99
  Configuration
@@ -125,3 +123,5 @@ RSpec.configure do |config|
125
123
  end
126
124
  ```
127
125
 
126
+
127
+ [1]: https://en.wikipedia.org/wiki/Levenshtein_distance
@@ -1,3 +1,3 @@
1
1
  module RSpecFixtures
2
- VERSION = "0.4.0"
2
+ VERSION = "0.4.1"
3
3
  end
@@ -1,5 +1,3 @@
1
- require 'rspec_fixtures/version'
2
-
3
1
  require 'rspec_fixtures/extensions/file'
4
2
 
5
3
  require 'rspec_fixtures/stream_capturer'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspec_fixtures
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Danny Ben Shitrit
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-02-19 00:00:00.000000000 Z
11
+ date: 2018-02-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: colsole
@@ -24,6 +24,20 @@ dependencies:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0.5'
27
+ - !ruby/object:Gem::Dependency
28
+ name: string-similarity
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '2.0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '2.0'
27
41
  - !ruby/object:Gem::Dependency
28
42
  name: rspec
29
43
  requirement: !ruby/object:Gem::Requirement
@@ -108,20 +122,6 @@ dependencies:
108
122
  - - "~>"
109
123
  - !ruby/object:Gem::Version
110
124
  version: '0.9'
111
- - !ruby/object:Gem::Dependency
112
- name: string-similarity
113
- requirement: !ruby/object:Gem::Requirement
114
- requirements:
115
- - - "~>"
116
- - !ruby/object:Gem::Version
117
- version: '2.0'
118
- type: :development
119
- prerelease: false
120
- version_requirements: !ruby/object:Gem::Requirement
121
- requirements:
122
- - - "~>"
123
- - !ruby/object:Gem::Version
124
- version: '2.0'
125
125
  description: Automatic interactive fixtures for rspec
126
126
  email: db@dannyben.com
127
127
  executables: []
@@ -158,7 +158,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
158
158
  version: '0'
159
159
  requirements: []
160
160
  rubyforge_project:
161
- rubygems_version: 2.7.3
161
+ rubygems_version: 2.7.6
162
162
  signing_key:
163
163
  specification_version: 4
164
164
  summary: Interactive RSpec Fixtures