llremote 0.6.0 → 0.6.1

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.
data/README CHANGED
@@ -35,7 +35,13 @@ It's that easy.
35
35
 
36
36
  == Installation
37
37
 
38
- You can install LogiLogi Remote with the following command:
38
+ LogiLogi Remote requires rAtom, which requires libxml-ruby, in ubuntu
39
+ it is installed with apt-get install libxml2.
40
+
41
+ rAtom is a gem, which is pulled in automatically if you install
42
+ llremote.
43
+
44
+ Then you can install LogiLogi Remote with the following command:
39
45
 
40
46
  % [sudo] gem install llremote
41
47
 
@@ -56,7 +56,8 @@ class LLRemote::Logi
56
56
  raise 'Logi needs link, body and title to be created'
57
57
  end
58
58
  collection = Atom::Pub::Collection.new(
59
- :href => LLRemote.server_url + "/do/logis/" + self.link + "/do.xml?user_credentials=" + LLRemote.access_token)
59
+ :href => LLRemote.server_url + "/do/logis/" + self.link +
60
+ "/do.xml?user_credentials=" + LLRemote.access_token)
60
61
  entry = Atom::Entry.new do |e|
61
62
  e.title = self.title
62
63
  e.content = self.parse_body(self.body)
@@ -65,7 +66,8 @@ class LLRemote::Logi
65
66
  begin
66
67
  entry = collection.publish(entry)
67
68
  rescue
68
- raise 'Error: Could not create logi: ' + self.link
69
+ raise 'Error: Could not create logi: ' + self.link +
70
+ '. Wrong credentials ?'
69
71
  end
70
72
 
71
73
  self.set_from_entry(entry)
@@ -83,10 +85,12 @@ class LLRemote::Logi
83
85
  entry.categories = self.parse_tags(self.link)
84
86
 
85
87
  begin
86
- entry.edit_link.href = entry.edit_link.href + "?user_credentials=" + LLRemote.access_token
88
+ entry.edit_link.href = entry.edit_link.href +
89
+ "?user_credentials=" + LLRemote.access_token
87
90
  entry.save!
88
91
  rescue
89
- raise 'Error: Could not update logi: ' + self.link
92
+ raise 'Error: Could not update logi: ' + self.link +
93
+ '. Wrong credentials ?'
90
94
  end
91
95
 
92
96
  self.set_from_entry(entry)
@@ -2,7 +2,7 @@ class LLRemote
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 0
4
4
  MINOR = 6
5
- TINY = 0
5
+ TINY = 1
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
data/lib/l_l_remote.rb CHANGED
@@ -18,7 +18,8 @@ require 'atom'
18
18
  require 'atom/pub'
19
19
 
20
20
  $:.unshift(File.dirname(__FILE__)) unless
21
- $:.include?(File.dirname(__FILE__)) || $:.include?(File.expand_path(File.dirname(__FILE__)))
21
+ $:.include?(File.dirname(__FILE__)) || $:.include?(
22
+ File.expand_path(File.dirname(__FILE__)))
22
23
 
23
24
  class LLRemote
24
25
  ### Class-attributes
@@ -61,9 +62,10 @@ FUN
61
62
  #
62
63
  def self.load_entry(link)
63
64
  begin
64
- return Atom::Entry.load_entry(URI.parse(LLRemote.server_url + "/" + link + "/do.xml"))
65
+ return Atom::Entry.load_entry(URI.parse(LLRemote.server_url + "/" +
66
+ link + "/do.xml"))
65
67
  rescue
66
- raise 'Error: Perhaps wrong credentials ?'
68
+ raise 'Error: Can\'t load: ' + link + '. Perhaps wrong link ?'
67
69
  end
68
70
  end
69
71
  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.0
4
+ version: 0.6.1
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-09 00:00:00 +02:00
12
+ date: 2009-06-29 00:00:00 +02:00
13
13
  default_executable:
14
14
  dependencies: []
15
15