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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 835ae4268801f3543334a082fd65379340cdb734
4
- data.tar.gz: 4dbebd2858d865f3b4912496ae3089fbace9e9c1
3
+ metadata.gz: f579a525eba34e58ddf6e71d06a7c1604981bcf8
4
+ data.tar.gz: 6dc99a7b6151a45466597a3dcba1a919dce6b01d
5
5
  SHA512:
6
- metadata.gz: 21535194f756e7243f6376c101905bed8d1dc5e4a289aa77a63e3e9dffe43ac6c2ec0393904dfccd5a23f4230889c8f1994704a22121374a758311deed2cdae0
7
- data.tar.gz: 91e8cc2b487d8e9ab99ae481992ac1b3a88dc4379c0a707a2ba9b3436eac66feaa973e677ed4894bdf40981c5237f29e9187008ceed888d3105ced00e7e043ae
6
+ metadata.gz: 2e0ffe5262dc4c9e112adfe12e07b7ad772f3166940e6c899b3823683e6182d19b3378f79f9d20f7ba86128a62860cd4139545bc57d79abcdfc5bd8e5a12e542
7
+ data.tar.gz: 0b82b7ffe58e7b0f43d0dcc9515ca6d929eb550c6942ec3611b4d157d1215c39ec3a2f3b1ab3e912c6e414f4977a979bd95bc091f4dafa4b19759212e01f994b
@@ -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, {}, ['']]
@@ -1,5 +1,5 @@
1
1
  module RRRSpec
2
2
  module Web
3
- VERSION = "0.2.1"
3
+ VERSION = "0.2.2"
4
4
  end
5
5
  end
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.1
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-04-22 00:00:00.000000000 Z
11
+ date: 2014-07-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler