rocketchat 0.1.14 → 0.1.15
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rocket_chat/gem_version.rb +1 -1
- data/lib/rocket_chat/info.rb +4 -4
- data/lib/rocket_chat/message.rb +8 -8
- data/lib/rocket_chat/presence_status.rb +5 -5
- data/lib/rocket_chat/room.rb +6 -6
- data/lib/rocket_chat/token.rb +5 -5
- data/lib/rocket_chat/user.rb +6 -6
- data/rocketchat.gemspec +2 -2
- metadata +11 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7a00601e46ef5efebc3469ce63a08dd821e2764d
|
4
|
+
data.tar.gz: 6984f7743b729b0a8c3824d6e124d9e1fe220c30
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1898efe39d392d89c64ddfe76b8539fe6b590edae5906c62959608d7d2fef93ece984bde1e5e51af17279c1fa78808f21dc1552ab09c427f0d2b3db883e7a985
|
7
|
+
data.tar.gz: e8d7676d832229398c61092d50f3d1ea1f551d11e13aaa0001f5243766d07f06652d7205431593f214cf51eee96325f43e5438ea3c40e351c1611e48a1fb1d94
|
data/lib/rocket_chat/info.rb
CHANGED
@@ -20,10 +20,10 @@ module RocketChat
|
|
20
20
|
|
21
21
|
def inspect
|
22
22
|
format(
|
23
|
-
'
|
24
|
-
self.class.name,
|
25
|
-
object_id,
|
26
|
-
version
|
23
|
+
'#<%<class_name>s:0x%<object_id>p @version="%<version>s">',
|
24
|
+
class_name: self.class.name,
|
25
|
+
object_id: object_id,
|
26
|
+
version: version
|
27
27
|
)
|
28
28
|
end
|
29
29
|
end
|
data/lib/rocket_chat/message.rb
CHANGED
@@ -20,12 +20,12 @@ module RocketChat
|
|
20
20
|
|
21
21
|
# Timestamp
|
22
22
|
def timestamp
|
23
|
-
|
23
|
+
Time.parse data['ts']
|
24
24
|
end
|
25
25
|
|
26
26
|
# Updated at
|
27
27
|
def updated_at
|
28
|
-
|
28
|
+
Time.parse data['_updatedAt']
|
29
29
|
end
|
30
30
|
|
31
31
|
# Room ID
|
@@ -60,12 +60,12 @@ module RocketChat
|
|
60
60
|
|
61
61
|
def inspect
|
62
62
|
format(
|
63
|
-
'
|
64
|
-
self.class.name,
|
65
|
-
object_id,
|
66
|
-
id,
|
67
|
-
room_id,
|
68
|
-
message
|
63
|
+
'#<%<class_name>s:0x%<object_id>p @id="%<id>s" @room="%<room_id>s" @msg="%<message>s">',
|
64
|
+
class_name: self.class.name,
|
65
|
+
object_id: object_id,
|
66
|
+
id: id,
|
67
|
+
room_id: room_id,
|
68
|
+
message: message
|
69
69
|
)
|
70
70
|
end
|
71
71
|
end
|
@@ -25,17 +25,17 @@ module RocketChat
|
|
25
25
|
|
26
26
|
# Last login
|
27
27
|
def last_login
|
28
|
-
|
28
|
+
Time.parse data['lastLogin']
|
29
29
|
rescue ArgumentError, TypeError
|
30
30
|
nil
|
31
31
|
end
|
32
32
|
|
33
33
|
def inspect
|
34
34
|
format(
|
35
|
-
'
|
36
|
-
self.class.name,
|
37
|
-
object_id,
|
38
|
-
presence
|
35
|
+
'#<%<class_name>s:0x%<object_id>p @presence="%<presence>s">',
|
36
|
+
class_name: self.class.name,
|
37
|
+
object_id: object_id,
|
38
|
+
presence: presence
|
39
39
|
)
|
40
40
|
end
|
41
41
|
end
|
data/lib/rocket_chat/room.rb
CHANGED
@@ -82,12 +82,12 @@ module RocketChat
|
|
82
82
|
|
83
83
|
def inspect
|
84
84
|
format(
|
85
|
-
'
|
86
|
-
self.class.name,
|
87
|
-
object_id,
|
88
|
-
id,
|
89
|
-
name,
|
90
|
-
type
|
85
|
+
'#<%<class_name>s:0x%<object_id>p @id="%<id>s" @name="%<name>s" @type="%<type>s">',
|
86
|
+
class_name: self.class.name,
|
87
|
+
object_id: object_id,
|
88
|
+
id: id,
|
89
|
+
name: name,
|
90
|
+
type: type
|
91
91
|
)
|
92
92
|
end
|
93
93
|
end
|
data/lib/rocket_chat/token.rb
CHANGED
@@ -25,11 +25,11 @@ module RocketChat
|
|
25
25
|
|
26
26
|
def inspect
|
27
27
|
format(
|
28
|
-
'
|
29
|
-
self.class.name,
|
30
|
-
object_id,
|
31
|
-
auth_token,
|
32
|
-
user_id
|
28
|
+
'#<%<class_name>s:0x%<object_id>p @auth_token="%<auth_token>s", @user_id="%<user_id>s">',
|
29
|
+
class_name: self.class.name,
|
30
|
+
object_id: object_id,
|
31
|
+
auth_token: auth_token,
|
32
|
+
user_id: user_id
|
33
33
|
)
|
34
34
|
end
|
35
35
|
end
|
data/lib/rocket_chat/user.rb
CHANGED
@@ -65,12 +65,12 @@ module RocketChat
|
|
65
65
|
|
66
66
|
def inspect
|
67
67
|
format(
|
68
|
-
'
|
69
|
-
self.class.name,
|
70
|
-
object_id,
|
71
|
-
id,
|
72
|
-
username,
|
73
|
-
active?
|
68
|
+
'#<%<class_name>s:0x%<object_id>p @id="%<id>s" @username="%<username>s" @active="%<active>s">',
|
69
|
+
class_name: self.class.name,
|
70
|
+
object_id: object_id,
|
71
|
+
id: id,
|
72
|
+
username: username,
|
73
|
+
active: active?
|
74
74
|
)
|
75
75
|
end
|
76
76
|
end
|
data/rocketchat.gemspec
CHANGED
@@ -21,7 +21,7 @@ Gem::Specification.new do |spec|
|
|
21
21
|
spec.add_development_dependency 'bundler', '~> 1.11'
|
22
22
|
spec.add_development_dependency 'rake', '~> 10.0'
|
23
23
|
spec.add_development_dependency 'rspec', '~> 3.0'
|
24
|
+
spec.add_development_dependency 'rubocop', '~> 0.52'
|
24
25
|
spec.add_development_dependency 'webmock', '~> 2.3'
|
25
|
-
spec.add_development_dependency 'yard', '~> 0.
|
26
|
-
spec.add_development_dependency 'rubocop', '~> 0.50'
|
26
|
+
spec.add_development_dependency 'yard', '~> 0.9.11'
|
27
27
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rocketchat
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.15
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- int512
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2017-
|
12
|
+
date: 2017-12-21 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
@@ -54,47 +54,47 @@ dependencies:
|
|
54
54
|
- !ruby/object:Gem::Version
|
55
55
|
version: '3.0'
|
56
56
|
- !ruby/object:Gem::Dependency
|
57
|
-
name:
|
57
|
+
name: rubocop
|
58
58
|
requirement: !ruby/object:Gem::Requirement
|
59
59
|
requirements:
|
60
60
|
- - "~>"
|
61
61
|
- !ruby/object:Gem::Version
|
62
|
-
version: '
|
62
|
+
version: '0.52'
|
63
63
|
type: :development
|
64
64
|
prerelease: false
|
65
65
|
version_requirements: !ruby/object:Gem::Requirement
|
66
66
|
requirements:
|
67
67
|
- - "~>"
|
68
68
|
- !ruby/object:Gem::Version
|
69
|
-
version: '
|
69
|
+
version: '0.52'
|
70
70
|
- !ruby/object:Gem::Dependency
|
71
|
-
name:
|
71
|
+
name: webmock
|
72
72
|
requirement: !ruby/object:Gem::Requirement
|
73
73
|
requirements:
|
74
74
|
- - "~>"
|
75
75
|
- !ruby/object:Gem::Version
|
76
|
-
version:
|
76
|
+
version: '2.3'
|
77
77
|
type: :development
|
78
78
|
prerelease: false
|
79
79
|
version_requirements: !ruby/object:Gem::Requirement
|
80
80
|
requirements:
|
81
81
|
- - "~>"
|
82
82
|
- !ruby/object:Gem::Version
|
83
|
-
version:
|
83
|
+
version: '2.3'
|
84
84
|
- !ruby/object:Gem::Dependency
|
85
|
-
name:
|
85
|
+
name: yard
|
86
86
|
requirement: !ruby/object:Gem::Requirement
|
87
87
|
requirements:
|
88
88
|
- - "~>"
|
89
89
|
- !ruby/object:Gem::Version
|
90
|
-
version:
|
90
|
+
version: 0.9.11
|
91
91
|
type: :development
|
92
92
|
prerelease: false
|
93
93
|
version_requirements: !ruby/object:Gem::Requirement
|
94
94
|
requirements:
|
95
95
|
- - "~>"
|
96
96
|
- !ruby/object:Gem::Version
|
97
|
-
version:
|
97
|
+
version: 0.9.11
|
98
98
|
description: Rocket.Chat REST API v1 for Ruby
|
99
99
|
email:
|
100
100
|
- github@int512.net
|
@@ -160,4 +160,3 @@ signing_key:
|
|
160
160
|
specification_version: 4
|
161
161
|
summary: Rocket.Chat REST API v1 for Ruby
|
162
162
|
test_files: []
|
163
|
-
has_rdoc:
|