shopapp 0.75.02 → 0.76.04
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/helpers/euro_helper.rb +6 -3
- data/app/views/shopapp/_shopapp3.html.haml +1 -1
- data/shopapp.gemspec +2 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a1eda2b8bde0d9e02566b71ec07d6b9a0743ec49ef35ae87722c70892672d4b1
|
4
|
+
data.tar.gz: 4fbf67a3b4f06dc2cb4e6d91b4d747649178628836cb55dd196a9171a6d17c88
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1bd7872ccca971742991c27de766b1bdf0aebd8fda74b70f2d8b248a42c589cbd8576e8313e88835a3a534944f6da4d6c6c736b390d39ed329eefb324281051d
|
7
|
+
data.tar.gz: e4cbbf3f07ad93b086c9f3d536fe0b9c8b0c5bb89c3e7ea50b2f090cd990f148f1463d288e292844896388ff8760ce816073a8ef75711c762e2c30594af70a7d
|
data/README.md
CHANGED
@@ -95,4 +95,4 @@ shopapp to support i18n, add two methods to your ApplicationController:
|
|
95
95
|
|
96
96
|
To build new version of this gem, change the version in shopapp.gemspec and run:
|
97
97
|
|
98
|
-
gem build shopapp.gemspec ; gem push shopapp-0.
|
98
|
+
gem build shopapp.gemspec ; gem push shopapp-0.76.04.gem; gem install shopapp
|
data/app/helpers/euro_helper.rb
CHANGED
@@ -7,17 +7,20 @@ module EuroHelper
|
|
7
7
|
number_to_currency number_in_euros, unit: "€", separator: ",", delimiter: nbsp, format: "%n#{nbsp}%u"
|
8
8
|
end
|
9
9
|
|
10
|
-
def mdi_tag(name = nil, included_classes: '', size: 16,
|
10
|
+
def mdi_tag(name = nil, included_classes: '', size: 16, icon: 'highlight_off', **other_named_params)
|
11
11
|
if name.match?(/^([\w\-\_]+)( (\d\d)px)?$/) && size == 16 && icon == 'highlight_off'
|
12
12
|
results = name.match(/^([\w\-\_]+)( (\d\d)px)?$/)
|
13
13
|
icon = results[1]
|
14
14
|
size = results[3].to_i if results[3].present?
|
15
|
-
included_classes += " " + other_named_params[:class] if other_named_params[:class].present?
|
16
15
|
end
|
17
16
|
|
17
|
+
included_classes += " " + other_named_params[:class] if other_named_params[:class].present?
|
18
|
+
other_actions = other_named_params.except(:class).keys.map { |key| "#{key}=\"#{other_named_params[key]}\"" }.join(' ')
|
19
|
+
|
18
20
|
icon = 'edit' if icon == 'stylus'
|
19
21
|
icon = 'person_add' if icon == 'account-plus-outline'
|
22
|
+
icon = 'earth' if icon == 'language'
|
20
23
|
|
21
|
-
"<i class=\"material-icons md-#{size} #{name} #{included_classes}\">#{icon}</i>".html_safe
|
24
|
+
"<i class=\"material-icons md-#{size} #{name} #{included_classes}\" #{other_actions}>#{icon}</i>".html_safe
|
22
25
|
end
|
23
26
|
end
|
@@ -28,7 +28,7 @@
|
|
28
28
|
.dropdown-header Change language
|
29
29
|
%span.px-3.py-2(display="block" clear="none" style="width: 32px; margin-right: 6px;")
|
30
30
|
- supported_locales_defined.each do |loc|
|
31
|
-
= button_to(change_language_path(loc), method: :post, class: 'mr-2', data: { turbo: false }) do
|
31
|
+
= button_to(change_language_path(loc), method: :post, class: 'mr-2', data: { turbo: false }, style: 'background: none; border: none;', form: { style: 'display: inline' }) do
|
32
32
|
= image_tag "flags/#{loc}.png", style: "height: 24; width: 36px;"
|
33
33
|
- if (@current_user_json_hash['memberships'] || []).reject { |c| @current_user_json_hash['company']['code'] == c['code'] }.present?
|
34
34
|
.dropdown-divider
|
data/shopapp.gemspec
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'shopapp'
|
3
3
|
# Version for Rails 7 / Ruby 3 start with 0.74
|
4
|
-
s.version = '0.
|
5
|
-
s.date = '2024-
|
4
|
+
s.version = '0.76.04'
|
5
|
+
s.date = '2024-06-06'
|
6
6
|
s.summary = 'Do a shoplift.'
|
7
7
|
s.description = 'Ha! Art thou Bedlam? Dost thou thirst base Trojan, to have me fold up Parca\'s fatal web? Hence!\
|
8
8
|
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.
|
4
|
+
version: 0.76.04
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Zeljko
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-06-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: haml-rails
|
@@ -366,7 +366,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
366
366
|
- !ruby/object:Gem::Version
|
367
367
|
version: '0'
|
368
368
|
requirements: []
|
369
|
-
rubygems_version: 3.
|
369
|
+
rubygems_version: 3.4.10
|
370
370
|
signing_key:
|
371
371
|
specification_version: 4
|
372
372
|
summary: Do a shoplift.
|