backpack_journal 0.0.1 → 0.0.2

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.
@@ -22,7 +22,7 @@ over as maintainer, drop me a line!
22
22
  ##
23
23
 
24
24
  $ backpack_journal setup <subdomain> <user-id> <api-token>
25
- $ backpack_journal entry "Got my daily dose of awesome."
25
+ $ backpack_journal entry Got my daily dose of awesome.
26
26
 
27
27
  I recommend adding an alias in ~/.profile
28
28
 
@@ -12,15 +12,15 @@ module BackpackJournal
12
12
  class CLI < Thor
13
13
  IDENTITY = Pathname.new(File.expand_path("~/.backpack-journal"))
14
14
 
15
- desc "setup USER_ID TOKEN", "set up your Backpack identity"
15
+ desc "setup http(s)://SUBDOMAIN USER_ID TOKEN", "set up your Backpack identity"
16
16
  def setup(subdomain, user_id, token)
17
17
  save_identity(subdomain, user_id, token)
18
18
  end
19
19
 
20
20
  desc "entry MESSAGE", "add a journal entry"
21
- def entry(message)
21
+ def entry(*message)
22
22
  subdomain, user_id, token = load_identity
23
-
23
+ message = message.join(" ")
24
24
  url = "#{subdomain}.backpackit.com/users/#{user_id}/journal_entries.xml"
25
25
 
26
26
  body =<<-END
@@ -1,3 +1,3 @@
1
1
  module BackpackJournal
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: backpack_journal
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
4
+ hash: 27
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 1
10
- version: 0.0.1
9
+ - 2
10
+ version: 0.0.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - John Barnette