addressable 2.3.8 → 2.4.0

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of addressable might be problematic. Click here for more details.

@@ -1,10 +1,19 @@
1
+ require 'bundler/setup'
1
2
  require 'rspec/its'
2
3
 
3
4
  begin
4
5
  require 'coveralls'
5
- Coveralls.wear!
6
+ Coveralls.wear! do
7
+ add_filter "spec/"
8
+ add_filter "vendor/"
9
+ end
6
10
  rescue LoadError
7
11
  warn "warning: coveralls gem not found; skipping Coveralls"
12
+ require 'simplecov'
13
+ SimpleCov.start do
14
+ add_filter "spec/"
15
+ add_filter "vendor/"
16
+ end
8
17
  end
9
18
 
10
19
  RSpec.configure do |config|
@@ -18,17 +18,16 @@ namespace :gem do
18
18
  exit(1)
19
19
  end
20
20
 
21
- s.add_development_dependency 'rake', '~> 10.4', '>= 10.4.2'
22
- s.add_development_dependency 'rspec', '~> 3.0'
23
- s.add_development_dependency 'rspec-its', '~> 1.1'
24
- s.add_development_dependency 'launchy', '~> 2.4', '>= 2.4.3'
21
+ s.required_ruby_version = '>= 1.9.0'
22
+
23
+ s.add_development_dependency 'bundler', '~> 1.0'
25
24
 
26
25
  s.require_path = "lib"
27
26
 
28
27
  s.author = "Bob Aman"
29
28
  s.email = "bob@sporkmonger.com"
30
29
  s.homepage = "https://github.com/sporkmonger/addressable"
31
- s.license = "Apache License 2.0"
30
+ s.license = "Apache-2.0"
32
31
  end
33
32
 
34
33
  Gem::PackageTask.new(GEM_SPEC) do |p|
@@ -1,43 +1,21 @@
1
1
  require "rspec/core/rake_task"
2
2
 
3
3
  namespace :spec do
4
- RSpec::Core::RakeTask.new(:rcov) do |t|
4
+ RSpec::Core::RakeTask.new(:simplecov) do |t|
5
5
  t.pattern = FileList['spec/**/*_spec.rb']
6
6
  t.rspec_opts = ['--color', '--format', 'documentation']
7
7
  end
8
8
 
9
- RSpec::Core::RakeTask.new(:normal) do |t|
10
- t.pattern = FileList['spec/**/*_spec.rb'].exclude(/compat/)
11
- t.rspec_opts = ['--color', '--format', 'documentation']
12
- end
13
-
14
- RSpec::Core::RakeTask.new(:all) do |t|
15
- t.pattern = FileList['spec/**/*_spec.rb']
16
- t.rspec_opts = ['--color', '--format', 'documentation']
17
- end
18
-
19
- desc "Generate HTML Specdocs for all specs"
20
- RSpec::Core::RakeTask.new(:specdoc) do |t|
21
- specdoc_path = File.expand_path(
22
- File.join(File.dirname(__FILE__), '..', 'documentation')
23
- )
24
- Dir.mkdir(specdoc_path) if !File.exist?(specdoc_path)
25
-
26
- output_file = File.join(specdoc_path, 'index.html')
27
- t.pattern = FileList['spec/**/*_spec.rb']
28
- t.fail_on_error = false
29
- end
30
-
31
- namespace :rcov do
9
+ namespace :simplecov do
32
10
  desc "Browse the code coverage report."
33
- task :browse => "spec:rcov" do
11
+ task :browse => "spec:simplecov" do
34
12
  require "launchy"
35
13
  Launchy.open("coverage/index.html")
36
14
  end
37
15
  end
38
16
  end
39
17
 
40
- desc "Alias to spec:normal"
41
- task "spec" => "spec:normal"
18
+ desc "Alias to spec:simplecov"
19
+ task "spec" => "spec:simplecov"
42
20
 
43
- task "clobber" => ["spec:clobber_rcov"]
21
+ task "clobber" => ["spec:clobber_simplecov"]
metadata CHANGED
@@ -1,83 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: addressable
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.8
4
+ version: 2.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bob Aman
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-27 00:00:00.000000000 Z
11
+ date: 2015-12-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: rake
14
+ name: bundler
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '10.4'
20
- - - ">="
21
- - !ruby/object:Gem::Version
22
- version: 10.4.2
23
- type: :development
24
- prerelease: false
25
- version_requirements: !ruby/object:Gem::Requirement
26
- requirements:
27
- - - "~>"
28
- - !ruby/object:Gem::Version
29
- version: '10.4'
30
- - - ">="
31
- - !ruby/object:Gem::Version
32
- version: 10.4.2
33
- - !ruby/object:Gem::Dependency
34
- name: rspec
35
- requirement: !ruby/object:Gem::Requirement
36
- requirements:
37
- - - "~>"
38
- - !ruby/object:Gem::Version
39
- version: '3.0'
40
- type: :development
41
- prerelease: false
42
- version_requirements: !ruby/object:Gem::Requirement
43
- requirements:
44
- - - "~>"
45
- - !ruby/object:Gem::Version
46
- version: '3.0'
47
- - !ruby/object:Gem::Dependency
48
- name: rspec-its
49
- requirement: !ruby/object:Gem::Requirement
50
- requirements:
51
- - - "~>"
52
- - !ruby/object:Gem::Version
53
- version: '1.1'
19
+ version: '1.0'
54
20
  type: :development
55
21
  prerelease: false
56
22
  version_requirements: !ruby/object:Gem::Requirement
57
23
  requirements:
58
24
  - - "~>"
59
25
  - !ruby/object:Gem::Version
60
- version: '1.1'
61
- - !ruby/object:Gem::Dependency
62
- name: launchy
63
- requirement: !ruby/object:Gem::Requirement
64
- requirements:
65
- - - "~>"
66
- - !ruby/object:Gem::Version
67
- version: '2.4'
68
- - - ">="
69
- - !ruby/object:Gem::Version
70
- version: 2.4.3
71
- type: :development
72
- prerelease: false
73
- version_requirements: !ruby/object:Gem::Requirement
74
- requirements:
75
- - - "~>"
76
- - !ruby/object:Gem::Version
77
- version: '2.4'
78
- - - ">="
79
- - !ruby/object:Gem::Version
80
- version: 2.4.3
26
+ version: '1.0'
81
27
  description: |
82
28
  Addressable is a replacement for the URI implementation that is part of
83
29
  Ruby's standard library. It more closely conforms to the relevant RFCs and
@@ -95,6 +41,7 @@ files:
95
41
  - Rakefile
96
42
  - addressable.gemspec
97
43
  - data/unicode.data
44
+ - lib/addressable.rb
98
45
  - lib/addressable/idna.rb
99
46
  - lib/addressable/idna/native.rb
100
47
  - lib/addressable/idna/pure.rb
@@ -103,6 +50,8 @@ files:
103
50
  - lib/addressable/version.rb
104
51
  - spec/addressable/idna_spec.rb
105
52
  - spec/addressable/net_http_compat_spec.rb
53
+ - spec/addressable/rack_mount_compat_spec.rb
54
+ - spec/addressable/security_spec.rb
106
55
  - spec/addressable/template_spec.rb
107
56
  - spec/addressable/uri_spec.rb
108
57
  - spec/spec_helper.rb
@@ -112,10 +61,9 @@ files:
112
61
  - tasks/metrics.rake
113
62
  - tasks/rspec.rake
114
63
  - tasks/yard.rake
115
- - website/index.html
116
64
  homepage: https://github.com/sporkmonger/addressable
117
65
  licenses:
118
- - Apache License 2.0
66
+ - Apache-2.0
119
67
  metadata: {}
120
68
  post_install_message:
121
69
  rdoc_options:
@@ -127,7 +75,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
127
75
  requirements:
128
76
  - - ">="
129
77
  - !ruby/object:Gem::Version
130
- version: '0'
78
+ version: 1.9.0
131
79
  required_rubygems_version: !ruby/object:Gem::Requirement
132
80
  requirements:
133
81
  - - ">="
@@ -135,7 +83,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
135
83
  version: '0'
136
84
  requirements: []
137
85
  rubyforge_project:
138
- rubygems_version: 2.4.6
86
+ rubygems_version: 2.5.0
139
87
  signing_key:
140
88
  specification_version: 4
141
89
  summary: URI Implementation
@@ -1,110 +0,0 @@
1
- <!DOCTYPE html>
2
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
3
- <head>
4
- <meta charset="utf-8"/>
5
- <title>Addressable</title>
6
- <style type="text/css">
7
- * {
8
- font-size: 100%;
9
- margin: 0;
10
- padding: 0;
11
- }
12
-
13
- body {
14
- font-family: lucida grande, verdana, sans-serif;
15
- margin: 1em;
16
- }
17
-
18
- a {
19
- color: #880000;
20
- }
21
-
22
- a:visited {
23
- color: #333333;
24
- }
25
-
26
- h1 {
27
- font-size: 2em;
28
- margin: 0 0 0.8em 0;
29
- text-align: center;
30
- }
31
-
32
- h2 {
33
- font-size: 1em;
34
- margin: 0.8em 0;
35
- }
36
-
37
- p {
38
- margin: 0.8em 0;
39
- }
40
-
41
- ul {
42
- font-size: 0.9em;
43
- margin: 0 0 0 1.5em;
44
- }
45
-
46
- div {
47
- width: 50%;
48
- margin: 0 auto;
49
- padding: 0.8em;
50
- background-color: #AA5852;
51
- border: 2px solid #C2645D;
52
- }
53
-
54
- @media print {
55
- body {
56
- font-size: 0.9em;
57
- }
58
-
59
- a {
60
- text-decoration: none;
61
- color: #000;
62
- }
63
- }
64
- </style>
65
- </head>
66
- <body>
67
- <h1>Addressable</h1>
68
- <div>
69
- <p>
70
- Addressable is a replacement for the URI implementation that is part
71
- of Ruby's standard library. It more closely conforms to the relevant
72
- RFCs and adds support for IRIs and URI templates.
73
- </p>
74
- <ul>
75
- <li>
76
- <a href="http://rubyforge.org/projects/addressable/">
77
- Project Page
78
- </a>
79
- </li>
80
- <li>
81
- <a href="http://github.com/sporkmonger/addressable">
82
- GitHub Page
83
- </a>
84
- </li>
85
- <li><a href="http://rubydoc.info/gems/addressable">API</a></li>
86
- <li><a href="/specdoc/">Specifications</a></li>
87
- <li><a href="/coverage/">Code Coverage</a></li>
88
- </ul>
89
- <p>
90
- You know what to do:
91
- </p>
92
- <p>
93
- <code>sudo gem install addressable</code>
94
- </p>
95
- <p>
96
- Alternatively, you can:
97
- </p>
98
- <p>
99
- <code>
100
- git submodule add
101
- git://github.com/sporkmonger/addressable.git
102
- vendor/gems/addressable
103
- </code>
104
- </p>
105
- <p>
106
- Addressable works in Ruby 1.8.x, 1.9.x, and JRuby.
107
- </p>
108
- </div>
109
- </body>
110
- </html>