has_setting 0.6 → 0.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: fd8c0b120b8e6fd6f3de9d99f337b8b66b6b5868
4
+ data.tar.gz: 4ab33ccbf7f1b1f9f2abdbe83a2d0138c54e1222
5
+ SHA512:
6
+ metadata.gz: 6d65eb9dbfe1a3020b24cac4cef0c46880faeb9e68c6c1a525ed7becb68c19faaf2f22e993dda50ced0226d84449ada546bf10fe1d6738a44dd4e3b7ea2777f6
7
+ data.tar.gz: 8d51db5429427a5f7bdfad2b8487c5ae9e212bc2f7661b6aa22c06fb0be403540dc568a6674fa7f800ce9d11c7b0340774beb0471e3e21a25d5e7e871a53a581
data/lib/.DS_Store CHANGED
Binary file
@@ -13,7 +13,7 @@ module HasSetting
13
13
  # AR association to settings
14
14
  has_many( :settings, :as => :owner, :class_name => 'HasSetting::Setting',
15
15
  :foreign_key => :owner_id, :dependent => :destroy)
16
- after_save(:save_has_setting_association)
16
+ after_validation(:save_has_setting_association)
17
17
  @has_setting_options = {}
18
18
  def self.has_setting_options
19
19
  @has_setting_options
@@ -1,3 +1,3 @@
1
1
  module HasSetting
2
- VERSION = "0.6"
2
+ VERSION = "0.7"
3
3
  end
metadata CHANGED
@@ -1,8 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: has_setting
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.6'
5
- prerelease:
4
+ version: '0.7'
6
5
  platform: ruby
7
6
  authors:
8
7
  - Simplificator GmbH
@@ -10,7 +9,7 @@ authors:
10
9
  autorequire:
11
10
  bindir: bin
12
11
  cert_chain: []
13
- date: 2013-06-07 00:00:00.000000000 Z
12
+ date: 2013-06-14 00:00:00.000000000 Z
14
13
  dependencies: []
15
14
  description: Stores settings as key/value pairs in a settings table and provides accessors
16
15
  for them on the owning object
@@ -41,28 +40,27 @@ files:
41
40
  - test/unit/has_setting_test.rb
42
41
  homepage: http://github.com/ncri/has_setting
43
42
  licenses: []
43
+ metadata: {}
44
44
  post_install_message:
45
45
  rdoc_options:
46
46
  - --charset=UTF-8
47
47
  require_paths:
48
48
  - lib
49
49
  required_ruby_version: !ruby/object:Gem::Requirement
50
- none: false
51
50
  requirements:
52
- - - ! '>='
51
+ - - '>='
53
52
  - !ruby/object:Gem::Version
54
53
  version: '0'
55
54
  required_rubygems_version: !ruby/object:Gem::Requirement
56
- none: false
57
55
  requirements:
58
- - - ! '>='
56
+ - - '>='
59
57
  - !ruby/object:Gem::Version
60
58
  version: '0'
61
59
  requirements: []
62
60
  rubyforge_project:
63
- rubygems_version: 1.8.25
61
+ rubygems_version: 2.0.3
64
62
  signing_key:
65
- specification_version: 3
63
+ specification_version: 4
66
64
  summary: Simple setting extension to AR
67
65
  test_files:
68
66
  - test/bar.rb
@@ -71,4 +69,3 @@ test_files:
71
69
  - test/test_helper.rb
72
70
  - test/unit/formatters_test.rb
73
71
  - test/unit/has_setting_test.rb
74
- has_rdoc: true