absorb_api 0.1.7 → 0.1.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/absorb_api/relations.rb +1 -1
- data/lib/absorb_api/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fe8adcc80c7c0da2a4a7f8e2ad8b050ff302de96
|
4
|
+
data.tar.gz: c53b4e4300cccd5ed1570c8e67022200045d51c4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 40a785e9271ecd1d193185ab82b44c5863143f3d23d89f2197535fb191c89f211f4ab321ebd8cdbcf41114107c64a90cbf3da273c4861eb3a1b4c999da9d0b52
|
7
|
+
data.tar.gz: 7afcbc61f2e2fc2d98e4b1d1f0969aee59711fde381aee1b69e7bbb48476f36dcc56af01a35310cd4eac267db87b1983158dddc490d67947d8a45bf3655909a8
|
data/lib/absorb_api/relations.rb
CHANGED
@@ -47,7 +47,7 @@ module AbsorbApi
|
|
47
47
|
yield object if block_given?
|
48
48
|
attrs = JSON.parse(object.to_json)
|
49
49
|
attrs.keys.each { |k| attrs[ k.camelize ] = attrs.delete(k) }
|
50
|
-
response =
|
50
|
+
response = AbsorbApi.api.post("#{to_s.demodulize.pluralize}", attrs)
|
51
51
|
if response.status == 500
|
52
52
|
raise ValidationError
|
53
53
|
elsif response.status == 405
|
data/lib/absorb_api/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: absorb_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- npezza
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-01-
|
11
|
+
date: 2016-01-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -172,7 +172,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
172
172
|
version: '0'
|
173
173
|
requirements: []
|
174
174
|
rubyforge_project:
|
175
|
-
rubygems_version: 2.4.
|
175
|
+
rubygems_version: 2.4.6
|
176
176
|
signing_key:
|
177
177
|
specification_version: 4
|
178
178
|
summary: API wrapper for Absorb LMS
|