shopapp 0.75.02 → 0.75.03
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/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: ab85ba1898c93584f319481299c97725cfe57874a910af0dc5fa5aab95169e37
|
4
|
+
data.tar.gz: 6061b2264ba878a2723ac5fe982e098657283560d63e8d11e3dab5e3ed1ad615
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9dd711cf7d4d3537a578f232ae6542a8d1d9e6c742f492a026f06f11f3ac1add65c0f87bf51e9c6a77cd7e989a6d84ae7471586820b69de79f4d38b0adc56d1f
|
7
|
+
data.tar.gz: e8134ab8b92d7293e9457b4e65c5d02684711e92274b8832afbb1b65763c02e4dd97b2362f7597f67abf6a353a42cf082f2957f2d1feeb2b429087b2fcda9d58
|
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.75.03.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
|
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.75.
|
5
|
-
s.date = '2024-
|
4
|
+
s.version = '0.75.03'
|
5
|
+
s.date = '2024-06-05'
|
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.75.
|
4
|
+
version: 0.75.03
|
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-05 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.
|