pptxt 0.3.5 → 0.3.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/bin/pptxt +3 -2
  3. metadata +4 -5
  4. data/lib/string.rb +0 -12
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ee0f088cbafc8acf18a4032651f4cc7cd9987678
4
- data.tar.gz: 50eaaf5ff4322805f3abbcbe9c9ea08d4fcc8206
3
+ metadata.gz: 8ac779ee90d87341c66f96668b04ecfef1a4e87b
4
+ data.tar.gz: 70efbe39546656314404b36ef1c9495bd0484556
5
5
  SHA512:
6
- metadata.gz: efbe6d59deb623df42e9a05a4be5e1bbee8a4efedd6f127b0d82adb9238cedbc9ea61485f787ff83d547659870da5484fb1cfaddd3c415993dd58a744e05b07a
7
- data.tar.gz: 2f4ca9367b9f0f36238f3dda4fcf6e82ffebf642200ff643be9d5c9ba24284467c91a52e2c0e49b0f1b2ee89c0ffc71da01815caa2c5eafc613cdf05f37147be
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:".word_wrap
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 a backtrace.".word_wrap
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.5
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-25 00:00:00.000000000 Z
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.3
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.3
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