nippocf 0.0.3 → 0.0.4

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: bb5d0b039099b783e0417b1b8fba3ea68d57b983
4
- data.tar.gz: 9fc6b90ac5ef55707a6e97305b82bb2d20adf9d3
3
+ metadata.gz: 0e8b923c941851dfc87130d1509707d2bb4f95fe
4
+ data.tar.gz: f18dd35a9111c74e654542cf2daf7efada84d237
5
5
  SHA512:
6
- metadata.gz: 653a2820521579eb76aba8b401f00d1500cb136c2c1673080ccbcc95fb8784aab501eddbf41fea6c554546d55e18d7e50568c2be698bf5276943b48a884a5b38
7
- data.tar.gz: 8632d17b6dba93d5a45375f14644c846166e12c6280f6467e05a3ba8585a9e38bf3c6eb0f5725245caad20aa2293dd3086892763cb566d869a08baf573361655
6
+ metadata.gz: 25e851602496813d845042fc50b2e87e1d53b09a1ddecdf9f023a3249aea7ac42b148df27744309fa73bd96cd8c001ae4188c6619f79ab2d02967f96bf12a582
7
+ data.tar.gz: 914bf67e9c659bedc4bd2d58fc883c434de6fe33e98f68b1e4fe24fe8faa1c4d8c6f33f252bb82594d9def0120c87c0745eba26edaffa376543efcba6bad624d
@@ -2,7 +2,7 @@ require 'nippocf'
2
2
  require 'keychain'
3
3
  require 'io/console'
4
4
  require 'confluence/confluence_connector'
5
- require 'redcarpet'
5
+ require 'github/markdown'
6
6
  require 'tmpdir'
7
7
  require 'nokogiri'
8
8
  require 'optparse'
@@ -59,8 +59,7 @@ module Nippocf
59
59
  markdown_text = File.read(filename)
60
60
  end
61
61
 
62
- markdown = Redcarpet::Markdown.new(Redcarpet::Render::HTML, :autolink => true, :space_after_headers => true)
63
- entry['content'] = markdown.render(markdown_text)
62
+ entry['content'] = GitHub::Markdown.render(markdown_text)
64
63
  entry['content'] << "<div class=\"markdown_source\" style=\"display:none\">#{markdown_text}</div>"
65
64
  rpc.storeBlogEntry(entry)
66
65
  end
@@ -1,3 +1,3 @@
1
1
  module Nippocf
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
@@ -17,7 +17,7 @@ Gem::Specification.new do |spec|
17
17
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
18
18
  spec.require_paths = ["lib"]
19
19
 
20
- spec.add_dependency "redcarpet"
20
+ spec.add_dependency "github-markdown"
21
21
  spec.add_dependency "nokogiri"
22
22
  spec.add_dependency "ruby-keychain"
23
23
  spec.add_dependency "socksify"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nippocf
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryota Arai
@@ -11,7 +11,7 @@ cert_chain: []
11
11
  date: 2014-02-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: redcarpet
14
+ name: github-markdown
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - ">="