shopapp 0.0.1 → 0.0.2
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 +4 -4
- data/README.md +2 -3
- data/app/controllers/concerns/shoplift_search.rb +21 -0
- data/app/views/shopapp/_shopapp.html.haml +1 -1
- data/shopapp.gemspec +2 -2
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: afc52272f60ca7aabdf5cfe0f2c2cfa555f15963
|
4
|
+
data.tar.gz: 944e45d5a978fffa6f717029c761333a4d8c8815
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f434c6a99eed318f8abd78d665337f995d8a382dce85b8f06b56098c6a0b4de80f58ffdd84399c96aa49e824885628de80678f6b4b5828608b2ca99c9b223d1e
|
7
|
+
data.tar.gz: d3576a070672af7f967a3536f455a5b939160cb717ce7b43afa1e4c64aa2c85d7e18e8e333978f49a126f1bf521467136184062b7c2381deedc0629bea6a1c9c
|
data/README.md
CHANGED
@@ -1,3 +1,2 @@
|
|
1
|
-
Shopapp gem
|
2
|
-
|
3
|
-
More instructions will be added here later.
|
1
|
+
Shopapp gem - this is meant as a client gem for the Shoplift project which is
|
2
|
+
not public yet.
|
@@ -0,0 +1,21 @@
|
|
1
|
+
require 'active_support/concern'
|
2
|
+
|
3
|
+
module ShopliftSearch
|
4
|
+
extend ActiveSupport::Concern
|
5
|
+
|
6
|
+
included do
|
7
|
+
before_action :get_search
|
8
|
+
end
|
9
|
+
|
10
|
+
class_methods do
|
11
|
+
end
|
12
|
+
|
13
|
+
def get_search
|
14
|
+
@search = params.permit(:search)[:search]
|
15
|
+
@search_query = if @search.present?
|
16
|
+
{ search: @search }
|
17
|
+
else
|
18
|
+
{}
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
@@ -24,7 +24,7 @@
|
|
24
24
|
= link_to(logout_path, method: :delete, :class => 'dropdown-item') do
|
25
25
|
Logout
|
26
26
|
.col-md-6.order-1
|
27
|
-
%form(action="
|
27
|
+
%form(action="")
|
28
28
|
.input-group
|
29
29
|
%input#search.form-control(name="search" placeholder="Search for product" type="text" value=@search)
|
30
30
|
%button.btn.btn-primary.input-group-addon(type="submit" style="width: 80px; padding-left: 30px;")
|
data/shopapp.gemspec
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'shopapp'
|
3
|
-
s.version = '0.0.
|
4
|
-
s.date = '
|
3
|
+
s.version = '0.0.2'
|
4
|
+
s.date = '2018-01-08'
|
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!\
|
7
7
|
I am qualmish at the smell of leek.'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: shopapp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Zeljko
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-01-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|
@@ -158,6 +158,7 @@ files:
|
|
158
158
|
- app/controllers/api_controller.rb
|
159
159
|
- app/controllers/auth_controller.rb
|
160
160
|
- app/controllers/concerns/shoplift_client.rb
|
161
|
+
- app/controllers/concerns/shoplift_search.rb
|
161
162
|
- app/controllers/user_authenticated_controller.rb
|
162
163
|
- app/views/layouts/_header_menu.html.haml
|
163
164
|
- app/views/shopapp/_shopapp.html.haml
|