kinja 0.0.6 → 0.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 399df79a3f8630e612bda480a8a01af7aa3ae36b
4
- data.tar.gz: 11f4e72b17475c316ce84376ccec9e023b39c94a
3
+ metadata.gz: 1ab34c23992a8dfa0c92bc021dd89c2c83a1fc3e
4
+ data.tar.gz: 675d3ee0ddd2c764970f0abbaf6f145c126187fc
5
5
  SHA512:
6
- metadata.gz: 97782bf874c97afd85ef1d970730ac958f6d887ab7417bc05f4edecc2432476b872e2af5e03d51694844bb83661fe2c6815cd35c76204b8b1686a6c9b2a89cf7
7
- data.tar.gz: e087fc2b75b4104b9564d13f36456ea189580b326ce1ee2450bbc2f7f63f39ead5ccda0a2167690fc62684a2e19ec44e5a7256dcb4c8d9c77af8ca4a170f7a5e
6
+ metadata.gz: c45a004ee552fcf1ac39a2dca9f6ec9ba4ff2da09294b764e87fbd31312ac6aad2f0433213f6aee45986305c175795f27f70bc184b0111464759ae948faecf51
7
+ data.tar.gz: 20a1710447a0a705931ea0bbde9846995a5c8cb5673f252d4d88511b65f51d1e03f0a45a398079f5b5ee108d3b1a1094f41fc38f796dc442103f1a832676c805
data/README.md CHANGED
@@ -44,8 +44,6 @@ post = client.get_post("1691730232")
44
44
  ```
45
45
 
46
46
  ## Todo
47
- * Refactor: Shouldn't need to log in to fetch a post
48
- * Find API endpoint to update a post
49
47
  * Build out other common REST endpoints
50
48
 
51
49
  ## Contributing
data/lib/kinja/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Kinja
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
data/lib/kinja.rb CHANGED
@@ -13,8 +13,10 @@ module Kinja
13
13
  AUTHOR_PATH = "/profile/user/views/asAuthor"
14
14
 
15
15
  def initialize(opts={})
16
- @username = opts[:user]
17
- @pass = opts[:password]
16
+ if opts.has_key? :user and opts.has_key? :password
17
+ @username = opts[:user]
18
+ @pass = opts[:password]
19
+ end
18
20
  end
19
21
 
20
22
  def create_post(opts={})
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kinja
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Pash
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-17 00:00:00.000000000 Z
11
+ date: 2015-03-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty