act_with_bag 0.5.1 → 0.5.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +8 -6
- data/Gemfile +0 -2
- data/README.md +15 -4
- data/lib/act_with_bag/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 363fcf76ea6fb8ffd7ebf9fc4c2c1af5c5c25d7a
|
4
|
+
data.tar.gz: ce86028611adf0ff1cc3beba314f355f80e55939
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a78e21105b0fd4f6ba295cc0234832c9ad7f7e3e00eb60df429f873c43035a2d83f8566cef9952cb82b1a5b16fec0f2a8353ba24162f6cccc5f47a83b7df1c0d
|
7
|
+
data.tar.gz: 40cc5db85cfc38c80d1acfa09e8067d89a94adaed527477e3d507cb4353c75a8959f3502828171f0c921efd2b4d3fa87873acd553c8113135f1184f942116fe2
|
data/.travis.yml
CHANGED
@@ -3,17 +3,19 @@ bundler_args: --without production
|
|
3
3
|
before_install: rm -f Gemfile.lock
|
4
4
|
|
5
5
|
rvm:
|
6
|
-
- 1.9.3
|
6
|
+
# - 1.9.3
|
7
7
|
- 2.2.3
|
8
|
+
- 2.3.1
|
8
9
|
|
9
10
|
env:
|
10
|
-
- "RAILS_VERSION=3.2.16"
|
11
|
+
# - "RAILS_VERSION=3.2.16" # making problems at travis
|
11
12
|
- "RAILS_VERSION=4.2.4"
|
13
|
+
- "RAILS_VERSION=5.0.0.1"
|
12
14
|
|
13
|
-
matrix:
|
14
|
-
exclude:
|
15
|
-
- rvm: 2.2.3
|
16
|
-
env: "RAILS_VERSION=3.2.16"
|
15
|
+
#matrix:
|
16
|
+
# exclude:
|
17
|
+
# - rvm: 2.2.3
|
18
|
+
# env: "RAILS_VERSION=3.2.16"
|
17
19
|
|
18
20
|
notifications:
|
19
21
|
email: false
|
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -10,9 +10,9 @@ In Gemfile:
|
|
10
10
|
Bag helps when fields in a table are not yet settled down
|
11
11
|
or when many fields without business logic are required.
|
12
12
|
|
13
|
-
Install one bag in a table to collect many fields.
|
14
|
-
Additional fields or removal of them are easy
|
15
|
-
|
13
|
+
Install (migrate) one bag as a text field in a table to collect many fields.
|
14
|
+
Additional fields or removal of them are easy;
|
15
|
+
no migrations are required for them.
|
16
16
|
|
17
17
|
Keep in mind that the collection is kept in a YAML bag, i.e.
|
18
18
|
SQL commands can't access the bag fields.
|
@@ -37,6 +37,17 @@ Obsolete fields are deleted before_save by:
|
|
37
37
|
delete_from_bag :field
|
38
38
|
|
39
39
|
|
40
|
+
Warning
|
41
|
+
=======
|
42
|
+
|
43
|
+
Please add a:
|
44
|
+
|
45
|
+
serialize :bag, Hash
|
46
|
+
|
47
|
+
to each subclass accessing a bag field from a superclass.
|
48
|
+
Using an "add_to_bag" in the subclass obsoletes the "serialize".
|
49
|
+
|
50
|
+
|
40
51
|
Example
|
41
52
|
=======
|
42
53
|
|
@@ -77,4 +88,4 @@ Test
|
|
77
88
|
|
78
89
|
rake
|
79
90
|
|
80
|
-
Copyright (c) 2009-
|
91
|
+
Copyright (c) 2009-2016 [Dittmar Krall], released under the MIT license
|
data/lib/act_with_bag/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: act_with_bag
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dittmar Krall
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-11-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sqlite3
|