shopapp 0.2.22 → 0.2.24

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: ad329f8f59a08f3fdf2f54fd045ac9c53272a552ad17765e39f6c890008ed2b8
4
- data.tar.gz: 10a2284df6b79681c37ae7c2fa2e40cea9367559a3d2555dae966f73e5651f3f
3
+ metadata.gz: 34e94a820838a81f31b9a63449450eb559816f0b9acf2f1ee2b7f91cc63895e9
4
+ data.tar.gz: 455c487d5be37bcea6ec14b5f303cac27f8c767ff4c34414bab8242cae26b027
5
5
  SHA512:
6
- metadata.gz: 750d51863591e19a79a4ee45dbe7d776792a4381310665f9f532666f397e4fe792cb2da3a8bd181283d6e348b88bcfe3487bf312852fab3c422a65d70c6dcdc1
7
- data.tar.gz: c686fafe57d99a315f7daa2f2c1decf93482a491c7daada7e73747edc00736bd48a6048d9cab303cef106f3605971df96618a3e204e95e4222f426f17e19d066
6
+ metadata.gz: 7196867de8eb9fa4072bb90e3f9ce36162d5c704cd819051537e38cace18d7b776cc4a6d8bf734ea65cc18722aa516f6c01cdf2da3fcd47a5d6bfbedaaf6a0f8
7
+ data.tar.gz: d3472af90d102283aa52d490b3157936b8404f678fcf0501e75c095cdb471ab14e5c1c26c3b0d1f7e00b4f6545504e21557832c9564029a0558af425b3c7c28a
@@ -201,19 +201,22 @@ html, body {
201
201
  }
202
202
  }
203
203
  .input-number {
204
- width: 55px;
205
- padding: 0 12px;
206
- vertical-align: top;
207
- text-align: center;
204
+ width: 45px;
205
+ padding: 0 6px;
206
+ /* vertical-align: top; */
207
+ text-align: right;
208
208
  outline: none;
209
+ border-left: left;
210
+ border-left: right;
211
+ border-left: top;
209
212
  }
210
213
 
211
214
  .input-number,
212
215
  .input-number-decrement,
213
216
  .input-number-increment {
214
- border: 1px solid #ccc;
215
- height: 25px;
216
- user-select: none;
217
+ /* border: 1px solid #ccc; */
218
+ /* height: 25px; */
219
+ /* user-select: none; */
217
220
  }
218
221
 
219
222
  .input-number-decrement,
@@ -221,7 +224,7 @@ html, body {
221
224
  display: inline-block;
222
225
  width: 30px;
223
226
  line-height: 23px;
224
- background: #f1f1f1;
227
+ /*background: #f1f1f1;*/
225
228
  color: #444;
226
229
  text-align: center;
227
230
  font-weight: bold;
@@ -235,10 +238,10 @@ html, body {
235
238
  }
236
239
  .input-number-decrement:active,
237
240
  .input-number-increment:active {
238
- background: #ddd;
241
+ /* background: #ddd; */
239
242
  }
240
243
 
241
- .input-number-decrement {
244
+ /* .input-number-decrement {
242
245
  border-right: none;
243
246
  border-radius: 4px 0 0 4px;
244
247
  }
@@ -246,7 +249,7 @@ html, body {
246
249
  .input-number-increment {
247
250
  border-left: none;
248
251
  border-radius: 0 4px 4px 0;
249
- }
252
+ } */
250
253
  .shopliftviewport {
251
254
  height: 75vh;
252
255
  }
@@ -1,3 +1,5 @@
1
+ require 'redcarpet'
2
+
1
3
  module ShopappHelper
2
4
  def user_allowed?(scope)
3
5
  unless @current_user['scopes'].is_a? String
@@ -66,4 +68,9 @@ module ShopappHelper
66
68
  </li>
67
69
  HTML
68
70
  end
71
+
72
+ def markdown_safe(text)
73
+ @markdown ||= markdown = Redcarpet::Markdown.new(Redcarpet::Render::HTML, autolink: true, tables: true)
74
+ @markdown.render(text).html_safe
75
+ end
69
76
  end
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.22'
4
- s.date = '2019-01-18'
3
+ s.version = '0.2.24'
4
+ s.date = '2019-01-29'
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.'
@@ -28,6 +28,7 @@ Gem::Specification.new do |s|
28
28
  s.add_dependency 'oauth2', '~> 1.4'
29
29
  s.add_dependency 'rest-client', '~> 2.0'
30
30
  s.add_dependency 'gravatar_image_tag', '~> 1.2'
31
+ s.add_dependency 'redcarpet', '~> 2.3'
31
32
 
32
33
  s.add_dependency 'capistrano', '~> 3.11'
33
34
  s.add_dependency 'capistrano-rvm', '~> 0'
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.22
4
+ version: 0.2.24
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zeljko
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-01-18 00:00:00.000000000 Z
11
+ date: 2019-01-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties
@@ -156,6 +156,20 @@ dependencies:
156
156
  - - "~>"
157
157
  - !ruby/object:Gem::Version
158
158
  version: '1.2'
159
+ - !ruby/object:Gem::Dependency
160
+ name: redcarpet
161
+ requirement: !ruby/object:Gem::Requirement
162
+ requirements:
163
+ - - "~>"
164
+ - !ruby/object:Gem::Version
165
+ version: '2.3'
166
+ type: :runtime
167
+ prerelease: false
168
+ version_requirements: !ruby/object:Gem::Requirement
169
+ requirements:
170
+ - - "~>"
171
+ - !ruby/object:Gem::Version
172
+ version: '2.3'
159
173
  - !ruby/object:Gem::Dependency
160
174
  name: capistrano
161
175
  requirement: !ruby/object:Gem::Requirement