shopapp 0.0.6 → 0.0.7

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
  SHA1:
3
- metadata.gz: 11d8a7b899e944cfb00f6f4185f20d0813d443fd
4
- data.tar.gz: 952204164e72577170ad84ffe6a1a3f69b911caa
3
+ metadata.gz: 35be4e1df1a2cf6b4ecdc0c42208425471b703bf
4
+ data.tar.gz: 28b4ece38da73a8d8bd3d9a2b4662908ef982bbf
5
5
  SHA512:
6
- metadata.gz: 79b023e030673c89a256c11f73ff43a2b9b3405f2f72e6693b0808faf433e0f2b0cab4dc97e5942e8ed4f01ef78118985aa74ab654aa631445ccf427eac2eb65
7
- data.tar.gz: 5b800820ded0a09c9f054067352a70dd7d89a80ff18a26f29882bafb6c2e893744f55f06189878c265a1f97b4b5b2d33b7d533b97d84b48f4da1dc673744f251
6
+ metadata.gz: d0ed0860a83427566e059fd1c674c2214e21bd1c9eadd0b7404d0861fbbd6b4c90772517baaa0888cecd32334fb5f7204204ad9f6c16121f5f65c56e85a99cfc
7
+ data.tar.gz: 855a762567ffce1adda879cbf6fb9a58b36846150973652b13483197028bd76dc9b7aa872d0f2b1bb2e579b75fe8e13c4bb9559961ed736300b54e6b46923134
data/README.md CHANGED
@@ -1,4 +1,6 @@
1
1
  Shopapp gem - this is meant as a client gem for the Shoplift project which is
2
2
  not public yet.
3
3
 
4
+ To build new version of this gem, change the version in shopapp.gemspec and run:
4
5
 
6
+ gem build shopapp.gemspec ; gem push shopapp-0.0.X.gem
@@ -86,7 +86,6 @@ module ShopliftClient
86
86
  def authenticate_user_or_api!
87
87
  redirect_unauthorized unless authenticate_company!(true)
88
88
  end
89
-
90
89
 
91
90
  def authenticate_company!(soft = false)
92
91
  return if authenticate_user
@@ -0,0 +1,5 @@
1
+ class UserAuthenticatedOrApiController < ApplicationController
2
+ include ShopliftClient
3
+ protect_from_forgery with: :exception
4
+ before_action :authenticate_user_or_api!
5
+ end
data/shopapp.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'shopapp'
3
- s.version = '0.0.6'
3
+ s.version = '0.0.7'
4
4
  s.date = '2018-01-09'
5
5
  s.summary = 'Do a shoplift.'
6
6
  s.description = 'Ha! Art thou Bedlam? Dost thou thirst base Trojan, to have me fold up Parca\'s fatal web? Hence!\
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shopapp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zeljko
@@ -160,6 +160,7 @@ files:
160
160
  - app/controllers/concerns/shoplift_client.rb
161
161
  - app/controllers/concerns/shoplift_search.rb
162
162
  - app/controllers/user_authenticated_controller.rb
163
+ - app/controllers/user_authenticated_or_api_controller.rb
163
164
  - app/views/layouts/_header_menu.html.haml
164
165
  - app/views/shopapp/_shopapp.html.haml
165
166
  - config/initializers/active_settings.rb