rspec-api-blueprint-formatter 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/api_blueprint.rb +2 -2
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b6dfeb563d5f0d7faae44cb720d625abfa25d91e
4
- data.tar.gz: b9ffaabf36aeae46b20de087661323963c692ae0
3
+ metadata.gz: 3a24e0f18800d662999446c42eab7e44c3bd3304
4
+ data.tar.gz: 505c120fb733f197f7a4cb667e53d06de190a684
5
5
  SHA512:
6
- metadata.gz: 1f96c797447ae5f70ef8999a630c9e61f4dd0fb6f8911c85927340c3b7fe987a65709739e6ce696740d1e3ada62147fb7aa8a6da981b4d6b402a513db3d002b4
7
- data.tar.gz: 26d68c0902c8a2c74cc78f88636d777ec76f68c3dfc3100b72f9954efc47dedba1f728d8b1ca05982eeeea2045a2a0086b521b25892e9759d9cf1dc0920bdd5d
6
+ metadata.gz: 103c92125b9d121616975e61cab4d0fa7e1ba85ae9586eda30b164baf6b3a028dd7db841616a93dd31808d118fe83c719cb7af20bfb97448b92d5e4b34e8df89
7
+ data.tar.gz: 29b56a1a462e20aee707aa99e38bf1d09414df6458ffca800173028b3ff1441f81812f4554cbadec9acd6e64146209caa6c57cada8fb47740b8961746b8341c9
data/lib/api_blueprint.rb CHANGED
@@ -36,7 +36,7 @@ class ApiBlueprint < RSpec::Core::Formatters::BaseTextFormatter
36
36
  examples: {
37
37
  description => {
38
38
  request: {
39
- parameters: request.parameters.except(*request.path_parameters.keys.map(&:to_s)).to_json,
39
+ parameters: JSON.pretty_generate(request.parameters.except(*request.path_parameters.keys.map(&:to_s))),
40
40
  format: request.format
41
41
  },
42
42
  source: passed.example.instance_variable_get(:@example_block).source,
@@ -95,7 +95,7 @@ class ApiBlueprint < RSpec::Core::Formatters::BaseTextFormatter
95
95
  def print_example(example_description, example_metadata)
96
96
  output.puts "+ Request #{example_description}\n" \
97
97
  "\n" \
98
- " #{example_metadata[:request][:parameters]}\n" \
98
+ "#{indent_lines(8, example_metadata[:request][:parameters])}\n" \
99
99
  " \n" \
100
100
  " Location: #{example_metadata[:location]}\n" \
101
101
  " Source code:\n" \
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspec-api-blueprint-formatter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nam Chu Hoai
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-11-16 00:00:00.000000000 Z
11
+ date: 2015-11-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler