firering 1.4.1 → 1.4.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/firering.gemspec +1 -1
- data/lib/firering.rb +1 -1
- data/lib/firering/data/room.rb +1 -1
- data/lib/firering/data/user.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA512:
|
3
|
-
|
4
|
-
|
3
|
+
data.tar.gz: 1a11887198cbf47d294214851dd0d1a17d77e0197a4d5c45c96fbd3f776c83aa244b1abc8b6b8ee1ff7175a9186a48c1abb09b3c07079871cc283bbc17847183
|
4
|
+
metadata.gz: 8e8849bd537429232f22e61f8955a46995c2d89e4b9276e9c0c63600e49f666d6da44c82e44d9ab8d023ff6d82a3085523b7cb451150872ba59b2f23ff6eb16b
|
5
5
|
SHA1:
|
6
|
-
|
7
|
-
|
6
|
+
data.tar.gz: bb8e6072f08d6d9f385a27cc4256ae7fb1a7c31e
|
7
|
+
metadata.gz: 120d5850d75bcfb81aa47b6994ffb030f69cdf38
|
data/firering.gemspec
CHANGED
data/lib/firering.rb
CHANGED
data/lib/firering/data/room.rb
CHANGED
@@ -19,7 +19,7 @@ module Firering
|
|
19
19
|
# /rooms request
|
20
20
|
def users(&callback)
|
21
21
|
connection.http(:get, "/room/#{id}.json") do |data, http| # data can be blank on locked rooms
|
22
|
-
callback.call(data ? data[:room][:users].map { |user| Firering::User.instantiate(
|
22
|
+
callback.call(data ? data[:room][:users].map { |user| Firering::User.instantiate(connection, user) } : Array.new) if callback
|
23
23
|
end
|
24
24
|
end
|
25
25
|
|
data/lib/firering/data/user.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
module Firering
|
2
|
-
User = Struct.new(:connection, :id, :name, :email_address, :admin, :created_at, :type, :api_auth_token, :avatar_url)
|
2
|
+
User = Struct.new(:connection, :id, :name, :email_address, :admin, :created_at, :type, :api_auth_token, :avatar_url, :auto_invite_to_new_rooms)
|
3
3
|
|
4
4
|
class User
|
5
5
|
extend Instantiator
|