springy 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/springy/api.rb +4 -4
- data/lib/springy/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: d7c73367bcc499b6f70a89372940e4d5ebf6e917
|
4
|
+
data.tar.gz: da053435091022758ac4fa71f1361bfd7758b26a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bae899cee8ecfca2678573419db7f9efb84a9434fe47990441a3d9ba0406e35e315210a8583ea44885634ab95f14c5a736dce239a08faf4dc3cae0a917f1471e
|
7
|
+
data.tar.gz: 91148fb55355caac86172ac15326a19ae1753e9b8f804f57acaf94d93c29dde9d4fc15c9a1d9cadbb5c0fd25bd714bb1639401524ab5c7f7d0c63f5540586744
|
data/lib/springy/api.rb
CHANGED
@@ -26,10 +26,10 @@ module Springy
|
|
26
26
|
@context = opts[:context] || {}
|
27
27
|
end
|
28
28
|
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
29
|
+
def context?(*args)
|
30
|
+
(args - context.keys).empty?
|
31
|
+
end
|
32
|
+
|
33
33
|
def limit(size = nil)
|
34
34
|
return @root[:size] || DEFAULT_PER_PAGE unless size
|
35
35
|
add_root size: size.to_i
|
data/lib/springy/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: springy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- eubelts
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-11-
|
11
|
+
date: 2018-11-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|