saasable 5.0.1 → 5.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 12004d4a4902003182aa50f87e890fa0b26a4598
4
- data.tar.gz: 9a9fcfa6a0ca2efdffb24d40c42a082a98089cf8
3
+ metadata.gz: fbdd5bd664a7dee9c2faf590b2f348edc7496cbc
4
+ data.tar.gz: 75f3432b4e3fd0e166f61b68de4c37956d96b45a
5
5
  SHA512:
6
- metadata.gz: f66608075b50cf12f3c9ff8956eb145731ddba05851798791c6ebc1b6bf2394a429df903331bcfe30d4253609269e7f25ae3a23e1597bc7b2b28c5d1470e397a
7
- data.tar.gz: 9c04ddb052b52285ef601f462be1299fb9737dc10dbd0569dfbbc5154ef4818988dc0115aa5e2b5590374782c6b0922acf79cf65b0a2596f4548996ec669e5b8
6
+ metadata.gz: 8b6077c9c3829634e68351642a558d4ce26af4033b028433931fd5c65d9e58957009fe5297d25c6e7a49af984c6bb7c6f17f63e0f405e739a1cec3a7c8a01ba0
7
+ data.tar.gz: daf169eb5d21dd86a89a4be93e23ebfa772280cda519f54709d8c74f11bad48aefc5d3fffae8af570e768ad732b64834ce4166e26a4f4c3833fecad13bcf0e9a
data/VERSION CHANGED
@@ -1 +1 @@
1
- 5.0.1
1
+ 5.0.2
@@ -3,10 +3,10 @@ module Saasable::Mongoid::ScopedDocument
3
3
  klass.extend ClassMethods
4
4
  klass.class_eval do
5
5
  # Fields
6
- field :saas_id, type: BSON::ObjectId, default: ->{ Saasable::Mongoid::SaasDocument.active_saas }
6
+ field :saas_id, type: BSON::ObjectId, default: ->{ Saasable::Mongoid::SaasDocument.active_saas._id }
7
7
 
8
8
  # Default scope
9
- default_scope ->{ Saasable::Mongoid::SaasDocument.active_saas ? where(saas_id: Saasable::Mongoid::SaasDocument.active_saas) : all }
9
+ default_scope ->{ Saasable::Mongoid::SaasDocument.active_saas ? where(saas_id: Saasable::Mongoid::SaasDocument.active_saas._id) : all }
10
10
 
11
11
  # Indexes
12
12
  index({saas_id: 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.1 ruby lib
5
+ # stub: saasable 5.0.2 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "saasable"
9
- s.version = "5.0.1"
9
+ s.version = "5.0.2"
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-12-18"
14
+ s.date = "2016-02-01"
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 = [
@@ -44,7 +44,7 @@ Gem::Specification.new do |s|
44
44
  ]
45
45
  s.homepage = "http://github.com/educa2/saasable"
46
46
  s.licenses = ["MIT"]
47
- s.rubygems_version = "2.4.5.1"
47
+ s.rubygems_version = "2.4.8"
48
48
  s.summary = "A gem for making a Multi-Tenant SaaS using Mongoid"
49
49
 
50
50
  if s.respond_to? :specification_version then
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.1
4
+ version: 5.0.2
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-12-18 00:00:00.000000000 Z
12
+ date: 2016-02-01 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: mongoid
@@ -131,7 +131,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
131
131
  version: '0'
132
132
  requirements: []
133
133
  rubyforge_project:
134
- rubygems_version: 2.4.5.1
134
+ rubygems_version: 2.4.8
135
135
  signing_key:
136
136
  specification_version: 4
137
137
  summary: A gem for making a Multi-Tenant SaaS using Mongoid