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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8494b4dc6eddb32452ea7ee2068b9e0744e3a444
4
- data.tar.gz: cc1e011c3ac085435b099420e81c4d4baf3e382e
3
+ metadata.gz: afc52272f60ca7aabdf5cfe0f2c2cfa555f15963
4
+ data.tar.gz: 944e45d5a978fffa6f717029c761333a4d8c8815
5
5
  SHA512:
6
- metadata.gz: 1c7b1e7bed35f570e4687ffe15107b9b523d5177402736b97915d3702224be1f5df4795a00ada59a7f6d8ff0dfd8e51b276202edfc97863c1d523a3478ff3a45
7
- data.tar.gz: ab8220fce2b3c0692fa4d336895b93990bedbbaf5881f738ad2173fb99ab8269facd2d4d3f568d6d111ef67e882b834a9ed0f69c0de00f9bde44e5ddef5d8ca9
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;")
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'shopapp'
3
- s.version = '0.0.1'
4
- s.date = '2017-10-13' # Friday the 13th
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.1
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: 2017-10-13 00:00:00.000000000 Z
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