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 +4 -4
- data/README.md +2 -0
- data/app/controllers/siringa/siringa_controller.rb +8 -0
- data/config/routes.rb +1 -0
- data/lib/siringa/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 924f051a023e1d313c054c67cdfb983e1c31be3b
|
4
|
+
data.tar.gz: 5fe7af2170c3012f74f841de6ebad6ebd8b05091
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/config/routes.rb
CHANGED
data/lib/siringa/version.rb
CHANGED