roomer 0.0.9 → 0.0.10

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.
data/TODO.md CHANGED
@@ -7,4 +7,4 @@
7
7
 
8
8
  # Enhancements
9
9
  + Show warnings if unrun migrations exists under db/migrate/global while running rake roomer:shared:migrate
10
-
10
+ + Autogenerate Test File during setup
data/lib/roomer/schema.rb CHANGED
@@ -38,17 +38,16 @@ module Roomer
38
38
  end
39
39
 
40
40
  def self.load(schema_name, scope=:tenanted)
41
- filename = begin
42
- if scope == :shared
43
- Roomer.shared_schema_filename
44
- elsif scope == :tenanted
45
- Roomer.tenanted_schema_filename
46
- end
47
- end
48
- filepath = File.expand_path(File.join(Roomer.schemas_directory, filename))
49
- return unless File.exists?(filepath)
50
-
51
41
  ensuring_schema(schema_name) do
42
+ filename = begin
43
+ if scope == :shared
44
+ Roomer.shared_schema_filename
45
+ elsif scope == :tenanted
46
+ Roomer.tenanted_schema_filename
47
+ end
48
+ end
49
+ filepath = File.expand_path(File.join(Roomer.schemas_directory, filename))
50
+ return unless File.exists?(filepath)
52
51
  Object.load(filepath)
53
52
  end
54
53
  end
@@ -3,7 +3,7 @@ module Roomer
3
3
  unless defined? MAJOR
4
4
  MAJOR = 0
5
5
  MINOR = 0
6
- TINY = 9
6
+ TINY = 10
7
7
  PRE = nil
8
8
 
9
9
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join('.')
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: roomer
3
3
  version: !ruby/object:Gem::Version
4
- hash: 13
4
+ hash: 11
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 9
10
- version: 0.0.9
9
+ - 10
10
+ version: 0.0.10
11
11
  platform: ruby
12
12
  authors:
13
13
  - Greg Osuri
@@ -34,7 +34,7 @@ dependencies:
34
34
  version: 3.0.9
35
35
  type: :runtime
36
36
  version_requirements: *id001
37
- description: roomer 0.0.9
37
+ description: roomer 0.0.10
38
38
  email:
39
39
  - gosuri@gmail.com
40
40
  - dceballos@gmail.com