kymmt90 / hatenablog-writer Goto Github PK
View Code? Open in Web Editor NEW🖋 CLI からはてなブログへ投稿したい人のためのツール
License: MIT License
🖋 CLI からはてなブログへ投稿したい人のためのツール
License: MIT License
文章内に<
が含まれた記事を投稿しようとするとエラーになるようです。
以下のようなシェルの実行ログをトリプルダッシュで囲んで記事に書こうとすると<
が含まれてしまうことがあり困っています。
foo.md
Failed test
<txt
実行例
$ bundle exec hw foo.md
bundler: failed to load command: hw (hw)
NoMethodError: undefined method `[]' for nil:NilClass
/opt/local/lib/ruby2.3/gems/2.3.0/gems/hatenablog-0.2.1/lib/hatenablog/entry.rb:85:in `parse_document'
/opt/local/lib/ruby2.3/gems/2.3.0/gems/hatenablog-0.2.1/lib/hatenablog/entry.rb:81:in `initialize'
/opt/local/lib/ruby2.3/gems/2.3.0/gems/hatenablog-0.2.1/lib/hatenablog/entry.rb:11:in `new'
/opt/local/lib/ruby2.3/gems/2.3.0/gems/hatenablog-0.2.1/lib/hatenablog/entry.rb:11:in `load_xml'
/opt/local/lib/ruby2.3/gems/2.3.0/gems/hatenablog-0.2.1/lib/hatenablog/client.rb:94:in `post_entry'
/Users/ongaeshi/Documents/hatenablog-writer/hb_writer.rb:15:in `post_entry'
hw:49:in `block (3 levels) in <top (required)>'
/opt/local/lib/ruby2.3/2.3.0/open-uri.rb:37:in `open'
/opt/local/lib/ruby2.3/2.3.0/open-uri.rb:37:in `open'
hw:40:in `block (2 levels) in <top (required)>'
hw:38:in `each'
hw:38:in `block in <top (required)>'
/Users/ongaeshi/Documents/hatenablog-writer/hb_writer.rb:7:in `initialize'
hw:37:in `new'
hw:37:in `<top (required)>'
<
などを使えば動くようです。
Failed test
<!-- 10328749687177110674 -->
<txt
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.