saasable 5.0.0 → 5.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e713b6114bc528a35836f8533322fe5d99f43b11
4
- data.tar.gz: 4bbf520d6c716841f9aae74cd1d7ca8774e97303
3
+ metadata.gz: 12004d4a4902003182aa50f87e890fa0b26a4598
4
+ data.tar.gz: 9a9fcfa6a0ca2efdffb24d40c42a082a98089cf8
5
5
  SHA512:
6
- metadata.gz: 8720af7407fa29ce8abecd173d7264c81f36f623d6cae6a4ebfbff1fd0251e2239742cb1d0e6a7de9a42c41a4fe9d0c6c5f1a696d5b020f3710ab1d18382eb48
7
- data.tar.gz: 6562a424cf45252f5bb110ecf3a26534f72363ed9ebd5a771c71485aea03873f550b05217b423a00388e16a8a20370a14d755d451daa35030fad535cf75d33d5
6
+ metadata.gz: f66608075b50cf12f3c9ff8956eb145731ddba05851798791c6ebc1b6bf2394a429df903331bcfe30d4253609269e7f25ae3a23e1597bc7b2b28c5d1470e397a
7
+ data.tar.gz: 9c04ddb052b52285ef601f462be1299fb9737dc10dbd0569dfbbc5154ef4818988dc0115aa5e2b5590374782c6b0922acf79cf65b0a2596f4548996ec669e5b8
data/VERSION CHANGED
@@ -1 +1 @@
1
- 5.0.0
1
+ 5.0.1
@@ -55,7 +55,7 @@ module Saasable::Mongoid::SaasDocument
55
55
  raise Saasable::Errors::NoSaasDocuments, "you need to set one Saasable::SaasDocument"
56
56
  end
57
57
 
58
- possible_saas = Saasable::Mongoid::SaasDocument.saas_document.where(hosts: a_host.gsub(/^www\./, '')).to_a
58
+ possible_saas = Saasable::Mongoid::SaasDocument.saas_document.where(hosts: a_host).to_a
59
59
  if possible_saas.empty?
60
60
  raise Saasable::Errors::SaasNotFound, "no #{Saasable::Mongoid::SaasDocument.saas_document.name} found for the host: \"#{a_host}\""
61
61
  elsif possible_saas.count > 1
data/saasable.gemspec CHANGED
@@ -2,16 +2,16 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: saasable 5.0.0 ruby lib
5
+ # stub: saasable 5.0.1 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "saasable"
9
- s.version = "5.0.0"
9
+ s.version = "5.0.1"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
12
  s.require_paths = ["lib"]
13
13
  s.authors = ["Educa2", "Rafael Gaspar"]
14
- s.date = "2015-11-24"
14
+ s.date = "2015-12-18"
15
15
  s.description = "A gem for making a Multi-Tenant SaaS using Mongoid"
16
16
  s.email = "suporte@educa2.com.br"
17
17
  s.extra_rdoc_files = [
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: saasable
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.0.0
4
+ version: 5.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Educa2
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-11-24 00:00:00.000000000 Z
12
+ date: 2015-12-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: mongoid