markdown_titles_to_svg 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/markdown_titles_to_svg.rb +6 -6
- data/lib/markdown_titles_to_svg/version.rb +1 -1
- data/markdown_titles_to_svg-0.1.3.gem +0 -0
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 18237a8a7ce03200ecdc351fbff9192fc0014c554714f47e61fbc61ee1c4f0d5
|
4
|
+
data.tar.gz: 04a144455d2433535b7cfa8bee7a53bf03192e1c7dabbb01e0f2a2d6db83d611
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 99359d469192f95bca41bd588cb76efef228897a84314ef7c19531096a0910bc94382cc0334aeeddfc37645b062149db5f31cdd0644cece7df143b63efbe8250
|
7
|
+
data.tar.gz: c54912af53488c44960586ae013247b0e11dbaafafde40270466dba0eef8926ed78cf4ffcb3078ac3f0f2e4640610c2b6a70d924af40d9d78d67ef962b00c264
|
@@ -103,13 +103,13 @@ module MarkdownTitlesToSvg
|
|
103
103
|
FileUtils.mkdir_p ( File.dirname( cmd[:path] ) )
|
104
104
|
File.open( cmd[:path], "w" ) { | f | f.write( svg ) }
|
105
105
|
end
|
106
|
-
end
|
107
106
|
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
107
|
+
obj[:font][:mode].keys.each do | key |
|
108
|
+
if obj[:font][:mode][ key ] == :google_fonts
|
109
|
+
if ( Time.now.getutc.to_i - obj[:font][:current][ key ].split( '-' )[ 1 ].to_i ) < 30
|
110
|
+
if File.basename( obj[:font][:current][ key ] ) .start_with?( key.to_s )
|
111
|
+
File.delete( obj[:font][:current][ key ] )
|
112
|
+
end
|
113
113
|
end
|
114
114
|
end
|
115
115
|
end
|
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: markdown_titles_to_svg
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- a6b8
|
@@ -101,6 +101,7 @@ files:
|
|
101
101
|
- bin/setup
|
102
102
|
- lib/markdown_titles_to_svg.rb
|
103
103
|
- lib/markdown_titles_to_svg/version.rb
|
104
|
+
- markdown_titles_to_svg-0.1.3.gem
|
104
105
|
- markdown_titles_to_svg.gemspec
|
105
106
|
homepage: https://github.com/a6b8/markdown-titles-to-svg-for-ruby
|
106
107
|
licenses:
|