RedcapAPI 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/RedcapAPI.gemspec +8 -1
- data/lib/RedcapAPI/version.rb +1 -1
- metadata +9 -4
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZmIxOGZkYzg5MzRmMDU3MzAxNzlmMjc4ODNjZmMzMjZjMjViMDFjZQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ODVhMWEwMDNhMmFlMWEwNGNjNjZlMzgyYmE1NTY0OTEwMmE2NjY5Yg==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NmE2ZDFiMmVlNWY0MzYyMTcwZGE3ZmVhN2YxYmQ0MmU0YWIzZWRmYmY5YWM5
|
10
|
+
ZWZhYmZjNGIyMmRiODhiNjc1MDE3ZmRhNjI2MGE2MGNlZjhlOTVmMDJjZjM2
|
11
|
+
NDhiZDIwZmQyMTExNThjNGQyNzAyYjJmOTJiZTk4ZGQyYjhmMDc=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
N2QzNzM4ZmZjM2M4M2FkMTQyYmIwNzM1OGZjYjA2OThhMDJlNzdkMWMwNzY4
|
14
|
+
NWM5MDdlNjFlZmJmNmU3NmQ5ZTE5ZjY2YzU4YWUzYWRmN2M4NWFlNTI5MWE5
|
15
|
+
NjlkZjI0YmZlMTU3MzRlZWNlODViMzEyMmRjZTQwNzNkYWQxZGM=
|
data/RedcapAPI.gemspec
CHANGED
@@ -11,11 +11,18 @@ Gem::Specification.new do |spec|
|
|
11
11
|
spec.summary = %q{This is an api to utilize REDCAP api with ruby. This Gem requires mechanize as a dependency.
|
12
12
|
it is based on instructions here http://sburns.org/2013/07/22/intro-to-redcap-api.html
|
13
13
|
}
|
14
|
-
spec.description = %q{
|
14
|
+
spec.description = %q{
|
15
|
+
This gem is still under active development. Please contact me directly with any questions or suggestions.
|
16
|
+
|
17
|
+
To start:
|
15
18
|
|
16
19
|
r = RedcapAPI.new(token, url) # your institution has it's own url, and each project has it's own token
|
17
20
|
|
18
21
|
r.get(optional record_id) # returns all records in JSON format or a specific record if specified
|
22
|
+
|
23
|
+
r.get_fields # returns all fields for that instrument
|
24
|
+
|
25
|
+
r.post(data) # this will either update an old record or create a new one. the data should be in form of array of hashes or as a hash (for one item). dates are accepted in Date class or in strftime('%F') format.
|
19
26
|
}
|
20
27
|
spec.homepage = ""
|
21
28
|
spec.license = "MIT"
|
data/lib/RedcapAPI/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: RedcapAPI
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- eugyev
|
@@ -52,9 +52,14 @@ dependencies:
|
|
52
52
|
- - ! '>='
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
|
-
description: ! "
|
56
|
-
|
57
|
-
#
|
55
|
+
description: ! "\n This gem is still under active development. Please contact me
|
56
|
+
directly with any questions or suggestions. \n \n To start:\n\n r = RedcapAPI.new(token,
|
57
|
+
url) # your institution has it's own url, and each project has it's own token\n\n
|
58
|
+
\ r.get(optional record_id) # returns all records in JSON format or a specific record
|
59
|
+
if specified\n \n r.get_fields # returns all fields for that instrument\n \n
|
60
|
+
\ r.post(data) # this will either update an old record or create a new one. the
|
61
|
+
data should be in form of array of hashes or as a hash (for one item). dates are
|
62
|
+
accepted in Date class or in strftime('%F') format. \n "
|
58
63
|
email:
|
59
64
|
- eugyev@gmail.com
|
60
65
|
executables: []
|