read_later 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -60,6 +60,22 @@ class ReadLater
60
60
  EOF
61
61
  end
62
62
 
63
+ def readability_button
64
+ button = <<-EOF
65
+ <div id='rdbWrapper'></div>
66
+ <script type='text/javascript'>
67
+ (function() {
68
+ var s = document.getElementsByTagName('script')[0],
69
+ rdb = document.createElement('script');
70
+ rdb.type = 'text/javascript';
71
+ rdb.async = true;
72
+ rdb.src = document.location.protocol + '//www.readability.com/embed.js';
73
+ s.parentNode.insertBefore(rdb, s);
74
+ })();
75
+ </script>
76
+ EOF
77
+ end
78
+
63
79
  alias_method :read_later_button, :instapaper_button
64
80
  end
65
81
 
Binary file
@@ -2,12 +2,12 @@ require 'rubygems'
2
2
 
3
3
  SPEC = Gem::Specification.new do |s|
4
4
  s.name = "read_later"
5
- s.version = "0.1.1"
5
+ s.version = "0.1.2"
6
6
  s.author = "Bryan Woods"
7
7
  s.email = "bryanwoods4e@gmail.com"
8
8
  s.platform = Gem::Platform::RUBY
9
- s.description = "Read Later buttons for Instapaper."
10
- s.summary = "Generates a Read Later button from a URL for saving to Instapaper."
9
+ s.description = "Read Later buttons for Instapaper and Readability."
10
+ s.summary = "Generates a Read Later button from a URL for saving to Instapaper or Readability."
11
11
  s.rubyforge_project = "read_later"
12
12
  s.homepage = "http://github.com/bryanwoods/read_later"
13
13
  s.files = Dir.glob("**/*")
metadata CHANGED
@@ -3,22 +3,22 @@ name: read_later
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease: false
5
5
  segments:
6
- - 0
7
- - 1
8
- - 1
9
- version: 0.1.1
6
+ - 0
7
+ - 1
8
+ - 2
9
+ version: 0.1.2
10
10
  platform: ruby
11
11
  authors:
12
- - Bryan Woods
12
+ - Bryan Woods
13
13
  autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-06-18 00:00:00 -04:00
17
+ date: 2011-02-06 00:00:00 -05:00
18
18
  default_executable:
19
19
  dependencies: []
20
20
 
21
- description: Read Later buttons for Instapaper.
21
+ description: Read Later buttons for Instapaper and Readability.
22
22
  email: bryanwoods4e@gmail.com
23
23
  executables: []
24
24
 
@@ -27,13 +27,14 @@ extensions: []
27
27
  extra_rdoc_files: []
28
28
 
29
29
  files:
30
- - examples/application.rb
31
- - lib/read_later.rb
32
- - LICENSE
33
- - pkg/read_later-0.1.0.gem
34
- - read_later.gemspec
35
- - README.md
36
- - test/test_read_later.rb
30
+ - LICENSE
31
+ - read_later.gemspec
32
+ - README.md
33
+ - examples/application.rb
34
+ - lib/read_later.rb
35
+ - pkg/read_later-0.1.0.gem
36
+ - pkg/read_later-0.1.1.gem
37
+ - test/test_read_later.rb
37
38
  has_rdoc: true
38
39
  homepage: http://github.com/bryanwoods/read_later
39
40
  licenses: []
@@ -42,27 +43,27 @@ post_install_message:
42
43
  rdoc_options: []
43
44
 
44
45
  require_paths:
45
- - lib
46
+ - lib
46
47
  required_ruby_version: !ruby/object:Gem::Requirement
47
48
  requirements:
48
- - - ">="
49
- - !ruby/object:Gem::Version
50
- segments:
51
- - 0
52
- version: "0"
49
+ - - ">="
50
+ - !ruby/object:Gem::Version
51
+ segments:
52
+ - 0
53
+ version: "0"
53
54
  required_rubygems_version: !ruby/object:Gem::Requirement
54
55
  requirements:
55
- - - ">="
56
- - !ruby/object:Gem::Version
57
- segments:
58
- - 0
59
- version: "0"
56
+ - - ">="
57
+ - !ruby/object:Gem::Version
58
+ segments:
59
+ - 0
60
+ version: "0"
60
61
  requirements: []
61
62
 
62
63
  rubyforge_project: read_later
63
64
  rubygems_version: 1.3.6
64
65
  signing_key:
65
66
  specification_version: 3
66
- summary: Generates a Read Later button from a URL for saving to Instapaper.
67
+ summary: Generates a Read Later button from a URL for saving to Instapaper or Readability.
67
68
  test_files: []
68
69