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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d0624a1975dce5637462bc4f80c829ee684a717fea9ee09f2bcf6fcba8a14baa
4
- data.tar.gz: 426aa2d3820655b802dbf5898fd0b5079b965c0f0aea0882cdd52a9fbe8c50cd
3
+ metadata.gz: 18237a8a7ce03200ecdc351fbff9192fc0014c554714f47e61fbc61ee1c4f0d5
4
+ data.tar.gz: 04a144455d2433535b7cfa8bee7a53bf03192e1c7dabbb01e0f2a2d6db83d611
5
5
  SHA512:
6
- metadata.gz: c98302754778d80f0f3595293861cbe6050115902d41a0695204570f669f38e47b43c48e6af65dcf6582b0431ce22e1ad424c4201e34947ee10f7f15d9029c19
7
- data.tar.gz: 16e14716757d19b86c807ab3adaad631fc8601ab3e9698c5d30989293b2b957ca7103e6dcb22d936fe6d2c3bf3f35b29ad755d83ad5d182aa87ed22c1644778e
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
- obj[:font][:mode].keys.each do | key |
109
- if obj[:font][:mode][ key ] == :google_fonts
110
- if ( Time.now.getutc.to_i - obj[:font][:current][ key ].split( '-' )[ 1 ].to_i ) < 30
111
- if File.basename( obj[:font][:current][ key ] ) .start_with?( key.to_s )
112
- File.delete( obj[:font][:current][ key ] )
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module MarkdownTitlesToSvg
4
- VERSION = "0.1.3"
4
+ VERSION = "0.1.4"
5
5
  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.3
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: