chemcaster 0.4.2 → 0.4.3

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.
Files changed (3) hide show
  1. data/Rakefile +53 -2
  2. data/lib/chemcaster/link.rb +2 -0
  3. metadata +3 -3
data/Rakefile CHANGED
@@ -2,7 +2,10 @@ require 'rubygems'
2
2
  require 'rake'
3
3
  require 'spec/rake/spectask'
4
4
  require 'rake/rdoctask'
5
-
5
+ require 'rake/gempackagetask'
6
+
7
+ RELEASE = '0.4.3'
8
+
6
9
  Spec::Rake::SpecTask.new(:spec) do |spec|
7
10
  spec.libs << 'lib' << 'spec'
8
11
  spec.spec_files = FileList['spec/**/*_spec.rb']
@@ -17,5 +20,53 @@ Rake::RDocTask.new(:rdoc) do |rdoc|
17
20
 
18
21
  rdoc.rdoc_dir = 'doc' # rdoc output folder
19
22
  rdoc.options << '--inline-source' << '--charset=UTF-8'
20
- rdoc.options << '--webcvs=http://github.com/mislav/will_paginate/tree/master/'
23
+ end
24
+
25
+ spec = Gem::Specification.new do |s|
26
+ s.name = %q{chemcaster}
27
+ s.version = RELEASE
28
+
29
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
30
+ s.authors = ["Richard Apodaca"]
31
+ s.date = Time.now.strftime "%Y-%m-%d"
32
+ s.description = %q{A hypertext-driven Ruby client for the Chemcaster cheminformatics Web services platform.}
33
+ s.summary = s.description
34
+ s.email = %q{info@metamolecular.com}
35
+ s.files = [
36
+ "README.rdoc",
37
+ "Rakefile",
38
+ "lib/chemcaster.rb",
39
+ "lib/chemcaster/error.rb",
40
+ "lib/chemcaster/index.rb",
41
+ "lib/chemcaster/item.rb",
42
+ "lib/chemcaster/link.rb",
43
+ "lib/chemcaster/media_type.rb",
44
+ "lib/chemcaster/representation.rb",
45
+ "lib/chemcaster/service.rb",
46
+ "lib/chemcaster/registry.rb",
47
+ "lib/chemcaster/registration.rb",
48
+ "lib/chemcaster/substance.rb",
49
+ "lib/chemcaster/structure.rb",
50
+ "lib/chemcaster/component.rb",
51
+ "lib/chemcaster/query.rb",
52
+ "lib/chemcaster/execution.rb",
53
+ "lib/chemcaster/archive.rb",
54
+ "lib/chemcaster/image.rb",
55
+ "lib/chemcaster/zip.rb"
56
+ ]
57
+ s.has_rdoc = false
58
+ s.homepage = %q{http://chemcaster.com}
59
+ s.require_paths = ["lib"]
60
+ s.rubygems_version = %q{1.3.5}
61
+ s.add_dependency("json", ">=1.1.4")
62
+ end
63
+
64
+ Rake::GemPackageTask.new(spec) do |pkg|
65
+ end
66
+
67
+ namespace :gem do
68
+ desc "Pushes gem to gemcutter.org"
69
+ task :push => [:gem] do
70
+ %x[gem push pkg/chemcaster-#{RELEASE}.gem]
71
+ end
21
72
  end
@@ -3,6 +3,8 @@ require 'net/https'
3
3
 
4
4
  module Chemcaster
5
5
  class Link
6
+ attr_reader :uri, :media_type
7
+
6
8
  def initialize atts=nil
7
9
  if atts
8
10
  @uri = URI.parse(atts['uri']) if atts['uri']
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chemcaster
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Richard Apodaca
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-08-17 00:00:00 -07:00
12
+ date: 2009-10-03 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -78,6 +78,6 @@ rubyforge_project:
78
78
  rubygems_version: 1.3.5
79
79
  signing_key:
80
80
  specification_version: 3
81
- summary: A hypertext-driven Ruby client for the Chemcaster cheminformatics Web services platform. End.
81
+ summary: A hypertext-driven Ruby client for the Chemcaster cheminformatics Web services platform.
82
82
  test_files: []
83
83