shopapp 0.2.56 → 0.2.57
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/app/controllers/concerns/shoplift_client.rb +8 -0
- data/app/helpers/shopapp_helper.rb +1 -1
- data/shopapp.gemspec +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ce88c035e3b496936b79308849738967920b6736ace4368dddce41bbaefc9b0f
|
4
|
+
data.tar.gz: 3d39762c99b4bf5df9104175ffb8dcb3e068f026216e9b01937fe9b77d1cd83d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4afc78acc15fe8e1ff0c07f29efae0cacb0171cd9bf8f85cc092f8e8cf0d8ba2d9d67d55aa6f9cc1ca7c4427048fb03e1156569ce5067b757164ccd6983d60d1
|
7
|
+
data.tar.gz: '0128fc61caeef6d2308010831dba634d55321433b8ec578e8c70546fcfc841fc15554963e6e9cdc5c0fedde18437703deffac5a1e1abae62f06e688460c00a35'
|
data/README.md
CHANGED
@@ -77,4 +77,4 @@ else regarding favicons:
|
|
77
77
|
|
78
78
|
To build new version of this gem, change the version in shopapp.gemspec and run:
|
79
79
|
|
80
|
-
git push; gem build shopapp.gemspec ; gem push shopapp-0.2.
|
80
|
+
git push; gem build shopapp.gemspec ; gem push shopapp-0.2.57.gem; gem install shopapp
|
@@ -21,6 +21,7 @@ module ShopliftClient
|
|
21
21
|
attr_reader :search_path
|
22
22
|
attr_reader :required_scopes
|
23
23
|
attr_reader :do_hide_search_for_this_controller
|
24
|
+
attr_reader :search_placeholder
|
24
25
|
|
25
26
|
def set_search_path(value)
|
26
27
|
@search_path = value
|
@@ -33,6 +34,13 @@ module ShopliftClient
|
|
33
34
|
@do_hide_search_for_this_controller = true
|
34
35
|
end
|
35
36
|
|
37
|
+
def show_search_for_this_controller(params = {})
|
38
|
+
@do_hide_search_for_this_controller = false
|
39
|
+
@search_placeholder = params[:placeholder] if params[:placeholder].present?
|
40
|
+
@search_path = params[:search_path] if params[:search_path].present?
|
41
|
+
@search_remote = params[:search_remote] if params[:search_remote].present?
|
42
|
+
end
|
43
|
+
|
36
44
|
def require_scopes(scopes)
|
37
45
|
@required_scopes ||= []
|
38
46
|
scopes = [scopes] unless scopes.is_a? Array
|
data/shopapp.gemspec
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'shopapp'
|
3
|
-
s.version = '0.2.
|
4
|
-
s.date = '2019-05-
|
3
|
+
s.version = '0.2.57'
|
4
|
+
s.date = '2019-05-21'
|
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.2.
|
4
|
+
version: 0.2.57
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Zeljko
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-05-
|
11
|
+
date: 2019-05-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|