nb_util 0.4.5 → 0.4.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/nb_util/ipynb2tex.rb +8 -1
- data/lib/nb_util/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 328951c7c1dc5885dd1b6b7f83be2802aee2c0cd1c655ad083c0a6db4d31767f
|
4
|
+
data.tar.gz: 1ec2b8a8d782227377ede403e76499a00f0f1afd71301bd4b0471e0409cf4bb3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2a16e7b13024e581a107da8abfb84217ec2742ce50768a9a2738fc1809acb99a68597e4bb6e248892e11e7db28f895a875fb2f5d732f4e067360aef6108d68ea
|
7
|
+
data.tar.gz: c7a809a211dc8358602866123b0da9885a99b23baaeab6be4e5ac04c80801194247ecd0f672b42d70aba31d4b82aee8e8d2c45aa408d0ae373dea473b73e54ff
|
data/Gemfile.lock
CHANGED
data/lib/nb_util/ipynb2tex.rb
CHANGED
@@ -10,7 +10,14 @@ module NbUtil
|
|
10
10
|
module_function
|
11
11
|
def ipynb2tex_thesis(target)
|
12
12
|
loop do
|
13
|
-
|
13
|
+
target_parent = File.dirname(target)
|
14
|
+
exist_info = File.join(target_parent, 'mk_latex/split_files/informations/informations.tex')
|
15
|
+
if File.exist?(exist_info)
|
16
|
+
FileUtils.mkdir_p(target_parent + '/split_files/informations')
|
17
|
+
FileUtils.cp(exist_info, target_parent)
|
18
|
+
else
|
19
|
+
your_informations(ARGV[1], "thesis")
|
20
|
+
end
|
14
21
|
print "Are you ok with it?: "
|
15
22
|
input = STDIN.gets.to_s.chomp
|
16
23
|
if input == 'Y' || input == 'y'
|
data/lib/nb_util/version.rb
CHANGED