netshade-oembed_links 0.0.9 → 0.1.0

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/CREDIT ADDED
@@ -0,0 +1,4 @@
1
+ Thanks to the Indianapolis Star I&D department for open sourcing this; most notably Chris Vannoy for giving the okay.
2
+ Thanks to Kyle Slattery for adding Viddler to the example oembed_links.yml
3
+
4
+ Chris.Zelenak!indystar!com
data/History.txt ADDED
@@ -0,0 +1,9 @@
1
+ === 0.1.0 / 2008-10-16
2
+
3
+ * 2 minor enhancements
4
+
5
+ * added Ruby Tubesday fetcher (http://github.com/DanaDanger/ruby_tubesday)
6
+ * redid gem layout using Hoe
7
+
8
+
9
+
data/Manifest.txt ADDED
@@ -0,0 +1,30 @@
1
+ CREDIT
2
+ History.txt
3
+ Manifest.txt
4
+ README.txt
5
+ Rakefile
6
+ lib
7
+ lib/oembed_links
8
+ lib/oembed_links.rb
9
+ lib/oembed_links/fetchers
10
+ lib/oembed_links/fetchers/net_http.rb
11
+ lib/oembed_links/fetchers/ruby_tubesday.rb
12
+ lib/oembed_links/formatters
13
+ lib/oembed_links/formatters/hpricot_xml.rb
14
+ lib/oembed_links/formatters/json.rb
15
+ lib/oembed_links/formatters/lib_xml.rb
16
+ lib/oembed_links/formatters/ruby_xml.rb
17
+ lib/oembed_links/response.rb
18
+ lib/oembed_links/template_resolver.rb
19
+ oembed_links.gemspec
20
+ oembed_links_example.yml
21
+ rails
22
+ rails/init.rb
23
+ spec
24
+ spec/oembed_links_spec.rb
25
+ spec/oembed_links_test.yml
26
+ spec/spec_helper.rb
27
+ spec/templates
28
+ spec/templates/test.haml
29
+ spec/templates/test.html.erb
30
+ spec/templates/test.rhtml
@@ -1,15 +1,23 @@
1
+ = oembed_links
2
+
3
+ * http://indystar.com/
4
+
5
+ == DESCRIPTION:
6
+
1
7
  This is the oembed_links gem. It allows you to easily parse text and
2
8
  query configured providers for embedding information on the links
3
9
  inside the text. A sample configuration file for configuring the
4
10
  library has been included (oembed_links_example.yml), though you
5
11
  may also configure the library programmatically (see rdocs).
6
12
 
13
+ == REQUIREMENTS:
14
+
7
15
  You must have the JSON gem installed to use oembed_links.
8
16
  If you have the libxml-ruby gem installed, oembed_links will use that;
9
17
  it will fall back to hpricot if that is installed, and finally REXML
10
18
  if you have nothing else.
11
19
 
12
-
20
+ == SYNOPSIS:
13
21
 
14
22
  To get started quickly (in irb):
15
23
 
@@ -80,15 +88,37 @@ pipeline, and as such may even do evil things like access your Models.
80
88
 
81
89
  See the RDocs for OEmbed::TemplateResolver for more information regarding templates and oembed_links.
82
90
 
91
+ See the rdocs for much more complete examples. The specs directory has some examples of programmatic
92
+ use, but the test to code ratio is slim atm.
83
93
 
94
+ == INSTALL:
84
95
 
96
+ sudo gem install oembed_links
97
+ (from github)
98
+ gem sources -a http://gems.github.com
99
+ sudo gem install netshade-oembed_links
85
100
 
86
- See the rdocs for much more complete examples. The specs directory has some examples of programmatic
87
- use, but the test to code ratio is slim atm.
101
+ == LICENSE:
102
+
103
+ (The MIT License)
88
104
 
89
- Thanks to the Indianapolis Star I&D department for open sourcing this; most notably Chris Vannoy for giving the okay.
90
- Thanks to Kyle Slattery for adding Viddler to the example oembed_links.yml
105
+ Copyright (c) 2008 Indianapolis Star
91
106
 
107
+ Permission is hereby granted, free of charge, to any person obtaining
108
+ a copy of this software and associated documentation files (the
109
+ 'Software'), to deal in the Software without restriction, including
110
+ without limitation the rights to use, copy, modify, merge, publish,
111
+ distribute, sublicense, and/or sell copies of the Software, and to
112
+ permit persons to whom the Software is furnished to do so, subject to
113
+ the following conditions:
92
114
 
93
- CZ - chris.zelenak!at!!indystar.com
115
+ The above copyright notice and this permission notice shall be
116
+ included in all copies or substantial portions of the Software.
94
117
 
118
+ THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
119
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
120
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
121
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
122
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
123
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
124
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/Rakefile CHANGED
@@ -1,14 +1,12 @@
1
1
  require 'rubygems'
2
- Gem::manage_gems
3
- require 'rake/clean'
4
- require 'rake/gempackagetask'
5
- CLEAN.include("pkg")
6
-
7
- spec = eval(File.read("oembed_links.gemspec")) # I'm going to hell, etc. etc.
8
-
9
- task :default => [:clean, :repackage]
10
-
11
- Rake::GemPackageTask.new(spec) do |pkg|
12
- pkg.need_tar = true
2
+ require 'hoe'
3
+
4
+ Hoe.new('oembed_links', "0.1.0") do |p|
5
+ p.summary = ""
6
+ p.url = 'http://indystar.com/'
7
+ p.description = "Easy OEmbed integration for Ruby (and Rails)."
8
+ p.rubyforge_name = 'oembed_links'
9
+ p.extra_dev_deps = ['json']
10
+ p.developer('Indianapolis Star MD&D', 'bugs@indy.com')
13
11
  end
14
-
12
+
@@ -0,0 +1,23 @@
1
+ require 'ruby_tubesday'
2
+
3
+ class OEmbed
4
+ module Fetchers
5
+ class RubyTubesday
6
+
7
+ def initialize
8
+ @client = RubyTubesday.new(:verify_ssl => false)
9
+ end
10
+
11
+ def name
12
+ "RubyTubesday"
13
+ end
14
+
15
+ def fetch(url)
16
+ @client.get(url)
17
+ end
18
+
19
+ end
20
+ end
21
+ end
22
+
23
+ OEmbed.register_fetcher(OEmbed::Fetchers::RubyTubesday)
data/oembed_links.gemspec CHANGED
@@ -1,14 +1,35 @@
1
1
  Gem::Specification.new do |s|
2
- s.name = "oembed_links"
3
- s.version = "0.0.9"
4
- s.author = "Indianapolis Star"
5
- s.email = "bugs at indystar dot com"
6
- s.homepage = "http://www.indystar.com"
7
- s.platform = Gem::Platform::RUBY
8
- s.summary = "a library for using the OEmbed format (http://oembed.com/) to acquire embedding information for freetext"
9
- s.files = ["Rakefile", "README", "oembed_links_example.yml", "oembed_links.gemspec", "lib", "lib/oembed_links.rb", "lib/oembed_links", "lib/oembed_links/formatters", "lib/oembed_links/fetchers", "lib/oembed_links/response.rb", "lib/oembed_links/template_resolver.rb", "lib/oembed_links/formatters/json.rb", "lib/oembed_links/formatters/lib_xml.rb", "lib/oembed_links/formatters/hpricot_xml.rb", "lib/oembed_links/formatters/ruby_xml.rb", "lib/oembed_links/fetchers/net_http.rb", "rails", "rails/init.rb", "spec", "spec/spec_helper.rb", "spec/oembed_links_spec.rb", "spec/oembed_links_test.yml", "spec/templates", "spec/templates/test.haml", "spec/templates/test.rhtml", "spec/templates/test.html.erb" ]
10
- s.require_path = "lib"
11
- s.has_rdoc = true
12
- s.extra_rdoc_files = ['README']
13
- s.add_dependency(%q<json>)
2
+ s.name = %q{oembed_links}
3
+ s.version = "0.1.0"
4
+
5
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
6
+ s.authors = ["Indianapolis Star MD&D"]
7
+ s.date = %q{2008-10-16}
8
+ s.description = %q{Easy OEmbed integration for Ruby (and Rails).}
9
+ s.email = ["bugs@indy.com"]
10
+ s.extra_rdoc_files = ["History.txt", "Manifest.txt", "README.txt"]
11
+ s.files = ["CREDIT", "History.txt", "Manifest.txt", "README.txt", "Rakefile", "lib", "lib/oembed_links", "lib/oembed_links.rb", "lib/oembed_links/fetchers", "lib/oembed_links/fetchers/net_http.rb", "lib/oembed_links/fetchers/ruby_tubesday.rb", "lib/oembed_links/formatters", "lib/oembed_links/formatters/hpricot_xml.rb", "lib/oembed_links/formatters/json.rb", "lib/oembed_links/formatters/lib_xml.rb", "lib/oembed_links/formatters/ruby_xml.rb", "lib/oembed_links/response.rb", "lib/oembed_links/template_resolver.rb", "oembed_links.gemspec", "oembed_links_example.yml", "rails", "rails/init.rb", "spec", "spec/oembed_links_spec.rb", "spec/oembed_links_test.yml", "spec/spec_helper.rb", "spec/templates", "spec/templates/test.haml", "spec/templates/test.html.erb", "spec/templates/test.rhtml"]
12
+ s.has_rdoc = true
13
+ s.homepage = %q{http://indystar.com/}
14
+ s.rdoc_options = ["--main", "README.txt"]
15
+ s.require_paths = ["lib"]
16
+ s.rubyforge_project = %q{oembed_links}
17
+ s.rubygems_version = %q{1.3.0}
18
+ s.summary = %q{}
19
+
20
+ if s.respond_to? :specification_version then
21
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
22
+ s.specification_version = 2
23
+
24
+ if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
25
+ s.add_development_dependency(%q<json>, [">= 0"])
26
+ s.add_development_dependency(%q<hoe>, [">= 1.8.0"])
27
+ else
28
+ s.add_dependency(%q<json>, [">= 0"])
29
+ s.add_dependency(%q<hoe>, [">= 1.8.0"])
30
+ end
31
+ else
32
+ s.add_dependency(%q<json>, [">= 0"])
33
+ s.add_dependency(%q<hoe>, [">= 1.8.0"])
34
+ end
14
35
  end
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: netshade-oembed_links
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
- - Indianapolis Star
7
+ - Indianapolis Star MD&D
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-08-13 00:00:00 -07:00
12
+ date: 2008-10-16 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -21,46 +21,63 @@ dependencies:
21
21
  - !ruby/object:Gem::Version
22
22
  version: "0"
23
23
  version:
24
- description:
25
- email: bugs at indystar dot com
24
+ - !ruby/object:Gem::Dependency
25
+ name: hoe
26
+ version_requirement:
27
+ version_requirements: !ruby/object:Gem::Requirement
28
+ requirements:
29
+ - - ">="
30
+ - !ruby/object:Gem::Version
31
+ version: 1.8.0
32
+ version:
33
+ description: Easy OEmbed integration for Ruby (and Rails).
34
+ email:
35
+ - bugs@indy.com
26
36
  executables: []
27
37
 
28
38
  extensions: []
29
39
 
30
40
  extra_rdoc_files:
31
- - README
41
+ - History.txt
42
+ - Manifest.txt
43
+ - README.txt
32
44
  files:
45
+ - CREDIT
46
+ - History.txt
47
+ - Manifest.txt
48
+ - README.txt
33
49
  - Rakefile
34
- - README
35
- - oembed_links_example.yml
36
- - oembed_links.gemspec
37
50
  - lib
38
- - lib/oembed_links.rb
39
51
  - lib/oembed_links
40
- - lib/oembed_links/formatters
52
+ - lib/oembed_links.rb
41
53
  - lib/oembed_links/fetchers
42
- - lib/oembed_links/response.rb
43
- - lib/oembed_links/template_resolver.rb
54
+ - lib/oembed_links/fetchers/net_http.rb
55
+ - lib/oembed_links/fetchers/ruby_tubesday.rb
56
+ - lib/oembed_links/formatters
57
+ - lib/oembed_links/formatters/hpricot_xml.rb
44
58
  - lib/oembed_links/formatters/json.rb
45
59
  - lib/oembed_links/formatters/lib_xml.rb
46
- - lib/oembed_links/formatters/hpricot_xml.rb
47
60
  - lib/oembed_links/formatters/ruby_xml.rb
48
- - lib/oembed_links/fetchers/net_http.rb
61
+ - lib/oembed_links/response.rb
62
+ - lib/oembed_links/template_resolver.rb
63
+ - oembed_links.gemspec
64
+ - oembed_links_example.yml
49
65
  - rails
50
66
  - rails/init.rb
51
67
  - spec
52
- - spec/spec_helper.rb
53
68
  - spec/oembed_links_spec.rb
54
69
  - spec/oembed_links_test.yml
70
+ - spec/spec_helper.rb
55
71
  - spec/templates
56
72
  - spec/templates/test.haml
57
- - spec/templates/test.rhtml
58
73
  - spec/templates/test.html.erb
74
+ - spec/templates/test.rhtml
59
75
  has_rdoc: true
60
- homepage: http://www.indystar.com
76
+ homepage: http://indystar.com/
61
77
  post_install_message:
62
- rdoc_options: []
63
-
78
+ rdoc_options:
79
+ - --main
80
+ - README.txt
64
81
  require_paths:
65
82
  - lib
66
83
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -77,10 +94,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
77
94
  version:
78
95
  requirements: []
79
96
 
80
- rubyforge_project:
97
+ rubyforge_project: oembed_links
81
98
  rubygems_version: 1.2.0
82
99
  signing_key:
83
100
  specification_version: 2
84
- summary: a library for using the OEmbed format (http://oembed.com/) to acquire embedding information for freetext
101
+ summary: ""
85
102
  test_files: []
86
103