payment_icons 1.2.4 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/payment_icons/version.rb +1 -1
- data/lib/sass_functions/payment_icons.rb +6 -6
- metadata +25 -25
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0afcc79c55c50a4e28ec5649d6ff2e87bdd18252362ab7a0534ea2130374e73e
|
4
|
+
data.tar.gz: 88ce027fdebec98bd23d1661fe15eb2ad043c66680db3218cd510278d2d6e581
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2515ce70d18b6441ea5c8fbcec8085179cb2bfaf389d0fe865081546779d75fc1410a01db293c1beaad475c163f4c11914883d3ec078be8ed8eb1879078a9bb7
|
7
|
+
data.tar.gz: 23d4c3075a5915c053d06f1b510b3bda35820ac7364be36630de5c2966afd813f39bbbb378cfd9a1ba977767121de638a72c955b40ae70c695da8856b2f0397f
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
|
-
require '
|
2
|
+
require 'sassc'
|
3
3
|
|
4
4
|
module SassFunctions
|
5
5
|
module PaymentIcons
|
@@ -7,17 +7,17 @@ module SassFunctions
|
|
7
7
|
pattern = ::PaymentIcons::Engine.root.join('app', 'assets', 'images', 'payment_icons', '*.svg')
|
8
8
|
icons = Dir.glob(pattern).map do |icon_path|
|
9
9
|
icon_name = File.basename(icon_path, '.svg')
|
10
|
-
svg_name =
|
11
|
-
class_name =
|
10
|
+
svg_name = SassC::Script::Value::String.new(icon_name)
|
11
|
+
class_name = SassC::Script::Value::String.new(icon_name.dasherize)
|
12
12
|
|
13
|
-
|
13
|
+
SassC::Script::Value::List.new([svg_name, class_name], separator: :space)
|
14
14
|
end
|
15
15
|
|
16
|
-
|
16
|
+
SassC::Script::Value::List.new(icons, separator: :space)
|
17
17
|
end
|
18
18
|
end
|
19
19
|
end
|
20
20
|
|
21
|
-
module
|
21
|
+
module SassC::Script::Functions
|
22
22
|
include SassFunctions::PaymentIcons
|
23
23
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: payment_icons
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nakul Pathak
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2019-08-
|
12
|
+
date: 2019-08-21 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: frozen_record
|
@@ -40,7 +40,7 @@ dependencies:
|
|
40
40
|
- !ruby/object:Gem::Version
|
41
41
|
version: '5.0'
|
42
42
|
- !ruby/object:Gem::Dependency
|
43
|
-
name:
|
43
|
+
name: sassc-rails
|
44
44
|
requirement: !ruby/object:Gem::Requirement
|
45
45
|
requirements:
|
46
46
|
- - ">="
|
@@ -261,33 +261,33 @@ summary: Payment Icon engine that can be integrated with any rails app to give e
|
|
261
261
|
and wallets.
|
262
262
|
test_files:
|
263
263
|
- test/dummy/test/controllers/icons_controller_test.rb
|
264
|
-
- test/dummy/public/favicon.ico
|
265
|
-
- test/dummy/public/500.html
|
266
|
-
- test/dummy/public/422.html
|
267
|
-
- test/dummy/public/404.html
|
268
|
-
- test/dummy/bin/rake
|
269
|
-
- test/dummy/bin/bundle
|
270
|
-
- test/dummy/bin/rails
|
271
|
-
- test/dummy/bin/setup
|
272
|
-
- test/dummy/app/views/icons/show.html.erb
|
273
|
-
- test/dummy/app/views/layouts/application.html.erb
|
274
|
-
- test/dummy/app/controllers/icons_controller.rb
|
275
|
-
- test/dummy/app/controllers/application_controller.rb
|
276
|
-
- test/dummy/config.ru
|
277
|
-
- test/dummy/Rakefile
|
278
|
-
- test/dummy/config/application.rb
|
279
264
|
- test/dummy/config/secrets.yml
|
280
265
|
- test/dummy/config/boot.rb
|
281
|
-
- test/dummy/config/
|
266
|
+
- test/dummy/config/environments/production.rb
|
267
|
+
- test/dummy/config/environments/test.rb
|
268
|
+
- test/dummy/config/environments/development.rb
|
269
|
+
- test/dummy/config/application.rb
|
270
|
+
- test/dummy/config/routes.rb
|
271
|
+
- test/dummy/config/initializers/wrap_parameters.rb
|
282
272
|
- test/dummy/config/initializers/session_store.rb
|
283
273
|
- test/dummy/config/initializers/cookies_serializer.rb
|
284
274
|
- test/dummy/config/initializers/assets.rb
|
285
|
-
- test/dummy/config/initializers/
|
275
|
+
- test/dummy/config/initializers/filter_parameter_logging.rb
|
286
276
|
- test/dummy/config/environment.rb
|
287
|
-
- test/dummy/
|
288
|
-
- test/dummy/
|
289
|
-
- test/dummy/
|
290
|
-
- test/dummy/
|
277
|
+
- test/dummy/Rakefile
|
278
|
+
- test/dummy/bin/bundle
|
279
|
+
- test/dummy/bin/rails
|
280
|
+
- test/dummy/bin/rake
|
281
|
+
- test/dummy/bin/setup
|
282
|
+
- test/dummy/public/422.html
|
283
|
+
- test/dummy/public/favicon.ico
|
284
|
+
- test/dummy/public/404.html
|
285
|
+
- test/dummy/public/500.html
|
286
|
+
- test/dummy/app/views/layouts/application.html.erb
|
287
|
+
- test/dummy/app/views/icons/show.html.erb
|
288
|
+
- test/dummy/app/controllers/icons_controller.rb
|
289
|
+
- test/dummy/app/controllers/application_controller.rb
|
291
290
|
- test/dummy/README.md
|
292
|
-
- test/
|
291
|
+
- test/dummy/config.ru
|
293
292
|
- test/test_helper.rb
|
293
|
+
- test/unit/payment_icon_test.rb
|