infopark_reactor 1.9.0.beta → 1.9.0.beta2

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: eb7e4bca83459ccdedf2925b85100bb29b0331d9
4
- data.tar.gz: e20ed636b63e95693ce7db72a3542f7073ef0fcb
3
+ metadata.gz: b96463ad2562d6b77d097a3704b5abcd1f51439d
4
+ data.tar.gz: 0ab12aa9b56d9f5e181f19acc58d5fbc12f904f0
5
5
  SHA512:
6
- metadata.gz: 1170a1d809714033a69d915b503dccdce024f34b87a3732d5472ca3b3252491298d26d85367141bfd5a6bfa5b9aa55e2d2ce0a13a726444f6e770b22f89fcfa8
7
- data.tar.gz: 28848bd0a8c29b2d3e573dcad578ffdf85baa23321e881c92051f6865245483655c7ac4d8f5a8a78ccb3b7f39875670de145141aa5deaab0f1015e31990e28c9
6
+ metadata.gz: 44c4dae0ba20c0c8f321c23257a20379030a50b73c4a613abfdcc13871783a0d2116fd9d0af87dfba873af6bc799b1d0ade407dc9254d18b65f162bb2aa5d7b0
7
+ data.tar.gz: bd94b0c7b9fdb84c32b559865549e922c7b0e3423246a1d41faae065e59c11b4f7a69d6daa3eef1f3b07a902eefd616b335dbdc4e158efe0481aeaf59d3be20c
@@ -16,6 +16,10 @@ module Reactor
16
16
  def self.rails4_0?
17
17
  ::Rails::VERSION::MAJOR == 4 && ::Rails::VERSION::MINOR == 0
18
18
  end
19
+
20
+ def self.rails4_0_ge6?
21
+ ::Rails::VERSION::MAJOR == 4 && ::Rails::VERSION::MINOR == 0 && ::Rails::VERSION::TINY >= 6
22
+ end
19
23
  end
20
24
 
21
25
  # require exceptions
@@ -423,7 +423,11 @@ module Reactor
423
423
  end
424
424
 
425
425
  if Reactor.rails4_0?
426
- alias_method :create_record, :create
426
+ if Reactor.rails4_0_ge6?
427
+ alias_method :_create_record, :create
428
+ else
429
+ alias_method :create_record, :create
430
+ end
427
431
  end
428
432
 
429
433
  def update
@@ -435,7 +439,11 @@ module Reactor
435
439
  end
436
440
 
437
441
  if Reactor.rails4_0?
438
- alias_method :update_record, :update
442
+ if Reactor.rails4_0_ge6?
443
+ alias_method :_update_record, :update
444
+ else
445
+ alias_method :update_record, :update
446
+ end
439
447
  end
440
448
 
441
449
  def ignore_attributes(attributes)
@@ -504,6 +512,11 @@ module Reactor
504
512
  end
505
513
  end
506
514
  end
515
+
516
+ if Reactor.rails4_0_ge6?
517
+ alias_method :subclass_from_attributes, :subclass_from_attrs
518
+ remove_method :subclass_from_attrs
519
+ end
507
520
  end
508
521
 
509
522
  # Convenience method: it is equivalent to following call chain:
@@ -1,4 +1,4 @@
1
1
  # -*- encoding : utf-8 -*-
2
2
  module Reactor
3
- VERSION = "1.9.0.beta"
3
+ VERSION = "1.9.0.beta2"
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: infopark_reactor
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.9.0.beta
4
+ version: 1.9.0.beta2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tomasz Przedmojski
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-04-02 00:00:00.000000000 Z
11
+ date: 2014-08-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -154,7 +154,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
154
154
  version: 1.3.1
155
155
  requirements: []
156
156
  rubyforge_project:
157
- rubygems_version: 2.0.3
157
+ rubygems_version: 2.0.14
158
158
  signing_key:
159
159
  specification_version: 4
160
160
  summary: Write into CM in familiar, Rails-like way