erbtex 0.4.1 → 0.4.2

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: 73e049b2407795a0ba4acd0b5e0bb7f962c072695ba245f6a42d12b96bdfea41
4
- data.tar.gz: e15af14509ec54c2fbc4fc4bfadb75d5ff04a0a74b5fb4e1b581cd4d1abae978
3
+ metadata.gz: f067b2e9d4e0a83eb0a956c21623146a1a0bc5471ebc6b0c2f1f6d623c2536b4
4
+ data.tar.gz: 1cf76c21cdd007c9c2d19339ac8d85bd67a094119788f5d3755997b41a16301c
5
5
  SHA512:
6
- metadata.gz: bc69c3a51c63e9514e3fba20a05df2a567328235440e07d49ac612d08c902ac994a1a9687f4916d07b59a51c77c2d98073f2839ad0473ff9594ec62a7fa7e67d
7
- data.tar.gz: 60e4929df42ca88888703ccb57d2a424ed5120d9ed1c25bd4f0feece9ee16878eb1fdd6118ffd0ddc2a9aee49c8133bf1a311ba5934b4c03139e7c610f6f6fc4
6
+ metadata.gz: af2c459fdb7d898bce5857bcd54513db08bc16b10362aa14ccff792c628d9f25728985b3efe800a4c5f46b46839d155cbf65014f5c573cfc5ad8478aa134bcb2
7
+ data.tar.gz: c48ca28f0cd277621ab711a973b69dbcd3d72a7b3bc6e2f2372e022be13bda12e84e6a420dfcd1cead428be08c9f25f62e5c08cc69243d2f7c9b92b8d68eb181
data/.gitignore CHANGED
@@ -1,8 +1,6 @@
1
1
  *.aux
2
2
  *.log
3
- *.etx
4
3
  *.out
5
- *.pdf
6
4
  *.gem
7
5
  *.synctex.gz
8
6
  etc
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- erbtex (0.4.1)
4
+ erbtex (0.4.2)
5
5
  erubis
6
6
  fat_core
7
7
 
data/lib/erbtex/runner.rb CHANGED
@@ -113,7 +113,16 @@ module ErbTeX
113
113
  in_file_absolute = File.absolute_path(File.expand_path(in_file))
114
114
  in_dir = File.dirname(in_file_absolute)
115
115
  in_base = File.basename(in_file_absolute)
116
- in_ext = File.extname(in_file_absolute)
116
+ # Note that File.extname only gets the last extension. We want all
117
+ # extensions following the basename, but we don't count a dot at the
118
+ # beginning of a filename as introducing an extension. So, we cook our
119
+ # own solution here with Regexp's.
120
+ if in_base =~ /[^.](.[^.]+)+\z/
121
+ in_ext = $1
122
+ in_base = File.basename(in_base, in_ext)
123
+ else
124
+ in_ext = ''
125
+ end
117
126
 
118
127
  out_ext = if in_ext.empty?
119
128
  if File.exist?("#{in_file}.tex.erb")
@@ -1,3 +1,3 @@
1
1
  module ErbTeX
2
- VERSION = "0.4.1"
2
+ VERSION = "0.4.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: erbtex
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel E. Doherty