contents_core 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/app/models/contents_core/block.rb +4 -0
- data/app/models/contents_core/item.rb +7 -3
- data/app/models/contents_core/item_boolean.rb +4 -0
- data/app/models/contents_core/item_datetime.rb +4 -0
- data/app/models/contents_core/item_file.rb +4 -0
- data/app/models/contents_core/item_float.rb +4 -0
- data/app/models/contents_core/item_hash.rb +4 -0
- data/app/models/contents_core/item_integer.rb +4 -0
- data/app/models/contents_core/item_string.rb +4 -0
- data/app/models/contents_core/item_text.rb +4 -0
- data/lib/contents_core/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 937f43e968b7279544f2587fe8bae77a9d39d625
|
4
|
+
data.tar.gz: 89a8ccab5d674f709e0ec166cfca5adc63ae76bc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bd18521b45aa4e681252146eb1dd392864cc31a7620c8b75cd8a725f3909f95bc74fc66063da304b26ab23d25b9c1f6b59d88d16a1b14c4984ed0b5f33d18d22
|
7
|
+
data.tar.gz: 31849bab25b370ac4f7fbff6c69c657b38eb629d5eeded48a4df8125aed812834748a9c8417e6b66bb52dd3c38bc1178495b4cd1be5e448c29223d3dfb35405a
|
@@ -28,6 +28,11 @@ module ContentsCore
|
|
28
28
|
end
|
29
29
|
end
|
30
30
|
|
31
|
+
def set( value )
|
32
|
+
self.data = value
|
33
|
+
self
|
34
|
+
end
|
35
|
+
|
31
36
|
def to_s
|
32
37
|
self.data
|
33
38
|
end
|
@@ -41,9 +46,8 @@ module ContentsCore
|
|
41
46
|
@@item_types ||= ContentsCore.config[:items].keys.map &:to_s
|
42
47
|
end
|
43
48
|
|
44
|
-
def
|
45
|
-
|
46
|
-
self
|
49
|
+
def self.permitted_attributes
|
50
|
+
[ :data_boolean, :data_datetime, :data_file, :data_float, :data_hash, :data_integer, :data_string, :data_text ]
|
47
51
|
end
|
48
52
|
|
49
53
|
protected
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: contents_core
|
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
|
- Mat
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-07-
|
11
|
+
date: 2017-07-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -85,7 +85,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
85
85
|
version: '0'
|
86
86
|
requirements: []
|
87
87
|
rubyforge_project:
|
88
|
-
rubygems_version: 2.
|
88
|
+
rubygems_version: 2.5.2
|
89
89
|
signing_key:
|
90
90
|
specification_version: 4
|
91
91
|
summary: Flexible contents structure for Rails
|