sinatra-subdomain 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +1 -0
- data/Gemfile +2 -0
- data/Gemfile.lock +49 -0
- data/Rakefile +11 -0
- data/lib/sinatra/subdomain/version.rb +1 -1
- data/lib/sinatra/subdomain.rb +1 -1
- data/sinatra-subdomain.gemspec +24 -0
- data/test/test_helper.rb +1 -1
- metadata +79 -50
data/.gitignore
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
pkg
|
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,49 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
sinatra-subdomain (0.1.1)
|
5
|
+
sinatra
|
6
|
+
|
7
|
+
GEM
|
8
|
+
remote: http://rubygems.org/
|
9
|
+
specs:
|
10
|
+
capybara (1.1.1)
|
11
|
+
mime-types (>= 1.16)
|
12
|
+
nokogiri (>= 1.3.3)
|
13
|
+
rack (>= 1.0.0)
|
14
|
+
rack-test (>= 0.5.4)
|
15
|
+
selenium-webdriver (~> 2.0)
|
16
|
+
xpath (~> 0.1.4)
|
17
|
+
childprocess (0.2.2)
|
18
|
+
ffi (~> 1.0.6)
|
19
|
+
ffi (1.0.9)
|
20
|
+
json_pure (1.5.4)
|
21
|
+
spruz (~> 0.2.8)
|
22
|
+
mime-types (1.16)
|
23
|
+
nokogiri (1.5.0)
|
24
|
+
rack (1.3.2)
|
25
|
+
rack-test (0.6.1)
|
26
|
+
rack (>= 1.0)
|
27
|
+
rake (0.9.2)
|
28
|
+
rubyzip (0.9.4)
|
29
|
+
selenium-webdriver (2.5.0)
|
30
|
+
childprocess (>= 0.2.1)
|
31
|
+
ffi (>= 1.0.7)
|
32
|
+
json_pure
|
33
|
+
rubyzip
|
34
|
+
sinatra (1.2.6)
|
35
|
+
rack (~> 1.1)
|
36
|
+
tilt (>= 1.2.2, < 2.0)
|
37
|
+
spruz (0.2.13)
|
38
|
+
tilt (1.3.3)
|
39
|
+
xpath (0.1.4)
|
40
|
+
nokogiri (~> 1.3)
|
41
|
+
|
42
|
+
PLATFORMS
|
43
|
+
ruby
|
44
|
+
|
45
|
+
DEPENDENCIES
|
46
|
+
capybara
|
47
|
+
rack-test
|
48
|
+
rake
|
49
|
+
sinatra-subdomain!
|
data/Rakefile
ADDED
@@ -0,0 +1,11 @@
|
|
1
|
+
require "bundler"
|
2
|
+
Bundler::GemHelper.install_tasks
|
3
|
+
|
4
|
+
desc "Run tests"
|
5
|
+
task :test do
|
6
|
+
# Hack needed: some tests failed when using different Rack apps
|
7
|
+
# with rake/testtask
|
8
|
+
%w[ subdomain_test.rb multiple_tlds_test.rb ].each do |file|
|
9
|
+
system "ruby -rubygems -Ilib -Itest test/#{file}"
|
10
|
+
end
|
11
|
+
end
|
data/lib/sinatra/subdomain.rb
CHANGED
@@ -0,0 +1,24 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
$:.push File.expand_path("../lib", __FILE__)
|
3
|
+
require "sinatra/subdomain/version"
|
4
|
+
|
5
|
+
Gem::Specification.new do |s|
|
6
|
+
s.name = "sinatra-subdomain"
|
7
|
+
s.version = Sinatra::Subdomain::Version::STRING
|
8
|
+
s.platform = Gem::Platform::RUBY
|
9
|
+
s.authors = ["Nando Vieira"]
|
10
|
+
s.email = ["fnando.vieira@gmail.com"]
|
11
|
+
s.homepage = "http://rubygems.org/gems/sinatra-subdomain"
|
12
|
+
s.summary = "Separate routes for subdomains on Sinatra"
|
13
|
+
s.description = s.summary
|
14
|
+
|
15
|
+
s.files = `git ls-files`.split("\n")
|
16
|
+
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
17
|
+
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
18
|
+
s.require_paths = ["lib"]
|
19
|
+
|
20
|
+
s.add_dependency "sinatra"
|
21
|
+
s.add_development_dependency "rake"
|
22
|
+
s.add_development_dependency "rack-test"
|
23
|
+
s.add_development_dependency "capybara"
|
24
|
+
end
|
data/test/test_helper.rb
CHANGED
metadata
CHANGED
@@ -1,80 +1,109 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: sinatra-subdomain
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
|
6
|
-
- 0
|
7
|
-
- 1
|
8
|
-
- 0
|
9
|
-
version: 0.1.0
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.1
|
5
|
+
prerelease:
|
10
6
|
platform: ruby
|
11
|
-
authors:
|
7
|
+
authors:
|
12
8
|
- Nando Vieira
|
13
9
|
autorequire:
|
14
10
|
bindir: bin
|
15
11
|
cert_chain: []
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
dependencies:
|
20
|
-
- !ruby/object:Gem::Dependency
|
12
|
+
date: 2011-10-14 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
21
15
|
name: sinatra
|
22
|
-
|
23
|
-
|
24
|
-
requirements:
|
25
|
-
- -
|
26
|
-
- !ruby/object:Gem::Version
|
27
|
-
|
28
|
-
- 0
|
29
|
-
version: "0"
|
16
|
+
requirement: &70271793132080 !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '0'
|
30
22
|
type: :runtime
|
31
|
-
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: *70271793132080
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: rake
|
27
|
+
requirement: &70271793129920 !ruby/object:Gem::Requirement
|
28
|
+
none: false
|
29
|
+
requirements:
|
30
|
+
- - ! '>='
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '0'
|
33
|
+
type: :development
|
34
|
+
prerelease: false
|
35
|
+
version_requirements: *70271793129920
|
36
|
+
- !ruby/object:Gem::Dependency
|
37
|
+
name: rack-test
|
38
|
+
requirement: &70271793128720 !ruby/object:Gem::Requirement
|
39
|
+
none: false
|
40
|
+
requirements:
|
41
|
+
- - ! '>='
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: '0'
|
44
|
+
type: :development
|
45
|
+
prerelease: false
|
46
|
+
version_requirements: *70271793128720
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
name: capybara
|
49
|
+
requirement: &70271793143680 !ruby/object:Gem::Requirement
|
50
|
+
none: false
|
51
|
+
requirements:
|
52
|
+
- - ! '>='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
type: :development
|
56
|
+
prerelease: false
|
57
|
+
version_requirements: *70271793143680
|
32
58
|
description: Separate routes for subdomains on Sinatra
|
33
|
-
email:
|
59
|
+
email:
|
60
|
+
- fnando.vieira@gmail.com
|
34
61
|
executables: []
|
35
|
-
|
36
62
|
extensions: []
|
37
|
-
|
38
|
-
|
39
|
-
-
|
40
|
-
|
63
|
+
extra_rdoc_files: []
|
64
|
+
files:
|
65
|
+
- .gitignore
|
66
|
+
- Gemfile
|
67
|
+
- Gemfile.lock
|
41
68
|
- README.rdoc
|
69
|
+
- Rakefile
|
42
70
|
- lib/sinatra/subdomain.rb
|
43
71
|
- lib/sinatra/subdomain/version.rb
|
72
|
+
- sinatra-subdomain.gemspec
|
44
73
|
- test/multiple_tlds_test.rb
|
45
74
|
- test/subdomain_test.rb
|
46
75
|
- test/test_helper.rb
|
47
|
-
|
48
|
-
homepage: http://github.com/fnando/sinatra-subdomain
|
76
|
+
homepage: http://rubygems.org/gems/sinatra-subdomain
|
49
77
|
licenses: []
|
50
|
-
|
51
78
|
post_install_message:
|
52
|
-
rdoc_options:
|
53
|
-
|
54
|
-
require_paths:
|
79
|
+
rdoc_options: []
|
80
|
+
require_paths:
|
55
81
|
- lib
|
56
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
82
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
83
|
+
none: false
|
84
|
+
requirements:
|
85
|
+
- - ! '>='
|
86
|
+
- !ruby/object:Gem::Version
|
87
|
+
version: '0'
|
88
|
+
segments:
|
61
89
|
- 0
|
62
|
-
|
63
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
90
|
+
hash: -355263696072099514
|
91
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
92
|
+
none: false
|
93
|
+
requirements:
|
94
|
+
- - ! '>='
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
|
+
segments:
|
68
98
|
- 0
|
69
|
-
|
99
|
+
hash: -355263696072099514
|
70
100
|
requirements: []
|
71
|
-
|
72
101
|
rubyforge_project:
|
73
|
-
rubygems_version: 1.
|
102
|
+
rubygems_version: 1.8.10
|
74
103
|
signing_key:
|
75
104
|
specification_version: 3
|
76
105
|
summary: Separate routes for subdomains on Sinatra
|
77
|
-
test_files:
|
106
|
+
test_files:
|
78
107
|
- test/multiple_tlds_test.rb
|
79
108
|
- test/subdomain_test.rb
|
80
109
|
- test/test_helper.rb
|