agilibox 1.5.2 → 1.5.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 72c470fa0cf544cfdf7897ea7ef69491f36e7a3e993f137f28a3735ef24acee1
4
- data.tar.gz: 1a7cefd920276398382bb06f5df8d6e6a19055a0ee7206609d154de3f8ed452f
3
+ metadata.gz: eed2492d572a37237541595041a3361e816e1e876c450c7851bde6e1eddb06b4
4
+ data.tar.gz: 74bf7d7f345b10ea0b79f0d3f28b6f54365887aba5d5e8de73859bc24d4b2e4c
5
5
  SHA512:
6
- metadata.gz: d5900e8e0b9c7c325463ce8f75395375e5cf3714f8c7c15763de164e83c67cb71681315a065dde11f139c23b3f171b458037333ec162bb75c8044ffd254e0873
7
- data.tar.gz: b5c5b04c3d71a5757b3f933d510a25591c813b0efdd061a0d53a70c2c3bfbe351322b67eaae68516ec6c5ddb5ac624a7172bd5d5bc5ecc59596573e58c2e0c9c
6
+ metadata.gz: 50dcd18b1d21c3eb7d5a21584ed00e9bf2aef7b9180921514b85489299664d51539b306073a8b9aee4195df1dd7c2b5db0efb0746d94d153de87fcb2168b6f1b
7
+ data.tar.gz: e74c60b4a6cbb182c17a74b44c9a88ae9ead35d59dabf408a46a7f64996a13711d4bf83c1b163f192da3a9f2e088798cc73b31187563bd10000aff70727c1e25
data/CHANGELOG.md CHANGED
@@ -2,6 +2,9 @@
2
2
 
3
3
  ## Next version
4
4
 
5
+ ## 1.5.3
6
+ - Fix FontAwesome >=5.6
7
+
5
8
  ## 1.5.2
6
9
  - GetHTTP service improvements
7
10
  - New common steps + improvements
@@ -32,10 +32,20 @@ module Agilibox::FontAwesomeHelper
32
32
  File.read(database_path)
33
33
  end
34
34
 
35
+ def database_url
36
+ short_version = version[0, 5]
37
+ url = "https://raw.githubusercontent.com/FortAwesome/Font-Awesome/#{short_version}/metadata/icons.yml"
38
+
39
+ if short_version < "5.6.0"
40
+ url = url.gsub("/metadata", "/advanced-options/metadata")
41
+ end
42
+
43
+ url
44
+ end
45
+
35
46
  def download_database!
36
47
  require "open-uri"
37
- url = "https://raw.githubusercontent.com/FortAwesome/Font-Awesome/#{version[0, 5]}/advanced-options/metadata/icons.yml"
38
- data = URI.parse(url).open.read
48
+ data = URI.parse(database_url).open.read
39
49
  File.write(database_path, data)
40
50
  end
41
51
 
@@ -1,3 +1,3 @@
1
1
  module Agilibox
2
- VERSION = "1.5.2"
2
+ VERSION = "1.5.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: agilibox
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.2
4
+ version: 1.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - agilidée
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-12-15 00:00:00.000000000 Z
11
+ date: 2019-01-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails-i18n
@@ -211,8 +211,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
211
211
  - !ruby/object:Gem::Version
212
212
  version: '0'
213
213
  requirements: []
214
- rubyforge_project:
215
- rubygems_version: 2.7.6
214
+ rubygems_version: 3.0.1
216
215
  signing_key:
217
216
  specification_version: 4
218
217
  summary: Agilibox