dar_da_da 0.0.6 → 0.0.7

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
- SHA1:
3
- metadata.gz: 2cbcc4b69917c7ca27338f031a305db6cf41c8e1
4
- data.tar.gz: e679ab5829006b42be6100769d2d8603b1bb2ef3
2
+ SHA256:
3
+ metadata.gz: 74a39243f3810ad6b73ce0ae8980440ded675c4b8555a180449eb5648708054a
4
+ data.tar.gz: f2d77656262f9142019f0fc4f656d82e71ebc143ca9211f729f62e9f5c53fb53
5
5
  SHA512:
6
- metadata.gz: d9661616f99dcef354a0c4893558e173cccc962459c4823cbbf6578e14ca18f681062547cb3982b1ae7b0056d70e9f02321d3242c83e3675755d4966ad3d7068
7
- data.tar.gz: 071d5455d3190a7ae7c736bf625620a7aca49e59141e92e26f25f7d9a2a5a7a40799bebe10a38aadd74747ef2292a236ffd5f5121dd446d0a6b8c1da5ce63b95
6
+ metadata.gz: 884bc324b20fbf57f38a6a7abc533a60903d4561caea90085d129f61a10a8847072dcc475ad9a656a5f391705413e49cbd2b6d8dcb80f1d0b817ea1b58fdbdbb
7
+ data.tar.gz: d9556f57cc206572db78e87d3acd7888a9a0d8f901b44dcb4c4aa0615bfc681c14844611e861fe1f21219dca25f611a573c32e92215c22f1cab719b9371a2b7d
data/CHANGES.md CHANGED
@@ -1,17 +1,23 @@
1
1
  ### dev
2
2
 
3
- [full changelog](http://github.com/yolk/dar_dar_da/compare/v0.0.6...master)
3
+ [full changelog](http://github.com/yolk/dar_dar_da/compare/v0.0.7...master)
4
4
 
5
- ### 0.0.5 / 2017-01-31
5
+ ### 0.0.7 / 2020-07-02
6
6
 
7
- [full changelog](http://github.com/yolk/dar_dar_da/compare/v0.0.6...v0.0.5)
7
+ [full changelog](http://github.com/yolk/dar_dar_da/compare/v0.0.6...v0.0.7)
8
+
9
+ * Defer patching of rails base classes for zeitwerk loading
10
+
11
+ ### 0.0.6 / 2017-01-31
12
+
13
+ [full changelog](http://github.com/yolk/dar_dar_da/compare/v0.0.5...v0.0.6)
8
14
 
9
15
  * Use before_action instead of before_filter
10
16
  * Require Rails >= 4.0
11
17
 
12
18
  ### 0.0.5 / 2014-04-09
13
19
 
14
- [full changelog](http://github.com/yolk/dar_dar_da/compare/v0.0.5...v0.0.3)
20
+ [full changelog](http://github.com/yolk/dar_dar_da/compare/v0.0.3...v0.0.5)
15
21
 
16
22
  * Compatiblity with Rails 4.0
17
23
 
@@ -7,12 +7,14 @@ module DarDaDa
7
7
  mattr_accessor :config
8
8
  end
9
9
 
10
- if defined? ActiveRecord::Base
11
- require 'dar_da_da/active_record_extension'
12
- ActiveRecord::Base.send(:include, DarDaDa::ActiveRecordExtension)
10
+ require 'dar_da_da/active_record_extension'
11
+
12
+ ActiveSupport.on_load(:active_record) do
13
+ include DarDaDa::ActiveRecordExtension
13
14
  end
14
15
 
15
- if defined? ActionController::Base
16
- require 'dar_da_da/action_controller_extension'
17
- ActionController::Base.send(:include, DarDaDa::ActionControllerExtension)
18
- end
16
+ require 'dar_da_da/action_controller_extension'
17
+
18
+ ActiveSupport.on_load(:action_controller) do
19
+ include DarDaDa::ActionControllerExtension
20
+ end
@@ -1,3 +1,3 @@
1
1
  module DarDaDa
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
@@ -15,7 +15,7 @@ describe DarDaDa::ActiveRecordExtension, "extended Model" do
15
15
  expect(@user.role).to eql("author")
16
16
  @user.save!
17
17
  expect(@user.role).to eql("author")
18
- @user.update_attributes!(:role => 'user')
18
+ @user.update!(:role => 'user')
19
19
  expect(@user.role).to eql("user")
20
20
  end
21
21
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dar_da_da
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sebastian Munz
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-01-31 00:00:00.000000000 Z
11
+ date: 2020-07-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -110,7 +110,7 @@ files:
110
110
  homepage: https://github.com/yolk/dar_da_da
111
111
  licenses: []
112
112
  metadata: {}
113
- post_install_message:
113
+ post_install_message:
114
114
  rdoc_options: []
115
115
  require_paths:
116
116
  - lib
@@ -125,9 +125,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
125
125
  - !ruby/object:Gem::Version
126
126
  version: '0'
127
127
  requirements: []
128
- rubyforge_project: dar_da_da
129
- rubygems_version: 2.6.8
130
- signing_key:
128
+ rubygems_version: 3.0.3
129
+ signing_key:
131
130
  specification_version: 4
132
131
  summary: Roles easy like sunday morning.
133
132
  test_files: