driftrock-service 0.4.15 → 0.4.16

Sign up to get free protection for your applications and to get access to all the features.
@@ -13,6 +13,10 @@ module Driftrock
13
13
  get(URLs::APPS, opts)
14
14
  end
15
15
 
16
+ def reset_password(email)
17
+ get("#{URLs::BASE}/reset_password", {user_email: email})
18
+ end
19
+
16
20
  end
17
21
  end
18
22
  end
@@ -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)
@@ -0,0 +1,10 @@
1
+ module Driftrock
2
+ module Admin
3
+ module DriftrockModel
4
+ class DriftrockCompany
5
+ include ::Driftrock::Service::DriftrockModel
6
+ set_api_path "/admin/companies"
7
+ end
8
+ end
9
+ end
10
+ end
@@ -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")
@@ -1,5 +1,5 @@
1
1
  module Driftrock
2
2
  module Service
3
- VERSION = "0.4.15"
3
+ VERSION = "0.4.16"
4
4
  end
5
5
  end
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.15
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.25
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.