llremote 0.6.1 → 0.6.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -55,16 +55,15 @@ class LLRemote::Logi
55
55
  self.body.nil? or self.body.empty?
56
56
  raise 'Logi needs link, body and title to be created'
57
57
  end
58
- collection = Atom::Pub::Collection.new(
59
- :href => LLRemote.server_url + "/do/logis/" + self.link +
60
- "/do.xml?user_credentials=" + LLRemote.access_token)
58
+ collection = Atom::Pub::Collection.new(
59
+ :href => LLRemote.server_url + "/do/logis/" + self.link + "/do.xml")
61
60
  entry = Atom::Entry.new do |e|
62
61
  e.title = self.title
63
62
  e.content = self.parse_body(self.body)
64
63
  e.categories = self.parse_tags(self.link)
65
64
  end
66
65
  begin
67
- entry = collection.publish(entry)
66
+ entry = collection.publish(entry, :user => LLRemote.access_token, :pass => "")
68
67
  rescue
69
68
  raise 'Error: Could not create logi: ' + self.link +
70
69
  '. Wrong credentials ?'
@@ -85,9 +84,7 @@ class LLRemote::Logi
85
84
  entry.categories = self.parse_tags(self.link)
86
85
 
87
86
  begin
88
- entry.edit_link.href = entry.edit_link.href +
89
- "?user_credentials=" + LLRemote.access_token
90
- entry.save!
87
+ entry.save!(:user => LLRemote.access_token, :pass => "")
91
88
  rescue
92
89
  raise 'Error: Could not update logi: ' + self.link +
93
90
  '. Wrong credentials ?'
@@ -2,7 +2,7 @@ class LLRemote
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 0
4
4
  MINOR = 6
5
- TINY = 1
5
+ TINY = 2
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: llremote
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.1
4
+ version: 0.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Wybo Wiersma
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-06-29 00:00:00 +02:00
12
+ date: 2009-07-20 00:00:00 +02:00
13
13
  default_executable:
14
14
  dependencies: []
15
15