static_models 0.4.1 → 0.4.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/static_models/version.rb +1 -1
- data/lib/static_models.rb +1 -1
- data/static_models.gemspec +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cf6996d17ba9835d8a05879a2552a846f7547b0d
|
4
|
+
data.tar.gz: 371e47d1ae8d981895aeb02db3726b02f1f0c223
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8ffccced44051c01560f2fd21668634c10f01bfd82128c8b7c3e525015d7ec07afecf0186a0555a18b4496d80c4962b38ad26c43d63bb8e392330773b4df0946
|
7
|
+
data.tar.gz: 1134a9f9f6a677aa17fb84e2c83c6e1c459dfb3166d8ccc6198b8e59cb828c0ad498f16842ad2791a8e4b89dcefc751650d12f651bac72c7537b502c1b750e47
|
data/lib/static_models.rb
CHANGED
@@ -97,7 +97,7 @@ module StaticModels
|
|
97
97
|
super(association, opts) if defined?(super)
|
98
98
|
|
99
99
|
expected_class = unless opts[:polymorphic]
|
100
|
-
module_name = self.
|
100
|
+
module_name = self.to_s.split("::")[0..-2].join("::")
|
101
101
|
[ opts[:class_name],
|
102
102
|
"#{module_name}::#{association.to_s.camelize}",
|
103
103
|
association.to_s.camelize,
|
data/static_models.gemspec
CHANGED
@@ -31,5 +31,5 @@ Gem::Specification.new do |spec|
|
|
31
31
|
spec.add_development_dependency "rspec", "~> 3.0"
|
32
32
|
spec.add_development_dependency "activerecord", '~> 4.2', '>= 4.2.0'
|
33
33
|
spec.add_development_dependency "sqlite3", "~> 1.0", ">= 1.0.0"
|
34
|
-
spec.add_development_dependency "byebug", "~>
|
34
|
+
spec.add_development_dependency "byebug", "~> 6.0", ">= 6.0.0"
|
35
35
|
end
|
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.
|
4
|
+
version: 0.4.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- nubis
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-04-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -118,20 +118,20 @@ dependencies:
|
|
118
118
|
requirements:
|
119
119
|
- - "~>"
|
120
120
|
- !ruby/object:Gem::Version
|
121
|
-
version: '
|
121
|
+
version: '6.0'
|
122
122
|
- - ">="
|
123
123
|
- !ruby/object:Gem::Version
|
124
|
-
version:
|
124
|
+
version: 6.0.0
|
125
125
|
type: :development
|
126
126
|
prerelease: false
|
127
127
|
version_requirements: !ruby/object:Gem::Requirement
|
128
128
|
requirements:
|
129
129
|
- - "~>"
|
130
130
|
- !ruby/object:Gem::Version
|
131
|
-
version: '
|
131
|
+
version: '6.0'
|
132
132
|
- - ">="
|
133
133
|
- !ruby/object:Gem::Version
|
134
|
-
version:
|
134
|
+
version: 6.0.0
|
135
135
|
description: "\n Replace your key/value classes with this.\n Define classes
|
136
136
|
with several 'singleton' instances.\n "
|
137
137
|
email:
|