vidibus-validate_uri 0.1.6 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore ADDED
@@ -0,0 +1,6 @@
1
+ pkg/*
2
+ Gemfile.lock
3
+ *.gem
4
+ .bundle
5
+ rdoc
6
+ coverage
data/.travis.yml ADDED
@@ -0,0 +1 @@
1
+ script: "bundle exec rspec spec --format progress"
data/Gemfile CHANGED
@@ -1,8 +1,4 @@
1
- source :rubygems
2
- gem "rails", "~> 3.0.0"
1
+ source :gemcutter
3
2
 
4
- group :development do
5
- gem "rspec", "~> 2.0.0"
6
- gem "rr"
7
- gem "relevance-rcov"
8
- end
3
+ # Specify your gem's dependencies in vidibus-resource.gemspec
4
+ gemspec
data/README.rdoc CHANGED
@@ -1,9 +1,16 @@
1
1
  = Vidibus::ValidateUri
2
2
 
3
- This gem is part of the open source SOA framework {Vidibus}[http://vidibus.org].
4
-
5
3
  It provides validation of URIs (URLs) to ActiveModel records and ActionControllers in Rails 3.
6
4
 
5
+ This gem is part of {Vidibus}[http://vidibus.org], an open source toolset for building distributed (video) applications.
6
+
7
+
8
+ == Compatibility
9
+
10
+ http://travis-ci.org/vidibus/vidibus-validate_uri.png
11
+
12
+ Vidibus::ValidateUri is tested against Ruby 1.8.7. {Build History}[http://travis-ci.org/vidibus/vidibus-validate_uri]
13
+
7
14
 
8
15
  == Installation
9
16
 
@@ -61,4 +68,4 @@ You may provide those validation options to the #valid_uri? method as well:
61
68
 
62
69
  == Copyright
63
70
 
64
- Copyright (c) 2010 Andre Pankratz. See LICENSE for details.
71
+ Copyright (c) 2010-2011 Andre Pankratz. See LICENSE for details.
data/Rakefile CHANGED
@@ -1,35 +1,25 @@
1
- require "rubygems"
2
- require "rake"
3
- require "rake/rdoctask"
1
+ require "bundler"
2
+ require "rdoc/task"
4
3
  require "rspec"
5
4
  require "rspec/core/rake_task"
6
5
 
7
- begin
8
- require 'jeweler'
9
- Jeweler::Tasks.new do |gem|
10
- gem.name = "vidibus-validate_uri"
11
- gem.summary = %Q{Provides an URI validator for Rails 3.}
12
- gem.description = %Q{It provides validation of URIs (URLs) to ActiveModel records and ActionControllers in Rails 3.}
13
- gem.email = "andre@vidibus.com"
14
- gem.homepage = "http://github.com/vidibus/vidibus-validate_uri"
15
- gem.authors = ["Andre Pankratz"]
16
- end
17
- Jeweler::GemcutterTasks.new
18
- rescue LoadError
19
- puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
20
- end
6
+ Bundler::GemHelper.install_tasks
7
+
8
+ $LOAD_PATH.unshift File.expand_path("../lib", __FILE__)
9
+ require "vidibus/validate_uri/version"
21
10
 
22
- Rspec::Core::RakeTask.new(:rcov) do |t|
11
+ RSpec::Core::RakeTask.new(:rcov) do |t|
23
12
  t.pattern = "spec/**/*_spec.rb"
24
13
  t.rcov = true
25
14
  t.rcov_opts = ["--exclude", "^spec,/gems/"]
26
15
  end
27
16
 
28
17
  Rake::RDocTask.new do |rdoc|
29
- version = File.exist?("VERSION") ? File.read("VERSION") : ""
30
18
  rdoc.rdoc_dir = "rdoc"
31
- rdoc.title = "vidibus-core_extensions #{version}"
19
+ rdoc.title = "vidibus-sysinfo #{Vidibus::ValidateUri::VERSION}"
32
20
  rdoc.rdoc_files.include("README*")
33
21
  rdoc.rdoc_files.include("lib/**/*.rb")
34
22
  rdoc.options << "--charset=utf-8"
35
23
  end
24
+
25
+ task :default => :rcov
@@ -1,3 +1,4 @@
1
+ # encoding: UTF-8
1
2
  require "net/https"
2
3
  require "uri"
3
4
 
@@ -37,7 +38,6 @@ module Vidibus
37
38
  #
38
39
  def accessible_uri?(uri)
39
40
  return false unless valid_uri?(uri)
40
- return true if ENV["RAILS_ENV"] == "test"
41
41
  _uri = URI.parse(uri)
42
42
  path = _uri.path.blank? ? "/" : _uri.path
43
43
  begin
@@ -46,10 +46,12 @@ module Vidibus
46
46
  http.use_ssl = true
47
47
  http.verify_mode = OpenSSL::SSL::VERIFY_NONE
48
48
  end
49
- http.start { |http| http.head(path) }
50
- true
51
- rescue => e
52
- if Rails.logger
49
+ http.start do |http|
50
+ code = http.head(path).code
51
+ return (code and code.to_i < 400)
52
+ end
53
+ rescue SocketError => e
54
+ if defined?(Rails) and Rails.logger
53
55
  Rails.logger.error "Accessing #{_uri.host} on port #{_uri.port} failed: #{e.inspect}"
54
56
  end
55
57
  false
@@ -1,4 +1,4 @@
1
- require "validate_uri/extensions/controller"
1
+ require "vidibus/validate_uri/extensions/controller"
2
2
 
3
3
  ActiveSupport.on_load(:action_controller) do
4
4
  include Vidibus::ValidateUri::Extensions::Controller
@@ -0,0 +1,5 @@
1
+ module Vidibus
2
+ module ValidateUri
3
+ VERSION = "0.2.0"
4
+ end
5
+ end
@@ -1,5 +1,5 @@
1
- require "validate_uri/core"
2
- require "validate_uri/extensions"
3
- require "validate_uri/uri_validator"
1
+ require "vidibus/validate_uri/core"
2
+ require "vidibus/validate_uri/extensions"
3
+ require "vidibus/validate_uri/uri_validator"
4
4
 
5
5
  ActiveModel::Validations.send(:include, Vidibus::ValidateUri)
@@ -1,9 +1,10 @@
1
- require "rails"
2
1
  require "active_support/core_ext"
2
+ require "active_model"
3
3
 
4
- $:.unshift(File.join(File.dirname(__FILE__), "..", "lib", "vidibus"))
5
- require "validate_uri"
4
+ require "vidibus/validate_uri"
6
5
 
7
- module Vidibus::ValidateUri
8
- class Engine < ::Rails::Engine; end
6
+ if defined?(Rails)
7
+ module Vidibus::ValidateUri
8
+ class Engine < ::Rails::Engine; end
9
+ end
9
10
  end
data/spec/spec_helper.rb CHANGED
@@ -3,9 +3,13 @@ $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), "..", "lib"))
3
3
 
4
4
  require "rubygems"
5
5
  require "rspec"
6
+ require "ostruct"
7
+ require "webmock/rspec"
8
+
6
9
  require "vidibus-validate_uri"
7
10
 
8
11
  RSpec.configure do |config|
12
+ config.include WebMock::API
9
13
  config.mock_with :rr
10
14
  end
11
15
 
@@ -4,11 +4,8 @@ class Test
4
4
  include Vidibus::ValidateUri::Core
5
5
  end
6
6
 
7
- def in_test_environment(&block)
8
- e = ENV["RAILS_ENV"]
9
- ENV["RAILS_ENV"] = "test"
10
- yield
11
- ENV["RAILS_ENV"] = e
7
+ class Rails < OpenStruct
8
+ def self.logger; end
12
9
  end
13
10
 
14
11
  describe "Vidibus::ValidateUri::Core" do
@@ -192,23 +189,33 @@ describe "Vidibus::ValidateUri::Core" do
192
189
  end
193
190
 
194
191
  describe "#accessible_uri?" do
195
- it "should validate http://www.vidibus.org" do
192
+ it "should validate http://www.vidibus.org which redirects permanently" do
196
193
  uri = "http://www.vidibus.org"
194
+ stub_request(:head, uri).to_return(:status => 301)
197
195
  test.accessible_uri?(uri).should be_true
198
196
  end
199
197
 
200
198
  it "should validate https://encrypted.google.com" do
201
199
  uri = "https://encrypted.google.com"
200
+ stub_request(:head, uri).to_return(:status => 200)
202
201
  test.accessible_uri?(uri).should be_true
203
202
  end
204
203
 
205
- it "should fail for http://www.vidibus.zzz" do
204
+ it "should fail for http://www.vidibus.zzz which causes an SocketError" do
206
205
  uri = "http://www.vidibus.zzz"
206
+ stub.any_instance_of(Net::HTTP).head {raise SocketError}
207
207
  test.accessible_uri?(uri).should be_false
208
208
  end
209
209
 
210
- it "should log error with Rails.logger, if available" do
210
+ it "should fail for http://vidibus.org/invalid which does not exist" do
211
+ uri = "http://vidibus.org/invalid"
212
+ stub_request(:head, uri).to_return(:status => 404)
213
+ test.accessible_uri?(uri).should be_false
214
+ end
215
+
216
+ it "should log HTTP errors with Rails.logger, if available" do
211
217
  uri = "http://www.vidibus.zzz"
218
+ stub.any_instance_of(Net::HTTP).head {raise SocketError}
212
219
  mock(Rails).logger.any_number_of_times {true}
213
220
  mock(Rails.logger).error.with_any_args
214
221
  test.accessible_uri?(uri)
@@ -219,13 +226,5 @@ describe "Vidibus::ValidateUri::Core" do
219
226
  dont_allow(URI).parse
220
227
  test.accessible_uri?(uri).should be_false
221
228
  end
222
-
223
- it "should not perform accessibility check in test environment" do
224
- in_test_environment do
225
- uri = "http://www.vidibus.zzz"
226
- dont_allow(URI).parse
227
- test.accessible_uri?(uri).should be_true
228
- end
229
- end
230
229
  end
231
230
  end
@@ -17,7 +17,7 @@ end
17
17
  describe "Vidibus::ValidateUri::UriValidator" do
18
18
  let(:model) { Model.new }
19
19
  let(:secure_model) { SecureModel.new }
20
- let(:acessible_model) { AccessibleModel.new }
20
+ let(:accessible_model) { AccessibleModel.new }
21
21
 
22
22
  it "should be available as URI validator" do
23
23
  Model.validators_on(:uri).first.should be_a_kind_of(Vidibus::ValidateUri::UriValidator)
@@ -47,8 +47,9 @@ describe "Vidibus::ValidateUri::UriValidator" do
47
47
  end
48
48
 
49
49
  it "should add an error to model if URI is inaccessible" do
50
- acessible_model.uri = "http://vidibus.zzz"
51
- acessible_model.should be_invalid
52
- acessible_model.errors[:uri].should eql(["is inaccessible"])
50
+ accessible_model.uri = "http://vidibus.zzz"
51
+ stub.any_instance_of(Net::HTTP).head {raise SocketError}
52
+ accessible_model.should be_invalid
53
+ accessible_model.errors[:uri].should eql(["is inaccessible"])
53
54
  end
54
55
  end
@@ -1,75 +1,36 @@
1
- # Generated by jeweler
2
- # DO NOT EDIT THIS FILE DIRECTLY
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
- # -*- encoding: utf-8 -*-
1
+ # encoding: UTF-8
2
+ lib = File.expand_path("../lib/", __FILE__)
3
+ $:.unshift lib unless $:.include?(lib)
4
+
5
+ require "vidibus/validate_uri/version"
5
6
 
6
7
  Gem::Specification.new do |s|
7
- s.name = %q{vidibus-validate_uri}
8
- s.version = "0.1.6"
8
+ s.name = "vidibus-validate_uri"
9
+ s.version = Vidibus::ValidateUri::VERSION
10
+ s.platform = Gem::Platform::RUBY
11
+ s.authors = "Andre Pankratz"
12
+ s.email = "andre@vidibus.com"
13
+ s.homepage = "https://github.com/vidibus/vidibus-validate_uri"
14
+ s.summary = "URI validation for Rails 3"
15
+ s.description = "It provides validation of URIs (URLs) to ActiveModel records and ActionControllers in Rails 3."
9
16
 
10
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
- s.authors = ["Andre Pankratz"]
12
- s.date = %q{2011-05-04}
13
- s.description = %q{It provides validation of URIs (URLs) to ActiveModel records and ActionControllers in Rails 3.}
14
- s.email = %q{andre@vidibus.com}
15
- s.extra_rdoc_files = [
16
- "LICENSE",
17
- "README.rdoc"
18
- ]
19
- s.files = [
20
- ".bundle/config",
21
- ".document",
22
- ".rspec",
23
- "Gemfile",
24
- "Gemfile.lock",
25
- "LICENSE",
26
- "README.rdoc",
27
- "Rakefile",
28
- "VERSION",
29
- "config/locales/de.yml",
30
- "config/locales/en.yml",
31
- "lib/vidibus-validate_uri.rb",
32
- "lib/vidibus/validate_uri.rb",
33
- "lib/vidibus/validate_uri/core.rb",
34
- "lib/vidibus/validate_uri/extensions.rb",
35
- "lib/vidibus/validate_uri/extensions/controller.rb",
36
- "lib/vidibus/validate_uri/uri_validator.rb",
37
- "spec/spec_helper.rb",
38
- "spec/vidibus/validate_uri/action_controller_spec.rb",
39
- "spec/vidibus/validate_uri/core_spec.rb",
40
- "spec/vidibus/validate_uri/uri_validator_spec.rb",
41
- "vidibus-validate_uri.gemspec"
42
- ]
43
- s.homepage = %q{http://github.com/vidibus/vidibus-validate_uri}
44
- s.require_paths = ["lib"]
45
- s.rubygems_version = %q{1.6.2}
46
- s.summary = %q{Provides an URI validator for Rails 3.}
47
- s.test_files = [
48
- "spec/spec_helper.rb",
49
- "spec/vidibus/validate_uri/action_controller_spec.rb",
50
- "spec/vidibus/validate_uri/core_spec.rb",
51
- "spec/vidibus/validate_uri/uri_validator_spec.rb"
52
- ]
17
+ s.required_rubygems_version = ">= 1.3.6"
18
+ s.rubyforge_project = "vidibus-resource"
53
19
 
54
- if s.respond_to? :specification_version then
55
- s.specification_version = 3
20
+ s.add_dependency "rack", "~> 1.2.1"
21
+ s.add_dependency "activesupport", "~> 3"
22
+ s.add_dependency "activemodel", "~> 3"
56
23
 
57
- if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
58
- s.add_runtime_dependency(%q<rails>, ["~> 3.0.0"])
59
- s.add_development_dependency(%q<rspec>, ["~> 2.0.0"])
60
- s.add_development_dependency(%q<rr>, [">= 0"])
61
- s.add_development_dependency(%q<relevance-rcov>, [">= 0"])
62
- else
63
- s.add_dependency(%q<rails>, ["~> 3.0.0"])
64
- s.add_dependency(%q<rspec>, ["~> 2.0.0"])
65
- s.add_dependency(%q<rr>, [">= 0"])
66
- s.add_dependency(%q<relevance-rcov>, [">= 0"])
67
- end
68
- else
69
- s.add_dependency(%q<rails>, ["~> 3.0.0"])
70
- s.add_dependency(%q<rspec>, ["~> 2.0.0"])
71
- s.add_dependency(%q<rr>, [">= 0"])
72
- s.add_dependency(%q<relevance-rcov>, [">= 0"])
73
- end
74
- end
24
+ s.add_development_dependency "bundler", ">= 1.0.0"
25
+ s.add_development_dependency "rake"
26
+ s.add_development_dependency "rdoc"
27
+ s.add_development_dependency "rcov"
28
+ s.add_development_dependency "rspec", "~> 2"
29
+ s.add_development_dependency "rr"
30
+ s.add_development_dependency "actionpack", "~> 3"
31
+ s.add_development_dependency "webmock"
75
32
 
33
+ s.files = `git ls-files`.split("\n")
34
+ s.executables = `git ls-files`.split("\n").map{|f| f =~ /^bin\/(.*)/ ? $1 : nil}.compact
35
+ s.require_path = 'lib'
36
+ end
metadata CHANGED
@@ -1,13 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vidibus-validate_uri
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
5
- prerelease:
4
+ prerelease: false
6
5
  segments:
7
6
  - 0
8
- - 1
9
- - 6
10
- version: 0.1.6
7
+ - 2
8
+ - 0
9
+ version: 0.2.0
11
10
  platform: ruby
12
11
  authors:
13
12
  - Andre Pankratz
@@ -15,88 +14,163 @@ autorequire:
15
14
  bindir: bin
16
15
  cert_chain: []
17
16
 
18
- date: 2011-05-04 00:00:00 +02:00
17
+ date: 2011-07-09 00:00:00 +02:00
19
18
  default_executable:
20
19
  dependencies:
21
20
  - !ruby/object:Gem::Dependency
21
+ name: rack
22
22
  prerelease: false
23
- type: :runtime
24
23
  requirement: &id001 !ruby/object:Gem::Requirement
25
- none: false
26
24
  requirements:
27
25
  - - ~>
28
26
  - !ruby/object:Gem::Version
29
- hash: 7
30
27
  segments:
31
- - 3
32
- - 0
33
- - 0
34
- version: 3.0.0
35
- name: rails
28
+ - 1
29
+ - 2
30
+ - 1
31
+ version: 1.2.1
32
+ type: :runtime
36
33
  version_requirements: *id001
37
34
  - !ruby/object:Gem::Dependency
35
+ name: activesupport
38
36
  prerelease: false
39
- type: :development
40
37
  requirement: &id002 !ruby/object:Gem::Requirement
41
- none: false
42
38
  requirements:
43
39
  - - ~>
44
40
  - !ruby/object:Gem::Version
45
- hash: 15
46
41
  segments:
47
- - 2
42
+ - 3
43
+ version: "3"
44
+ type: :runtime
45
+ version_requirements: *id002
46
+ - !ruby/object:Gem::Dependency
47
+ name: activemodel
48
+ prerelease: false
49
+ requirement: &id003 !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - ~>
52
+ - !ruby/object:Gem::Version
53
+ segments:
54
+ - 3
55
+ version: "3"
56
+ type: :runtime
57
+ version_requirements: *id003
58
+ - !ruby/object:Gem::Dependency
59
+ name: bundler
60
+ prerelease: false
61
+ requirement: &id004 !ruby/object:Gem::Requirement
62
+ requirements:
63
+ - - ">="
64
+ - !ruby/object:Gem::Version
65
+ segments:
66
+ - 1
48
67
  - 0
49
68
  - 0
50
- version: 2.0.0
51
- name: rspec
52
- version_requirements: *id002
69
+ version: 1.0.0
70
+ type: :development
71
+ version_requirements: *id004
53
72
  - !ruby/object:Gem::Dependency
73
+ name: rake
54
74
  prerelease: false
75
+ requirement: &id005 !ruby/object:Gem::Requirement
76
+ requirements:
77
+ - - ">="
78
+ - !ruby/object:Gem::Version
79
+ segments:
80
+ - 0
81
+ version: "0"
55
82
  type: :development
56
- requirement: &id003 !ruby/object:Gem::Requirement
57
- none: false
83
+ version_requirements: *id005
84
+ - !ruby/object:Gem::Dependency
85
+ name: rdoc
86
+ prerelease: false
87
+ requirement: &id006 !ruby/object:Gem::Requirement
88
+ requirements:
89
+ - - ">="
90
+ - !ruby/object:Gem::Version
91
+ segments:
92
+ - 0
93
+ version: "0"
94
+ type: :development
95
+ version_requirements: *id006
96
+ - !ruby/object:Gem::Dependency
97
+ name: rcov
98
+ prerelease: false
99
+ requirement: &id007 !ruby/object:Gem::Requirement
58
100
  requirements:
59
101
  - - ">="
60
102
  - !ruby/object:Gem::Version
61
- hash: 3
62
103
  segments:
63
104
  - 0
64
105
  version: "0"
106
+ type: :development
107
+ version_requirements: *id007
108
+ - !ruby/object:Gem::Dependency
109
+ name: rspec
110
+ prerelease: false
111
+ requirement: &id008 !ruby/object:Gem::Requirement
112
+ requirements:
113
+ - - ~>
114
+ - !ruby/object:Gem::Version
115
+ segments:
116
+ - 2
117
+ version: "2"
118
+ type: :development
119
+ version_requirements: *id008
120
+ - !ruby/object:Gem::Dependency
65
121
  name: rr
66
- version_requirements: *id003
122
+ prerelease: false
123
+ requirement: &id009 !ruby/object:Gem::Requirement
124
+ requirements:
125
+ - - ">="
126
+ - !ruby/object:Gem::Version
127
+ segments:
128
+ - 0
129
+ version: "0"
130
+ type: :development
131
+ version_requirements: *id009
67
132
  - !ruby/object:Gem::Dependency
133
+ name: actionpack
68
134
  prerelease: false
135
+ requirement: &id010 !ruby/object:Gem::Requirement
136
+ requirements:
137
+ - - ~>
138
+ - !ruby/object:Gem::Version
139
+ segments:
140
+ - 3
141
+ version: "3"
69
142
  type: :development
70
- requirement: &id004 !ruby/object:Gem::Requirement
71
- none: false
143
+ version_requirements: *id010
144
+ - !ruby/object:Gem::Dependency
145
+ name: webmock
146
+ prerelease: false
147
+ requirement: &id011 !ruby/object:Gem::Requirement
72
148
  requirements:
73
149
  - - ">="
74
150
  - !ruby/object:Gem::Version
75
- hash: 3
76
151
  segments:
77
152
  - 0
78
153
  version: "0"
79
- name: relevance-rcov
80
- version_requirements: *id004
154
+ type: :development
155
+ version_requirements: *id011
81
156
  description: It provides validation of URIs (URLs) to ActiveModel records and ActionControllers in Rails 3.
82
157
  email: andre@vidibus.com
83
158
  executables: []
84
159
 
85
160
  extensions: []
86
161
 
87
- extra_rdoc_files:
88
- - LICENSE
89
- - README.rdoc
162
+ extra_rdoc_files: []
163
+
90
164
  files:
91
165
  - .bundle/config
92
166
  - .document
167
+ - .gitignore
93
168
  - .rspec
169
+ - .travis.yml
94
170
  - Gemfile
95
- - Gemfile.lock
96
171
  - LICENSE
97
172
  - README.rdoc
98
173
  - Rakefile
99
- - VERSION
100
174
  - config/locales/de.yml
101
175
  - config/locales/en.yml
102
176
  - lib/vidibus-validate_uri.rb
@@ -105,13 +179,14 @@ files:
105
179
  - lib/vidibus/validate_uri/extensions.rb
106
180
  - lib/vidibus/validate_uri/extensions/controller.rb
107
181
  - lib/vidibus/validate_uri/uri_validator.rb
182
+ - lib/vidibus/validate_uri/version.rb
108
183
  - spec/spec_helper.rb
109
184
  - spec/vidibus/validate_uri/action_controller_spec.rb
110
185
  - spec/vidibus/validate_uri/core_spec.rb
111
186
  - spec/vidibus/validate_uri/uri_validator_spec.rb
112
187
  - vidibus-validate_uri.gemspec
113
188
  has_rdoc: true
114
- homepage: http://github.com/vidibus/vidibus-validate_uri
189
+ homepage: https://github.com/vidibus/vidibus-validate_uri
115
190
  licenses: []
116
191
 
117
192
  post_install_message:
@@ -120,32 +195,27 @@ rdoc_options: []
120
195
  require_paths:
121
196
  - lib
122
197
  required_ruby_version: !ruby/object:Gem::Requirement
123
- none: false
124
198
  requirements:
125
199
  - - ">="
126
200
  - !ruby/object:Gem::Version
127
- hash: 3
128
201
  segments:
129
202
  - 0
130
203
  version: "0"
131
204
  required_rubygems_version: !ruby/object:Gem::Requirement
132
- none: false
133
205
  requirements:
134
206
  - - ">="
135
207
  - !ruby/object:Gem::Version
136
- hash: 3
137
208
  segments:
138
- - 0
139
- version: "0"
209
+ - 1
210
+ - 3
211
+ - 6
212
+ version: 1.3.6
140
213
  requirements: []
141
214
 
142
- rubyforge_project:
143
- rubygems_version: 1.6.2
215
+ rubyforge_project: vidibus-resource
216
+ rubygems_version: 1.3.6
144
217
  signing_key:
145
218
  specification_version: 3
146
- summary: Provides an URI validator for Rails 3.
147
- test_files:
148
- - spec/spec_helper.rb
149
- - spec/vidibus/validate_uri/action_controller_spec.rb
150
- - spec/vidibus/validate_uri/core_spec.rb
151
- - spec/vidibus/validate_uri/uri_validator_spec.rb
219
+ summary: URI validation for Rails 3
220
+ test_files: []
221
+
data/Gemfile.lock DELETED
@@ -1,87 +0,0 @@
1
- GEM
2
- remote: http://rubygems.org/
3
- specs:
4
- abstract (1.0.0)
5
- actionmailer (3.0.3)
6
- actionpack (= 3.0.3)
7
- mail (~> 2.2.9)
8
- actionpack (3.0.3)
9
- activemodel (= 3.0.3)
10
- activesupport (= 3.0.3)
11
- builder (~> 2.1.2)
12
- erubis (~> 2.6.6)
13
- i18n (~> 0.4)
14
- rack (~> 1.2.1)
15
- rack-mount (~> 0.6.13)
16
- rack-test (~> 0.5.6)
17
- tzinfo (~> 0.3.23)
18
- activemodel (3.0.3)
19
- activesupport (= 3.0.3)
20
- builder (~> 2.1.2)
21
- i18n (~> 0.4)
22
- activerecord (3.0.3)
23
- activemodel (= 3.0.3)
24
- activesupport (= 3.0.3)
25
- arel (~> 2.0.2)
26
- tzinfo (~> 0.3.23)
27
- activeresource (3.0.3)
28
- activemodel (= 3.0.3)
29
- activesupport (= 3.0.3)
30
- activesupport (3.0.3)
31
- arel (2.0.6)
32
- builder (2.1.2)
33
- diff-lcs (1.1.2)
34
- erubis (2.6.6)
35
- abstract (>= 1.0.0)
36
- i18n (0.5.0)
37
- mail (2.2.12)
38
- activesupport (>= 2.3.6)
39
- i18n (>= 0.4.0)
40
- mime-types (~> 1.16)
41
- treetop (~> 1.4.8)
42
- mime-types (1.16)
43
- polyglot (0.3.1)
44
- rack (1.2.1)
45
- rack-mount (0.6.13)
46
- rack (>= 1.0.0)
47
- rack-test (0.5.6)
48
- rack (>= 1.0)
49
- rails (3.0.3)
50
- actionmailer (= 3.0.3)
51
- actionpack (= 3.0.3)
52
- activerecord (= 3.0.3)
53
- activeresource (= 3.0.3)
54
- activesupport (= 3.0.3)
55
- bundler (~> 1.0)
56
- railties (= 3.0.3)
57
- railties (3.0.3)
58
- actionpack (= 3.0.3)
59
- activesupport (= 3.0.3)
60
- rake (>= 0.8.7)
61
- thor (~> 0.14.4)
62
- rake (0.8.7)
63
- relevance-rcov (0.9.2.1)
64
- rr (1.0.2)
65
- rspec (2.0.1)
66
- rspec-core (~> 2.0.1)
67
- rspec-expectations (~> 2.0.1)
68
- rspec-mocks (~> 2.0.1)
69
- rspec-core (2.0.1)
70
- rspec-expectations (2.0.1)
71
- diff-lcs (>= 1.1.2)
72
- rspec-mocks (2.0.1)
73
- rspec-core (~> 2.0.1)
74
- rspec-expectations (~> 2.0.1)
75
- thor (0.14.6)
76
- treetop (1.4.9)
77
- polyglot (>= 0.3.1)
78
- tzinfo (0.3.23)
79
-
80
- PLATFORMS
81
- ruby
82
-
83
- DEPENDENCIES
84
- rails (~> 3.0.0)
85
- relevance-rcov
86
- rr
87
- rspec (~> 2.0.0)
data/VERSION DELETED
@@ -1 +0,0 @@
1
- 0.1.6