shopapp 0.75.02 → 0.75.03

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
  SHA256:
3
- metadata.gz: 4f7f743c98f429b42b25af9c9f6f7e7336b472a8a23a1cc81305a91fc6668a77
4
- data.tar.gz: 81c04a4fd7a2bde73eda1ac13199a4a8589f23072f1b6e9e530d10c9540c5198
3
+ metadata.gz: ab85ba1898c93584f319481299c97725cfe57874a910af0dc5fa5aab95169e37
4
+ data.tar.gz: 6061b2264ba878a2723ac5fe982e098657283560d63e8d11e3dab5e3ed1ad615
5
5
  SHA512:
6
- metadata.gz: 4e0ed2f657ad6494f7e6a13b1323f9fc9b47df1e6f62c661429afaf49d54d4a085e2146baddbb39c2f94689d018e396bcbcd2d56acbf827a3d078b1c364b1dca
7
- data.tar.gz: 2f4b8183e3656d3196c6abfdf05b2e697a9a94fb06435ca760ecb20296ee83929657d41996a2f2ca96e746bf7836256406d13de8538ff966222ba6374705994b
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.73.02.gem; gem install shopapp
98
+ gem build shopapp.gemspec ; gem push shopapp-0.75.03.gem; gem install shopapp
@@ -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, icon: 'highlight_off', **other_named_params)
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.02'
5
- s.date = '2024-04-23'
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.02
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-04-23 00:00:00.000000000 Z
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.5.6
369
+ rubygems_version: 3.4.10
370
370
  signing_key:
371
371
  specification_version: 4
372
372
  summary: Do a shoplift.