rdf_schema_generator 1.0.0 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/rdf_schema_generator.rb +5 -2
  2. metadata +2 -2
@@ -13,8 +13,11 @@ class RdfSchemaGenerator < Rails::Generator::NamedBase
13
13
  setup
14
14
  end
15
15
 
16
- def setup
17
- content = Net::HTTP.get URI.parse(@url)
16
+ def setup
17
+ proxy_uri = URI.parse(ENV['http_proxy']) if ENV['http_proxy']
18
+ (proxy_host, proxy_port = proxy_uri.host, proxy_port) if proxy_uri
19
+ http_protocol = Net::HTTP::Proxy(proxy_host, proxy_port)
20
+ content = http_protocol.get URI.parse(@url)
18
21
  document = REXML::Document.new(content)
19
22
 
20
23
  document.root.each_element('rdfs:Class') do |clazz|
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.8.10
3
3
  specification_version: 1
4
4
  name: rdf_schema_generator
5
5
  version: !ruby/object:Gem::Version
6
- version: 1.0.0
7
- date: 2006-02-12
6
+ version: 1.1.0
7
+ date: 2006-02-18
8
8
  summary: "[Rails] RDF Schema generator."
9
9
  require_paths:
10
10
  - lib