octodown 1.4.2 → 1.5.0

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
  SHA1:
3
- metadata.gz: 6a531a7522c46d3268a13438f70d95a6cda40b44
4
- data.tar.gz: 7aec5cd981f01c760edfb5398fb6daf9f5a52b9e
3
+ metadata.gz: fbe19169a3a245b83da43ee47b1606fc634bb5c0
4
+ data.tar.gz: e323059ba601455377c2c60032216a946e10eae9
5
5
  SHA512:
6
- metadata.gz: 61fcf9f255aca9065abe69807749e6f266881b63999bdf170f1e64de2535a61cb08c41b809fe532e27994a08b3b085d9ab1abd1a4377f3e46dc012030544375f
7
- data.tar.gz: 85d04f8d4f6d81602108d62fe066f8e7cdd019dcf6774bc1f43b376959fd010ff7ec687cdd8f3353ef36a4ce5ba55492e5ae16a02ac786be13a38f07d17085ef
6
+ metadata.gz: 319e9f38f35f994a439796183681a7bde5fbbd87891d044898bb3bb999214cd8a58262dae4d8d354f77c421e02aad627c66e11a03805834b7ef9a385cc1a8a8d
7
+ data.tar.gz: 012333c6768d5ed6aba996fc72ea2903c0d82c1923efa36b9b66d24ac66971bfa8a13f573afd888e5ba769f8913b044aac6a2652f09d6fb577092a2f771f8379
@@ -120,8 +120,14 @@ module Octodown
120
120
  end
121
121
 
122
122
  def render_md(f)
123
- f.rewind unless f.pos == 0
124
- Renderer::GithubMarkdown.render f, options
123
+ begin
124
+ file_to_render = File.new(f.path, 'r')
125
+ f.close
126
+ rescue Errno::ENOENT
127
+ puts '[WARN] failed to read changes'
128
+ return
129
+ end
130
+ Renderer::GithubMarkdown.render file_to_render, options
125
131
  end
126
132
  end
127
133
  end # Support
@@ -1,3 +1,3 @@
1
1
  module Octodown
2
- VERSION = '1.4.2'.freeze
2
+ VERSION = '1.5.0'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: octodown
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.2
4
+ version: 1.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ian Ker-Seymer
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-04-16 00:00:00.000000000 Z
11
+ date: 2017-09-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: github-markup
@@ -156,14 +156,14 @@ dependencies:
156
156
  requirements:
157
157
  - - "~>"
158
158
  - !ruby/object:Gem::Version
159
- version: 3.4.0
159
+ version: 3.10.0
160
160
  type: :runtime
161
161
  prerelease: false
162
162
  version_requirements: !ruby/object:Gem::Requirement
163
163
  requirements:
164
164
  - - "~>"
165
165
  - !ruby/object:Gem::Version
166
- version: 3.4.0
166
+ version: 3.10.0
167
167
  - !ruby/object:Gem::Dependency
168
168
  name: rspec
169
169
  requirement: !ruby/object:Gem::Requirement
@@ -294,7 +294,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
294
294
  version: '0'
295
295
  requirements: []
296
296
  rubyforge_project:
297
- rubygems_version: 2.4.5.1
297
+ rubygems_version: 2.5.2
298
298
  signing_key:
299
299
  specification_version: 4
300
300
  summary: GitHub Markdown straight from your shell.