driftrock-service 0.4.15 → 0.4.16
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.
@@ -23,6 +23,12 @@ module Driftrock::Service
|
|
23
23
|
api
|
24
24
|
end
|
25
25
|
|
26
|
+
def self.visitor_api()
|
27
|
+
api = new()
|
28
|
+
api.extend(Driftrock::Service::Api::Visitor)
|
29
|
+
api
|
30
|
+
end
|
31
|
+
|
26
32
|
def self.data_api(user, company)
|
27
33
|
api = new(user, company)
|
28
34
|
api.extend(Driftrock::Service::Api::Data)
|
@@ -24,7 +24,7 @@ module Driftrock::Service::DriftrockModel
|
|
24
24
|
def self.find_by_session_id(session_id)
|
25
25
|
object_hash = get_from_api_method.call("/#{session_id}")
|
26
26
|
new(object_hash)
|
27
|
-
end
|
27
|
+
end
|
28
28
|
|
29
29
|
def user_admin?
|
30
30
|
response = get_from_api_method.call("/#{session_id}/is_admin")
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: driftrock-service
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.16
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -71,6 +71,7 @@ files:
|
|
71
71
|
- lib/driftrock-service/driftrock_model.rb
|
72
72
|
- lib/driftrock-service/driftrock_model/admin/company.rb
|
73
73
|
- lib/driftrock-service/driftrock_model/admin/driftrock_app.rb
|
74
|
+
- lib/driftrock-service/driftrock_model/admin/driftrock_company.rb
|
74
75
|
- lib/driftrock-service/driftrock_model/admin/driftrock_user.rb
|
75
76
|
- lib/driftrock-service/driftrock_model/channel.rb
|
76
77
|
- lib/driftrock-service/driftrock_model/channel_type.rb
|
@@ -108,7 +109,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
108
109
|
version: '0'
|
109
110
|
requirements: []
|
110
111
|
rubyforge_project:
|
111
|
-
rubygems_version: 1.8.
|
112
|
+
rubygems_version: 1.8.24
|
112
113
|
signing_key:
|
113
114
|
specification_version: 3
|
114
115
|
summary: Maintains the api endpoints and the calls to them with authorisation, etc.
|