siringa 0.0.8 → 0.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e86e6f8766845bd59ef91b71811575e9b0d5bf55
4
- data.tar.gz: 3fd47988e335331bd12311fd114029393f4eaaed
3
+ metadata.gz: 924f051a023e1d313c054c67cdfb983e1c31be3b
4
+ data.tar.gz: 5fe7af2170c3012f74f841de6ebad6ebd8b05091
5
5
  SHA512:
6
- metadata.gz: b47372970c5d75e368c2b6552d0be4eaea148105f1578cbd1ebc2202d33ca3bc07a7ff826644971aeaa2fa56bc460837fc345c0d515270aa430927215c34f288
7
- data.tar.gz: bf308063eeb9ce9078aaa1e27f05b0e7d525c531952d467e232e1ddac5aa68be86e24c837f5eb2a0f71badbdd72193c089004a6f405ec4e33aa71ad9573f243c
6
+ metadata.gz: 7d04d2d596e76cbf3a0b358a2f7b0482a4371f11ae4a57c09f864a06312ea652f117d4a920a00d7842f4882c29b3abea9b8960c79193427e901fa46ae1a4c434
7
+ data.tar.gz: 41f7658ec0a15a4ab6d73992e6ae573655341dc21580260ea3525ffffbc5ecc625d0136dd289d955637fc5649ab88faf30b1c306223be8d39a05b26d6e914e5e
data/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # Siringa :syringe:
2
2
  This gem was born working on pure client acceptance testing in [Teambox](http://www.teambox.com).
3
+ ## WARNING :warning:
4
+ Due to a conflict with reserved word `load` we are deprecating `#load` action in `SiringaController` in favour of `#load_definition`. This change is reflected by a warning in logs but will be dropped in version `0.1.0`.
3
5
  ## The problem
4
6
 
5
7
  You have a Rails based API and you need to write some acceptance tests using your Javascript/iOS/Android/whatever client.
@@ -1,6 +1,14 @@
1
1
  module Siringa
2
2
  class SiringaController < ApplicationController
3
3
 
4
+ # TODO: deprecate in 0.1.0
5
+ #
6
+ def load
7
+ Rails.logger.warn '[Siringa] Using /load route has been deprecated in favour of /load_definition. Will be dropped in 0.1.0'
8
+
9
+ load_definition
10
+ end
11
+
4
12
  def load_definition
5
13
  result = Siringa.load_definition(params['definition'].to_sym, options)
6
14
  render json: result, status: :created
@@ -1,4 +1,5 @@
1
1
  Siringa::Engine.routes.draw do
2
+ post "load/:definition", :to => "siringa#load" # To be deprecated in 0.1.0
2
3
  post "load_definition/:definition", :to => "siringa#load_definition"
3
4
  post "dump", :to => "siringa#dump"
4
5
  post "restore", :to => "siringa#restore"
@@ -1,3 +1,3 @@
1
1
  module Siringa
2
- VERSION = "0.0.8"
2
+ VERSION = "0.0.9"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: siringa
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Enrico Stano