worsemodel 0.1.7 → 0.1.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/supermodel.rb +3 -1
- data/supermodel.gemspec +6 -6
- metadata +18 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d074330251305ee69cd05e357c209ebb80dcec8a
|
4
|
+
data.tar.gz: 4832c830ee8e8c0ad0ee0c763f57564aa0b12bc5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 00b3db91c19d3a154b032fd9199bee29608a7a5eafd28ba994c6e75d3c28703d8c965338d83d8886c2c221958632894e0067de583428404f540837a440014b5c
|
7
|
+
data.tar.gz: b11eee3986ed87268bb286d56b212d0e7b6117a9e885f042a3f127cf0dccde0252850fa543f35eecabb3b8350e5282eb01fb4614dbdb8c08f526880fcf3f81c4
|
data/lib/supermodel.rb
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
gem "activesupport"
|
2
2
|
gem "activemodel"
|
3
|
+
gem "rails-observers"
|
3
4
|
|
4
5
|
require "active_support/core_ext/class/attribute_accessors"
|
5
6
|
require "active_support/core_ext/hash/indifferent_access"
|
@@ -13,6 +14,7 @@ require "active_support/core_ext/class/attribute"
|
|
13
14
|
require "active_support/json"
|
14
15
|
|
15
16
|
require "active_model"
|
17
|
+
require 'rails/observers/active_model/active_model'
|
16
18
|
|
17
19
|
module SuperModel
|
18
20
|
class SuperModelError < StandardError; end
|
@@ -34,4 +36,4 @@ module SuperModel
|
|
34
36
|
autoload :Dirty, "supermodel/dirty"
|
35
37
|
autoload :Redis, "supermodel/redis"
|
36
38
|
autoload :Base, "supermodel/base"
|
37
|
-
end
|
39
|
+
end
|
data/supermodel.gemspec
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = 'worsemodel'
|
8
|
-
s.version = "0.1.
|
8
|
+
s.version = "0.1.8"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Alex MacCaw"]
|
@@ -45,15 +45,15 @@ Gem::Specification.new do |s|
|
|
45
45
|
|
46
46
|
if s.respond_to? :specification_version then
|
47
47
|
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
48
|
-
s.specification_version =
|
48
|
+
s.specification_version = 4
|
49
49
|
|
50
50
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
51
|
-
s.add_runtime_dependency(%q<activemodel>, [">=
|
51
|
+
s.add_runtime_dependency(%q<activemodel>, [">= 4.0.0"])
|
52
52
|
else
|
53
|
-
s.add_dependency(%q<activemodel>, [">=
|
53
|
+
s.add_dependency(%q<activemodel>, [">= 4.0.0"])
|
54
54
|
end
|
55
55
|
else
|
56
|
-
s.add_dependency(%q<activemodel>, [">=
|
56
|
+
s.add_dependency(%q<activemodel>, [">= 4.0.0"])
|
57
57
|
end
|
58
|
+
s.add_dependency 'rails-observers'
|
58
59
|
end
|
59
|
-
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: worsemodel
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alex MacCaw
|
@@ -16,14 +16,28 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 4.0.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: 4.0.0
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rails-observers
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
27
41
|
description: In memory DB using ActiveModel
|
28
42
|
email: info@eribium.org
|
29
43
|
executables: []
|
@@ -73,7 +87,7 @@ requirements: []
|
|
73
87
|
rubyforge_project:
|
74
88
|
rubygems_version: 2.4.5
|
75
89
|
signing_key:
|
76
|
-
specification_version:
|
90
|
+
specification_version: 4
|
77
91
|
summary: In memory DB using ActiveModel
|
78
92
|
test_files: []
|
79
93
|
has_rdoc:
|