fdoc 0.3.2 → 0.3.3
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: 955ecb80ba8a980107d6a3a13e131904137eac07
|
4
|
+
data.tar.gz: 4b4024f28716729b060c6b063eca343dffd6463a
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 84256e2f8b5639fc43df20e59952408f47ef0e2b6c26b56cd4934b650129bfdbf21ba2ce9390e20046db7a5d641ac62b65c9129805c4037d2ccd8dc87ac57625
|
7
|
+
data.tar.gz: 204bed06112a58b6e8727a0daca02a40980b07e9607c381643ce5226df7a73903d0c11fcf0b33e30cf6c27988cec140989d170a24a0313a39b4a8de6b1b82696
|
@@ -17,7 +17,7 @@ class Fdoc::EndpointScaffold < Fdoc::Endpoint
|
|
17
17
|
|
18
18
|
def persist!
|
19
19
|
dirname = File.dirname(@endpoint_path)
|
20
|
-
|
20
|
+
FileUtils.mkdir_p(dirname) unless File.directory?(dirname)
|
21
21
|
|
22
22
|
File.open(@endpoint_path, "w") do |file|
|
23
23
|
YAML.dump(@schema, file)
|
data/lib/fdoc/spec_watcher.rb
CHANGED
@@ -35,7 +35,9 @@ module Fdoc
|
|
35
35
|
end
|
36
36
|
|
37
37
|
def path
|
38
|
-
if respond_to?(:
|
38
|
+
if RSpec.respond_to?(:current_example) # Rspec 3
|
39
|
+
RSpec.current_example.metadata[:fdoc]
|
40
|
+
elsif respond_to?(:example) # Rspec 2
|
39
41
|
example.metadata[:fdoc]
|
40
42
|
else # Rspec 1.3.2
|
41
43
|
opts = {}
|
metadata
CHANGED
@@ -1,8 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fdoc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
5
|
-
prerelease:
|
4
|
+
version: 0.3.3
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Matt Wilson
|
@@ -16,145 +15,127 @@ dependencies:
|
|
16
15
|
- !ruby/object:Gem::Dependency
|
17
16
|
name: json
|
18
17
|
requirement: !ruby/object:Gem::Requirement
|
19
|
-
none: false
|
20
18
|
requirements:
|
21
|
-
- -
|
19
|
+
- - ">="
|
22
20
|
- !ruby/object:Gem::Version
|
23
21
|
version: '0'
|
24
22
|
type: :runtime
|
25
23
|
prerelease: false
|
26
24
|
version_requirements: !ruby/object:Gem::Requirement
|
27
|
-
none: false
|
28
25
|
requirements:
|
29
|
-
- -
|
26
|
+
- - ">="
|
30
27
|
- !ruby/object:Gem::Version
|
31
28
|
version: '0'
|
32
29
|
- !ruby/object:Gem::Dependency
|
33
30
|
name: json-schema
|
34
31
|
requirement: !ruby/object:Gem::Requirement
|
35
|
-
none: false
|
36
32
|
requirements:
|
37
|
-
- - ~>
|
33
|
+
- - "~>"
|
38
34
|
- !ruby/object:Gem::Version
|
39
35
|
version: '1.1'
|
40
36
|
type: :runtime
|
41
37
|
prerelease: false
|
42
38
|
version_requirements: !ruby/object:Gem::Requirement
|
43
|
-
none: false
|
44
39
|
requirements:
|
45
|
-
- - ~>
|
40
|
+
- - "~>"
|
46
41
|
- !ruby/object:Gem::Version
|
47
42
|
version: '1.1'
|
48
43
|
- !ruby/object:Gem::Dependency
|
49
44
|
name: kramdown
|
50
45
|
requirement: !ruby/object:Gem::Requirement
|
51
|
-
none: false
|
52
46
|
requirements:
|
53
|
-
- -
|
47
|
+
- - ">="
|
54
48
|
- !ruby/object:Gem::Version
|
55
49
|
version: '0'
|
56
50
|
type: :runtime
|
57
51
|
prerelease: false
|
58
52
|
version_requirements: !ruby/object:Gem::Requirement
|
59
|
-
none: false
|
60
53
|
requirements:
|
61
|
-
- -
|
54
|
+
- - ">="
|
62
55
|
- !ruby/object:Gem::Version
|
63
56
|
version: '0'
|
64
57
|
- !ruby/object:Gem::Dependency
|
65
58
|
name: thor
|
66
59
|
requirement: !ruby/object:Gem::Requirement
|
67
|
-
none: false
|
68
60
|
requirements:
|
69
|
-
- -
|
61
|
+
- - ">="
|
70
62
|
- !ruby/object:Gem::Version
|
71
63
|
version: '0'
|
72
64
|
type: :runtime
|
73
65
|
prerelease: false
|
74
66
|
version_requirements: !ruby/object:Gem::Requirement
|
75
|
-
none: false
|
76
67
|
requirements:
|
77
|
-
- -
|
68
|
+
- - ">="
|
78
69
|
- !ruby/object:Gem::Version
|
79
70
|
version: '0'
|
80
71
|
- !ruby/object:Gem::Dependency
|
81
72
|
name: rake
|
82
73
|
requirement: !ruby/object:Gem::Requirement
|
83
|
-
none: false
|
84
74
|
requirements:
|
85
|
-
- -
|
75
|
+
- - ">="
|
86
76
|
- !ruby/object:Gem::Version
|
87
77
|
version: '0'
|
88
78
|
type: :development
|
89
79
|
prerelease: false
|
90
80
|
version_requirements: !ruby/object:Gem::Requirement
|
91
|
-
none: false
|
92
81
|
requirements:
|
93
|
-
- -
|
82
|
+
- - ">="
|
94
83
|
- !ruby/object:Gem::Version
|
95
84
|
version: '0'
|
96
85
|
- !ruby/object:Gem::Dependency
|
97
86
|
name: rspec
|
98
87
|
requirement: !ruby/object:Gem::Requirement
|
99
|
-
none: false
|
100
88
|
requirements:
|
101
|
-
- - ~>
|
89
|
+
- - "~>"
|
102
90
|
- !ruby/object:Gem::Version
|
103
91
|
version: '2.5'
|
104
92
|
type: :development
|
105
93
|
prerelease: false
|
106
94
|
version_requirements: !ruby/object:Gem::Requirement
|
107
|
-
none: false
|
108
95
|
requirements:
|
109
|
-
- - ~>
|
96
|
+
- - "~>"
|
110
97
|
- !ruby/object:Gem::Version
|
111
98
|
version: '2.5'
|
112
99
|
- !ruby/object:Gem::Dependency
|
113
100
|
name: nokogiri
|
114
101
|
requirement: !ruby/object:Gem::Requirement
|
115
|
-
none: false
|
116
102
|
requirements:
|
117
|
-
- -
|
103
|
+
- - ">="
|
118
104
|
- !ruby/object:Gem::Version
|
119
105
|
version: '0'
|
120
106
|
type: :development
|
121
107
|
prerelease: false
|
122
108
|
version_requirements: !ruby/object:Gem::Requirement
|
123
|
-
none: false
|
124
109
|
requirements:
|
125
|
-
- -
|
110
|
+
- - ">="
|
126
111
|
- !ruby/object:Gem::Version
|
127
112
|
version: '0'
|
128
113
|
- !ruby/object:Gem::Dependency
|
129
114
|
name: cane
|
130
115
|
requirement: !ruby/object:Gem::Requirement
|
131
|
-
none: false
|
132
116
|
requirements:
|
133
|
-
- -
|
117
|
+
- - ">="
|
134
118
|
- !ruby/object:Gem::Version
|
135
119
|
version: '0'
|
136
120
|
type: :development
|
137
121
|
prerelease: false
|
138
122
|
version_requirements: !ruby/object:Gem::Requirement
|
139
|
-
none: false
|
140
123
|
requirements:
|
141
|
-
- -
|
124
|
+
- - ">="
|
142
125
|
- !ruby/object:Gem::Version
|
143
126
|
version: '0'
|
144
127
|
- !ruby/object:Gem::Dependency
|
145
128
|
name: guard-rspec
|
146
129
|
requirement: !ruby/object:Gem::Requirement
|
147
|
-
none: false
|
148
130
|
requirements:
|
149
|
-
- -
|
131
|
+
- - ">="
|
150
132
|
- !ruby/object:Gem::Version
|
151
133
|
version: '0'
|
152
134
|
type: :development
|
153
135
|
prerelease: false
|
154
136
|
version_requirements: !ruby/object:Gem::Requirement
|
155
|
-
none: false
|
156
137
|
requirements:
|
157
|
-
- -
|
138
|
+
- - ">="
|
158
139
|
- !ruby/object:Gem::Version
|
159
140
|
version: '0'
|
160
141
|
description: A tool for documenting API endpoints.
|
@@ -165,7 +146,13 @@ extensions: []
|
|
165
146
|
extra_rdoc_files:
|
166
147
|
- README.md
|
167
148
|
files:
|
149
|
+
- Gemfile
|
150
|
+
- README.md
|
151
|
+
- Rakefile
|
152
|
+
- bin/fdoc
|
153
|
+
- fdoc.gemspec
|
168
154
|
- lib/endpoint-schema.yaml
|
155
|
+
- lib/fdoc.rb
|
169
156
|
- lib/fdoc/cli.rb
|
170
157
|
- lib/fdoc/endpoint.rb
|
171
158
|
- lib/fdoc/endpoint_scaffold.rb
|
@@ -188,7 +175,6 @@ files:
|
|
188
175
|
- lib/fdoc/templates/shared/endpoint_name.html.erb
|
189
176
|
- lib/fdoc/templates/shared/endpoint_name.md.erb
|
190
177
|
- lib/fdoc/templates/styles.css
|
191
|
-
- lib/fdoc.rb
|
192
178
|
- spec/fdoc/cli_spec.rb
|
193
179
|
- spec/fdoc/endpoint_scaffold_spec.rb
|
194
180
|
- spec/fdoc/endpoint_spec.rb
|
@@ -201,43 +187,37 @@ files:
|
|
201
187
|
- spec/fdoc/spec_watcher_spec.rb
|
202
188
|
- spec/fixtures/members/add-PUT.fdoc
|
203
189
|
- spec/fixtures/members/draft-POST.fdoc
|
190
|
+
- spec/fixtures/members/list/GET.fdoc
|
204
191
|
- spec/fixtures/members/list/complex-params-GET.fdoc
|
205
192
|
- spec/fixtures/members/list/filter-GET.fdoc
|
206
|
-
- spec/fixtures/members/list/GET.fdoc
|
207
193
|
- spec/fixtures/members/members.fdoc.service
|
208
194
|
- spec/fixtures/sample_group.fdoc.meta
|
209
195
|
- spec/spec_helper.rb
|
210
196
|
- spec/support/capture_helper.rb
|
211
|
-
- fdoc.gemspec
|
212
|
-
- Rakefile
|
213
|
-
- README.md
|
214
|
-
- Gemfile
|
215
|
-
- bin/fdoc
|
216
197
|
homepage: http://github.com/square/fdoc
|
217
198
|
licenses:
|
218
199
|
- Apache 2.0
|
200
|
+
metadata: {}
|
219
201
|
post_install_message:
|
220
202
|
rdoc_options:
|
221
|
-
- --charset=UTF-8
|
203
|
+
- "--charset=UTF-8"
|
222
204
|
require_paths:
|
223
205
|
- lib
|
224
206
|
required_ruby_version: !ruby/object:Gem::Requirement
|
225
|
-
none: false
|
226
207
|
requirements:
|
227
|
-
- -
|
208
|
+
- - ">="
|
228
209
|
- !ruby/object:Gem::Version
|
229
210
|
version: '0'
|
230
211
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
231
|
-
none: false
|
232
212
|
requirements:
|
233
|
-
- -
|
213
|
+
- - ">="
|
234
214
|
- !ruby/object:Gem::Version
|
235
215
|
version: '0'
|
236
216
|
requirements: []
|
237
217
|
rubyforge_project:
|
238
|
-
rubygems_version:
|
218
|
+
rubygems_version: 2.4.3
|
239
219
|
signing_key:
|
240
|
-
specification_version:
|
220
|
+
specification_version: 4
|
241
221
|
summary: A tool for documenting API endpoints.
|
242
222
|
test_files:
|
243
223
|
- spec/fdoc/cli_spec.rb
|
@@ -259,3 +239,4 @@ test_files:
|
|
259
239
|
- spec/fixtures/sample_group.fdoc.meta
|
260
240
|
- spec/spec_helper.rb
|
261
241
|
- spec/support/capture_helper.rb
|
242
|
+
has_rdoc:
|