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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: aeb7d0e3fe812af1a3d4b095541c0ed386c6053f0682215900d43d77a947d2a5
4
- data.tar.gz: bc4cd8e5c7bd394ce6943cd9a30eb9fb56f84addbf99eebd3b7d041063d74c3d
3
+ metadata.gz: 328951c7c1dc5885dd1b6b7f83be2802aee2c0cd1c655ad083c0a6db4d31767f
4
+ data.tar.gz: 1ec2b8a8d782227377ede403e76499a00f0f1afd71301bd4b0471e0409cf4bb3
5
5
  SHA512:
6
- metadata.gz: 2dcf415bd6569ca1dcdc1ebabb630b29a0f6740f2800353251d24b268ba3e5df7b980cfabea3b2f1bed5d1d53b4c5f5b953ee4c2ce3509a63598db80bf026fb3
7
- data.tar.gz: 683f3d6a4059e58aad31503985cd4900231297f15c5a0e0ba7e3a90fc8cd7a8abccbc9144623df6d36eeddd8891c55a0a4a9c3bd1d4359108082ceadb1acb3f0
6
+ metadata.gz: 2a16e7b13024e581a107da8abfb84217ec2742ce50768a9a2738fc1809acb99a68597e4bb6e248892e11e7db28f895a875fb2f5d732f4e067360aef6108d68ea
7
+ data.tar.gz: c7a809a211dc8358602866123b0da9885a99b23baaeab6be4e5ac04c80801194247ecd0f672b42d70aba31d4b82aee8e8d2c45aa408d0ae373dea473b73e54ff
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- nb_util (0.4.4)
4
+ nb_util (0.4.6)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -10,7 +10,14 @@ module NbUtil
10
10
  module_function
11
11
  def ipynb2tex_thesis(target)
12
12
  loop do
13
- your_informations(ARGV[1], "thesis")
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'
@@ -1,3 +1,3 @@
1
1
  module NbUtil
2
- VERSION = "0.4.5"
2
+ VERSION = "0.4.7"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nb_util
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.5
4
+ version: 0.4.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Masatoshi Kowaki