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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6243d5590eae94ad4e45bb82866da87397f4907e
4
- data.tar.gz: e1bc333f6f01bae677269a29ae0ebc584225f6ca
3
+ metadata.gz: e96c4cfd9aeb2cae572d5df9879309971f594a12
4
+ data.tar.gz: 9cd9ee6b6618e0d3e415fc8cf5c9e2c7ba02c94a
5
5
  SHA512:
6
- metadata.gz: 8faf2aaac44d25379ae36b751445afdfd430868040ea1cec8668c997208c9a0cb950ea036b44018af4c7ba864f0f67c196742eff7a297bd7542a11ce72ef33a5
7
- data.tar.gz: 6638c6569f3b54bb908ba18be18210efdf112dd50e76f4eae26cf7439af34c36aeefbde8c81991e6546c1a3a9b41018ed0088f9f76612394edd9ccde63ad0235
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, :path, :manifest_path
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
@@ -1,5 +1,5 @@
1
1
  module Apitools
2
2
  module Middleware
3
- VERSION = '0.0.2'
3
+ VERSION = '0.0.3'
4
4
  end
5
5
  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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: apitools-middleware
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michal Cichra