deviantart 0.2.1 → 0.2.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 +4 -4
- data/lib/deviantart/user.rb +8 -2
- data/lib/deviantart/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: 1ca81525691db52ba0941c72234faf3c5067466f
|
|
4
|
+
data.tar.gz: 14339469bd87431a08a7cc5fc88db0c78ddcd91e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 36bfe4f6b74e23e4e4a59fea897882bc1f6fe083555f0c9fc47418a912f7f2578d54902e08cb1fa2d1fb16572f5f43eb8db90c398eac074bfc034caa8bc6750a
|
|
7
|
+
data.tar.gz: 096e49d7687efb0abba6d068a80d6c0e7f99a4dca9216ef1f79e99fe495e10508b81621bdfffe8881a7bc8d40645ae2c11acf23cdab24e79e6d3f6b208c2c811
|
data/lib/deviantart/user.rb
CHANGED
|
@@ -35,7 +35,7 @@ module DeviantArt
|
|
|
35
35
|
perform(:get, '/api/v1/oauth2/user/friends/search', params)
|
|
36
36
|
end
|
|
37
37
|
|
|
38
|
-
def get_statuses(username, offset: 0, limit: 10, mature_content:
|
|
38
|
+
def get_statuses(username, offset: 0, limit: 10, mature_content: true)
|
|
39
39
|
params = {}
|
|
40
40
|
params['username'] = username
|
|
41
41
|
params['mature_content'] = mature_content
|
|
@@ -44,7 +44,13 @@ module DeviantArt
|
|
|
44
44
|
perform(:get, '/api/v1/oauth2/user/statuses/', params)
|
|
45
45
|
end
|
|
46
46
|
|
|
47
|
-
|
|
47
|
+
def get_status(statusid, mature_content: true)
|
|
48
|
+
params = {}
|
|
49
|
+
params['mature_content'] = mature_content
|
|
50
|
+
perform(:get, "/api/v1/oauth2/user/statuses/#{statusid}", params)
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
# TODO: damntoken, friends/unwatch/{username}, friends/watch/{username}, friends/watching/{username}, profile/update, statuses/post, watchers/{username}
|
|
48
54
|
end
|
|
49
55
|
end
|
|
50
56
|
|
data/lib/deviantart/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: deviantart
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Code Ass
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-10-
|
|
11
|
+
date: 2016-10-22 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|