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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: da896ae57908fcd807d126a495328cfbdf346aec
4
- data.tar.gz: 50c4ee5b105455155dcfedcb49c92803fe2b048f
3
+ metadata.gz: 363fcf76ea6fb8ffd7ebf9fc4c2c1af5c5c25d7a
4
+ data.tar.gz: ce86028611adf0ff1cc3beba314f355f80e55939
5
5
  SHA512:
6
- metadata.gz: e9157f4c59e32b6f316243579bb629d0ec24ba76d8bfda696eb4797d1584ba2d63b4862eb158d18b5744ac001a08fccab6a99432079f63069bfaa39342642428
7
- data.tar.gz: 85dd0f6fbe79d4d1989e46950d35f92f41428d46b93b6f9b4cb92927de6068555ce9a797a036cb24fe041db0c37c9d4f428fe56ef867e880fc52ff188b9b4973
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
@@ -13,7 +13,5 @@ end
13
13
 
14
14
  group :test do
15
15
  # gem 'watchr'
16
- gem 'observr'
17
16
  gem 'simplecov', require: false
18
17
  end
19
-
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
- No migration is required for new fields.
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-2015 [Dittmar Krall], released under the MIT license
91
+ Copyright (c) 2009-2016 [Dittmar Krall], released under the MIT license
@@ -1,3 +1,3 @@
1
1
  module ActWithBag
2
- VERSION = "0.5.1"
2
+ VERSION = "0.5.2"
3
3
  end
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.1
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: 2015-10-16 00:00:00.000000000 Z
11
+ date: 2016-11-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sqlite3