github-markdown-preview 3.1.4 → 4.0.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: 3575a68bacf55c084595f32dae8b129c37135692
4
- data.tar.gz: a45a8f046a1570b453ecccfe6586537410ae4fcc
3
+ metadata.gz: b7ff58b9e391d6d4dbdce380134e508bb0cf42ac
4
+ data.tar.gz: 8bd3e79ec1685b7170b04294a6aa28c694fd3339
5
5
  SHA512:
6
- metadata.gz: e85b02289a276565c2ccfaf50a4b0754aa2843e67e6c89d1ece78f8a55b3da1771f15abb8ef336665f7e9fcb0f4441f12f6fd8e53044ea63cac984fd2d81249d
7
- data.tar.gz: 6e2b2acfa50a36f5789646403a9c7f3e8f35e11b3f8c30a8f98fc9bd07dca0d0dd2231f67931f5b006bf376f27fa24a03abf777d190b6263e6074a9d49c2331a
6
+ metadata.gz: 9e4ab638cf335b5f63849097d440b374b3fca6da494f34002cbfc2e1f8952a165dbe5110a3ec9678a82f3dc5591ff6f6c2223344e2dd5a8a3f50ab2ae93aee6a
7
+ data.tar.gz: db30eeacdacf4d709d1796b6a047528dd8af773747c731ff3909cfdc4227984cd5ab79f4a6a414505225b55a0686a5a43c3971e773ce4cec0e947e38bb605d93
@@ -1,6 +1,5 @@
1
1
  language: ruby
2
2
  rvm:
3
- - "1.9"
4
3
  - "2.0"
5
4
  - "2.1"
6
5
  - "2.2"
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## v4.0.0
4
+ * **Breaking changes:**
5
+ - Drop Ruby 1.9 support and upgrade all dependencies to latest [#39](https://github.com/dmarcotte/github-markdown-preview/pull/39)
6
+
3
7
  ## v3.1.4
4
8
  * Fix `unitialized constant GitHub (NameError)` [#36](https://github.com/dmarcotte/github-markdown-preview/pull/36)
5
9
 
@@ -5,8 +5,5 @@ source 'https://rubygems.org'
5
5
 
6
6
  gemspec
7
7
 
8
- if RUBY_VERSION =~ /1.8/
9
- gem 'escape_utils', '~> 0.3'
10
- end
11
-
12
8
  gem 'github-linguist', '3.3.1'
9
+ gem 'rugged', '0.23.0'
@@ -13,20 +13,13 @@ Gem::Specification.new do |s|
13
13
  s.description = %q{Local previews for Github markdown}
14
14
  s.license = 'MIT'
15
15
 
16
- s.add_dependency 'listen', '2.8'
17
- s.add_dependency 'html-pipeline', '~> 1.11'
18
- s.add_dependency 'sanitize', '~> 3.0'
19
- s.add_dependency 'github-markdown', '~> 0.6'
20
- s.add_dependency 'gemoji', '~> 2.1'
21
-
22
- ##
23
- # need to pin json to 1.8.1 for now because of an odd issue with
24
- # 1.8.2 that leads to https://github.com/dmarcotte/github-markdown-preview/issues/35
25
- # todo: lift this restriction eventually
26
- s.add_dependency 'json', '1.8.1'
16
+ s.add_dependency 'listen', '3.0.3'
17
+ s.add_dependency 'html-pipeline', '2.0'
18
+ s.add_dependency 'sanitize', '4.0.0'
19
+ s.add_dependency 'github-markdown', '0.6.8'
20
+ s.add_dependency 'gemoji', '2.1.0'
27
21
 
28
22
  s.add_development_dependency 'minitest', '~> 5.4'
29
- s.add_development_dependency 'bundler', '~> 1.7'
30
23
  s.add_development_dependency 'rake', '~> 10.3'
31
24
 
32
25
  s.files = `git ls-files`.split("\n")
@@ -1,3 +1,3 @@
1
1
  module GithubMarkdownPreview
2
- VERSION = '3.1.4'
2
+ VERSION = '4.0.0'
3
3
  end
data/readme.md CHANGED
@@ -35,11 +35,11 @@ $ github-markdown-preview -c <path/to/comment/draft.md> # writes <path/to/commen
35
35
 
36
36
  ### Enable syntax highlighting for code blocks
37
37
  To enable syntax highlighting for code blocks, you will need to install [`github-linguist`](https://github.com/github/linguist):
38
- ```
39
- gem install github-linguist -v 3.3.1
40
- ```
41
38
 
42
- (Note that version 3.3.1 is required)
39
+ ```bash
40
+ gem install github-linguist -v 3.3.1 # 3.3.1 is required
41
+ gem install rugged -v 0.23.0 # undeclared dependency of linguist
42
+ ```
43
43
 
44
44
  Note that this install will fail unless your system meets the requirements needed to build its native extensions:
45
45
  * You will to either `brew install icu4c` or `apt-get install libicu-dev`
@@ -1,4 +1,3 @@
1
- require_relative '../test_helper'
2
1
  require 'bundler/setup'
3
2
  require 'minitest/autorun'
4
3
  require 'github-markdown-preview'
@@ -1,4 +1,3 @@
1
- require_relative 'test_helper'
2
1
  require 'minitest/autorun'
3
2
 
4
3
  class TestBin < Minitest::Test
@@ -23,4 +22,4 @@ class TestBin < Minitest::Test
23
22
  assert_match /.*No such file/, io.read, 'Bad file name should get a helpful error'
24
23
  end
25
24
  end
26
- end
25
+ end
@@ -1,13 +1,15 @@
1
- require_relative 'test_helper'
2
1
  require 'github-markdown-preview'
3
2
  require 'minitest/autorun'
4
3
  require 'tmpdir'
5
4
 
6
5
  begin
6
+ gem 'github-linguist', '=3.3.1'
7
7
  require 'linguist'
8
8
  LINGUIST_LOADED = true
9
+ puts "\nTesting with syntax highlighting ENABLED\n\n"
9
10
  rescue LoadError => _
10
11
  LINGUIST_LOADED = false
12
+ puts "\nTesting with syntax highlighting DISENABLED. Use BUNDLE_GEMFILE=Gemfile.optional to enable\n\n"
11
13
  end
12
14
 
13
15
  class TestHtmlPreview < Minitest::Test
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: github-markdown-preview
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.4
4
+ version: 4.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Marcotte
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-01-31 00:00:00.000000000 Z
11
+ date: 2015-08-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: listen
@@ -16,84 +16,70 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: '2.8'
19
+ version: 3.0.3
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: '2.8'
26
+ version: 3.0.3
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: html-pipeline
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - '='
32
32
  - !ruby/object:Gem::Version
33
- version: '1.11'
33
+ version: '2.0'
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: '1.11'
40
+ version: '2.0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: sanitize
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - "~>"
45
+ - - '='
46
46
  - !ruby/object:Gem::Version
47
- version: '3.0'
47
+ version: 4.0.0
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: '3.0'
54
+ version: 4.0.0
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: github-markdown
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - "~>"
59
+ - - '='
60
60
  - !ruby/object:Gem::Version
61
- version: '0.6'
61
+ version: 0.6.8
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: '0.6'
68
+ version: 0.6.8
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: gemoji
71
- requirement: !ruby/object:Gem::Requirement
72
- requirements:
73
- - - "~>"
74
- - !ruby/object:Gem::Version
75
- version: '2.1'
76
- type: :runtime
77
- prerelease: false
78
- version_requirements: !ruby/object:Gem::Requirement
79
- requirements:
80
- - - "~>"
81
- - !ruby/object:Gem::Version
82
- version: '2.1'
83
- - !ruby/object:Gem::Dependency
84
- name: json
85
71
  requirement: !ruby/object:Gem::Requirement
86
72
  requirements:
87
73
  - - '='
88
74
  - !ruby/object:Gem::Version
89
- version: 1.8.1
75
+ version: 2.1.0
90
76
  type: :runtime
91
77
  prerelease: false
92
78
  version_requirements: !ruby/object:Gem::Requirement
93
79
  requirements:
94
80
  - - '='
95
81
  - !ruby/object:Gem::Version
96
- version: 1.8.1
82
+ version: 2.1.0
97
83
  - !ruby/object:Gem::Dependency
98
84
  name: minitest
99
85
  requirement: !ruby/object:Gem::Requirement
@@ -108,20 +94,6 @@ dependencies:
108
94
  - - "~>"
109
95
  - !ruby/object:Gem::Version
110
96
  version: '5.4'
111
- - !ruby/object:Gem::Dependency
112
- name: bundler
113
- requirement: !ruby/object:Gem::Requirement
114
- requirements:
115
- - - "~>"
116
- - !ruby/object:Gem::Version
117
- version: '1.7'
118
- type: :development
119
- prerelease: false
120
- version_requirements: !ruby/object:Gem::Requirement
121
- requirements:
122
- - - "~>"
123
- - !ruby/object:Gem::Version
124
- version: '1.7'
125
97
  - !ruby/object:Gem::Dependency
126
98
  name: rake
127
99
  requirement: !ruby/object:Gem::Requirement
@@ -166,7 +138,6 @@ files:
166
138
  - test/filter/task_list_filter_test.rb
167
139
  - test/github-markdown-preview_test.rb
168
140
  - test/html_preview_test.rb
169
- - test/test_helper.rb
170
141
  homepage: https://github.com/dmarcotte/github-markdown-preview
171
142
  licenses:
172
143
  - MIT
@@ -187,7 +158,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
187
158
  version: '0'
188
159
  requirements: []
189
160
  rubyforge_project:
190
- rubygems_version: 2.4.5
161
+ rubygems_version: 2.4.7
191
162
  signing_key:
192
163
  specification_version: 4
193
164
  summary: Use your favorite editor plus the usual edit/refresh cycle to quickly write
@@ -196,4 +167,3 @@ test_files:
196
167
  - test/filter/task_list_filter_test.rb
197
168
  - test/github-markdown-preview_test.rb
198
169
  - test/html_preview_test.rb
199
- - test/test_helper.rb
@@ -1,3 +0,0 @@
1
- # ensure celluloid plays nice with minitest. See https://github.com/celluloid/celluloid/pull/162
2
- require 'celluloid/test.rb'
3
- Celluloid.boot