RedcapAPI 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- YTY3OWQ3Y2JiNGVkNzJkZDllZjkxNzA3YThmZGRkNTE3NDk2ODVmOA==
4
+ ZmIxOGZkYzg5MzRmMDU3MzAxNzlmMjc4ODNjZmMzMjZjMjViMDFjZQ==
5
5
  data.tar.gz: !binary |-
6
- YTc1ZDQyOTYwZTAyY2UyZTYxYmU2YzJiNzdmZjJlZGFjNjIxNzhmNw==
6
+ ODVhMWEwMDNhMmFlMWEwNGNjNjZlMzgyYmE1NTY0OTEwMmE2NjY5Yg==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- NTI0ZmNmMTlkOWVkNTQ2NmQyZDdiNjMyMzY1ZTA0NjE3N2M4NTFkZjdjYzI2
10
- ZDRlYTJhMmM4ODk4YzYxM2MyYzRhYjNjYThhMzJmYjI5OTc0MjFmMGNlMTY3
11
- NDMwZTgyZThiZjhhYjA1YTMxYWZkNGY2NzY4ODlhYzBlODJhOTk=
9
+ NmE2ZDFiMmVlNWY0MzYyMTcwZGE3ZmVhN2YxYmQ0MmU0YWIzZWRmYmY5YWM5
10
+ ZWZhYmZjNGIyMmRiODhiNjc1MDE3ZmRhNjI2MGE2MGNlZjhlOTVmMDJjZjM2
11
+ NDhiZDIwZmQyMTExNThjNGQyNzAyYjJmOTJiZTk4ZGQyYjhmMDc=
12
12
  data.tar.gz: !binary |-
13
- NWU4NTNjNGNlMWI2MDQxNDI3ODY3MmRlNWE1MGI5NjU0ZWJhMGZjNTU3NTcw
14
- ODYxZTBlNDA0Mjc5NjY4ZDJiZmM0ZmRjNTA1NjU1NWRkYmFlMDZlYjQ5OGI0
15
- ZDcyNjNlOGQ5YjQ4ZDRkZDAwOGQ2MzUxZDRhMmQyMTAzZWI4ZWE=
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{To start:
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"
@@ -1,3 +1,3 @@
1
1
  module RedcapAPI
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
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.1
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: ! "To start:\n\n r = RedcapAPI.new(token, url) # your institution has
56
- it's own url, and each project has it's own token\n\n r.get(optional record_id)
57
- # returns all records in JSON format or a specific record if specified\n "
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: []