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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f1c2f08d14165edcc8a08e1f3fd54afe406d3c52b99b602afeabddb96febf52b
4
- data.tar.gz: 2e6003c1a9bb2b9e85a659deee55d9dc3bb72bd7a781be44629d1b29843a66f3
3
+ metadata.gz: ce88c035e3b496936b79308849738967920b6736ace4368dddce41bbaefc9b0f
4
+ data.tar.gz: 3d39762c99b4bf5df9104175ffb8dcb3e068f026216e9b01937fe9b77d1cd83d
5
5
  SHA512:
6
- metadata.gz: bc2e08e06e7633cc3eec1e75de0a08e4498211cc288a4ec38d88a0541a30179cb07a365d9aeaf3ca9142d5ff0e998d9c2257cc2450ef35f025c5288363619420
7
- data.tar.gz: 9abe60190abd27f36a47842398bc5b8d9532187605fd0fa00e01dc3603d3507fcb92f50303597fd07196d2514a1a9e849c2994d9221a0c6a160b9a1b6d52934d
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.56.gem; gem install shopapp
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
@@ -51,7 +51,7 @@ module ShopappHelper
51
51
  end
52
52
 
53
53
  def search_placeholder
54
- controller.search_placeholder || "Search..."
54
+ controller.search_placeholder || controller.class.search_placeholder || "Search..."
55
55
  end
56
56
 
57
57
  def search_remote
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'shopapp'
3
- s.version = '0.2.56'
4
- s.date = '2019-05-20'
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.56
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-20 00:00:00.000000000 Z
11
+ date: 2019-05-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties