vcr_assistant 0.2.0 → 1.0.0

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: 6ff37258830bb6676f169c89cd2d137484ae1938
4
- data.tar.gz: b9c2445c93bf62acc89c10baa628b8b4d62be551
3
+ metadata.gz: 72a223500db2a96a500ce80338a83643dd324498
4
+ data.tar.gz: d7658adeacce6fbc4be3f3fed5b4d72fb360c776
5
5
  SHA512:
6
- metadata.gz: ddca17537f335d0215add460b24d2650246b2a20838323ce5808c4472dd200ef7507d0b88382d7234022683fcc9fe28a1a599eed9ee18440d4ffce3793b0d737
7
- data.tar.gz: 059865dd329fdafe432984a3646e67e20b961682a885310fb4f81a6f52e47ee93779affb9ecd7be7d7beed4c8e1ef055cc5385cf5d492a5a28207aefaeb43427
6
+ metadata.gz: 72859a2d5376f2154a5a79833f7ccdf9cf844fd219253952fb9a9a6bafd2d9fb3e9cbc0e8fde092c1d016d14ece059d8b691be9b34b91924446e24b999ff9621
7
+ data.tar.gz: c92036951dc805308b30bb7a3b77f2e4fe36adc8b6139745dd0ed5eae5b32cf4bb858cf2d3c0689751b1b8a1e2e74641cde68757a3ab34c938988e807bb3181f
data/README.md CHANGED
@@ -37,18 +37,24 @@ it 'automatically clears Stripe before tests' do |example|
37
37
  end
38
38
  ```
39
39
 
40
+ ## Upgrading
41
+
42
+ ### From 0.x to 1.0.0
43
+
44
+ In 0.x releases, the VCR cassette file names did not use the example's full description, which could lead to overwritten specs when the same short description is used in different contexts. File names now use the full description instead - so, you will need to rename your cassette files accordingly.
45
+
40
46
  ## Installation
41
47
 
42
48
  Add this line to your application's Gemfile:
43
49
 
44
50
  ```ruby
45
- gem 'vcr_assistant', '~> 0.2.0', :group => :test
51
+ gem 'vcr_assistant', '~> 1.0.0', :group => :test
46
52
  ```
47
53
 
48
54
  To have the `assisted_cassette` helper to be available in all specs, you can require `'vcr_assistant/rspec'` either in your Gemfile:
49
55
 
50
56
  ```ruby
51
- gem 'vcr_assistant', '~> 0.2.0',
57
+ gem 'vcr_assistant', '~> 1.0.0',
52
58
  :group => :test,
53
59
  :require => 'vcr_assistant/rspec'
54
60
  ```
@@ -16,7 +16,7 @@ class VCRAssistant::FileName
16
16
  attr_reader :example
17
17
 
18
18
  def file
19
- example.metadata[:description].downcase.gsub(/\s+/, '_').gsub(/[\W]+/, '')
19
+ example.metadata[:full_description].downcase.gsub(/\s+/, '_').gsub(/[\W]+/, '')
20
20
  end
21
21
 
22
22
  def folder
@@ -1,7 +1,7 @@
1
1
  # coding: utf-8
2
2
  Gem::Specification.new do |spec|
3
3
  spec.name = "vcr_assistant"
4
- spec.version = "0.2.0"
4
+ spec.version = "1.0.0"
5
5
  spec.authors = ["Pat Allan"]
6
6
  spec.email = ["pat@freelancing-gods.com"]
7
7
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vcr_assistant
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pat Allan
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-05-13 00:00:00.000000000 Z
11
+ date: 2016-06-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: vcr