ee_preferences 0.6.1 → 0.6.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZGE4N2ZiN2RhZGNiNzUyNWY5Nzk4YzMxNzQ3OGJjZmMyOTgyNDBmYg==
4
+ YjIxMmVkZDE0NDk0NDFkOTgwMzZiYTBiMWEwZGY5NDcyOGZmOGY3YQ==
5
5
  data.tar.gz: !binary |-
6
- MmNlMjY5ZGFkOGRjOWYxYmZiNWQ0ZGMzY2EyZWU2ZDNlNzU1NTgwYg==
6
+ M2ZjMmI5Zjc0ODRiNzA4Y2NkODYxMzJkODFmYjY4ZDExOTFmM2NlOA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ZTJkMmEyNzUxOGU1YTlkMjUwMDkxMDJhOTE0NGIxZjEwMmI5N2RmNTJhYjk1
10
- MjM0MDJiOGM5YTNjY2JhNDZkZTZjYzk1ZmY4MTY3ZjIwODM1NzU5ZTY2ZDA3
11
- YmVhNGZkN2Y2ZDExNmJiMGI1NGYzZTE2NmU1NzMxYzhkNTU3YzU=
9
+ ZWJjNjU4NjExZjAxZjU0ZDZkNThlMGQzMTBlMTNhNjY5ZTc1YWZmMzUxMzk1
10
+ YTRkZGQ3ZWY3ZDBmNDY0MTMyNmFiN2U4NjE5MjM2OWVmYjNmNjU5MTM3N2Uw
11
+ MmRiOGI2NDkzZjU3ZGIzM2YzNmFiMDE4MTUyYmNlYWI4NDVkYjE=
12
12
  data.tar.gz: !binary |-
13
- NzM3NzIzNWFhY2M3YjdiZWIwNTIxZGRhNGFlYzE0NGRmNTcxYzEyZTNkZTY0
14
- ZWJlMzJiMGRiYWUxNTNiMmUwYTg3ZjhlMzBiMjNmYWRkNWY3MjY3NjhhZTU1
15
- MTJkNzVkOGJjNmM4ODE2NjZiNzc0YjM5MGJkOWFjYzFhYTBiYzg=
13
+ MDUzNGI3ZjRiMTBjNjZlOTkwOGY5NTEwODgzY2IxNjZmZjcwNTEzM2JlMzhh
14
+ NTIwNjcxZTYxZmI1ZDBjYzI0MTJmZjhmN2MzNzA1MTE1MWJkMjI3ZjAxMGNk
15
+ ZmRhZjBlOTc3OTU1NGJjYmUxODFiODc3YmI3MTRiMTU1N2I2NDM=
data/.gitignore CHANGED
@@ -3,3 +3,5 @@ pkg
3
3
  rdoc
4
4
  test/app_root/log
5
5
  test/app_root/script
6
+ .idea/*
7
+ *.gem
data/CHANGELOG.rdoc CHANGED
@@ -1,7 +1,7 @@
1
1
  == master
2
- == 0.6.1 / 2014-09-08
2
+ == 0.6.2 / 2014-09-08
3
3
 
4
- * Merge of preferences fix so it will work as a gem.
4
+ * Merge of preferences fix so it will work as a gem. Added destroy_preferences.
5
5
 
6
6
  == 0.4.3 / 2014-09-08
7
7
 
@@ -1,3 +1,3 @@
1
1
  module Preferences
2
- VERSION = "0.6.1"
2
+ VERSION = "0.6.2"
3
3
  end
data/lib/preferences.rb CHANGED
@@ -614,6 +614,10 @@ module Preferences
614
614
  stored_preferences.where(attributes)
615
615
  end
616
616
  end
617
+ # Destroys preferences before the owning object is destroyed.
618
+ def destroy_preferences
619
+ stored_preferences.destroy_all
620
+ end
617
621
  end
618
622
  end
619
623
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ee_preferences
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.1
4
+ version: 0.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aaron Pfeifer