apitools-middleware 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/apitools/middleware/spec.rb +5 -1
- data/lib/apitools/middleware/version.rb +1 -1
- data/spec/spec_spec.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e96c4cfd9aeb2cae572d5df9879309971f594a12
|
4
|
+
data.tar.gz: 9cd9ee6b6618e0d3e415fc8cf5c9e2c7ba02c94a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 23d9f0fbe3b2e846b16d977dae035ea4e1e0f2c4862527d4589e9bd7f4f65a57087a678effd71500b34913bd7bfa77e9f8e681eb058728a134859b43587696fc
|
7
|
+
data.tar.gz: c60111fdf6d7ca2a58fd30520b08357c4a0f993cce0da3e426830c3dcc86ca305885ba9af82504da9f28ee85511af39b8298b4f651de6fab6bf96a61cff3f53a
|
@@ -8,7 +8,7 @@ module Apitools
|
|
8
8
|
class Spec
|
9
9
|
MANIFEST_FILE = 'apitools.json' # should be apitools.json
|
10
10
|
|
11
|
-
attr_reader :repo, :
|
11
|
+
attr_reader :repo, :manifest_path
|
12
12
|
|
13
13
|
extend Forwardable
|
14
14
|
def_delegators :manifest, :name, :description, :author, :endpoints, :files
|
@@ -32,6 +32,10 @@ module Apitools
|
|
32
32
|
@code ||= load_code
|
33
33
|
end
|
34
34
|
|
35
|
+
def path
|
36
|
+
@path.to_s
|
37
|
+
end
|
38
|
+
|
35
39
|
def endpoint
|
36
40
|
Array(endpoints).first
|
37
41
|
end
|
data/spec/spec_spec.rb
CHANGED
@@ -5,7 +5,7 @@ describe Apitools::Middleware::Spec do
|
|
5
5
|
subject(:spec) { described_class.new(repo, path.to_s) }
|
6
6
|
|
7
7
|
it 'trims path to just folder' do
|
8
|
-
expect(spec.path).to eq(path.dirname)
|
8
|
+
expect(spec.path).to eq(path.dirname.to_s)
|
9
9
|
end
|
10
10
|
|
11
11
|
it 'remembers manifest from path' do
|