rambo_ruby 0.4.0 → 0.5.0

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: 9ce064cc2d8bc8241d368d5645fd1256f857eb3b
4
- data.tar.gz: e9944b07b7f8c5b1812af9202832064c0aa5d1d5
3
+ metadata.gz: 06856629cc151adf7fcea55093eb86430cd8984b
4
+ data.tar.gz: 250d9f949fa560c42568b758947ab05009c6f7a7
5
5
  SHA512:
6
- metadata.gz: a27c1224771eb0dffa78f983935dbf748749a4367e87e8a597d4937d209dc20af10a9328c13eb868adafa88b0dda0a681dc9ea0d94c737b265b44aca719a83d0
7
- data.tar.gz: d507dde0826b9cf97eaeb4a4c97d742c42659d5f8057e248dd7445a086fd212ae96f014d459230bf6dd7766944bddee517f1fcc251ce18c2129209678c6043cb
6
+ metadata.gz: b54485d848d063d80ad55b7444f900296db4cda09f2e4f250bdfa0ae80a4cdb5e43f158bb9879915a634a860402fca3344c05001fe12860e8a17210cb42934bf
7
+ data.tar.gz: a008371469187b544c0c7e045a78da41c6821e59bf7fee5c83c2ce0e47a4182267f834d8194cb1462eedd21d9d31054b5a173650f07cceea4094ff6d6bedf2a1
data/README.md CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  Rambo is a gem that generates API contract tests from API docs in [RAML](http://raml.org/). Rambo is being developed to test APIs complying with standard REST practices. Mileage may vary with other architectures, but I'm happy to consider pull requests.
6
6
 
7
- #### The current version of Rambo is 0.4.0. It is highly unstable and has a limited feature set. Use at your own risk and please file issue reports if they come up!
7
+ #### The current version of Rambo is 0.5.0. It is highly unstable and has a limited feature set. Use at your own risk and please file issue reports if they come up!
8
8
 
9
9
  ## Usage
10
10
  You can install Rambo using:
@@ -14,7 +14,7 @@ gem install rambo_ruby
14
14
  You can also add it to your project's Gemfile:
15
15
  ```ruby
16
16
  group :development, :test do
17
- gem 'rambo_ruby', '~> 0.4'
17
+ gem 'rambo_ruby', '~> 0.5'
18
18
  end
19
19
  ```
20
20
  There are three options for generating tests from Rambo: The command line tool, the rake task, and the Ruby API. In all cases, Rambo will look for a `.rambo.yml` file in the root directory of your project for configuration options. Options may also be passed in through the command line as arguments or the Ruby API as a hash. There is currently no option to pass arguments to the Rake task, but Rambo comes pre-loaded with sensible defaults, and the `.rambo.yml` file is always an option.
@@ -8,7 +8,10 @@
8
8
  }
9
9
  end<% end %><% if method.request_body %>
10
10
  let(:request_body) do
11
- File.read("<%= "spec/support/examples/#{@resource.to_s.gsub("/", "")}_#{method.method}_request_body.json" %>")
11
+ JSON.parse(
12
+ File.read("<%= "spec/support/examples/#{@resource.to_s.gsub("/", "")}_#{method.method}_request_body.json" %>"),
13
+ symbolize_names: true
14
+ )
12
15
  end<% end %><% if has_schema = method.responses.first.bodies.first.schema %>
13
16
 
14
17
  let(:response_schema) do
data/lib/version.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  module Rambo
2
2
  MAJOR = '0'
3
- MINOR = '4'
3
+ MINOR = '5'
4
4
  PATCH = '0'
5
5
 
6
6
  def self.version
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rambo_ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dana Scheider
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-07-10 00:00:00.000000000 Z
11
+ date: 2016-07-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
@@ -287,7 +287,7 @@ rubyforge_project:
287
287
  rubygems_version: 2.6.6
288
288
  signing_key:
289
289
  specification_version: 4
290
- summary: rambo_ruby-0.4.0
290
+ summary: rambo_ruby-0.5.0
291
291
  test_files:
292
292
  - features/create_files.feature
293
293
  - features/error_modes.feature