shopapp 0.2.62 → 0.2.63

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: 8b6b4f03713cd201a9231d9a92a817cb4a07d1af8c4bf62d9a6bcae69746d09e
4
- data.tar.gz: efd7f6a541edbe69f0f54008b4080c6cf7103e06b9dcdac2163e4a68da038825
3
+ metadata.gz: b2eb85e5b99248b30ac4635d59d4c5ef74fc06d103ba3e9139a3f733439e00f4
4
+ data.tar.gz: 53aff64c19fa77262934906f5639a6bdf3d238aef695453daba0c24059b458ad
5
5
  SHA512:
6
- metadata.gz: 7998339f361ad752be23240ab6e664dbae62ca24cfb4f50d56629bbe91a0fcbf51dca8919bc37c98d3774cfb7fbf734fd74495eb24968492184197c74c1a758d
7
- data.tar.gz: 0f18155c045c15c6a45be53409afc1336b95b5ee80362cf0e098f2d7faf0d09c6c3cb3c23dbc86830a5d7dda0ee295835fc9b1f080f41b66977b0d8946168e67
6
+ metadata.gz: cbd7910670b0b9a3e36e063bc10d16f405739455b6189b70a2f3ec94a6514e9d3fc7aab010f7e030c12423a312f09dc0bb557690916f64615301dfce62a6d6c6
7
+ data.tar.gz: ad7ecc12ed1191d0e7de2ec00b8d6457852172c185c8a9edef21534486d8646bd797223f18242eb0bab580d36fc192b8759db251e08fec32afb770e727345d63
data/README.md CHANGED
@@ -93,4 +93,4 @@ shopapp to support i18n, add two methods to your ApplicationController:
93
93
 
94
94
  To build new version of this gem, change the version in shopapp.gemspec and run:
95
95
 
96
- git push; gem build shopapp.gemspec ; gem push shopapp-0.2.62.gem; gem install shopapp
96
+ git push; gem build shopapp.gemspec ; gem push shopapp-0.2.63.gem; gem install shopapp
@@ -0,0 +1,13 @@
1
+ module EuroHelper
2
+ def nbsp
3
+ [160].pack('U*')
4
+ end
5
+
6
+ def euros(number_in_euros)
7
+ number_to_currency number_in_euros, unit: "€", separator: ",", delimiter: nbsp, format: "%n#{nbsp}%u"
8
+ end
9
+
10
+ def cents(number_in_cents)
11
+ euros(number_in_cents / 100)
12
+ end
13
+ end
@@ -148,7 +148,7 @@ create_file 'config/settings.yml', <<~SETTINGS
148
148
  # Authlift setup
149
149
  port: #{@app_dev_port} # << TODO: CHANGE THIS AND SAME BELLOW IN authlift_redirect_uri
150
150
  shopapp_name: #{@app_name}
151
- shopapp_code: #{@app_name}.parameterize.underscore
151
+ shopapp_code: #{@app_name.parameterize.underscore}
152
152
  authlift_url: <%= ((Rails.env == 'development') ? 'http://localhost:3031/' : 'https://accounts.shoplift.fi/') %>
153
153
  authlift_app_id: #{@app_id = SecureRandom.hex 32}
154
154
  authlift_app_secret: #{@app_secret = SecureRandom.hex 32}
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.62'
4
- s.date = '2019-08-18'
3
+ s.version = '0.2.63'
4
+ s.date = '2019-09-18'
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.2.62
4
+ version: 0.2.63
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zeljko
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-08-18 00:00:00.000000000 Z
11
+ date: 2019-09-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties
@@ -416,6 +416,7 @@ files:
416
416
  - app/controllers/concerns/shoplift_search.rb
417
417
  - app/controllers/user_authenticated_controller.rb
418
418
  - app/controllers/user_authenticated_or_api_controller.rb
419
+ - app/helpers/euro_helper.rb
419
420
  - app/helpers/shopapp3_helper.rb
420
421
  - app/helpers/shopapp_helper.rb
421
422
  - app/views/layouts/_header_menu.html.haml