Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump rake from 12.3.1 to 13.0.6 #44

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .ruby-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
ruby-2.5.1
ruby-2.7.5
197 changes: 102 additions & 95 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ PATH
best_in_place
bootstrap-sass
browser
carrierwave
cocoon
culqi-ruby
decorators
Expand All @@ -24,6 +23,7 @@ PATH
sass-rails
simple_form
social-share-button
sweetify

GEM
remote: https://rubygems.org/
Expand Down Expand Up @@ -70,122 +70,130 @@ GEM
minitest (~> 5.1)
tzinfo (~> 1.1)
arel (9.0.0)
autoprefixer-rails (8.6.5)
execjs
autoprefixer-rails (10.4.7.0)
execjs (~> 2)
best_in_place (3.1.1)
actionpack (>= 3.2)
railties (>= 3.2)
bootstrap-sass (3.3.7)
bootstrap-sass (3.4.1)
autoprefixer-rails (>= 5.2.1)
sass (>= 3.3.4)
browser (2.5.3)
sassc (>= 2.0.0)
browser (5.3.1)
builder (3.2.3)
carrierwave (1.2.3)
activemodel (>= 4.0.0)
activesupport (>= 4.0.0)
mime-types (>= 1.16)
cocoon (1.2.11)
coffee-rails (4.2.2)
cocoon (1.2.15)
coffee-rails (5.0.0)
coffee-script (>= 2.2.0)
railties (>= 4.0.0)
railties (>= 5.2.0)
coffee-script (2.4.1)
coffee-script-source
execjs
coffee-script-source (1.12.2)
concurrent-ruby (1.0.5)
crass (1.0.4)
culqi-ruby (0.0.8)
decorators (2.0.4)
railties (>= 4.0.0, < 6)
dotenv (2.5.0)
dotenv-rails (2.5.0)
dotenv (= 2.5.0)
railties (>= 3.2, < 6.0)
culqi-ruby (0.1.0)
date (3.3.3)
decorators (2.0.5)
railties (>= 4.0.0, < 7)
dotenv (2.8.1)
dotenv-rails (2.8.1)
dotenv (= 2.8.1)
railties (>= 3.2)
erubi (1.7.1)
excon (0.62.0)
execjs (2.7.0)
ffi (1.9.25)
fog-aws (3.0.0)
excon (0.96.0)
execjs (2.8.1)
ffi (1.15.5)
fog-aws (3.15.0)
fog-core (~> 2.1)
fog-json (~> 1.1)
fog-xml (~> 0.1)
ipaddress (~> 0.8)
fog-core (2.1.0)
fog-core (2.3.0)
builder
excon (~> 0.58)
formatador (~> 0.2)
excon (~> 0.71)
formatador (>= 0.2, < 2.0)
mime-types
fog-json (1.2.0)
fog-core
multi_json (~> 1.10)
fog-xml (0.1.3)
fog-xml (0.1.4)
fog-core
nokogiri (>= 1.5.11, < 2.0.0)
font-awesome-rails (4.7.0.4)
railties (>= 3.2, < 6.0)
formatador (0.2.5)
friendly_id (5.2.4)
font-awesome-rails (4.7.0.8)
railties (>= 3.2, < 8.0)
formatador (1.1.0)
friendly_id (5.5.0)
activerecord (>= 4.0.0)
geocoder (1.4.9)
globalid (0.4.1)
activesupport (>= 4.2.0)
geocoder (1.8.1)
globalid (1.0.0)
activesupport (>= 5.0)
i18n (1.0.1)
concurrent-ruby (~> 1.0)
ipaddress (0.8.3)
jquery-rails (4.3.3)
rails-dom-testing (>= 1, < 3)
railties (>= 4.2.0)
thor (>= 0.14, < 2.0)
jquery-ui-rails (6.0.1)
railties (>= 3.2.16)
kaminari (1.1.1)
kaminari (1.2.2)
activesupport (>= 4.1.0)
kaminari-actionview (= 1.1.1)
kaminari-activerecord (= 1.1.1)
kaminari-core (= 1.1.1)
kaminari-actionview (1.1.1)
kaminari-actionview (= 1.2.2)
kaminari-activerecord (= 1.2.2)
kaminari-core (= 1.2.2)
kaminari-actionview (1.2.2)
actionview
kaminari-core (= 1.1.1)
kaminari-activerecord (1.1.1)
kaminari-core (= 1.2.2)
kaminari-activerecord (1.2.2)
activerecord
kaminari-core (= 1.1.1)
kaminari-core (1.1.1)
kaminari-core (= 1.2.2)
kaminari-core (1.2.2)
loofah (2.2.2)
crass (~> 1.0.2)
nokogiri (>= 1.5.9)
mail (2.7.0)
mail (2.8.0)
mini_mime (>= 0.1.1)
marcel (0.3.2)
net-imap
net-pop
net-smtp
marcel (0.3.3)
mimemagic (~> 0.3.2)
material_icons (2.2.1)
material_icons (4.0.0)
railties (>= 3.2)
method_source (0.9.0)
mime-types (3.1)
mime-types (3.4.1)
mime-types-data (~> 3.2015)
mime-types-data (3.2016.0521)
mimemagic (0.3.2)
mini_magick (4.8.0)
mini_mime (1.0.0)
mime-types-data (3.2022.0105)
mimemagic (0.3.10)
nokogiri (~> 1)
rake
mini_magick (4.12.0)
mini_mime (1.1.2)
mini_portile2 (2.3.0)
minitest (5.11.3)
monetize (1.7.0)
money (~> 6.9)
money (6.11.3)
i18n (>= 0.6.4, < 1.1)
money-rails (1.11.0)
monetize (1.12.0)
money (~> 6.12)
money (6.16.0)
i18n (>= 0.6.4, <= 2)
money-rails (1.15.0)
activesupport (>= 3.0)
monetize (~> 1.7.0)
money (~> 6.11.0)
monetize (~> 1.9)
money (~> 6.13)
railties (>= 3.0)
multi_json (1.13.1)
nio4r (2.3.1)
multi_json (1.15.0)
net-imap (0.3.4)
date
net-protocol
net-pop (0.1.2)
net-protocol
net-protocol (0.2.1)
timeout
net-smtp (0.3.3)
net-protocol
nio4r (2.5.8)
nokogiri (1.8.2)
mini_portile2 (~> 2.3.0)
pg (1.0.0)
pg_search (2.1.2)
activerecord (>= 4.2)
activesupport (>= 4.2)
arel (>= 6)
pg_search (2.3.6)
activerecord (>= 5.2)
activesupport (>= 5.2)
rack (2.0.5)
rack-test (1.0.0)
rack (>= 1.0, < 3)
Expand Down Expand Up @@ -213,43 +221,42 @@ GEM
method_source
rake (>= 0.8.7)
thor (>= 0.18.1, < 2.0)
rake (12.3.1)
rb-fsevent (0.10.3)
rb-inotify (0.9.10)
ffi (>= 0.5.0, < 2)
record_tag_helper (1.0.0)
actionview (~> 5.x)
sass (3.5.6)
sass-listen (~> 4.0.0)
sass-listen (4.0.0)
rb-fsevent (~> 0.9, >= 0.9.4)
rb-inotify (~> 0.9, >= 0.9.7)
sass-rails (5.0.7)
railties (>= 4.0.0, < 6)
sass (~> 3.1)
sprockets (>= 2.8, < 4.0)
sprockets-rails (>= 2.0, < 4.0)
tilt (>= 1.1, < 3)
simple_form (4.0.1)
actionpack (>= 5.0)
activemodel (>= 5.0)
social-share-button (1.1.0)
rake (13.0.6)
record_tag_helper (1.0.1)
actionview (>= 5)
sass-rails (6.0.0)
sassc-rails (~> 2.1, >= 2.1.1)
sassc (2.4.0)
ffi (~> 1.9)
sassc-rails (2.1.2)
railties (>= 4.0.0)
sassc (>= 2.0)
sprockets (> 3.0)
sprockets-rails
tilt
simple_form (5.1.0)
actionpack (>= 5.2)
activemodel (>= 5.2)
social-share-button (1.2.4)
coffee-rails
sprockets (3.7.2)
sprockets (4.1.1)
concurrent-ruby (~> 1.0)
rack (> 1, < 3)
sprockets-rails (3.2.1)
actionpack (>= 4.0)
activesupport (>= 4.0)
sprockets-rails (3.4.2)
actionpack (>= 5.2)
activesupport (>= 5.2)
sprockets (>= 3.0.0)
sweetify (2.0.0)
actionpack
thor (0.20.0)
thread_safe (0.3.6)
tilt (2.0.8)
tilt (2.0.11)
timeout (0.3.1)
tzinfo (1.2.5)
thread_safe (~> 0.1)
websocket-driver (0.7.0)
websocket-driver (0.7.5)
websocket-extensions (>= 0.1.0)
websocket-extensions (0.1.3)
websocket-extensions (0.1.5)

PLATFORMS
ruby
Expand Down
10 changes: 8 additions & 2 deletions app/controllers/ecommerce/orders_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
module Ecommerce
class OrdersController < ApplicationController

skip_before_action :verify_authenticity_token, only: [:culqi_webhook]
skip_before_action :authenticate_user!, only: [:culqi_webhook]
skip_before_action :verify_authenticity_token, only: [:culqi_webhook, :einvoice_webhook]
skip_before_action :authenticate_user!, only: [:culqi_webhook, :einvoice_webhook]

prepend_view_path "ecommerce/store/#{Ecommerce.ecommerce_layout}"
before_action :set_order, only: [:show]
Expand Down Expand Up @@ -54,6 +54,12 @@ def culqi_webhook
head :ok
end

def einvoice_webhook
Rails.logger.info "Webhook Received"
Rails.logger.info params
Rails.logger.info params.to_json
end

def calculate_coupon
puts params
found_coupon = Coupon.find_by(coupon_code: params[:coupon_code])
Expand Down
Loading