nb_util 0.4.8 → 0.5.1

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: 92eec37d4cc03123b3f8e76f953041a5ce035bdadd4d612dd3b5d8c8b4608da4
4
- data.tar.gz: c43039b7b4dc1a6978cb6cc00930b4f9a8dbd8dafd616eb57f9be37ec10babf9
3
+ metadata.gz: e8b7f7dc83bf6ff1d542cd97c950fd49de13b2a96dd6cfb1d3c38b1298adb85d
4
+ data.tar.gz: ca2ef4e0996a969e710e2549145938cc48c406021530947e6df84de2a84afa55
5
5
  SHA512:
6
- metadata.gz: c827fa8512622ba9ffe0488ecfe603749f8dc0c033a12e71abbefb52bd7874a400016ddd5fd21eca0b96d50bea62c66047165b5e7174f83ea84abb28621411d4
7
- data.tar.gz: 3c809decb9c9cac0852f69b77d2e629d609019d9debb788aa039ffea795a5956e3f724c98595688294eafdafb9b981c894cd5e7a41cb76407bdb94156f4de8a1
6
+ metadata.gz: 21348c39b92eede94cedf52f3f89c9751090262dbd3898d36a3afd5423197e91d2f6b7bf24fd17c9d91b45d6cbd57e44790b868daa864b36b32765bacbd5b445
7
+ data.tar.gz: 1732b161c26fdcb8f62480960cc7457a4b73ecf98656c4bcf5327510658e22c218d6bd244f78c31ce707827de9a509d9ded46e5d38262be29ab65fefd5482f2c
Binary file
data/lib/cli.rb CHANGED
@@ -4,7 +4,6 @@ require 'yaml'
4
4
  require 'json'
5
5
  require 'thor'
6
6
 
7
-
8
7
  module NbUtil
9
8
  class CLI < Thor
10
9
 
@@ -18,3 +18,8 @@
18
18
  \usepackage{amsmath}
19
19
  \usepackage{mathtools}
20
20
  \usepackage{bookmark}
21
+ \usepackage{framed,color}
22
+ \definecolor{shadecolor}{gray}{0.80}
23
+ \usepackage{soul}
24
+ \usepackage{longtable}
25
+ \usepackage{booktabs}
@@ -18,3 +18,7 @@
18
18
  \usepackage{amsmath}
19
19
  \usepackage{mathtools}
20
20
  \usepackage{bookmark}
21
+ \usepackage{framed}
22
+ \usepackage{soul}
23
+ \usepackage{longtable}
24
+ \usepackage{booktabs}
@@ -4,6 +4,7 @@ require 'yaml'
4
4
  require 'json'
5
5
  require "nb_util/version"
6
6
  require 'cli'
7
+ require 'artii'
7
8
 
8
9
  module NbUtil
9
10
  module_function
@@ -13,5 +14,9 @@ module NbUtil
13
14
  str.delete(' ').split(/[\/]/)
14
15
  end
15
16
  name = get_name(directry)
16
- puts "nb_util says hello, #{name[2]} !!"
17
+ # puts "nb_util says hello, #{name[2]} !!"
18
+ a = Artii::Base.new :font => 'slant'
19
+ # a = Artii::Base.new
20
+ puts a.asciify("nb-util says")
21
+ puts a.asciify("hello, #{name[2]} !!")
17
22
  end
@@ -229,12 +229,12 @@ module NbUtil
229
229
  cont = split[0]
230
230
 
231
231
  File.open(splitter[1], 'w') do |f|
232
- f.print splitter[0].gsub(/section/, 'chapter').gsub(/_/,'\_')
232
+ f.print splitter[0].sub(/section/, 'chapter').gsub(/_/,'\_')
233
233
  if num+1 != chapter_size
234
- f.print split[1].to_s.gsub(/\\section{#{chapter[num+1]}}\\label.*/m, '')
234
+ f.print split[1].to_s.sub(/\\section{#{chapter[num+1]}}\\label.*/m, '')
235
235
  end
236
236
  if num+1 == chapter_size
237
- f.print split[1].to_s#.gsub(/_/,'\_')
237
+ f.print split[1].to_s
238
238
  end
239
239
  end
240
240
  end
@@ -1,3 +1,3 @@
1
1
  module NbUtil
2
- VERSION = "0.4.8"
2
+ VERSION = "0.5.1"
3
3
  end
@@ -34,4 +34,6 @@ Gem::Specification.new do |spec|
34
34
  spec.add_development_dependency "rake", "~> 10.0"
35
35
  spec.add_development_dependency "rspec", "~> 3.0"
36
36
  spec.add_dependency "thor"
37
+ spec.add_dependency "artii"
38
+
37
39
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nb_util
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.8
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Masatoshi Kowaki
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-01-24 00:00:00.000000000 Z
11
+ date: 2018-02-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -66,6 +66,20 @@ dependencies:
66
66
  - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: artii
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
69
83
  description: about jupyter utils
70
84
  email:
71
85
  - ferrari.race.beautiful@gmail.com