pptxt 0.3.5 → 0.3.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/pptxt +3 -2
- metadata +4 -5
- data/lib/string.rb +0 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8ac779ee90d87341c66f96668b04ecfef1a4e87b
|
4
|
+
data.tar.gz: 70efbe39546656314404b36ef1c9495bd0484556
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5228135aef10ee06f404efd3d7bd2e537d040426001bcccbcc475964f9faa9a0135c61c870a927917ffe9c63ccbc86af9f40ffdc4e92304f3e93d85b06312236
|
7
|
+
data.tar.gz: fffed9c216d4271c679b93219d22078bb81353acd785d7035eeb720d958b7beca62269675f384374c48114b1da6d5d4cf53434b4fefc3c691b26bfc4eccc73fb
|
data/bin/pptxt
CHANGED
@@ -177,12 +177,13 @@ rescue PPtxt::Error => e
|
|
177
177
|
rescue Exception => e
|
178
178
|
$stderr.puts
|
179
179
|
$stderr.puts "Oops! Looks like an error has occured! If the " \
|
180
|
-
"error persists, file a bug at:"
|
180
|
+
"error persists, file a bug at:"
|
181
181
|
$stderr.puts
|
182
182
|
$stderr.puts " https://gitlab.com/mjwhitta/pptxt/issues"
|
183
183
|
$stderr.puts
|
184
184
|
$stderr.puts "Maybe the message below will help. If not, you " \
|
185
|
-
"can use the --verbose flag to get
|
185
|
+
"can use the --verbose flag to get"
|
186
|
+
$stderr.puts "a backtrace."
|
186
187
|
|
187
188
|
$stderr.puts e.message.white.on_red
|
188
189
|
if (options["verbose"])
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pptxt
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Miles Whittaker
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-03-
|
11
|
+
date: 2016-03-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: minitest
|
@@ -79,7 +79,7 @@ dependencies:
|
|
79
79
|
version: '0.1'
|
80
80
|
- - ">="
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: 0.1.
|
82
|
+
version: 0.1.4
|
83
83
|
type: :runtime
|
84
84
|
prerelease: false
|
85
85
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -89,7 +89,7 @@ dependencies:
|
|
89
89
|
version: '0.1'
|
90
90
|
- - ">="
|
91
91
|
- !ruby/object:Gem::Version
|
92
|
-
version: 0.1.
|
92
|
+
version: 0.1.4
|
93
93
|
description: This gem can extract the xml info from a pptx file and convert it to
|
94
94
|
human-readable text. It was intended to be used with git for seeing changes between
|
95
95
|
revisions.
|
@@ -106,7 +106,6 @@ files:
|
|
106
106
|
- lib/pptxt/error/missing_dependency.rb
|
107
107
|
- lib/pptxt/error/unknown_xml.rb
|
108
108
|
- lib/pptxt/slide.rb
|
109
|
-
- lib/string.rb
|
110
109
|
homepage: https://mjwhitta.github.io/pptxt
|
111
110
|
licenses:
|
112
111
|
- GPL-3.0
|
data/lib/string.rb
DELETED
@@ -1,12 +0,0 @@
|
|
1
|
-
# Modify String class to allow for rsplit and word wrap
|
2
|
-
class String
|
3
|
-
def rsplit(pattern)
|
4
|
-
ret = rpartition(pattern)
|
5
|
-
ret.delete_at(1)
|
6
|
-
return ret
|
7
|
-
end
|
8
|
-
|
9
|
-
def word_wrap(width = 80)
|
10
|
-
return scan(/\S.{0,#{width}}\S(?=\s|$)|\S+/).join("\n")
|
11
|
-
end
|
12
|
-
end
|