ishapi 0.1.8.165 → 0.1.8.166

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
  SHA256:
3
- metadata.gz: dc29c2289b2edffef2a6df490a32dabde652821f74d41fed1dba8d2bd38d2fa9
4
- data.tar.gz: 3ef7d4353ed450adc3fd8321969b590d63c8c08a178a7ceb470005a369152843
3
+ metadata.gz: 1cbf7f2d37b0cee002d570e5a3d400c5ccfa02a7a83ba089e51d183b8296f522
4
+ data.tar.gz: 4b0d051d9a25ec30cd194c23c6369ebbfca6364f87def26b3efc9fadc4d95789
5
5
  SHA512:
6
- metadata.gz: '0688d657683b883b6d0ab146b4c40b8ae17c1eb952db2dc58df032d392d394fb82f639feadba5cef33ecd5ec8628132d15360d8c65ac36cdac65c736a95a043b'
7
- data.tar.gz: 3bf7b31ecf5de3f5058c7c07500055cc661d1015e138f8e2b218648e8d385d5431d7684e9b9cbae53dacc166f7afc2e7706668096273aee05955b757af9bbaef
6
+ metadata.gz: d18cb828983034a31dd29837f52a0b5ea066e9c63b81581a371fd735d0c0f97d55266cdfcbbf7eb57b05002fe43205b8f228298f424f8b54068204352fc13f49
7
+ data.tar.gz: 692aa438e952240c0cd78f3fcfea672de3dca58db91689917c6784890ef5583cbe45e615d0a00a48aa3b126b996a9e1952067eeae80415a10fd0f8b9d3e89ddf
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ishapi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8.165
4
+ version: 0.1.8.166
5
5
  platform: ruby
6
6
  authors:
7
7
  - piousbox
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-11-12 00:00:00.000000000 Z
11
+ date: 2022-01-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -206,7 +206,6 @@ files:
206
206
  - app/controllers/ishapi/maps_controller.rb
207
207
  - app/controllers/ishapi/measurements_controller.rb
208
208
  - app/controllers/ishapi/my/galleries_controller.rb
209
- - app/controllers/ishapi/my/my_controller.rb-trash
210
209
  - app/controllers/ishapi/my/reports_controller.rb
211
210
  - app/controllers/ishapi/my/videos_controller.rb
212
211
  - app/controllers/ishapi/newsitems_controller.rb
@@ -303,7 +302,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
303
302
  - !ruby/object:Gem::Version
304
303
  version: '0'
305
304
  requirements: []
306
- rubygems_version: 3.2.25
305
+ rubygems_version: 3.0.3.1
307
306
  signing_key:
308
307
  specification_version: 4
309
308
  summary: Summary of Ishapi.
@@ -1,42 +0,0 @@
1
-
2
- module Ishapi
3
- module My
4
- class MyController < Ishapi::ApplicationController
5
-
6
- before_action :check_profile
7
-
8
- # @TODO: move to users_controller
9
- def account
10
- @profile = current_user&.profile
11
- authorize! :show, @profile
12
- render 'ishapi/users/account'
13
- rescue CanCan::AccessDenied
14
- render json: {
15
- status: :not_ok,
16
- }, status: 401
17
- end
18
-
19
- =begin
20
- private
21
-
22
- def do_login
23
- token = decode(params[:jwtToken])
24
- @current_user = User.find(token["user_id"])
25
- end
26
-
27
- def set_profile
28
- begin
29
- @graph = Koala::Facebook::API.new( params[:accessToken] )
30
- me = @graph.get_object( 'me', :fields => 'email' )
31
- @profile = IshModels::UserProfile.find_by :email => me['email']
32
- rescue Koala::Facebook::AuthenticationError => e
33
- render :json => { :status => :not_ok, :errors => "Probably expired token." }
34
- return
35
- end
36
- end
37
- =end
38
-
39
- end
40
- end
41
- end
42
-