simply_stored 0.6.0 → 0.6.1

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.md CHANGED
@@ -1,6 +1,10 @@
1
1
  Changelog
2
2
  =============
3
3
 
4
+ 0.6.1
5
+
6
+ - Fix warning of dynamically created views to point to the correct called
7
+
4
8
  0.6.0
5
9
 
6
10
  - Ruby 1.9.2 compatible
@@ -9,12 +9,12 @@ module SimplyStored
9
9
  without_deleted_view_keys = keys + [:deleted_at]
10
10
 
11
11
  unless respond_to?(view_name)
12
- puts "Warning: Defining view #{self.name}##{view_name} with keys #{view_keys.inspect} at call time, please add it to the class body. (Called from #{caller[0]})"
12
+ puts "Warning: Defining view #{self.name}##{view_name} with keys #{view_keys.inspect} at call time, please add it to the class body. (Called from #{caller[1]})"
13
13
  view(view_name, :key => view_keys)
14
14
  end
15
15
 
16
16
  if !respond_to?(without_deleted_view_name) && soft_deleting_enabled?
17
- puts "Warning: Defining view #{self.name}##{without_deleted_view_name} with keys #{without_deleted_view_keys.inspect} at call time, please add it to the class body. (Called from #{caller[0]})"
17
+ puts "Warning: Defining view #{self.name}##{without_deleted_view_name} with keys #{without_deleted_view_keys.inspect} at call time, please add it to the class body. (Called from #{caller[1]})"
18
18
  view(without_deleted_view_name, :key => without_deleted_view_keys)
19
19
  end
20
20
 
@@ -46,12 +46,12 @@ module SimplyStored
46
46
  without_deleted_view_keys = keys + [:deleted_at]
47
47
 
48
48
  unless respond_to?(view_name)
49
- puts "Warning: Defining view #{self.name}##{view_name} with keys #{view_keys.inspect} at call time, please add it to the class body. (Called from #{caller[0]})"
49
+ puts "Warning: Defining view #{self.name}##{view_name} with keys #{view_keys.inspect} at call time, please add it to the class body. (Called from #{caller[1]})"
50
50
  view(view_name, :key => view_keys)
51
51
  end
52
52
 
53
53
  if !respond_to?(without_deleted_view_name) && soft_deleting_enabled?
54
- puts "Warning: Defining view #{self.name}##{without_deleted_view_name} with keys #{without_deleted_view_keys.inspect} at call time, please add it to the class body. (Called from #{caller[0]})"
54
+ puts "Warning: Defining view #{self.name}##{without_deleted_view_name} with keys #{without_deleted_view_keys.inspect} at call time, please add it to the class body. (Called from #{caller[1]})"
55
55
  view(without_deleted_view_name, :key => without_deleted_view_keys)
56
56
  end
57
57
 
@@ -82,12 +82,12 @@ module SimplyStored
82
82
  without_deleted_view_keys = keys + [:deleted_at]
83
83
 
84
84
  unless respond_to?(view_name)
85
- puts "Warning: Defining view #{self.name}##{view_name} with keys #{view_keys.inspect} at call time, please add it to the class body. (Called from #{caller[0]})"
85
+ puts "Warning: Defining view #{self.name}##{view_name} with keys #{view_keys.inspect} at call time, please add it to the class body. (Called from #{caller[1]})"
86
86
  view(view_name, :key => view_keys)
87
87
  end
88
88
 
89
89
  if !respond_to?(without_deleted_view_name) && soft_deleting_enabled?
90
- puts "Warning: Defining view #{self.name}##{without_deleted_view_name} with keys #{without_deleted_view_keys.inspect} at call time, please add it to the class body. (Called from #{caller[0]})"
90
+ puts "Warning: Defining view #{self.name}##{without_deleted_view_name} with keys #{without_deleted_view_keys.inspect} at call time, please add it to the class body. (Called from #{caller[1]})"
91
91
  view(without_deleted_view_name, :key => without_deleted_view_keys)
92
92
  end
93
93
 
data/lib/simply_stored.rb CHANGED
@@ -5,7 +5,7 @@ unless defined?(SimplyStored)
5
5
  require File.expand_path(File.dirname(__FILE__) + '/simply_stored/class_methods_base')
6
6
 
7
7
  module SimplyStored
8
- VERSION = '0.6.0'
8
+ VERSION = '0.6.1'
9
9
  class Error < RuntimeError; end
10
10
  class RecordNotFound < RuntimeError; end
11
11
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simply_stored
3
3
  version: !ruby/object:Gem::Version
4
- hash: 7
4
+ hash: 5
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 6
9
- - 0
10
- version: 0.6.0
9
+ - 1
10
+ version: 0.6.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Mathias Meyer, Jonathan Weiss