hobby-devtools 0.0.6 → 0.0.7

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: eb4e2b340ed22b2cf7b434516d14cbb213fd0062
4
- data.tar.gz: 668e34870ac083d6d6b673de5f55b66e6c7517c5
3
+ metadata.gz: 0cee290e620202afcadfb38ef23f0fb17ee057ad
4
+ data.tar.gz: e272108a69425a8267a98a8fa870a5110ec1a085
5
5
  SHA512:
6
- metadata.gz: dedd17c2a7dfbf7ae574e0da1fd87e036218b9bf374488488013acb71e3f7ca6bd381afe8090dac2c705a5decec5338d314b15b74ca17d6fca7337b175c0c4be
7
- data.tar.gz: bbd7cc2f2f50b8902106b30b9f1a56ecdcb1e81f9635414f30b0cb3966c29a898640989759dffb83591aaf30e1c19f2050757386fd32f730cbef00ec0012464a
6
+ metadata.gz: 1dda6f61608922b7a12350ad6cb69c2ced77da304c133b54c679b32071738a73278285dd1260b8694d5e1ff308f7fff77f6242f7f7e4e6b2935a32fe967bfebd
7
+ data.tar.gz: e251fdb7509e8473159bd1dc3654e24c600c77af15351869a6046f15ed68f070af21fdd9d2ed9bc6cb7e11de8623abac3221d54a89bd347bfb28aec808544e24
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |g|
2
2
  g.name = 'hobby-devtools'
3
3
  g.files = `git ls-files`.split($/)
4
- g.version = '0.0.6'
4
+ g.version = '0.0.7'
5
5
  g.summary = 'My setup for development of Hobby-related projects.'
6
6
  g.authors = ['Anatoly Chernow']
7
7
 
@@ -6,10 +6,11 @@ module Hobby
6
6
  end
7
7
 
8
8
  def initialize &block
9
+ @path = 'spec/http'
9
10
  instance_exec &block
10
11
 
11
- Dir["#{path}/**/*.yml"].each do |file|
12
- test = Hobby::Test.from_file file
12
+ Dir["#{@path}/**/*.yml"].each do |file|
13
+ test = Hobby::Test.from_file file, format: @format
13
14
  ::RSpec.describe [test, @app] do
14
15
  before :each do |example|
15
16
  test, app = described_class
@@ -40,9 +41,12 @@ module Hobby
40
41
  @app = block
41
42
  end
42
43
 
43
- attr_reader :path
44
- def path string = 'spec/http'
45
- @path = string
44
+ def path path
45
+ @path = path
46
+ end
47
+
48
+ def format format
49
+ @format = format
46
50
  end
47
51
  end
48
52
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hobby-devtools
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Anatoly Chernow
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-12-31 00:00:00.000000000 Z
11
+ date: 2017-01-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: hobby