subdomain_router 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: d296130b21346102caccd5f18dec734a44209991
4
+ data.tar.gz: 44d46c514cfce648c5d1bb5568a75e26b00b35ee
5
+ SHA512:
6
+ metadata.gz: dbfc5aa3f11c14b5f2eda3fa12eed8fa47a97b1baf901c84248634c952804e0c3c20486289119d47189f87021b5dd736bbbe8828f8f6542ffb77629cbd8d9569
7
+ data.tar.gz: 216b8443608d3ed82f7fc41cc0b4fc6aa7304d8d3d5fe47be2c2db182942f47feedd10fb93c8bf75a480b227f7ec05e740410396d4f2d34724667bee7b3f69c3
data/.rspec CHANGED
@@ -1 +1,2 @@
1
1
  --color
2
+ --format documentation
@@ -0,0 +1 @@
1
+ subdomain_router
@@ -0,0 +1 @@
1
+ ruby-2.3.1
data/Gemfile CHANGED
@@ -1,6 +1,6 @@
1
1
  source 'http://rubygems.org'
2
2
 
3
- gem 'rails'
3
+ gem 'rails', '>= 5.0.0'
4
4
 
5
5
  group :development do
6
6
  # SPECS
@@ -12,5 +12,5 @@ group :development do
12
12
 
13
13
  # DEVELOPMENT
14
14
  gem 'bundler'
15
- gem 'jeweler'
15
+ gem 'juwelier'
16
16
  end
@@ -1,107 +1,171 @@
1
1
  GEM
2
2
  remote: http://rubygems.org/
3
3
  specs:
4
- actionmailer (3.2.3)
5
- actionpack (= 3.2.3)
6
- mail (~> 2.4.4)
7
- actionpack (3.2.3)
8
- activemodel (= 3.2.3)
9
- activesupport (= 3.2.3)
10
- builder (~> 3.0.0)
4
+ actioncable (5.0.0)
5
+ actionpack (= 5.0.0)
6
+ nio4r (~> 1.2)
7
+ websocket-driver (~> 0.6.1)
8
+ actionmailer (5.0.0)
9
+ actionpack (= 5.0.0)
10
+ actionview (= 5.0.0)
11
+ activejob (= 5.0.0)
12
+ mail (~> 2.5, >= 2.5.4)
13
+ rails-dom-testing (~> 2.0)
14
+ actionpack (5.0.0)
15
+ actionview (= 5.0.0)
16
+ activesupport (= 5.0.0)
17
+ rack (~> 2.0)
18
+ rack-test (~> 0.6.3)
19
+ rails-dom-testing (~> 2.0)
20
+ rails-html-sanitizer (~> 1.0, >= 1.0.2)
21
+ actionview (5.0.0)
22
+ activesupport (= 5.0.0)
23
+ builder (~> 3.1)
11
24
  erubis (~> 2.7.0)
12
- journey (~> 1.0.1)
13
- rack (~> 1.4.0)
14
- rack-cache (~> 1.2)
15
- rack-test (~> 0.6.1)
16
- sprockets (~> 2.1.2)
17
- activemodel (3.2.3)
18
- activesupport (= 3.2.3)
19
- builder (~> 3.0.0)
20
- activerecord (3.2.3)
21
- activemodel (= 3.2.3)
22
- activesupport (= 3.2.3)
23
- arel (~> 3.0.2)
24
- tzinfo (~> 0.3.29)
25
- activeresource (3.2.3)
26
- activemodel (= 3.2.3)
27
- activesupport (= 3.2.3)
28
- activesupport (3.2.3)
29
- i18n (~> 0.6)
30
- multi_json (~> 1.0)
31
- arel (3.0.2)
32
- builder (3.0.0)
33
- diff-lcs (1.1.3)
25
+ rails-dom-testing (~> 2.0)
26
+ rails-html-sanitizer (~> 1.0, >= 1.0.2)
27
+ activejob (5.0.0)
28
+ activesupport (= 5.0.0)
29
+ globalid (>= 0.3.6)
30
+ activemodel (5.0.0)
31
+ activesupport (= 5.0.0)
32
+ activerecord (5.0.0)
33
+ activemodel (= 5.0.0)
34
+ activesupport (= 5.0.0)
35
+ arel (~> 7.0)
36
+ activesupport (5.0.0)
37
+ concurrent-ruby (~> 1.0, >= 1.0.2)
38
+ i18n (~> 0.7)
39
+ minitest (~> 5.1)
40
+ tzinfo (~> 1.1)
41
+ addressable (2.4.0)
42
+ arel (7.0.0)
43
+ builder (3.2.2)
44
+ concurrent-ruby (1.0.2)
45
+ descendants_tracker (0.0.4)
46
+ thread_safe (~> 0.3, >= 0.3.1)
47
+ diff-lcs (1.2.5)
34
48
  erubis (2.7.0)
35
- git (1.2.5)
36
- hike (1.2.1)
37
- i18n (0.6.0)
38
- jeweler (1.8.3)
39
- bundler (~> 1.0)
49
+ faraday (0.9.2)
50
+ multipart-post (>= 1.2, < 3)
51
+ git (1.3.0)
52
+ github_api (0.14.2)
53
+ addressable (~> 2.4.0)
54
+ descendants_tracker (~> 0.0.4)
55
+ faraday (~> 0.8, < 0.10)
56
+ hashie (>= 3.4)
57
+ oauth2
58
+ globalid (0.3.6)
59
+ activesupport (>= 4.1.0)
60
+ hashie (3.4.4)
61
+ highline (1.7.8)
62
+ i18n (0.7.0)
63
+ json (1.8.3)
64
+ juwelier (2.1.2)
65
+ builder
66
+ bundler (>= 1.0)
40
67
  git (>= 1.2.5)
68
+ github_api
69
+ highline (>= 1.6.15)
70
+ nokogiri (>= 1.5.10)
41
71
  rake
42
72
  rdoc
43
- journey (1.0.3)
44
- json (1.6.6)
45
- mail (2.4.4)
46
- i18n (>= 0.4.0)
47
- mime-types (~> 1.16)
48
- treetop (~> 1.4.8)
49
- mime-types (1.18)
50
- multi_json (1.3.2)
51
- polyglot (0.3.3)
52
- rack (1.4.1)
53
- rack-cache (1.2)
54
- rack (>= 0.4)
55
- rack-ssl (1.3.2)
56
- rack
57
- rack-test (0.6.1)
73
+ semver
74
+ jwt (1.5.4)
75
+ loofah (2.0.3)
76
+ nokogiri (>= 1.5.9)
77
+ mail (2.6.4)
78
+ mime-types (>= 1.16, < 4)
79
+ method_source (0.8.2)
80
+ mime-types (3.1)
81
+ mime-types-data (~> 3.2015)
82
+ mime-types-data (3.2016.0521)
83
+ mini_portile2 (2.1.0)
84
+ minitest (5.9.0)
85
+ multi_json (1.12.1)
86
+ multi_xml (0.5.5)
87
+ multipart-post (2.0.0)
88
+ nio4r (1.2.1)
89
+ nokogiri (1.6.8)
90
+ mini_portile2 (~> 2.1.0)
91
+ pkg-config (~> 1.1.7)
92
+ oauth2 (1.2.0)
93
+ faraday (>= 0.8, < 0.10)
94
+ jwt (~> 1.0)
95
+ multi_json (~> 1.3)
96
+ multi_xml (~> 0.5)
97
+ rack (>= 1.2, < 3)
98
+ pkg-config (1.1.7)
99
+ rack (2.0.1)
100
+ rack-test (0.6.3)
58
101
  rack (>= 1.0)
59
- rails (3.2.3)
60
- actionmailer (= 3.2.3)
61
- actionpack (= 3.2.3)
62
- activerecord (= 3.2.3)
63
- activeresource (= 3.2.3)
64
- activesupport (= 3.2.3)
65
- bundler (~> 1.0)
66
- railties (= 3.2.3)
67
- railties (3.2.3)
68
- actionpack (= 3.2.3)
69
- activesupport (= 3.2.3)
70
- rack-ssl (~> 1.3.2)
102
+ rails (5.0.0)
103
+ actioncable (= 5.0.0)
104
+ actionmailer (= 5.0.0)
105
+ actionpack (= 5.0.0)
106
+ actionview (= 5.0.0)
107
+ activejob (= 5.0.0)
108
+ activemodel (= 5.0.0)
109
+ activerecord (= 5.0.0)
110
+ activesupport (= 5.0.0)
111
+ bundler (>= 1.3.0, < 2.0)
112
+ railties (= 5.0.0)
113
+ sprockets-rails (>= 2.0.0)
114
+ rails-dom-testing (2.0.1)
115
+ activesupport (>= 4.2.0, < 6.0)
116
+ nokogiri (~> 1.6.0)
117
+ rails-html-sanitizer (1.0.3)
118
+ loofah (~> 2.0)
119
+ railties (5.0.0)
120
+ actionpack (= 5.0.0)
121
+ activesupport (= 5.0.0)
122
+ method_source
71
123
  rake (>= 0.8.7)
72
- rdoc (~> 3.4)
73
- thor (~> 0.14.6)
74
- rake (0.9.2.2)
75
- rdoc (3.12)
124
+ thor (>= 0.18.1, < 2.0)
125
+ rake (11.2.2)
126
+ rdoc (4.2.2)
76
127
  json (~> 1.4)
77
- redcarpet (2.1.1)
78
- rspec (2.9.0)
79
- rspec-core (~> 2.9.0)
80
- rspec-expectations (~> 2.9.0)
81
- rspec-mocks (~> 2.9.0)
82
- rspec-core (2.9.0)
83
- rspec-expectations (2.9.1)
84
- diff-lcs (~> 1.1.3)
85
- rspec-mocks (2.9.0)
86
- sprockets (2.1.2)
87
- hike (~> 1.2)
88
- rack (~> 1.0)
89
- tilt (~> 1.1, != 1.3.0)
90
- thor (0.14.6)
91
- tilt (1.3.3)
92
- treetop (1.4.10)
93
- polyglot
94
- polyglot (>= 0.3.1)
95
- tzinfo (0.3.33)
96
- yard (0.7.5)
128
+ redcarpet (3.3.4)
129
+ rspec (3.5.0)
130
+ rspec-core (~> 3.5.0)
131
+ rspec-expectations (~> 3.5.0)
132
+ rspec-mocks (~> 3.5.0)
133
+ rspec-core (3.5.0)
134
+ rspec-support (~> 3.5.0)
135
+ rspec-expectations (3.5.0)
136
+ diff-lcs (>= 1.2.0, < 2.0)
137
+ rspec-support (~> 3.5.0)
138
+ rspec-mocks (3.5.0)
139
+ diff-lcs (>= 1.2.0, < 2.0)
140
+ rspec-support (~> 3.5.0)
141
+ rspec-support (3.5.0)
142
+ semver (1.0.1)
143
+ sprockets (3.6.3)
144
+ concurrent-ruby (~> 1.0)
145
+ rack (> 1, < 3)
146
+ sprockets-rails (3.1.1)
147
+ actionpack (>= 4.0)
148
+ activesupport (>= 4.0)
149
+ sprockets (>= 3.0.0)
150
+ thor (0.19.1)
151
+ thread_safe (0.3.5)
152
+ tzinfo (1.2.2)
153
+ thread_safe (~> 0.1)
154
+ websocket-driver (0.6.4)
155
+ websocket-extensions (>= 0.1.0)
156
+ websocket-extensions (0.1.2)
157
+ yard (0.8.7.6)
97
158
 
98
159
  PLATFORMS
99
160
  ruby
100
161
 
101
162
  DEPENDENCIES
102
163
  bundler
103
- jeweler
104
- rails
164
+ juwelier
165
+ rails (>= 5.0.0)
105
166
  redcarpet
106
167
  rspec
107
168
  yard
169
+
170
+ BUNDLED WITH
171
+ 1.12.5
data/Rakefile CHANGED
@@ -11,8 +11,8 @@ rescue Bundler::BundlerError => e
11
11
  end
12
12
  require 'rake'
13
13
 
14
- require 'jeweler'
15
- Jeweler::Tasks.new do |gem|
14
+ require 'juwelier'
15
+ Juwelier::Tasks.new do |gem|
16
16
  # gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
17
17
  gem.name = "subdomain_router"
18
18
  gem.homepage = "http://github.com/RISCfuture/subdomain_router"
@@ -23,7 +23,7 @@ Jeweler::Tasks.new do |gem|
23
23
  gem.authors = ["Tim Morgan"]
24
24
  # dependencies defined in Gemfile
25
25
  end
26
- Jeweler::RubygemsDotOrgTasks.new
26
+ Juwelier::RubygemsDotOrgTasks.new
27
27
 
28
28
  require 'rspec/core'
29
29
  require 'rspec/core/rake_task'
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.0
1
+ 1.0.1
@@ -15,65 +15,65 @@ describe SubdomainRouter::Controller do
15
15
 
16
16
  describe "#url_for" do
17
17
  it "should call the superclass unless a hash is given" do
18
- @controller.url_for('foo').should eql('foo')
18
+ expect(@controller.url_for('foo')).to eql('foo')
19
19
  end
20
20
 
21
21
  context "[given host]" do
22
22
  before :each do
23
- @controller.stub!(:request).and_return(mock('ActionDispatch::Request', host: 'test.host'))
23
+ allow(@controller).to receive(:request).and_return(double('ActionDispatch::Request', host: 'test.host'))
24
24
  end
25
25
 
26
26
  it "should leave the domain untouched if :subdomain => nil" do
27
- @controller.url_for(host: 'foo.bar').should eql(host: 'foo.bar')
28
- @controller.url_for(host: 'sd.foo.bar').should eql(host: 'sd.foo.bar')
29
- @controller.url_for(host: 'baz.bat.foo.bar').should eql(host: 'baz.bat.foo.bar')
27
+ expect(@controller.url_for(host: 'foo.bar')).to eql(host: 'foo.bar')
28
+ expect(@controller.url_for(host: 'sd.foo.bar')).to eql(host: 'sd.foo.bar')
29
+ expect(@controller.url_for(host: 'baz.bat.foo.bar')).to eql(host: 'baz.bat.foo.bar')
30
30
  end
31
31
 
32
32
  it "should replace the subdomain if :subdomain is given" do
33
- @controller.url_for(host: 'foo.bar', subdomain: 'sd').should eql(host: 'sd.foo.bar')
34
- @controller.url_for(host: 'baz.foo.bar', subdomain: 'sd').should eql(host: 'sd.foo.bar')
35
- @controller.url_for(host: 'baz.bat.foo.bar', subdomain: 'sd').should eql(host: 'sd.foo.bar')
33
+ expect(@controller.url_for(host: 'foo.bar', subdomain: 'sd')).to eql(host: 'sd.foo.bar')
34
+ expect(@controller.url_for(host: 'baz.foo.bar', subdomain: 'sd')).to eql(host: 'sd.foo.bar')
35
+ expect(@controller.url_for(host: 'baz.bat.foo.bar', subdomain: 'sd')).to eql(host: 'sd.foo.bar')
36
36
  end
37
37
 
38
38
  it "should use the default subdomain if :subdomain is false" do
39
- @controller.url_for(host: 'foo.bar', subdomain: false).should eql(host: 'foo.bar')
40
- @controller.url_for(host: 'baz.foo.bar', subdomain: false).should eql(host: 'foo.bar')
41
- @controller.url_for(host: 'baz.bat.foo.bar', subdomain: false).should eql(host: 'foo.bar')
39
+ expect(@controller.url_for(host: 'foo.bar', subdomain: false)).to eql(host: 'foo.bar')
40
+ expect(@controller.url_for(host: 'baz.foo.bar', subdomain: false)).to eql(host: 'foo.bar')
41
+ expect(@controller.url_for(host: 'baz.bat.foo.bar', subdomain: false)).to eql(host: 'foo.bar')
42
42
  end
43
43
  end
44
44
 
45
45
  context "[request host]" do
46
46
  it "should leave the domain untouched if :subdomain => nil" do
47
- @controller.stub!(:request).and_return(mock('ActionDispatch::Request', host: 'foo.bar'))
48
- @controller.url_for(subdomain: nil).should eql({})
47
+ allow(@controller).to receive(:request).and_return(double('ActionDispatch::Request', host: 'foo.bar'))
48
+ expect(@controller.url_for(subdomain: nil)).to eql({})
49
49
 
50
- @controller.stub!(:request).and_return(mock('ActionDispatch::Request', host: 'sd.foo.bar'))
51
- @controller.url_for(subdomain: nil).should eql({})
50
+ allow(@controller).to receive(:request).and_return(double('ActionDispatch::Request', host: 'sd.foo.bar'))
51
+ expect(@controller.url_for(subdomain: nil)).to eql({})
52
52
 
53
- @controller.stub!(:request).and_return(mock('ActionDispatch::Request', host: 'baz.bat.foo.bar'))
54
- @controller.url_for(subdomain: nil).should eql({})
53
+ allow(@controller).to receive(:request).and_return(double('ActionDispatch::Request', host: 'baz.bat.foo.bar'))
54
+ expect(@controller.url_for(subdomain: nil)).to eql({})
55
55
  end
56
56
 
57
57
  it "should replace the subdomain if :subdomain is given" do
58
- @controller.stub!(:request).and_return(mock('ActionDispatch::Request', host: 'foo.bar'))
59
- @controller.url_for(subdomain: 'sd').should eql(host: 'sd.foo.bar')
58
+ allow(@controller).to receive(:request).and_return(double('ActionDispatch::Request', host: 'foo.bar'))
59
+ expect(@controller.url_for(subdomain: 'sd')).to eql(host: 'sd.foo.bar')
60
60
 
61
- @controller.stub!(:request).and_return(mock('ActionDispatch::Request', host: 'baz.foo.bar'))
62
- @controller.url_for(subdomain: 'sd').should eql(host: 'sd.foo.bar')
61
+ allow(@controller).to receive(:request).and_return(double('ActionDispatch::Request', host: 'baz.foo.bar'))
62
+ expect(@controller.url_for(subdomain: 'sd')).to eql(host: 'sd.foo.bar')
63
63
 
64
- @controller.stub!(:request).and_return(mock('ActionDispatch::Request', host: 'baz.bat.foo.bar'))
65
- @controller.url_for(subdomain: 'sd').should eql(host: 'sd.foo.bar')
64
+ allow(@controller).to receive(:request).and_return(double('ActionDispatch::Request', host: 'baz.bat.foo.bar'))
65
+ expect(@controller.url_for(subdomain: 'sd')).to eql(host: 'sd.foo.bar')
66
66
  end
67
67
 
68
68
  it "should use the default subdomain if :subdomain is false" do
69
- @controller.stub!(:request).and_return(mock('ActionDispatch::Request', host: 'foo.bar'))
70
- @controller.url_for(subdomain: false).should eql(host: 'foo.bar')
69
+ allow(@controller).to receive(:request).and_return(double('ActionDispatch::Request', host: 'foo.bar'))
70
+ expect(@controller.url_for(subdomain: false)).to eql(host: 'foo.bar')
71
71
 
72
- @controller.stub!(:request).and_return(mock('ActionDispatch::Request', host: 'baz.foo.bar'))
73
- @controller.url_for(subdomain: false).should eql(host: 'foo.bar')
72
+ allow(@controller).to receive(:request).and_return(double('ActionDispatch::Request', host: 'baz.foo.bar'))
73
+ expect(@controller.url_for(subdomain: false)).to eql(host: 'foo.bar')
74
74
 
75
- @controller.stub!(:request).and_return(mock('ActionDispatch::Request', host: 'baz.bat.foo.bar'))
76
- @controller.url_for(subdomain: false).should eql(host: 'foo.bar')
75
+ allow(@controller).to receive(:request).and_return(double('ActionDispatch::Request', host: 'baz.bat.foo.bar'))
76
+ expect(@controller.url_for(subdomain: false)).to eql(host: 'foo.bar')
77
77
  end
78
78
  end
79
79
 
@@ -88,15 +88,15 @@ describe SubdomainRouter::Controller do
88
88
 
89
89
  it "should leave the domain untouched if :subdomain => nil" do
90
90
  # no host provided = exception
91
- -> { @mailer.url_for(controller: 'users', action: 'new', subdomain: nil) }.should raise_error(ArgumentError)
91
+ expect { @mailer.url_for(controller: 'users', action: 'new', subdomain: nil) }.to raise_error(ArgumentError)
92
92
  end
93
93
 
94
94
  it "should replace the subdomain if :subdomain is given" do
95
- @mailer.url_for(controller: 'users', action: 'new', subdomain: 'sd').should eql('http://sd.test.host/users/new')
95
+ expect(@mailer.url_for(controller: 'users', action: 'new', subdomain: 'sd')).to eql('http://sd.test.host/users/new')
96
96
  end
97
97
 
98
98
  it "should use the default subdomain if :subdomain is false" do
99
- @mailer.url_for(controller: 'users', action: 'new', subdomain: false).should eql('http://test.host/users/new')
99
+ expect(@mailer.url_for(controller: 'users', action: 'new', subdomain: false)).to eql('http://test.host/users/new')
100
100
  end
101
101
  end
102
102
  end
@@ -106,40 +106,40 @@ describe SubdomainRouter::Constraint do
106
106
  describe ".matches?" do
107
107
  before :each do
108
108
  @env = {}
109
- @request = mock('ActionDispatch::Request', env: @env)
109
+ @request = double('ActionDispatch::Request', env: @env)
110
110
  end
111
111
 
112
112
  it "should return false if there is more than one subdomain" do
113
- @request.stub!(:subdomains).and_return(%w( foo bar ))
114
- SubdomainRouter::Constraint.matches?(@request).should be_false
113
+ allow(@request).to receive(:subdomains).and_return(%w( foo bar ))
114
+ expect(SubdomainRouter::Constraint.matches?(@request)).to eql(false)
115
115
  end
116
116
 
117
117
  it "should return false if there is no subdomain" do
118
- @request.stub!(:subdomains).and_return([])
119
- SubdomainRouter::Constraint.matches?(@request).should be_false
118
+ allow(@request).to receive(:subdomains).and_return([])
119
+ expect(SubdomainRouter::Constraint.matches?(@request)).to eql(false)
120
120
  end
121
121
 
122
122
  it "should return false if the subdomain is equal to the default subdomain" do
123
123
  SubdomainRouter::Config.default_subdomain = 'www'
124
- @request.stub!(:subdomains).and_return(%w( www ))
125
- SubdomainRouter::Constraint.matches?(@request).should be_false
124
+ allow(@request).to receive(:subdomains).and_return(%w( www ))
125
+ expect(SubdomainRouter::Constraint.matches?(@request)).to eql(false)
126
126
  end
127
127
 
128
128
  it "should return false if the subdomain does not belong to any user" do
129
- @request.stub!(:subdomains).and_return(%w( not-found ))
130
- SubdomainRouter::Constraint.matches?(@request).should be_false
129
+ allow(@request).to receive(:subdomains).and_return(%w( not-found ))
130
+ expect(SubdomainRouter::Constraint.matches?(@request)).to eql(false)
131
131
  end
132
132
 
133
133
  it "should return true if the subdomain belongs to a user and save the user to the env" do
134
134
  SubdomainRouter::Config.subdomain_matcher = ->(subdomain, request) { subdomain == 'valid' }
135
- @request.stub!(:subdomains).and_return([ 'valid' ])
136
- SubdomainRouter::Constraint.matches?(@request).should be_true
135
+ allow(@request).to receive(:subdomains).and_return([ 'valid' ])
136
+ expect(SubdomainRouter::Constraint.matches?(@request)).to eql(true)
137
137
  end
138
138
 
139
139
  it "should downcase the subdomain" do
140
140
  SubdomainRouter::Config.subdomain_matcher = ->(subdomain, request) { subdomain == 'valid' }
141
- @request.stub!(:subdomains).and_return([ 'VALID' ])
142
- SubdomainRouter::Constraint.matches?(@request).should be_true
141
+ allow(@request).to receive(:subdomains).and_return([ 'VALID' ])
142
+ expect(SubdomainRouter::Constraint.matches?(@request)).to eql(true)
143
143
  end
144
144
  end
145
145
  end
@@ -1,17 +1,19 @@
1
- # Generated by jeweler
1
+ # Generated by juwelier
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
3
+ # Instead, edit Juwelier::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
+ # stub: subdomain_router 1.0.1 ruby lib
5
6
 
6
7
  Gem::Specification.new do |s|
7
- s.name = "subdomain_router"
8
- s.version = "1.0.0"
8
+ s.name = "subdomain_router".freeze
9
+ s.version = "1.0.1"
9
10
 
10
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
- s.authors = ["Tim Morgan"]
12
- s.date = "2012-04-23"
13
- s.description = "This adds a routing constraint and controller methods to allow dynamic subdomain-based routing."
14
- s.email = "gemcutter@timothymorgan.info"
11
+ s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
12
+ s.require_paths = ["lib".freeze]
13
+ s.authors = ["Tim Morgan".freeze]
14
+ s.date = "2016-07-04"
15
+ s.description = "This adds a routing constraint and controller methods to allow dynamic subdomain-based routing.".freeze
16
+ s.email = "gemcutter@timothymorgan.info".freeze
15
17
  s.extra_rdoc_files = [
16
18
  "LICENSE.txt",
17
19
  "README.md"
@@ -19,7 +21,8 @@ Gem::Specification.new do |s|
19
21
  s.files = [
20
22
  ".document",
21
23
  ".rspec",
22
- ".rvmrc",
24
+ ".ruby-gemset",
25
+ ".ruby-version",
23
26
  "Gemfile",
24
27
  "Gemfile.lock",
25
28
  "LICENSE.txt",
@@ -28,39 +31,39 @@ Gem::Specification.new do |s|
28
31
  "VERSION",
29
32
  "lib/subdomain_router.rb",
30
33
  "spec/spec_helper.rb",
31
- "spec/subdomain_router_spec.rb"
34
+ "spec/subdomain_router_spec.rb",
35
+ "subdomain_router.gemspec"
32
36
  ]
33
- s.homepage = "http://github.com/RISCfuture/subdomain_router"
34
- s.licenses = ["MIT"]
35
- s.require_paths = ["lib"]
36
- s.rubygems_version = "1.8.23"
37
- s.summary = "Use dynamic subdomains in your Rails website"
37
+ s.homepage = "http://github.com/RISCfuture/subdomain_router".freeze
38
+ s.licenses = ["MIT".freeze]
39
+ s.rubygems_version = "2.6.6".freeze
40
+ s.summary = "Use dynamic subdomains in your Rails website".freeze
38
41
 
39
42
  if s.respond_to? :specification_version then
40
- s.specification_version = 3
43
+ s.specification_version = 4
41
44
 
42
45
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
43
- s.add_runtime_dependency(%q<rails>, [">= 0"])
44
- s.add_development_dependency(%q<rspec>, [">= 0"])
45
- s.add_development_dependency(%q<yard>, [">= 0"])
46
- s.add_development_dependency(%q<redcarpet>, [">= 0"])
47
- s.add_development_dependency(%q<bundler>, [">= 0"])
48
- s.add_development_dependency(%q<jeweler>, [">= 0"])
46
+ s.add_runtime_dependency(%q<rails>.freeze, [">= 5.0.0"])
47
+ s.add_development_dependency(%q<rspec>.freeze, [">= 0"])
48
+ s.add_development_dependency(%q<yard>.freeze, [">= 0"])
49
+ s.add_development_dependency(%q<redcarpet>.freeze, [">= 0"])
50
+ s.add_development_dependency(%q<bundler>.freeze, [">= 0"])
51
+ s.add_development_dependency(%q<juwelier>.freeze, [">= 0"])
49
52
  else
50
- s.add_dependency(%q<rails>, [">= 0"])
51
- s.add_dependency(%q<rspec>, [">= 0"])
52
- s.add_dependency(%q<yard>, [">= 0"])
53
- s.add_dependency(%q<redcarpet>, [">= 0"])
54
- s.add_dependency(%q<bundler>, [">= 0"])
55
- s.add_dependency(%q<jeweler>, [">= 0"])
53
+ s.add_dependency(%q<rails>.freeze, [">= 5.0.0"])
54
+ s.add_dependency(%q<rspec>.freeze, [">= 0"])
55
+ s.add_dependency(%q<yard>.freeze, [">= 0"])
56
+ s.add_dependency(%q<redcarpet>.freeze, [">= 0"])
57
+ s.add_dependency(%q<bundler>.freeze, [">= 0"])
58
+ s.add_dependency(%q<juwelier>.freeze, [">= 0"])
56
59
  end
57
60
  else
58
- s.add_dependency(%q<rails>, [">= 0"])
59
- s.add_dependency(%q<rspec>, [">= 0"])
60
- s.add_dependency(%q<yard>, [">= 0"])
61
- s.add_dependency(%q<redcarpet>, [">= 0"])
62
- s.add_dependency(%q<bundler>, [">= 0"])
63
- s.add_dependency(%q<jeweler>, [">= 0"])
61
+ s.add_dependency(%q<rails>.freeze, [">= 5.0.0"])
62
+ s.add_dependency(%q<rspec>.freeze, [">= 0"])
63
+ s.add_dependency(%q<yard>.freeze, [">= 0"])
64
+ s.add_dependency(%q<redcarpet>.freeze, [">= 0"])
65
+ s.add_dependency(%q<bundler>.freeze, [">= 0"])
66
+ s.add_dependency(%q<juwelier>.freeze, [">= 0"])
64
67
  end
65
68
  end
66
69
 
metadata CHANGED
@@ -1,110 +1,97 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: subdomain_router
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
5
- prerelease:
4
+ version: 1.0.1
6
5
  platform: ruby
7
6
  authors:
8
7
  - Tim Morgan
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2012-04-23 00:00:00.000000000 Z
11
+ date: 2016-07-04 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: rails
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ! '>='
17
+ - - ">="
20
18
  - !ruby/object:Gem::Version
21
- version: '0'
19
+ version: 5.0.0
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ! '>='
24
+ - - ">="
28
25
  - !ruby/object:Gem::Version
29
- version: '0'
26
+ version: 5.0.0
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: rspec
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ! '>='
31
+ - - ">="
36
32
  - !ruby/object:Gem::Version
37
33
  version: '0'
38
34
  type: :development
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
- - - ! '>='
38
+ - - ">="
44
39
  - !ruby/object:Gem::Version
45
40
  version: '0'
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: yard
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
- - - ! '>='
45
+ - - ">="
52
46
  - !ruby/object:Gem::Version
53
47
  version: '0'
54
48
  type: :development
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
- - - ! '>='
52
+ - - ">="
60
53
  - !ruby/object:Gem::Version
61
54
  version: '0'
62
55
  - !ruby/object:Gem::Dependency
63
56
  name: redcarpet
64
57
  requirement: !ruby/object:Gem::Requirement
65
- none: false
66
58
  requirements:
67
- - - ! '>='
59
+ - - ">="
68
60
  - !ruby/object:Gem::Version
69
61
  version: '0'
70
62
  type: :development
71
63
  prerelease: false
72
64
  version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
65
  requirements:
75
- - - ! '>='
66
+ - - ">="
76
67
  - !ruby/object:Gem::Version
77
68
  version: '0'
78
69
  - !ruby/object:Gem::Dependency
79
70
  name: bundler
80
71
  requirement: !ruby/object:Gem::Requirement
81
- none: false
82
72
  requirements:
83
- - - ! '>='
73
+ - - ">="
84
74
  - !ruby/object:Gem::Version
85
75
  version: '0'
86
76
  type: :development
87
77
  prerelease: false
88
78
  version_requirements: !ruby/object:Gem::Requirement
89
- none: false
90
79
  requirements:
91
- - - ! '>='
80
+ - - ">="
92
81
  - !ruby/object:Gem::Version
93
82
  version: '0'
94
83
  - !ruby/object:Gem::Dependency
95
- name: jeweler
84
+ name: juwelier
96
85
  requirement: !ruby/object:Gem::Requirement
97
- none: false
98
86
  requirements:
99
- - - ! '>='
87
+ - - ">="
100
88
  - !ruby/object:Gem::Version
101
89
  version: '0'
102
90
  type: :development
103
91
  prerelease: false
104
92
  version_requirements: !ruby/object:Gem::Requirement
105
- none: false
106
93
  requirements:
107
- - - ! '>='
94
+ - - ">="
108
95
  - !ruby/object:Gem::Version
109
96
  version: '0'
110
97
  description: This adds a routing constraint and controller methods to allow dynamic
@@ -116,9 +103,10 @@ extra_rdoc_files:
116
103
  - LICENSE.txt
117
104
  - README.md
118
105
  files:
119
- - .document
120
- - .rspec
121
- - .rvmrc
106
+ - ".document"
107
+ - ".rspec"
108
+ - ".ruby-gemset"
109
+ - ".ruby-version"
122
110
  - Gemfile
123
111
  - Gemfile.lock
124
112
  - LICENSE.txt
@@ -132,29 +120,25 @@ files:
132
120
  homepage: http://github.com/RISCfuture/subdomain_router
133
121
  licenses:
134
122
  - MIT
123
+ metadata: {}
135
124
  post_install_message:
136
125
  rdoc_options: []
137
126
  require_paths:
138
127
  - lib
139
128
  required_ruby_version: !ruby/object:Gem::Requirement
140
- none: false
141
129
  requirements:
142
- - - ! '>='
130
+ - - ">="
143
131
  - !ruby/object:Gem::Version
144
132
  version: '0'
145
- segments:
146
- - 0
147
- hash: -4479704525159209868
148
133
  required_rubygems_version: !ruby/object:Gem::Requirement
149
- none: false
150
134
  requirements:
151
- - - ! '>='
135
+ - - ">="
152
136
  - !ruby/object:Gem::Version
153
137
  version: '0'
154
138
  requirements: []
155
139
  rubyforge_project:
156
- rubygems_version: 1.8.23
140
+ rubygems_version: 2.6.6
157
141
  signing_key:
158
- specification_version: 3
142
+ specification_version: 4
159
143
  summary: Use dynamic subdomains in your Rails website
160
144
  test_files: []
data/.rvmrc DELETED
@@ -1 +0,0 @@
1
- rvm 1.9.3@subdomain_router --create