shopapp 0.0.3 → 0.0.4

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: 3b61e306d6d08b711bcd5338430eac23c98ac536
4
- data.tar.gz: 2d4d8a6d735cbbb611a6d4e43a51c5cdfd9e0b8d
3
+ metadata.gz: 2f2ff7ed3e26035911f5f0fce39ecc5fe8340a83
4
+ data.tar.gz: 64443afca6259a57d5d596e5b2994f4a91781ec2
5
5
  SHA512:
6
- metadata.gz: b9c6c85f6c285b98289e2614dd606cb133fefa65bf16e65000ba49cb4e7506b6fc43afffc847418ceb3fc590b1773c3a7c7cd92326a4256cb20c4fd485083edb
7
- data.tar.gz: 24d24149fb30892710e2f135cdfc5b4e2e1349f085c0c1502792bf2acb9427852ec469b2c5d2b63e1751daff7f1eb0279e486a1b94d64a8536111a35344b9dca
6
+ metadata.gz: 763b77ac3e47a72680f23a7f8d062592a1805a672d822e27587ec63d42d73c87a4cdb4724a5aa66f3798e4768017957d3575afd9310e34b7efe45b071144704c
7
+ data.tar.gz: e3113536c70095780f3356ba2d9bd30c13e0501c1a14f1ec468fcce5060c165922c5f41aeae2ded62157180e1935dfb9eb6cb80b4544431fad276f70d78f8e83
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- shopapp (0.0.1)
4
+ shopapp (0.0.4)
5
5
  bootstrap (~> 4.0.0.beta)
6
6
  bootstrap-will_paginate
7
7
  font-awesome-rails
@@ -33,18 +33,18 @@ GEM
33
33
  i18n (~> 0.7)
34
34
  minitest (~> 5.1)
35
35
  tzinfo (~> 1.1)
36
- autoprefixer-rails (7.1.5)
36
+ autoprefixer-rails (7.2.4)
37
37
  execjs
38
- bootstrap (4.0.0.beta)
38
+ bootstrap (4.0.0.beta3)
39
39
  autoprefixer-rails (>= 6.0.3)
40
- popper_js (~> 1.11.1)
41
- sass (>= 3.4.19)
40
+ popper_js (>= 1.12.3, < 2)
41
+ sass (>= 3.5.2)
42
42
  bootstrap-will_paginate (1.0.0)
43
43
  will_paginate
44
44
  builder (3.2.3)
45
45
  coderay (1.1.2)
46
46
  concurrent-ruby (1.0.5)
47
- crass (1.0.2)
47
+ crass (1.0.3)
48
48
  domain_name (0.5.20170404)
49
49
  unf (>= 0.0.5, < 1.0.0)
50
50
  erubi (1.7.0)
@@ -72,7 +72,7 @@ GEM
72
72
  ruby_parser (~> 3.5)
73
73
  http-cookie (1.0.3)
74
74
  domain_name (~> 0.5)
75
- i18n (0.9.0)
75
+ i18n (0.9.1)
76
76
  concurrent-ruby (~> 1.0)
77
77
  jquery-rails (4.3.1)
78
78
  rails-dom-testing (>= 1, < 3)
@@ -87,8 +87,8 @@ GEM
87
87
  mime-types-data (~> 3.2015)
88
88
  mime-types-data (3.2016.0521)
89
89
  mini_portile2 (2.3.0)
90
- minitest (5.10.3)
91
- multi_json (1.12.2)
90
+ minitest (5.11.1)
91
+ multi_json (1.13.0)
92
92
  multi_xml (0.6.0)
93
93
  multipart-post (2.0.0)
94
94
  netrc (0.11.0)
@@ -102,14 +102,14 @@ GEM
102
102
  multi_json (~> 1.3)
103
103
  multi_xml (~> 0.5)
104
104
  rack (>= 1.2, < 3)
105
- popper_js (1.11.1)
106
- pry (0.11.1)
105
+ popper_js (1.12.9)
106
+ pry (0.11.3)
107
107
  coderay (~> 1.1.0)
108
108
  method_source (~> 0.9.0)
109
109
  pry-rails (0.3.6)
110
110
  pry (>= 0.10.4)
111
111
  rack (2.0.3)
112
- rack-test (0.7.0)
112
+ rack-test (0.8.2)
113
113
  rack (>= 1.0, < 3)
114
114
  rails-dom-testing (2.0.3)
115
115
  activesupport (>= 4.2.0)
@@ -122,7 +122,7 @@ GEM
122
122
  method_source
123
123
  rake (>= 0.8.7)
124
124
  thor (>= 0.18.1, < 2.0)
125
- rake (12.1.0)
125
+ rake (12.3.0)
126
126
  rb-fsevent (0.10.2)
127
127
  rb-inotify (0.9.10)
128
128
  ffi (>= 0.5.0, < 2)
@@ -130,9 +130,14 @@ GEM
130
130
  http-cookie (>= 1.0.2, < 2.0)
131
131
  mime-types (>= 1.16, < 4.0)
132
132
  netrc (~> 0.8)
133
+ rest-client (2.0.2-x64-mingw32)
134
+ ffi (~> 1.9)
135
+ http-cookie (>= 1.0.2, < 2.0)
136
+ mime-types (>= 1.16, < 4.0)
137
+ netrc (~> 0.8)
133
138
  ruby_parser (3.10.1)
134
139
  sexp_processor (~> 4.9)
135
- sass (3.5.2)
140
+ sass (3.5.5)
136
141
  sass-listen (~> 4.0.0)
137
142
  sass-listen (4.0.0)
138
143
  rb-fsevent (~> 0.9, >= 0.9.4)
@@ -142,11 +147,12 @@ GEM
142
147
  thor (0.20.0)
143
148
  thread_safe (0.3.6)
144
149
  tilt (2.0.8)
145
- tzinfo (1.2.3)
150
+ tzinfo (1.2.4)
146
151
  thread_safe (~> 0.1)
147
152
  unf (0.1.4)
148
153
  unf_ext
149
154
  unf_ext (0.0.7.4)
155
+ unf_ext (0.0.7.4-x64-mingw32)
150
156
  will_paginate (3.1.6)
151
157
 
152
158
  PLATFORMS
@@ -12,6 +12,19 @@ module ShopliftClient
12
12
  end
13
13
 
14
14
  class_methods do
15
+ attr_reader :search_path
16
+ attr_reader :do_hide_search_for_this_controller
17
+
18
+
19
+ def set_search_path(value)
20
+ @search_path = value
21
+ @search_path = "/#{@search_path}" unless @search_path[0] == '/'
22
+ @search_path = "#{@search_path}/" unless @search_path[-1] == '/'
23
+ end
24
+
25
+ def hide_search_for_this_controller
26
+ @do_hide_search_for_this_controller = true
27
+ end
15
28
  end
16
29
 
17
30
  def session_cookie
@@ -24,9 +24,10 @@
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="")
28
- .input-group
29
- %input#search.form-control(name="search" placeholder="Search for product" type="text" value=@search)
30
- %button.btn.btn-primary.input-group-addon(type="submit" style="width: 80px; padding-left: 30px;")
31
- %i.fa.fa-search(aria-hidden="true")
27
+ - unless controller.class.do_hide_search_for_this_controller
28
+ %form(action="#{controller.class.search_path || '/'}")
29
+ .input-group
30
+ %input#search.form-control(name="search" placeholder="Search" type="text" value=@search)
31
+ %button.btn.btn-primary.input-group-addon(type="submit" style="width: 80px; padding-left: 30px;")
32
+ %i.fa.fa-search(aria-hidden="true")
32
33
  = yield
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.3'
4
- s.date = '2018-01-08'
3
+ s.version = '0.0.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!\
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.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zeljko
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-01-08 00:00:00.000000000 Z
11
+ date: 2018-01-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties