gh-preview 1.0.1 → 1.0.2

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: bd470d5710b31e916d472e9679f0b42a4905c1cb
4
- data.tar.gz: 6fe32eeac45e8f3901843406ff1d249555b1ec8e
3
+ metadata.gz: 5bc8e42509d3b867406d43355408042c4e5564c8
4
+ data.tar.gz: b1e60332bfd48625c74e3dad264b436417a3fc29
5
5
  SHA512:
6
- metadata.gz: 9cc744751da55f3855f7b198701e07a0af06e8da633ceda7216a688d4a9f96b61581b9a443f5adf15afe8a411b1771a4ace71028d2ef4bafc65e70541735af34
7
- data.tar.gz: a2b0ffb4d5b4044ccb0b88d87a411f9f7ed2e1aeeea1cefb6de363225135fc602347722d07de05e6b464778186c17dc6007f35bf5d8e1fa2ad883c12b8ef15a8
6
+ metadata.gz: 33b38150a7c1cff5537c6d28fa418c7bed49c181455ef65de886d68c3874130df80f10a24ddd7bae392b20ccdc7f5ddd535fdf054920d312b556f6c576f8e2f7
7
+ data.tar.gz: 87d083671e0180c008ae60861286d0e462b162c42ee5a126444b551b7140e33e815658408bb0ce6e5fa8c012780464b6447b300ca527f9c9c42df6ef53b844b3
@@ -1,7 +1,6 @@
1
1
  language: ruby
2
2
  sudo: false
3
+ cache: bundler
3
4
  rvm:
4
- - 2.3.0
5
- - 2.2.0
6
- - 2.1.0
7
- - 2.0.0
5
+ - 2.3.3
6
+ - 2.2.6
data/Rakefile CHANGED
@@ -6,6 +6,7 @@ require 'rspec/core/rake_task'
6
6
 
7
7
  desc 'Start unit tests'
8
8
  task test: :default
9
+ task spec: :default
9
10
 
10
11
  task :default do
11
12
  RSpec::Core::RakeTask.new(:spec) do |config|
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
+ require 'bundler/setup'
3
4
  require 'gh_preview'
4
-
5
5
  GhPreview::Runner.start(ARGV)
@@ -1,6 +1,6 @@
1
1
  module GhPreview
2
2
  module Config
3
- extend self
3
+ module_function
4
4
 
5
5
  NAME = 'GitHub Preview'
6
6
  GITHUB_URL = 'https://github.com/jbox-web/gh-preview'
@@ -16,12 +16,9 @@ module GhPreview
16
16
  end
17
17
 
18
18
 
19
- private
20
-
21
-
22
- def gem_path
23
- Gem::Specification.find_by_name('gh-preview').gem_dir
24
- end
19
+ def gem_path
20
+ Gem::Specification.find_by_name('gh-preview').gem_dir
21
+ end
25
22
 
26
23
  end
27
24
  end
@@ -3,29 +3,26 @@ require 'task_list/filter'
3
3
 
4
4
  module GhPreview
5
5
  module Converter
6
- extend self
6
+ module_function
7
7
 
8
8
  def to_html(markdown)
9
9
  pipeline.call(markdown)[:output].to_s
10
10
  end
11
11
 
12
12
 
13
- private
14
-
15
-
16
- def pipeline
17
- HTML::Pipeline.new(filters)
18
- end
13
+ def pipeline
14
+ HTML::Pipeline.new(filters)
15
+ end
19
16
 
20
17
 
21
- def filters
22
- [
23
- GhPreview::RedcarpetFilter,
24
- TaskList::Filter,
25
- HTML::Pipeline::AutolinkFilter,
26
- HTML::Pipeline::TableOfContentsFilter
27
- ]
28
- end
18
+ def filters
19
+ [
20
+ GhPreview::RedcarpetFilter,
21
+ TaskList::Filter,
22
+ HTML::Pipeline::AutolinkFilter,
23
+ HTML::Pipeline::TableOfContentsFilter
24
+ ]
25
+ end
29
26
 
30
27
  end
31
28
  end
@@ -1,3 +1,3 @@
1
1
  module GhPreview
2
- VERSION = '1.0.1'
2
+ VERSION = '1.0.2'
3
3
  end
@@ -7,10 +7,9 @@ require 'codeclimate-test-reporter'
7
7
  require 'support/helper'
8
8
 
9
9
  ## Configure SimpleCov
10
- SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
10
+ SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter.new([
11
11
  SimpleCov::Formatter::HTMLFormatter,
12
- CodeClimate::TestReporter::Formatter
13
- ]
12
+ ])
14
13
 
15
14
  ## Start Simplecov
16
15
  SimpleCov.start do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gh-preview
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nicolas Rodriguez
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-05-29 00:00:00.000000000 Z
11
+ date: 2016-12-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -339,7 +339,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
339
339
  version: '0'
340
340
  requirements: []
341
341
  rubyforge_project:
342
- rubygems_version: 2.4.8
342
+ rubygems_version: 2.5.2
343
343
  signing_key:
344
344
  specification_version: 4
345
345
  summary: A small gem to preview GitHub README files