breacan 0.2.3 → 0.3.0
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/breacan/client/channels.rb +10 -10
- data/lib/breacan/client/chat.rb +3 -3
- data/lib/breacan/client/files.rb +1 -1
- data/lib/breacan/client/groups.rb +14 -14
- data/lib/breacan/client/im.rb +3 -3
- data/lib/breacan/client/oauth.rb +1 -1
- data/lib/breacan/client/rtm.rb +1 -1
- data/lib/breacan/client/usergroups.rb +5 -5
- data/lib/breacan/client/users.rb +2 -2
- data/lib/breacan/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: e0984b1ef88360f43d44cc08a769c1b65269cfa8
|
4
|
+
data.tar.gz: f01791668c85b71f6a426a582b9dba47722f76c7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ef74fddb9c0d0fadb39263ca232c772cd904055ee5041bd9b1d4d67cd1e49968d89233e37f6de433ec5182a447f974a7ee6c950959c118bbd5273c3b9b1aa916
|
7
|
+
data.tar.gz: c034707c3abd69a10780c52dc9d77966ce794c3508ad66d9d1f376d35e1bcc1f9122c37ec6a5f7b3151e3ba3c2b7367154eeb3b378d4a128a4b7bf99c855bdd8
|
@@ -6,7 +6,7 @@ module Breacan
|
|
6
6
|
end
|
7
7
|
|
8
8
|
def channels_create(args)
|
9
|
-
|
9
|
+
post 'channels.create', query: args
|
10
10
|
end
|
11
11
|
|
12
12
|
def channels_history(args)
|
@@ -19,19 +19,19 @@ module Breacan
|
|
19
19
|
alias_method :channel, :channels_info
|
20
20
|
|
21
21
|
def channels_invite(args)
|
22
|
-
|
22
|
+
post 'channels.invite', query: args
|
23
23
|
end
|
24
24
|
|
25
25
|
def channels_join(args)
|
26
|
-
|
26
|
+
post 'channels.join', query: args
|
27
27
|
end
|
28
28
|
|
29
29
|
def channels_kick(args)
|
30
|
-
|
30
|
+
post 'channels.kick', query: args
|
31
31
|
end
|
32
32
|
|
33
33
|
def channels_leave(args)
|
34
|
-
|
34
|
+
post 'channels.leave', query: args
|
35
35
|
end
|
36
36
|
|
37
37
|
def channels_list
|
@@ -40,23 +40,23 @@ module Breacan
|
|
40
40
|
alias_method :channels, :channels_list
|
41
41
|
|
42
42
|
def channels_mark(args)
|
43
|
-
|
43
|
+
post 'channels.mark', query: args
|
44
44
|
end
|
45
45
|
|
46
46
|
def channels_rename(args)
|
47
|
-
|
47
|
+
post 'channels.rename', query: args
|
48
48
|
end
|
49
49
|
|
50
50
|
def channels_set_purpose(args)
|
51
|
-
|
51
|
+
post 'channels.setPurpose', query: args
|
52
52
|
end
|
53
53
|
|
54
54
|
def channels_set_topic(args)
|
55
|
-
|
55
|
+
post 'channels.setTopic', query: args
|
56
56
|
end
|
57
57
|
|
58
58
|
def channels_unarchive(args)
|
59
|
-
|
59
|
+
post 'channels.unarchive', query: args
|
60
60
|
end
|
61
61
|
|
62
62
|
def channel_by_name(name)
|
data/lib/breacan/client/chat.rb
CHANGED
@@ -2,15 +2,15 @@ module Breacan
|
|
2
2
|
class Client
|
3
3
|
module Chat
|
4
4
|
def chat_delete(args)
|
5
|
-
|
5
|
+
post 'chat.delete', query: args
|
6
6
|
end
|
7
7
|
|
8
8
|
def chat_post_message(args)
|
9
|
-
|
9
|
+
post 'chat.postMessage', query: args
|
10
10
|
end
|
11
11
|
|
12
12
|
def chat_update(args)
|
13
|
-
|
13
|
+
post 'chat.update', query: args
|
14
14
|
end
|
15
15
|
end
|
16
16
|
end
|
data/lib/breacan/client/files.rb
CHANGED
@@ -6,7 +6,7 @@ module Breacan
|
|
6
6
|
end
|
7
7
|
|
8
8
|
def groups_create(args)
|
9
|
-
|
9
|
+
post 'groups.create', query: args
|
10
10
|
end
|
11
11
|
|
12
12
|
def groups_history(args)
|
@@ -17,24 +17,20 @@ module Breacan
|
|
17
17
|
get 'groups.info', query: args
|
18
18
|
end
|
19
19
|
|
20
|
-
def groups_info(args)
|
21
|
-
get 'groups.info', query: args
|
22
|
-
end
|
23
|
-
|
24
20
|
def groups_invite(args)
|
25
|
-
|
21
|
+
post 'groups.invite', query: args
|
26
22
|
end
|
27
23
|
|
28
24
|
def groups_join(args)
|
29
|
-
|
25
|
+
post 'groups.join', query: args
|
30
26
|
end
|
31
27
|
|
32
28
|
def groups_kick(args)
|
33
|
-
|
29
|
+
post 'groups.kick', query: args
|
34
30
|
end
|
35
31
|
|
36
32
|
def groups_leave(args)
|
37
|
-
|
33
|
+
post 'groups.leave', query: args
|
38
34
|
end
|
39
35
|
|
40
36
|
def groups_list
|
@@ -42,19 +38,23 @@ module Breacan
|
|
42
38
|
end
|
43
39
|
|
44
40
|
def groups_mark(args)
|
45
|
-
|
41
|
+
post 'groups.mark', query: args
|
46
42
|
end
|
43
|
+
|
47
44
|
def groups_rename(args)
|
48
|
-
|
45
|
+
post 'groups.rename', query: args
|
49
46
|
end
|
47
|
+
|
50
48
|
def groups_set_purpose(args)
|
51
|
-
|
49
|
+
post 'groups.setPurpose', query: args
|
52
50
|
end
|
51
|
+
|
53
52
|
def groups_set_topic(args)
|
54
|
-
|
53
|
+
post 'groups.setTopic', query: args
|
55
54
|
end
|
55
|
+
|
56
56
|
def groups_unarchive(args)
|
57
|
-
|
57
|
+
post 'groups.unarchive', query: args
|
58
58
|
end
|
59
59
|
|
60
60
|
def groups_info_by_name(name)
|
data/lib/breacan/client/im.rb
CHANGED
@@ -2,7 +2,7 @@ module Breacan
|
|
2
2
|
class Client
|
3
3
|
module Im
|
4
4
|
def im_close(args)
|
5
|
-
|
5
|
+
post 'im.close', query: args
|
6
6
|
end
|
7
7
|
|
8
8
|
def im_history(args)
|
@@ -14,11 +14,11 @@ module Breacan
|
|
14
14
|
end
|
15
15
|
|
16
16
|
def im_mark(args)
|
17
|
-
|
17
|
+
post 'im.mark', query: args
|
18
18
|
end
|
19
19
|
|
20
20
|
def im_open(args)
|
21
|
-
|
21
|
+
post 'im.open', query: args
|
22
22
|
end
|
23
23
|
end
|
24
24
|
end
|
data/lib/breacan/client/oauth.rb
CHANGED
data/lib/breacan/client/rtm.rb
CHANGED
@@ -2,17 +2,17 @@ module Breacan
|
|
2
2
|
class Client
|
3
3
|
module Usergroups
|
4
4
|
def usergroups_create(args)
|
5
|
-
|
5
|
+
post 'usergroups.create', query: args
|
6
6
|
end
|
7
7
|
alias_method :create_usergroup, :usergroups_create
|
8
8
|
|
9
9
|
def usergroups_disable(args)
|
10
|
-
|
10
|
+
post 'usergroups.disable', query: args
|
11
11
|
end
|
12
12
|
alias_method :disable_usergroup, :usergroups_disable
|
13
13
|
|
14
14
|
def usergroups_enable(args)
|
15
|
-
|
15
|
+
post 'usergroups.enable', query: args
|
16
16
|
end
|
17
17
|
alias_method :enable_usergroup, :usergroups_enable
|
18
18
|
|
@@ -22,7 +22,7 @@ module Breacan
|
|
22
22
|
alias_method :usergroups, :usergroups_list
|
23
23
|
|
24
24
|
def usergroups_update(args)
|
25
|
-
|
25
|
+
post 'usergroups.update', query: args
|
26
26
|
end
|
27
27
|
alias_method :update_usergroup, :usergroups_update
|
28
28
|
|
@@ -32,7 +32,7 @@ module Breacan
|
|
32
32
|
alias_method :usergroup_users, :usergroups_users_list
|
33
33
|
|
34
34
|
def usergroups_users_update(args)
|
35
|
-
|
35
|
+
post 'usergroups.users.update', query: args
|
36
36
|
end
|
37
37
|
alias_method :update_usergroup_users, :usergroups_users_update
|
38
38
|
end
|
data/lib/breacan/client/users.rb
CHANGED
@@ -17,12 +17,12 @@ module Breacan
|
|
17
17
|
alias_method :users, :users_list
|
18
18
|
|
19
19
|
def users_set_active
|
20
|
-
|
20
|
+
post 'users.setActive'
|
21
21
|
end
|
22
22
|
alias_method :activate_user, :users_set_active
|
23
23
|
|
24
24
|
def users_set_presence(args)
|
25
|
-
|
25
|
+
post 'users.setPresence', query: args
|
26
26
|
end
|
27
27
|
alias_method :set_user_presence, :users_set_presence
|
28
28
|
|
data/lib/breacan/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: breacan
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- linyows
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-12-
|
11
|
+
date: 2015-12-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sawyer
|