rrrspec-web 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rrrspec/web/api.rb +4 -0
- data/lib/rrrspec/web/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f579a525eba34e58ddf6e71d06a7c1604981bcf8
|
4
|
+
data.tar.gz: 6dc99a7b6151a45466597a3dcba1a919dce6b01d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2e0ffe5262dc4c9e112adfe12e07b7ad772f3166940e6c899b3823683e6182d19b3378f79f9d20f7ba86128a62860cd4139545bc57d79abcdfc5bd8e5a12e542
|
7
|
+
data.tar.gz: 0b82b7ffe58e7b0f43d0dcc9515ca6d929eb550c6942ec3611b4d157d1215c39ec3a2f3b1ab3e912c6e414f4977a979bd95bc091f4dafa4b19759212e01f994b
|
data/lib/rrrspec/web/api.rb
CHANGED
@@ -4,9 +4,12 @@ require 'oj'
|
|
4
4
|
|
5
5
|
module RRRSpec
|
6
6
|
module Web
|
7
|
+
DEFAULT_PER_PAGE = 10
|
8
|
+
|
7
9
|
class API < Grape::API
|
8
10
|
version 'v1', using: :path
|
9
11
|
format :json
|
12
|
+
set :per_page, DEFAULT_PER_PAGE
|
10
13
|
|
11
14
|
resource :tasksets do
|
12
15
|
desc "Return active tasksets"
|
@@ -63,6 +66,7 @@ module RRRSpec
|
|
63
66
|
version 'v2', using: :path
|
64
67
|
format :json
|
65
68
|
formatter :json, OjFormatter
|
69
|
+
set :per_page, DEFAULT_PER_PAGE
|
66
70
|
|
67
71
|
rescue_from(ActiveRecord::RecordNotFound) do
|
68
72
|
[404, {}, ['']]
|
data/lib/rrrspec/web/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rrrspec-web
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Masaya Suzuki
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-07-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|