Project

kinja

0.0
No commit activity in last 3 years
No release in over 3 years
Simple gem for creating posts on Kinja
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.7
>= 0
>= 0
~> 10.0
>= 0
>= 0

Runtime

 Project Readme

Kinja

Ruby gem for posting to Kinja (currently only supports Burner accounts)

Installation

Add this line to your application's Gemfile:

gem 'kinja'

And then execute:

$ bundle

Or install it yourself as:

$ gem install kinja

Usage

# Create an instance of the kinja client
client = Kinja.new(
  user: "username",
  password: "password"
)

# Create a post
post = client.create_post(
  headline: '',                       # required
  body: '<p>This is a post</p>',      # required
  status: 'PUBLISHED',                # optional (default is "DRAFT")
  replies: false                      # optional (default is true)
)

# Get a post
post = client.get_post("http://gawker.com/lapd-claims-the-jinx-had-nothing-to-do-with-robert-durs-1691730232")

# ...OR...

post = client.get_post("1691730232")

Publishing update

  1. Bump version in version.rb
  2. rake build
  3. rake release

Contributing

  1. Fork it ( https://github.com/adampash/kinja/fork )
  2. Setup .env file with a test burner account
  3. Create your feature branch (git checkout -b my-new-feature)
  4. Commit your changes with tests (git commit -am 'Add some feature')
  5. Push to the branch (git push origin my-new-feature)
  6. Create a new Pull Request