dakrone-ricepaper 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.
- data/README.txt +3 -1
- data/VERSION +1 -1
- data/examples/add_sites.rb +18 -0
- data/examples/authentication_test.rb +14 -0
- data/ricepaper.gemspec +13 -7
- metadata +9 -6
data/README.txt
CHANGED
@@ -1,4 +1,6 @@
|
|
1
1
|
RicePaper is a tiny little command-line utility to post URLs to
|
2
2
|
InstantPaper. It also works as a Ruby library in a pinch also.
|
3
3
|
|
4
|
-
|
4
|
+
See the examples/ directory for example usage, or use
|
5
|
+
'ricepaper -h' for command-line usage.
|
6
|
+
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.2
|
@@ -0,0 +1,18 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
#
|
3
|
+
# Add sites to Instapaper using Ricepaper
|
4
|
+
#
|
5
|
+
|
6
|
+
require 'ricepaper'
|
7
|
+
|
8
|
+
rp = RicePaper.new("username", "password")
|
9
|
+
|
10
|
+
sites = [
|
11
|
+
"http://google.com",
|
12
|
+
"http://ruby-lang.org",
|
13
|
+
"http://instapaper.com"
|
14
|
+
]
|
15
|
+
|
16
|
+
sites.each { |site|
|
17
|
+
puts "Added #{site}." if rp.add(site)
|
18
|
+
}
|
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
#
|
3
|
+
# Test authenticating the user to Instapaper
|
4
|
+
#
|
5
|
+
|
6
|
+
require 'ricepaper'
|
7
|
+
|
8
|
+
rp = RicePaper.new("username", "password")
|
9
|
+
|
10
|
+
if rp.authenticate
|
11
|
+
puts "Authentication successfull."
|
12
|
+
else
|
13
|
+
puts "Authentication failed."
|
14
|
+
end
|
data/ricepaper.gemspec
CHANGED
@@ -2,11 +2,11 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = %q{ricepaper}
|
5
|
-
s.version = "0.0.
|
5
|
+
s.version = "0.0.2"
|
6
6
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
8
8
|
s.authors = ["Lee Hinman"]
|
9
|
-
s.date = %q{2009-
|
9
|
+
s.date = %q{2009-07-21}
|
10
10
|
s.default_executable = %q{ricepaper}
|
11
11
|
s.description = %q{Ricepaper is a library that allows you to add URLs to Instapaper, either by using it as a CLI or as a Ruby library.}
|
12
12
|
s.email = %q{lee@writequit.org}
|
@@ -15,12 +15,14 @@ Gem::Specification.new do |s|
|
|
15
15
|
"README.txt"
|
16
16
|
]
|
17
17
|
s.files = [
|
18
|
-
"ricepaper.gemspec",
|
19
|
-
"Rakefile",
|
20
|
-
"VERSION",
|
21
18
|
"README.txt",
|
22
|
-
|
23
|
-
|
19
|
+
"Rakefile",
|
20
|
+
"VERSION",
|
21
|
+
"bin/ricepaper",
|
22
|
+
"examples/add_sites.rb",
|
23
|
+
"examples/authentication_test.rb",
|
24
|
+
"lib/ricepaper.rb",
|
25
|
+
"ricepaper.gemspec"
|
24
26
|
]
|
25
27
|
s.homepage = %q{http://github.com/dakrone/ricepaper}
|
26
28
|
s.rdoc_options = ["--charset=UTF-8"]
|
@@ -28,6 +30,10 @@ Gem::Specification.new do |s|
|
|
28
30
|
s.rubyforge_project = %q{writequit}
|
29
31
|
s.rubygems_version = %q{1.3.4}
|
30
32
|
s.summary = %q{A small library for adding URLs to Instapaper}
|
33
|
+
s.test_files = [
|
34
|
+
"examples/add_sites.rb",
|
35
|
+
"examples/authentication_test.rb"
|
36
|
+
]
|
31
37
|
|
32
38
|
if s.respond_to? :specification_version then
|
33
39
|
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dakrone-ricepaper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lee Hinman
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-
|
12
|
+
date: 2009-07-21 00:00:00 -07:00
|
13
13
|
default_executable: ricepaper
|
14
14
|
dependencies: []
|
15
15
|
|
@@ -22,12 +22,14 @@ extensions: []
|
|
22
22
|
extra_rdoc_files:
|
23
23
|
- README.txt
|
24
24
|
files:
|
25
|
-
-
|
25
|
+
- README.txt
|
26
26
|
- Rakefile
|
27
27
|
- VERSION
|
28
|
-
- README.txt
|
29
28
|
- bin/ricepaper
|
29
|
+
- examples/add_sites.rb
|
30
|
+
- examples/authentication_test.rb
|
30
31
|
- lib/ricepaper.rb
|
32
|
+
- ricepaper.gemspec
|
31
33
|
has_rdoc: false
|
32
34
|
homepage: http://github.com/dakrone/ricepaper
|
33
35
|
post_install_message:
|
@@ -54,5 +56,6 @@ rubygems_version: 1.2.0
|
|
54
56
|
signing_key:
|
55
57
|
specification_version: 3
|
56
58
|
summary: A small library for adding URLs to Instapaper
|
57
|
-
test_files:
|
58
|
-
|
59
|
+
test_files:
|
60
|
+
- examples/add_sites.rb
|
61
|
+
- examples/authentication_test.rb
|