static_models 0.4.3 → 0.4.4

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: b3de7ae35808de5d96fa05642edd7736c6c35e09
4
- data.tar.gz: c102966b921057816ee951f7d78198ce07da88e7
3
+ metadata.gz: 3dd114e641708d2b6d0d2b6d4ad55fedf9c4a78a
4
+ data.tar.gz: b832d5a24a789579f6a984b4569fbac557c82b67
5
5
  SHA512:
6
- metadata.gz: 85dd4243824b2538696845f2f3fa90b6ee3fe5d3d46a74bf6131451a13ddb1ac23e965fdc6e848590d05993643b3f4e95135b1cfc6388be8705170920e67c362
7
- data.tar.gz: 6be976c6129d57cd3bcfcf6ed0c06fdf3f9fc5282635ceebaf7ce4fae87bf08fc0d69c135cce3c657d73be73198c32170d29f29ca4525969d97b4beb80261186
6
+ metadata.gz: d662f8d7253cc7e6fdfb9044736cbd33aa760b6b93def6c6c8a512d93ca424fb917c90b33c78f967a90c4a55395497326630050621df8ca5c794f7e528652813
7
+ data.tar.gz: e03a8b5ea24c27d59096739dbf1e6e1e2eb15eb685b33bb6fb0a6308d269169b3eceb1ee85b93a40df40c9ad41847f9906af12b78b172dbbe86e5c6f31ab5a4a
@@ -103,6 +103,10 @@ module StaticModels
103
103
  def all
104
104
  values.values
105
105
  end
106
+
107
+ def model_name
108
+ ActiveModel::Name.new(self)
109
+ end
106
110
  end
107
111
  end
108
112
 
@@ -1,3 +1,3 @@
1
1
  module StaticModels
2
- VERSION = "0.4.3"
2
+ VERSION = "0.4.4"
3
3
  end
@@ -24,7 +24,7 @@ Gem::Specification.new do |spec|
24
24
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
25
25
  spec.require_paths = ["lib"]
26
26
  spec.add_dependency "activesupport", '~> 4.2', '>= 4.2.0'
27
-
27
+ spec.add_dependency "activemodel",'~> 4.2', '>= 4.2.0'
28
28
 
29
29
  spec.add_development_dependency "bundler", "~> 1.13"
30
30
  spec.add_development_dependency "rake", "~> 10.0"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: static_models
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.3
4
+ version: 0.4.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - nubis
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-04-10 00:00:00.000000000 Z
11
+ date: 2017-09-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -30,6 +30,26 @@ dependencies:
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
32
  version: 4.2.0
33
+ - !ruby/object:Gem::Dependency
34
+ name: activemodel
35
+ requirement: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - "~>"
38
+ - !ruby/object:Gem::Version
39
+ version: '4.2'
40
+ - - ">="
41
+ - !ruby/object:Gem::Version
42
+ version: 4.2.0
43
+ type: :runtime
44
+ prerelease: false
45
+ version_requirements: !ruby/object:Gem::Requirement
46
+ requirements:
47
+ - - "~>"
48
+ - !ruby/object:Gem::Version
49
+ version: '4.2'
50
+ - - ">="
51
+ - !ruby/object:Gem::Version
52
+ version: 4.2.0
33
53
  - !ruby/object:Gem::Dependency
34
54
  name: bundler
35
55
  requirement: !ruby/object:Gem::Requirement
@@ -172,7 +192,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
172
192
  version: '0'
173
193
  requirements: []
174
194
  rubyforge_project:
175
- rubygems_version: 2.5.1
195
+ rubygems_version: 2.6.11
176
196
  signing_key:
177
197
  specification_version: 4
178
198
  summary: DRY your key-value classes. Use them as associations