Socket
Book a DemoInstallSign in
Socket

tdiary-io-mongodb

Package Overview
Dependencies
Maintainers
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tdiary-io-mongodb

5.1.1
bundlerRubygems
Version published
Maintainers
2
Created
Source

TDiary::IO::MongoDB

mongoid adapter for tDiary

Installation

Add this line to your tDiary's Gemfile.local:

gem 'tdiary-io-mongodb'

And then execute:

$ bundle

Usage

Add follow snipet to your tdiary.conf

@io_class = TDiary::IO::MongoDB

Migration

bin/tdiary-mongodb-convert is utility that uploads tDiary default IO data to MongoDB.

(1) Migrate tDiary configuration

Migrate your tDiary configuration to MongoDB.

$ bundle exec tdiary-mongodb-convert -c $DATA_PATH/tdiary.conf -m $MONGODB_URI
  • $MONGODB_URI: the uri of mongodb (mongodb://)
  • $DATA_PATH: the path of your tdiary data directory

(2) Migrate tDiary data

Migrate your tDiary data to MongoDB.

$ bundle exec tdiary-mongodb-convert -s ./lib/tdiary/style -m $MONGODB_URI $DATA_PATH
  • $MONGODB_URI: the uri of mongodb (mongodb://)
  • $DATA_PATH: the path of your tdiary data directory

Note

If you use the style provided by an external gem (like GFM style), append the gem to Gemfile and run bundle.

gem 'tdiary-style-gfm'
gem 'tdiary-style-etdiary'
gem 'tdiary-style-rd

See also

  • http://sho.tdiary.net/20150206.html#p01 (in Japanese)

Contributing

  • Fork it
  • Create your feature branch (git checkout -b my-new-feature)
  • Commit your changes (git commit -am 'Add some feature')
  • Push to the branch (git push origin my-new-feature)
  • Create new Pull Request

FAQs

Package last updated on 05 May 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.