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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c8d5b6643a6f9af4d75fe988cb96492aea502fb2
4
- data.tar.gz: ab439f5a0ac0c932663b906ac8a11335d57ea832
3
+ metadata.gz: 1ca81525691db52ba0941c72234faf3c5067466f
4
+ data.tar.gz: 14339469bd87431a08a7cc5fc88db0c78ddcd91e
5
5
  SHA512:
6
- metadata.gz: 2a28ea7daf05f8bfe250154e7c98de8d3481f08bf802bb71c020f81763c7e71f10d9dbfdf2b448a5bf0609cdf7815b16d5b0edb0e03088b553ae9b2efcfbfdd5
7
- data.tar.gz: 6844ec96b4fa3c0378710077ebde6eba9167d5f6ddfa68b1eaa0ae4d5632c0f222ebaf06e74cf26abae88c6907b08ccd630d88b0456789eb64b507e8dc50fd7b
6
+ metadata.gz: 36bfe4f6b74e23e4e4a59fea897882bc1f6fe083555f0c9fc47418a912f7f2578d54902e08cb1fa2d1fb16572f5f43eb8db90c398eac074bfc034caa8bc6750a
7
+ data.tar.gz: 096e49d7687efb0abba6d068a80d6c0e7f99a4dca9216ef1f79e99fe495e10508b81621bdfffe8881a7bc8d40645ae2c11acf23cdab24e79e6d3f6b208c2c811
@@ -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: false)
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
- # TODO: damntoken, friends/unwatch/{username}, friends/watch/{username}, friends/watching/{username}, profile/update, ertatuses/{statusid}, statuses/post, watchers/{username}
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
 
@@ -1,3 +1,3 @@
1
1
  module DeviantArt
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.2"
3
3
  end
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.1
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-21 00:00:00.000000000 Z
11
+ date: 2016-10-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler