apartment 0.17.2 → 0.17.3

Sign up to get free protection for your applications and to get access to all the features.
Binary file
@@ -5,7 +5,8 @@ module Apartment
5
5
  class FirstSubdomain < Subdomain
6
6
 
7
7
  def parse_database_name(request)
8
- super(request).match(/(\w+)(\.\w+)?/)[1]
8
+ subdomain = super(request)
9
+ subdomain && subdomain.match(/(\w+)(\.\w+)?/)[1]
9
10
  end
10
11
 
11
12
  end
@@ -1,3 +1,3 @@
1
1
  module Apartment
2
- VERSION = "0.17.2"
2
+ VERSION = "0.17.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: apartment
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.17.2
4
+ version: 0.17.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2012-11-15 00:00:00.000000000 Z
13
+ date: 2012-11-20 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: activerecord
@@ -229,6 +229,7 @@ executables: []
229
229
  extensions: []
230
230
  extra_rdoc_files: []
231
231
  files:
232
+ - .DS_Store
232
233
  - .gitignore
233
234
  - .pryrc
234
235
  - .rspec
@@ -341,7 +342,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
341
342
  version: '0'
342
343
  segments:
343
344
  - 0
344
- hash: 3706391324035318111
345
+ hash: -682928631525156949
345
346
  required_rubygems_version: !ruby/object:Gem::Requirement
346
347
  none: false
347
348
  requirements:
@@ -350,7 +351,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
350
351
  version: '0'
351
352
  segments:
352
353
  - 0
353
- hash: 3706391324035318111
354
+ hash: -682928631525156949
354
355
  requirements: []
355
356
  rubyforge_project:
356
357
  rubygems_version: 1.8.24