Sha256: c51814cfbd18af0114acabd49f8d211035814905b4c4e302ceb51cde4944503b

Contents?: true

Size: 1.24 KB

Versions: 5

Compression:

Stored size: 1.24 KB

Contents

# Kinja

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

## Installation

Add this line to your application's Gemfile:

```ruby
gem 'kinja'
```

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install kinja

## Usage

```ruby
# 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
1. `rake build`
1. `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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
kinja-0.0.23 README.md
kinja-0.0.22 README.md
kinja-0.0.21 README.md
kinja-0.0.20 README.md
kinja-0.0.19 README.md