rack-cors 0.2.5 → 0.2.6

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

Potentially problematic release.


This version of rack-cors might be problematic. Click here for more details.

data/Gemfile ADDED
@@ -0,0 +1,11 @@
1
+ source :rubygems
2
+
3
+ gem "rack"
4
+
5
+ group :development do
6
+ gem "rake"
7
+ gem "shoulda"
8
+ gem "rack-test"
9
+ gem "bundler", "~> 1.1.0"
10
+ gem "jeweler", "~> 1.8.3"
11
+ end
@@ -0,0 +1,20 @@
1
+ Copyright (c) 2012 Calvin Yu
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/Rakefile CHANGED
@@ -1,30 +1,46 @@
1
+ # encoding: utf-8
2
+
3
+ require 'rubygems'
4
+ require 'bundler'
5
+ begin
6
+ Bundler.setup(:default, :development)
7
+ rescue Bundler::BundlerError => e
8
+ $stderr.puts e.message
9
+ $stderr.puts "Run `bundle install` to install missing gems"
10
+ exit e.status_code
11
+ end
1
12
  require 'rake'
2
- require 'rake/testtask'
3
13
 
4
- desc 'Run tests'
5
- Rake::TestTask.new(:test) do |t|
6
- t.pattern = 'test/*_test.rb'
7
- t.verbose = true
8
- t.warning = true
14
+ require 'jeweler'
15
+ Jeweler::Tasks.new do |gem|
16
+ # gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
17
+ gem.name = "rack-cors"
18
+ gem.homepage = "http://github.com/cyu/rack-cors"
19
+ gem.license = "MIT"
20
+ gem.summary = "Middleware for enabling Cross-Origin Resource Sharing in Rack apps"
21
+ gem.description = "Middleware that will make Rack-based apps CORS compatible. Read more here: http://blog.sourcebender.com/2010/06/09/introducin-rack-cors.html. Fork the project here: http://github.com/cyu/rack-cors"
22
+ gem.email = "me@sourcebender.com"
23
+ gem.authors = ["Calvin Yu"]
24
+ # dependencies defined in Gemfile
25
+ end
26
+ Jeweler::RubygemsDotOrgTasks.new
27
+
28
+ require 'rake/testtask'
29
+ Rake::TestTask.new(:test) do |test|
30
+ test.libs << 'lib' << 'test'
31
+ test.pattern = 'test/**/*_test.rb'
32
+ test.verbose = true
9
33
  end
10
34
 
11
- # ==================================================
12
- # JEWELER TASKS
13
- # ==================================================
14
- begin
15
- require 'jeweler'
16
- Jeweler::Tasks.new do |gemspec|
17
- gemspec.name = "rack-cors"
18
- gemspec.summary = "Middleware for enabling Cross-Origin Resource Sharing in Rack apps"
19
- gemspec.description = "Middleware that will make Rack-based apps CORS compatible. Read more here: http://blog.sourcebender.com/2010/06/09/introducin-rack-cors.html. Fork the project here: http://github.com/cyu/rack-cors"
20
- gemspec.email = "csyu77@gmail.com"
21
- gemspec.homepage = "http://github.com/cyu/rack-cors"
22
- gemspec.authors = ["Calvin Yu"]
23
- gemspec.add_dependency 'rack'
24
- gemspec.files.exclude 'Gemfile'
25
- end
26
- Jeweler::GemcutterTasks.new
27
- rescue LoadError
28
- puts "Jeweler not available. Install it with: gem install jeweler"
35
+ task :default => :test
36
+
37
+ require 'rdoc/task'
38
+ Rake::RDocTask.new do |rdoc|
39
+ version = File.exist?('VERSION') ? File.read('VERSION') : ""
40
+
41
+ rdoc.rdoc_dir = 'rdoc'
42
+ rdoc.title = "rack-cors2 #{version}"
43
+ rdoc.rdoc_files.include('README*')
44
+ rdoc.rdoc_files.include('lib/**/*.rb')
29
45
  end
30
46
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.5
1
+ 0.2.6
@@ -5,27 +5,31 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "rack-cors"
8
- s.version = "0.2.5"
8
+ s.version = "0.2.6"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Calvin Yu"]
12
12
  s.date = "2012-04-26"
13
13
  s.description = "Middleware that will make Rack-based apps CORS compatible. Read more here: http://blog.sourcebender.com/2010/06/09/introducin-rack-cors.html. Fork the project here: http://github.com/cyu/rack-cors"
14
- s.email = "csyu77@gmail.com"
14
+ s.email = "me@sourcebender.com"
15
15
  s.extra_rdoc_files = [
16
+ "LICENSE.txt",
16
17
  "README.rdoc"
17
18
  ]
18
19
  s.files = [
20
+ "Gemfile",
21
+ "LICENSE.txt",
19
22
  "README.rdoc",
20
23
  "Rakefile",
21
24
  "VERSION",
22
25
  "lib/rack/cors.rb",
23
26
  "rack-cors.gemspec",
24
- "test/cors_test.rb",
25
- "test/dsl_test.rb",
26
- "test/test.ru"
27
+ "test/unit/cors_test.rb",
28
+ "test/unit/dsl_test.rb",
29
+ "test/unit/test.ru"
27
30
  ]
28
31
  s.homepage = "http://github.com/cyu/rack-cors"
32
+ s.licenses = ["MIT"]
29
33
  s.require_paths = ["lib"]
30
34
  s.rubygems_version = "1.8.23"
31
35
  s.summary = "Middleware for enabling Cross-Origin Resource Sharing in Rack apps"
@@ -34,15 +38,27 @@ Gem::Specification.new do |s|
34
38
  s.specification_version = 3
35
39
 
36
40
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
37
- s.add_runtime_dependency(%q<rack-cors>, [">= 0"])
38
41
  s.add_runtime_dependency(%q<rack>, [">= 0"])
42
+ s.add_development_dependency(%q<rake>, [">= 0"])
43
+ s.add_development_dependency(%q<shoulda>, [">= 0"])
44
+ s.add_development_dependency(%q<rack-test>, [">= 0"])
45
+ s.add_development_dependency(%q<bundler>, ["~> 1.1.0"])
46
+ s.add_development_dependency(%q<jeweler>, ["~> 1.8.3"])
39
47
  else
40
- s.add_dependency(%q<rack-cors>, [">= 0"])
41
48
  s.add_dependency(%q<rack>, [">= 0"])
49
+ s.add_dependency(%q<rake>, [">= 0"])
50
+ s.add_dependency(%q<shoulda>, [">= 0"])
51
+ s.add_dependency(%q<rack-test>, [">= 0"])
52
+ s.add_dependency(%q<bundler>, ["~> 1.1.0"])
53
+ s.add_dependency(%q<jeweler>, ["~> 1.8.3"])
42
54
  end
43
55
  else
44
- s.add_dependency(%q<rack-cors>, [">= 0"])
45
56
  s.add_dependency(%q<rack>, [">= 0"])
57
+ s.add_dependency(%q<rake>, [">= 0"])
58
+ s.add_dependency(%q<shoulda>, [">= 0"])
59
+ s.add_dependency(%q<rack-test>, [">= 0"])
60
+ s.add_dependency(%q<bundler>, ["~> 1.1.0"])
61
+ s.add_dependency(%q<jeweler>, ["~> 1.8.3"])
46
62
  end
47
63
  end
48
64
 
File without changes
File without changes
File without changes
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack-cors
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.5
4
+ version: 0.2.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -12,7 +12,7 @@ cert_chain: []
12
12
  date: 2012-04-26 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
- name: rack-cors
15
+ name: rack
16
16
  requirement: !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
@@ -28,14 +28,30 @@ dependencies:
28
28
  - !ruby/object:Gem::Version
29
29
  version: '0'
30
30
  - !ruby/object:Gem::Dependency
31
- name: rack
31
+ name: rake
32
32
  requirement: !ruby/object:Gem::Requirement
33
33
  none: false
34
34
  requirements:
35
35
  - - ! '>='
36
36
  - !ruby/object:Gem::Version
37
37
  version: '0'
38
- type: :runtime
38
+ type: :development
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: '0'
46
+ - !ruby/object:Gem::Dependency
47
+ name: shoulda
48
+ requirement: !ruby/object:Gem::Requirement
49
+ none: false
50
+ requirements:
51
+ - - ! '>='
52
+ - !ruby/object:Gem::Version
53
+ version: '0'
54
+ type: :development
39
55
  prerelease: false
40
56
  version_requirements: !ruby/object:Gem::Requirement
41
57
  none: false
@@ -43,25 +59,77 @@ dependencies:
43
59
  - - ! '>='
44
60
  - !ruby/object:Gem::Version
45
61
  version: '0'
62
+ - !ruby/object:Gem::Dependency
63
+ name: rack-test
64
+ requirement: !ruby/object:Gem::Requirement
65
+ none: false
66
+ requirements:
67
+ - - ! '>='
68
+ - !ruby/object:Gem::Version
69
+ version: '0'
70
+ type: :development
71
+ prerelease: false
72
+ version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ! '>='
76
+ - !ruby/object:Gem::Version
77
+ version: '0'
78
+ - !ruby/object:Gem::Dependency
79
+ name: bundler
80
+ requirement: !ruby/object:Gem::Requirement
81
+ none: false
82
+ requirements:
83
+ - - ~>
84
+ - !ruby/object:Gem::Version
85
+ version: 1.1.0
86
+ type: :development
87
+ prerelease: false
88
+ version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
90
+ requirements:
91
+ - - ~>
92
+ - !ruby/object:Gem::Version
93
+ version: 1.1.0
94
+ - !ruby/object:Gem::Dependency
95
+ name: jeweler
96
+ requirement: !ruby/object:Gem::Requirement
97
+ none: false
98
+ requirements:
99
+ - - ~>
100
+ - !ruby/object:Gem::Version
101
+ version: 1.8.3
102
+ type: :development
103
+ prerelease: false
104
+ version_requirements: !ruby/object:Gem::Requirement
105
+ none: false
106
+ requirements:
107
+ - - ~>
108
+ - !ruby/object:Gem::Version
109
+ version: 1.8.3
46
110
  description: ! 'Middleware that will make Rack-based apps CORS compatible. Read more
47
111
  here: http://blog.sourcebender.com/2010/06/09/introducin-rack-cors.html. Fork the
48
112
  project here: http://github.com/cyu/rack-cors'
49
- email: csyu77@gmail.com
113
+ email: me@sourcebender.com
50
114
  executables: []
51
115
  extensions: []
52
116
  extra_rdoc_files:
117
+ - LICENSE.txt
53
118
  - README.rdoc
54
119
  files:
120
+ - Gemfile
121
+ - LICENSE.txt
55
122
  - README.rdoc
56
123
  - Rakefile
57
124
  - VERSION
58
125
  - lib/rack/cors.rb
59
126
  - rack-cors.gemspec
60
- - test/cors_test.rb
61
- - test/dsl_test.rb
62
- - test/test.ru
127
+ - test/unit/cors_test.rb
128
+ - test/unit/dsl_test.rb
129
+ - test/unit/test.ru
63
130
  homepage: http://github.com/cyu/rack-cors
64
- licenses: []
131
+ licenses:
132
+ - MIT
65
133
  post_install_message:
66
134
  rdoc_options: []
67
135
  require_paths:
@@ -72,6 +140,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
72
140
  - - ! '>='
73
141
  - !ruby/object:Gem::Version
74
142
  version: '0'
143
+ segments:
144
+ - 0
145
+ hash: 3665249374424350309
75
146
  required_rubygems_version: !ruby/object:Gem::Requirement
76
147
  none: false
77
148
  requirements: