adn 0.3.8 → 0.3.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +2 -0
- data/lib/adn/user.rb +4 -4
- data/lib/adn/version.rb +1 -1
- metadata +11 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0715657a3b265e580933b372751930d54908b59f
|
4
|
+
data.tar.gz: b13262da98d0ea76520601ab7a3b9c7ef13baa5c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cd9199455951fdee9b538ba8a583f6820707069fbdc60c301c35b20b20e0714b5b6dc210ddef1f82945ccb05b8713d177401e28a2859f928bb3341d21a92ea6f
|
7
|
+
data.tar.gz: 35389ff3d96d647b59c18da66527853719ec81e741adbf3eab783da584033224bccea105b612800205181019eb0cc4197169c8c79cc3f412724208cb3c33c9f5
|
data/CHANGELOG.md
CHANGED
data/lib/adn/user.rb
CHANGED
@@ -30,13 +30,13 @@ module ADN
|
|
30
30
|
# Followers/Users
|
31
31
|
|
32
32
|
def follow(user)
|
33
|
-
result = ADN.post("#{ADN::API_ENDPOINT_USERS}/#{user.user_id}/follow")
|
33
|
+
result = ADN::API.post("#{ADN::API_ENDPOINT_USERS}/#{user.user_id}/follow")
|
34
34
|
ADN.create_instance(result["data"], User)
|
35
35
|
end
|
36
36
|
|
37
37
|
def unfollow(user)
|
38
38
|
if user.valid_user?
|
39
|
-
result = ADN.delete("#{ADN::API_ENDPOINT_USERS}/#{user.user_id}/follow")
|
39
|
+
result = ADN::API.delete("#{ADN::API_ENDPOINT_USERS}/#{user.user_id}/follow")
|
40
40
|
ADN.create_instance(result["data"], User)
|
41
41
|
end
|
42
42
|
end
|
@@ -55,14 +55,14 @@ module ADN
|
|
55
55
|
|
56
56
|
def mute(user)
|
57
57
|
if user.valid_user?
|
58
|
-
result = ADN.post("#{ADN::API_ENDPOINT_USERS}/#{user.user_id}/mute")
|
58
|
+
result = ADN::API.post("#{ADN::API_ENDPOINT_USERS}/#{user.user_id}/mute")
|
59
59
|
ADN.create_instance(result["data"], User)
|
60
60
|
end
|
61
61
|
end
|
62
62
|
|
63
63
|
def unmute(user)
|
64
64
|
if user.valid_user?
|
65
|
-
result = ADN.delete("#{ADN::API_ENDPOINT_USERS}/#{user.user_id}/mute")
|
65
|
+
result = ADN::API.delete("#{ADN::API_ENDPOINT_USERS}/#{user.user_id}/mute")
|
66
66
|
ADN.create_instance(result["data"], User)
|
67
67
|
end
|
68
68
|
end
|
data/lib/adn/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: adn
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kishyr Ramdial
|
@@ -10,34 +10,34 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2014-10-25 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: multipart-post
|
17
17
|
requirement: !ruby/object:Gem::Requirement
|
18
18
|
requirements:
|
19
|
-
- - ~>
|
19
|
+
- - "~>"
|
20
20
|
- !ruby/object:Gem::Version
|
21
21
|
version: 1.2.0
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
24
|
version_requirements: !ruby/object:Gem::Requirement
|
25
25
|
requirements:
|
26
|
-
- - ~>
|
26
|
+
- - "~>"
|
27
27
|
- !ruby/object:Gem::Version
|
28
28
|
version: 1.2.0
|
29
29
|
- !ruby/object:Gem::Dependency
|
30
30
|
name: mime-types
|
31
31
|
requirement: !ruby/object:Gem::Requirement
|
32
32
|
requirements:
|
33
|
-
- - ~>
|
33
|
+
- - "~>"
|
34
34
|
- !ruby/object:Gem::Version
|
35
35
|
version: '2.0'
|
36
36
|
type: :runtime
|
37
37
|
prerelease: false
|
38
38
|
version_requirements: !ruby/object:Gem::Requirement
|
39
39
|
requirements:
|
40
|
-
- - ~>
|
40
|
+
- - "~>"
|
41
41
|
- !ruby/object:Gem::Version
|
42
42
|
version: '2.0'
|
43
43
|
description: A simple and easy to use library to interact with App.net's API
|
@@ -49,8 +49,8 @@ executables: []
|
|
49
49
|
extensions: []
|
50
50
|
extra_rdoc_files: []
|
51
51
|
files:
|
52
|
-
- .gitignore
|
53
|
-
- .travis.yml
|
52
|
+
- ".gitignore"
|
53
|
+
- ".travis.yml"
|
54
54
|
- CHANGELOG.md
|
55
55
|
- Gemfile
|
56
56
|
- Gemfile.lock
|
@@ -103,17 +103,17 @@ require_paths:
|
|
103
103
|
- lib
|
104
104
|
required_ruby_version: !ruby/object:Gem::Requirement
|
105
105
|
requirements:
|
106
|
-
- -
|
106
|
+
- - ">="
|
107
107
|
- !ruby/object:Gem::Version
|
108
108
|
version: 1.9.3
|
109
109
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
110
110
|
requirements:
|
111
|
-
- -
|
111
|
+
- - ">="
|
112
112
|
- !ruby/object:Gem::Version
|
113
113
|
version: '0'
|
114
114
|
requirements: []
|
115
115
|
rubyforge_project:
|
116
|
-
rubygems_version: 2.
|
116
|
+
rubygems_version: 2.2.2
|
117
117
|
signing_key:
|
118
118
|
specification_version: 4
|
119
119
|
summary: A Ruby library for App.net
|