breacan 0.5.0 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6f7beda887ff04ac9ca9439d251e0145d0ffea93
4
- data.tar.gz: 2a85ebf95976cc155fac292784701cd37b9e77f8
3
+ metadata.gz: 81ec998af8614ae237ca1a42295a932f526088cb
4
+ data.tar.gz: 51b97f0aceae1d6421fc36b160d7c060177def0b
5
5
  SHA512:
6
- metadata.gz: ece09bd25cffa5a86387e4d797056a028f3c11dd5a6b9e6268df26bb837a57d250d71508887077977697970a244b5be3c4c3152064feba5e24b1b11f17d71d44
7
- data.tar.gz: cd55a7ea5ff09ed8d183ac7aab938df5fee4898596de9d3622cccab9c0e156c5750f1881b0c089782182d198222f9fbf14fc4442c07cd204c591274b6f394a7e
6
+ metadata.gz: 26bd69f9b58b1238a6e26f8f68dd850a87bcb48823355476fea913bda75abf0f5c3e543fd61afd58ccc5f9ba2dda9ef70095954b5d5d9b4520506768be87e9c3
7
+ data.tar.gz: 677669aa145c19bb90ffc924a25428cc19a4bce7dcb9fcafcc19353a64e9ce21b70bd52d5f7fb12edf9b6446c6a3187f9eb9bf0d0be160670fb6d8a815786356
@@ -6,7 +6,7 @@ module Breacan
6
6
  end
7
7
 
8
8
  def channels_create(args)
9
- post 'channels.create', query: args
9
+ get '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
- post 'channels.invite', query: args
22
+ get 'channels.invite', query: args
23
23
  end
24
24
 
25
25
  def channels_join(args)
26
- post 'channels.join', query: args
26
+ get 'channels.join', query: args
27
27
  end
28
28
 
29
29
  def channels_kick(args)
30
- post 'channels.kick', query: args
30
+ get 'channels.kick', query: args
31
31
  end
32
32
 
33
33
  def channels_leave(args)
34
- post 'channels.leave', query: args
34
+ get '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
- post 'channels.mark', query: args
43
+ get 'channels.mark', query: args
44
44
  end
45
45
 
46
46
  def channels_rename(args)
47
- post 'channels.rename', query: args
47
+ get 'channels.rename', query: args
48
48
  end
49
49
 
50
50
  def channels_set_purpose(args)
51
- post 'channels.setPurpose', query: args
51
+ get 'channels.setPurpose', query: args
52
52
  end
53
53
 
54
54
  def channels_set_topic(args)
55
- post 'channels.setTopic', query: args
55
+ get 'channels.setTopic', query: args
56
56
  end
57
57
 
58
58
  def channels_unarchive(args)
59
- post 'channels.unarchive', query: args
59
+ get '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
- post 'chat.delete', query: args
5
+ get 'chat.delete', query: args
6
6
  end
7
7
 
8
8
  def chat_post_message(args)
9
- post 'chat.postMessage', query: args
9
+ get 'chat.getMessage', query: args
10
10
  end
11
11
 
12
12
  def chat_update(args)
13
- post 'chat.update', query: args
13
+ get '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
- post 'files.delete', query: args
5
+ get 'files.delete', query: args
6
6
  end
7
7
 
8
8
  def files_info(args)
@@ -15,7 +15,7 @@ module Breacan
15
15
 
16
16
  def files_upload(args)
17
17
  # content_type = 'multipart/form-data'
18
- # post 'files.upload', query: args
18
+ # get 'files.upload', query: args
19
19
  end
20
20
  end
21
21
  end
@@ -6,7 +6,7 @@ module Breacan
6
6
  end
7
7
 
8
8
  def groups_create(args)
9
- post 'groups.create', query: args
9
+ get 'groups.create', query: args
10
10
  end
11
11
 
12
12
  def groups_history(args)
@@ -18,19 +18,19 @@ module Breacan
18
18
  end
19
19
 
20
20
  def groups_invite(args)
21
- post 'groups.invite', query: args
21
+ get 'groups.invite', query: args
22
22
  end
23
23
 
24
24
  def groups_join(args)
25
- post 'groups.join', query: args
25
+ get 'groups.join', query: args
26
26
  end
27
27
 
28
28
  def groups_kick(args)
29
- post 'groups.kick', query: args
29
+ get 'groups.kick', query: args
30
30
  end
31
31
 
32
32
  def groups_leave(args)
33
- post 'groups.leave', query: args
33
+ get 'groups.leave', query: args
34
34
  end
35
35
 
36
36
  def groups_list
@@ -38,23 +38,23 @@ module Breacan
38
38
  end
39
39
 
40
40
  def groups_mark(args)
41
- post 'groups.mark', query: args
41
+ get 'groups.mark', query: args
42
42
  end
43
43
 
44
44
  def groups_rename(args)
45
- post 'groups.rename', query: args
45
+ get 'groups.rename', query: args
46
46
  end
47
47
 
48
48
  def groups_set_purpose(args)
49
- post 'groups.setPurpose', query: args
49
+ get 'groups.setPurpose', query: args
50
50
  end
51
51
 
52
52
  def groups_set_topic(args)
53
- post 'groups.setTopic', query: args
53
+ get 'groups.setTopic', query: args
54
54
  end
55
55
 
56
56
  def groups_unarchive(args)
57
- post 'groups.unarchive', query: args
57
+ get '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
- post 'im.close', query: args
5
+ get '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
- post 'im.mark', query: args
17
+ get 'im.mark', query: args
18
18
  end
19
19
 
20
20
  def im_open(args)
21
- post 'im.open', query: args
21
+ get '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
- post 'oauth.access', query: args
5
+ get '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
- post 'rtm.start'
5
+ get '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
- post 'usergroups.create', query: args
5
+ get 'usergroups.create', query: args
6
6
  end
7
7
  alias_method :create_usergroup, :usergroups_create
8
8
 
9
9
  def usergroups_disable(args)
10
- post 'usergroups.disable', query: args
10
+ get 'usergroups.disable', query: args
11
11
  end
12
12
  alias_method :disable_usergroup, :usergroups_disable
13
13
 
14
14
  def usergroups_enable(args)
15
- post 'usergroups.enable', query: args
15
+ get '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
- post 'usergroups.update', query: args
25
+ get '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
- post 'usergroups.users.update', query: args
35
+ get '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
- post 'users.setActive'
20
+ get 'users.setActive'
21
21
  end
22
22
  alias_method :activate_user, :users_set_active
23
23
 
24
24
  def users_set_presence(args)
25
- post 'users.setPresence', query: args
25
+ get '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.5.0'
2
+ VERSION = '0.6.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.5.0
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - linyows
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-01-18 00:00:00.000000000 Z
11
+ date: 2016-04-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sawyer