octodown 1.1.2 → 1.2.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: b9bc4c43d3d265b528e669ed700a8fd1292a3c9f
4
- data.tar.gz: 11e5b0386902b26ad8d482c430ae97aff12c62dd
3
+ metadata.gz: 905e8a5ec36aa9fc97622d7088ab8f175c60772d
4
+ data.tar.gz: c18c023277302c7d17ac134b3458a93048a5d5cf
5
5
  SHA512:
6
- metadata.gz: 86577c2f55547d02b7a64484863caa5c9dc5e6480faec3cb5848e489171e822455348037f6e9827317ae094a7ed605937d6e707f0cc0383ce5a043a5af5beabc
7
- data.tar.gz: ff130de3318be385f8a8256f570c3fd6ac3a54b5a9735303aa4ec556bb74e18c3b005032744ba8b80413bf42993d26a129c268b9a0d9656b48cddcb209e50123
6
+ metadata.gz: 13f8515d4adc2b2e7dd4b5d9e96ad08459043b1f068ce9399bc82ea39f60b00017581577991f91154000a3bdd95b0eb18ea41e4fb614fae032a23d9e7cce5a19
7
+ data.tar.gz: dee24946832039ba63a64eb28ab669bca2b928f41636a73ef86faaf727a560ed556f477bb75996e13f97224ba881e1df8f2cc4990b85530d7687198f7decee59
data/bin/octodown CHANGED
@@ -32,7 +32,7 @@ OptionParser.new do |opts|
32
32
  options[:presenter] = :pdf
33
33
  end
34
34
 
35
- opts.on '-r', '--raw', 'Print raw HTML to STDOUT' do
35
+ opts.on '-r', '--raw', 'Print raw HTML to STDOUT' do
36
36
  options[:presenter] = :raw
37
37
  end
38
38
 
@@ -1,6 +1,6 @@
1
1
  require 'github/markup'
2
- require 'pygments'
3
2
  require 'html/pipeline'
3
+ require 'html/pipeline/rouge_filter'
4
4
  require 'octodown/renderer/renderable'
5
5
 
6
6
  module Octodown
@@ -38,7 +38,7 @@ module Octodown
38
38
  Pipeline::ImageMaxWidthFilter,
39
39
  Pipeline::MentionFilter,
40
40
  Pipeline::EmojiFilter,
41
- Pipeline::SyntaxHighlightFilter
41
+ Pipeline::RougeFilter
42
42
  ], context.merge(gfm: options[:gfm])
43
43
  end
44
44
 
@@ -10,7 +10,7 @@ module Octodown
10
10
  @server = context[:server]
11
11
 
12
12
  filter_images doc.search('img')
13
- filter_links doc.search('a')
13
+ filter_links doc.search('a[href]')
14
14
  end
15
15
 
16
16
  private
@@ -1,3 +1,3 @@
1
1
  module Octodown
2
- VERSION = '1.1.2'
2
+ VERSION = '1.2.0'
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.1.2
4
+ version: 1.2.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: 2015-04-14 00:00:00.000000000 Z
11
+ date: 2015-10-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: github-markup
@@ -16,56 +16,56 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 1.3.1
19
+ version: 1.4.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 1.3.1
26
+ version: 1.4.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: github-linguist
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 4.2.5
33
+ version: 4.6.4
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 4.2.5
40
+ version: 4.6.4
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: html-pipeline
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: 1.11.0
47
+ version: 2.2.1
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: 1.11.0
54
+ version: 2.2.1
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: sanitize
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: 3.1.0
61
+ version: 4.0.0
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: 3.1.0
68
+ version: 4.0.0
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: github-markdown
71
71
  requirement: !ruby/object:Gem::Requirement
@@ -95,19 +95,19 @@ dependencies:
95
95
  - !ruby/object:Gem::Version
96
96
  version: 2.1.0
97
97
  - !ruby/object:Gem::Dependency
98
- name: pygments.rb
98
+ name: html-pipeline-rouge_filter
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
101
  - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: 0.6.0
103
+ version: 1.0.2
104
104
  type: :runtime
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - "~>"
109
109
  - !ruby/object:Gem::Version
110
- version: 0.6.0
110
+ version: 1.0.2
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: launchy
113
113
  requirement: !ruby/object:Gem::Requirement
@@ -128,98 +128,98 @@ dependencies:
128
128
  requirements:
129
129
  - - "~>"
130
130
  - !ruby/object:Gem::Version
131
- version: 1.6.0
131
+ version: 1.6.4
132
132
  type: :runtime
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
136
  - - "~>"
137
137
  - !ruby/object:Gem::Version
138
- version: 1.6.0
138
+ version: 1.6.4
139
139
  - !ruby/object:Gem::Dependency
140
140
  name: thin
141
141
  requirement: !ruby/object:Gem::Requirement
142
142
  requirements:
143
143
  - - "~>"
144
144
  - !ruby/object:Gem::Version
145
- version: 1.6.3
145
+ version: 1.6.4
146
146
  type: :runtime
147
147
  prerelease: false
148
148
  version_requirements: !ruby/object:Gem::Requirement
149
149
  requirements:
150
150
  - - "~>"
151
151
  - !ruby/object:Gem::Version
152
- version: 1.6.3
152
+ version: 1.6.4
153
153
  - !ruby/object:Gem::Dependency
154
154
  name: listen
155
155
  requirement: !ruby/object:Gem::Requirement
156
156
  requirements:
157
157
  - - "~>"
158
158
  - !ruby/object:Gem::Version
159
- version: 2.8.5
159
+ version: 3.0.3
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: 2.8.5
166
+ version: 3.0.3
167
167
  - !ruby/object:Gem::Dependency
168
168
  name: faye-websocket
169
169
  requirement: !ruby/object:Gem::Requirement
170
170
  requirements:
171
171
  - - "~>"
172
172
  - !ruby/object:Gem::Version
173
- version: 0.9.2
173
+ version: 0.10.0
174
174
  type: :runtime
175
175
  prerelease: false
176
176
  version_requirements: !ruby/object:Gem::Requirement
177
177
  requirements:
178
178
  - - "~>"
179
179
  - !ruby/object:Gem::Version
180
- version: 0.9.2
180
+ version: 0.10.0
181
181
  - !ruby/object:Gem::Dependency
182
182
  name: pdfkit
183
183
  requirement: !ruby/object:Gem::Requirement
184
184
  requirements:
185
185
  - - "~>"
186
186
  - !ruby/object:Gem::Version
187
- version: 0.6.2
187
+ version: 0.8.2
188
188
  type: :runtime
189
189
  prerelease: false
190
190
  version_requirements: !ruby/object:Gem::Requirement
191
191
  requirements:
192
192
  - - "~>"
193
193
  - !ruby/object:Gem::Version
194
- version: 0.6.2
194
+ version: 0.8.2
195
195
  - !ruby/object:Gem::Dependency
196
196
  name: rspec
197
197
  requirement: !ruby/object:Gem::Requirement
198
198
  requirements:
199
199
  - - "~>"
200
200
  - !ruby/object:Gem::Version
201
- version: 3.1.0
201
+ version: 3.3.0
202
202
  type: :development
203
203
  prerelease: false
204
204
  version_requirements: !ruby/object:Gem::Requirement
205
205
  requirements:
206
206
  - - "~>"
207
207
  - !ruby/object:Gem::Version
208
- version: 3.1.0
208
+ version: 3.3.0
209
209
  - !ruby/object:Gem::Dependency
210
210
  name: rubocop
211
211
  requirement: !ruby/object:Gem::Requirement
212
212
  requirements:
213
213
  - - "~>"
214
214
  - !ruby/object:Gem::Version
215
- version: 0.28.0
215
+ version: 0.34.2
216
216
  type: :development
217
217
  prerelease: false
218
218
  version_requirements: !ruby/object:Gem::Requirement
219
219
  requirements:
220
220
  - - "~>"
221
221
  - !ruby/object:Gem::Version
222
- version: 0.28.0
222
+ version: 0.34.2
223
223
  - !ruby/object:Gem::Dependency
224
224
  name: bundler
225
225
  requirement: !ruby/object:Gem::Requirement
@@ -316,7 +316,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
316
316
  requirements:
317
317
  - - ">="
318
318
  - !ruby/object:Gem::Version
319
- version: '0'
319
+ version: '2.0'
320
320
  required_rubygems_version: !ruby/object:Gem::Requirement
321
321
  requirements:
322
322
  - - ">="
@@ -324,7 +324,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
324
324
  version: '0'
325
325
  requirements: []
326
326
  rubyforge_project:
327
- rubygems_version: 2.4.5
327
+ rubygems_version: 2.2.2
328
328
  signing_key:
329
329
  specification_version: 4
330
330
  summary: GitHub Markdown straight from your shell.