tests_doc 0.0.1 → 0.0.2

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: 27cf8e906cf35162ae9b876fed24e9c8e3146c88
4
- data.tar.gz: e2e9fea9259f519f169cacd45f64661a9bc25e09
3
+ metadata.gz: 2a0c49232ed6b607535353ba0aa08d1deb212906
4
+ data.tar.gz: 13aa831908beee3729d76843de58d2ca6262951f
5
5
  SHA512:
6
- metadata.gz: 8e6371a5c4b9d74823f3803b581218bbb76e446a25d72dd73ec1e85f995705667192755f236e344196cf43faf511fd199a2a59274c3958cb85c5c9cd39c13999
7
- data.tar.gz: d4f856da886ca7cd353c963d8004712816187231ee791df1b20248f7427f13271c8837ad98f0b767035f8514970a3539a8d6d03b7cc900583e1c5938ae952f4f
6
+ metadata.gz: b539157d78a6403f4732d12342da94fa4f323bf117649dc9b4d29de21120ff635b6efb6a81ec889603244faf215e4ada6727d52c1d0235d61bff936ed5a76997
7
+ data.tar.gz: be8b46eec085edb7ed45328989cde4d130dac099af364c433a6b944c890745f1540d2bcb6919021d66fac044bfcdffdae1f9c286af360a27e1a8cee199bb5e17
data/README.md CHANGED
@@ -3,7 +3,11 @@
3
3
  This library allow to output requests specs into readable markdown files.
4
4
  It can link the markdown file to the spec ran.
5
5
 
6
- **This library currently only supports RSpec 2**
6
+ **This library supports RSpec 2 and RSpec 3**
7
+
8
+ ## Install
9
+
10
+ `gem install tests_doc`
7
11
 
8
12
  ## Example Output
9
13
 
@@ -159,4 +163,3 @@ end
159
163
  * Add tests
160
164
  * Publish gem
161
165
  * Fix warnings
162
- * RSpec 3 support
@@ -16,7 +16,7 @@ gem 'tests_doc', path: '../../../tests_doc', :group => :test
16
16
 
17
17
  group :test, :development do
18
18
  gem 'byebug'
19
- gem 'rspec-rails', '~> 2.14'
19
+ gem 'rspec-rails', '~> 3.4'
20
20
  end
21
21
 
22
22
  # To use ActiveModel has_secure_password
@@ -2,9 +2,9 @@ PATH
2
2
  remote: ../../../tests_doc
3
3
  specs:
4
4
  tests_doc (0.0.1)
5
- rails (>= 4.0)
6
- rspec (>= 2.14)
7
- rspec-rails (>= 2.14)
5
+ rails (~> 4.0)
6
+ rspec (>= 2.0)
7
+ rspec-rails (>= 2.0)
8
8
 
9
9
  GEM
10
10
  remote: https://rubygems.org/
@@ -58,10 +58,10 @@ GEM
58
58
  mail (2.6.3)
59
59
  mime-types (>= 1.16, < 3)
60
60
  mime-types (2.6.2)
61
- mini_portile (0.6.2)
61
+ mini_portile2 (2.0.0)
62
62
  minitest (5.8.3)
63
- nokogiri (1.6.6.3)
64
- mini_portile (~> 0.6.0)
63
+ nokogiri (1.6.7)
64
+ mini_portile2 (~> 2.0.0.rc2)
65
65
  rack (1.6.4)
66
66
  rack-test (0.6.3)
67
67
  rack (>= 1.0)
@@ -93,25 +93,27 @@ GEM
93
93
  rake (>= 0.8.7)
94
94
  thor (>= 0.18.1, < 2.0)
95
95
  rake (10.4.2)
96
- rspec (2.99.0)
97
- rspec-core (~> 2.99.0)
98
- rspec-expectations (~> 2.99.0)
99
- rspec-mocks (~> 2.99.0)
100
- rspec-collection_matchers (1.1.2)
101
- rspec-expectations (>= 2.99.0.beta1)
102
- rspec-core (2.99.2)
103
- rspec-expectations (2.99.2)
104
- diff-lcs (>= 1.1.3, < 2.0)
105
- rspec-mocks (2.99.4)
106
- rspec-rails (2.99.0)
107
- actionpack (>= 3.0)
108
- activemodel (>= 3.0)
109
- activesupport (>= 3.0)
110
- railties (>= 3.0)
111
- rspec-collection_matchers
112
- rspec-core (~> 2.99.0)
113
- rspec-expectations (~> 2.99.0)
114
- rspec-mocks (~> 2.99.0)
96
+ rspec (3.4.0)
97
+ rspec-core (~> 3.4.0)
98
+ rspec-expectations (~> 3.4.0)
99
+ rspec-mocks (~> 3.4.0)
100
+ rspec-core (3.4.1)
101
+ rspec-support (~> 3.4.0)
102
+ rspec-expectations (3.4.0)
103
+ diff-lcs (>= 1.2.0, < 2.0)
104
+ rspec-support (~> 3.4.0)
105
+ rspec-mocks (3.4.0)
106
+ diff-lcs (>= 1.2.0, < 2.0)
107
+ rspec-support (~> 3.4.0)
108
+ rspec-rails (3.4.0)
109
+ actionpack (>= 3.0, < 4.3)
110
+ activesupport (>= 3.0, < 4.3)
111
+ railties (>= 3.0, < 4.3)
112
+ rspec-core (~> 3.4.0)
113
+ rspec-expectations (~> 3.4.0)
114
+ rspec-mocks (~> 3.4.0)
115
+ rspec-support (~> 3.4.0)
116
+ rspec-support (3.4.1)
115
117
  spring (1.4.4)
116
118
  sprockets (3.4.0)
117
119
  rack (> 1, < 3)
@@ -132,7 +134,7 @@ DEPENDENCIES
132
134
  byebug
133
135
  rails (= 4.2.5)
134
136
  rails-api
135
- rspec-rails (~> 2.14)
137
+ rspec-rails (~> 3.4)
136
138
  spring
137
139
  sqlite3
138
140
  tests_doc!
@@ -34,7 +34,7 @@ module TestsDoc
34
34
 
35
35
  if TestsDoc.interaction_options
36
36
  TestsDoc::Interaction.new(
37
- example,
37
+ RSpec.respond_to?(:current_example) ? RSpec.current_example : example,
38
38
  request,
39
39
  response,
40
40
  TestsDoc.interaction_options
@@ -1,3 +1,3 @@
1
1
  module TestsDoc
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
@@ -19,6 +19,6 @@ Gem::Specification.new do |spec|
19
19
  spec.require_paths = ["lib"]
20
20
 
21
21
  spec.add_dependency "rails", '~> 4.0'
22
- spec.add_dependency "rspec", '~> 2.14'
23
- spec.add_dependency "rspec-rails", '~> 2.14'
22
+ spec.add_dependency "rspec", '>= 2.0'
23
+ spec.add_dependency "rspec-rails", '>= 2.0'
24
24
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tests_doc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jean-Richard Lai
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-11-20 00:00:00.000000000 Z
11
+ date: 2015-12-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -28,30 +28,30 @@ dependencies:
28
28
  name: rspec
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: '2.14'
33
+ version: '2.0'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - "~>"
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
- version: '2.14'
40
+ version: '2.0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rspec-rails
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - "~>"
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
- version: '2.14'
47
+ version: '2.0'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - "~>"
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
- version: '2.14'
54
+ version: '2.0'
55
55
  description: This library allow to output requests specs into readable markdown files
56
56
  email:
57
57
  - jrichardlai@gmail.com