wes-data-api 1.6.0 → 1.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/wes/data/api/user.rb +8 -0
- data/lib/wes/data/api/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: 7504ca79750d4d10e2e691eb6400d284e883f790
|
4
|
+
data.tar.gz: 8e13e001807f8b68fbf070c27c6bcf60467c23ba
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a778fe44839f2106e31fb56959b1c10288217e3e89a5143eca714ed2ca14ea96bf85b43eaa60094030b937c2f2f2deb8eb0e1a36289ef40a09bfce8e55879f8e
|
7
|
+
data.tar.gz: 1e2985e5d3ccdfbc86af7f85f60e62e8d62a0040955e6cd80b26c6324003209eb6d6d1e1c0dd0a5ff16e11c8b667af902ead61e533ab5fb79a382e9412b7ae4a
|
data/lib/wes/data/api/user.rb
CHANGED
@@ -9,6 +9,10 @@ module Wes
|
|
9
9
|
@id = id
|
10
10
|
end
|
11
11
|
|
12
|
+
def self.find_by_attribute(key, value)
|
13
|
+
new.find_by_attribute(key, value)
|
14
|
+
end
|
15
|
+
|
12
16
|
def closed_submissions
|
13
17
|
check_for_id!
|
14
18
|
client.get "#{routes.user}/#{id}#{routes.submissions}/closed"
|
@@ -19,6 +23,10 @@ module Wes
|
|
19
23
|
client.post("#{routes.user}/#{id}#{routes.metadata}", {})
|
20
24
|
end
|
21
25
|
|
26
|
+
def find_by_attribute(key, value)
|
27
|
+
client.get("#{routes.user}#{routes.metadata}?#{key}=#{value}")
|
28
|
+
end
|
29
|
+
|
22
30
|
def metadata
|
23
31
|
check_for_id!
|
24
32
|
client.get "#{routes.user}/#{id}#{routes.metadata}"
|
data/lib/wes/data/api/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wes-data-api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ''
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-04-
|
11
|
+
date: 2016-04-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|