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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 03e0cb48a9e8436c8516df7dcd46ecbfe3b2de0c
4
- data.tar.gz: c3ad13a0e8e9d2d0c95a6ee046590fca3c3d9e45
3
+ metadata.gz: e0984b1ef88360f43d44cc08a769c1b65269cfa8
4
+ data.tar.gz: f01791668c85b71f6a426a582b9dba47722f76c7
5
5
  SHA512:
6
- metadata.gz: 3a2c067236c14eb5786363c780ae81961d219c7fafe426b41d35a4243bba4f795dcf69b9cb9f11b21b35e8c8d500bda869175f8113c66bcc5a9e242183730deb
7
- data.tar.gz: 268ec2ad22be77b44e47828f45d960837f7d5011d4d77ba08a9070305c087c4f0b23c30adad1151a4a4428f65ee2d82e05ddfb93337acfa8a774d8b0d038e75e
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
- get 'channels.create', query: args
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
- get 'channels.invite', query: args
22
+ post 'channels.invite', query: args
23
23
  end
24
24
 
25
25
  def channels_join(args)
26
- get 'channels.join', query: args
26
+ post 'channels.join', query: args
27
27
  end
28
28
 
29
29
  def channels_kick(args)
30
- get 'channels.kick', query: args
30
+ post 'channels.kick', query: args
31
31
  end
32
32
 
33
33
  def channels_leave(args)
34
- get 'channels.leave', query: args
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
- get 'channels.mark', query: args
43
+ post 'channels.mark', query: args
44
44
  end
45
45
 
46
46
  def channels_rename(args)
47
- get 'channels.rename', query: args
47
+ post 'channels.rename', query: args
48
48
  end
49
49
 
50
50
  def channels_set_purpose(args)
51
- get 'channels.setPurpose', query: args
51
+ post 'channels.setPurpose', query: args
52
52
  end
53
53
 
54
54
  def channels_set_topic(args)
55
- get 'channels.setTopic', query: args
55
+ post 'channels.setTopic', query: args
56
56
  end
57
57
 
58
58
  def channels_unarchive(args)
59
- get 'channels.unarchive', query: args
59
+ post 'channels.unarchive', query: args
60
60
  end
61
61
 
62
62
  def channel_by_name(name)
@@ -2,15 +2,15 @@ module Breacan
2
2
  class Client
3
3
  module Chat
4
4
  def chat_delete(args)
5
- get 'chat.delete', query: args
5
+ post 'chat.delete', query: args
6
6
  end
7
7
 
8
8
  def chat_post_message(args)
9
- get 'chat.postMessage', query: args
9
+ post 'chat.postMessage', query: args
10
10
  end
11
11
 
12
12
  def chat_update(args)
13
- get 'chat.update', query: args
13
+ post 'chat.update', query: args
14
14
  end
15
15
  end
16
16
  end
@@ -2,7 +2,7 @@ module Breacan
2
2
  class Client
3
3
  module Files
4
4
  def files_delete(args)
5
- get 'files.delete', query: args
5
+ post 'files.delete', query: args
6
6
  end
7
7
 
8
8
  def files_info(args)
@@ -6,7 +6,7 @@ module Breacan
6
6
  end
7
7
 
8
8
  def groups_create(args)
9
- get 'groups.create', query: args
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
- get 'groups.invite', query: args
21
+ post 'groups.invite', query: args
26
22
  end
27
23
 
28
24
  def groups_join(args)
29
- get 'groups.join', query: args
25
+ post 'groups.join', query: args
30
26
  end
31
27
 
32
28
  def groups_kick(args)
33
- get 'groups.kick', query: args
29
+ post 'groups.kick', query: args
34
30
  end
35
31
 
36
32
  def groups_leave(args)
37
- get 'groups.leave', query: args
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
- get 'groups.mark', query: args
41
+ post 'groups.mark', query: args
46
42
  end
43
+
47
44
  def groups_rename(args)
48
- get 'groups.rename', query: args
45
+ post 'groups.rename', query: args
49
46
  end
47
+
50
48
  def groups_set_purpose(args)
51
- get 'groups.setPurpose', query: args
49
+ post 'groups.setPurpose', query: args
52
50
  end
51
+
53
52
  def groups_set_topic(args)
54
- get 'groups.setTopic', query: args
53
+ post 'groups.setTopic', query: args
55
54
  end
55
+
56
56
  def groups_unarchive(args)
57
- get 'groups.unarchive', query: args
57
+ post 'groups.unarchive', query: args
58
58
  end
59
59
 
60
60
  def groups_info_by_name(name)
@@ -2,7 +2,7 @@ module Breacan
2
2
  class Client
3
3
  module Im
4
4
  def im_close(args)
5
- get 'im.close', query: args
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
- get 'im.mark', query: args
17
+ post 'im.mark', query: args
18
18
  end
19
19
 
20
20
  def im_open(args)
21
- get 'im.open', query: args
21
+ post 'im.open', query: args
22
22
  end
23
23
  end
24
24
  end
@@ -2,7 +2,7 @@ module Breacan
2
2
  class Client
3
3
  module OAuth
4
4
  def oauth_access(args)
5
- get 'oauth.access', query: args
5
+ post 'oauth.access', query: args
6
6
  end
7
7
  end
8
8
  end
@@ -2,7 +2,7 @@ module Breacan
2
2
  class Client
3
3
  module Rtm
4
4
  def rtm_start
5
- get 'rtm.start'
5
+ post 'rtm.start'
6
6
  end
7
7
  end
8
8
  end
@@ -2,17 +2,17 @@ module Breacan
2
2
  class Client
3
3
  module Usergroups
4
4
  def usergroups_create(args)
5
- get 'usergroups.create', query: args
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
- get 'usergroups.disable', query: args
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
- get 'usergroups.enable', query: args
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
- get 'usergroups.update', query: args
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
- get 'usergroups.users.update', query: args
35
+ post 'usergroups.users.update', query: args
36
36
  end
37
37
  alias_method :update_usergroup_users, :usergroups_users_update
38
38
  end
@@ -17,12 +17,12 @@ module Breacan
17
17
  alias_method :users, :users_list
18
18
 
19
19
  def users_set_active
20
- get 'users.setActive'
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
- get 'users.setPresence', query: args
25
+ post 'users.setPresence', query: args
26
26
  end
27
27
  alias_method :set_user_presence, :users_set_presence
28
28
 
@@ -1,3 +1,3 @@
1
1
  module Breacan
2
- VERSION = '0.2.3'
2
+ VERSION = '0.3.0'
3
3
  end
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.2.3
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-15 00:00:00.000000000 Z
11
+ date: 2015-12-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sawyer