ishapi 0.1.8.248 → 0.1.8.249

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c22c9af79d588c3398c93d419294e103fb1cf0a2832dc194767e5355875a3540
4
- data.tar.gz: e478c4d3932697c2c8fa9f5626b87c4942ab5df270b74db7a1971031008af2b6
3
+ metadata.gz: 7a2fa517bcafd99d966e6766dd6208f5de27e50c933abf3ec2da3ddc818ccad7
4
+ data.tar.gz: 12db5b785227dbd18112ce8d054d935a547071edde7bf827009e0063f6bc3706
5
5
  SHA512:
6
- metadata.gz: 83d25afaa7f23d1ac7f1902d1112ed3b65f70848bca00e93ea98072fecabe889837472f1b2b97c37f2fa026e1c873409a0ef24ff90d4757f7adb2f8e2971e4b4
7
- data.tar.gz: cb3f87379270bfd0ded5f35bdc7e12bdbc146b04361748221631bdb5269e4fd66f350d085d80b4827a188f51408dd0999dfd49aa09e9243b45e1f056360b1bec
6
+ metadata.gz: aa23ab17391b6f2fe2cf51c359be661dbe3856c38a847d6d7387ed025402f953f33164d26268c48bdad7de95737399830e615d427e620b873688c52b3a22678d
7
+ data.tar.gz: bafad99ab0371992514d11f1be613a36d79cce650d6f9da2588880b63ec27e784f484c2dad30b029e9f4128825d13e5b38fbc10125488ae2748f9e96125388b4
@@ -61,7 +61,7 @@ class ::Ishapi::ApplicationController < ActionController::Base
61
61
 
62
62
  private
63
63
 
64
- ## This returns an empty profile if not logged in!
64
+ ## This returns an empty profile if not logged in
65
65
  def check_profile
66
66
  begin
67
67
  decoded = decode(params[:jwt_token])
@@ -1,7 +1,7 @@
1
1
  require_dependency "ishapi/application_controller"
2
2
  class Ishapi::PaymentsController < ApplicationController
3
3
 
4
- before_action :check_profile, only: %i| create2 unlock |
4
+ before_action :check_profile, only: %i| create unlock |
5
5
 
6
6
  # alphabetized : )
7
7
 
@@ -10,9 +10,13 @@ class Ishapi::PaymentsController < ApplicationController
10
10
  ## _vp_ 2022-09-04 continue
11
11
  ##
12
12
  ## @TODO: cannot proceed if already is_purchasing?
13
+ ## @TODO: and this doesn't say what you're buying! herehere
13
14
  ##
14
15
  def create
15
16
  authorize! :create, ::Ish::Payment
17
+
18
+ puts! @current_profile, 'current_profile'
19
+
16
20
  @current_profile.update_attributes({ is_purchasing: true })
17
21
 
18
22
  begin
data/config/routes.rb CHANGED
@@ -4,9 +4,6 @@ Ishapi::Engine.routes.draw do
4
4
  root :to => 'application#home'
5
5
  post 'home', :to => 'application#home'
6
6
 
7
- # A
8
- resources :addresses
9
-
10
7
  # E
11
8
  post 'email_messages', to: 'email_messages#receive'
12
9
  get 'email_messages/:id', to: 'email_messages#show', as: :email_message
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ishapi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8.248
4
+ version: 0.1.8.249
5
5
  platform: ruby
6
6
  authors:
7
7
  - piousbox
@@ -208,7 +208,6 @@ files:
208
208
  - app/assets/stylesheets/ishapi/galleries.scss
209
209
  - app/assets/stylesheets/ishapi/locations.scss
210
210
  - app/assets/stylesheets/scaffold.css
211
- - app/controllers/ishapi/addresses_controller.rb
212
211
  - app/controllers/ishapi/application_controller.rb
213
212
  - app/controllers/ishapi/email_conversations_controller.rb
214
213
  - app/controllers/ishapi/email_messages_controller.rb
@@ -1,23 +0,0 @@
1
- require_dependency "ishapi/application_controller"
2
-
3
- module Ishapi
4
- class AddressesController < ApplicationController
5
- before_action :check_profile, :only => [ :create ]
6
-
7
- def create
8
- if @current_profile.addresses.length == 0
9
- @address = CoTailors::Address.new({ :profile_id => @current_profile.id })
10
- else
11
- @address = @current_profile.addresses[0]
12
- end
13
- authorize! :update, @address
14
- flag = @address.update_attributes( params[:address].permit(:name, :phone, :address_1, :address_2, :city, :state, :zipcode ) )
15
- if flag
16
- render :json => { :status => :ok, :message => 'Successfully put an address.' }
17
- else
18
- render :json => { :status => :not_ok, :error => @address.errors.messages }
19
- end
20
- end
21
-
22
- end
23
- end