rmtools 2.4.2 → 2.4.3

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: 3daeb2997c2666079ade7dd9c8caae9301aac60c
4
- data.tar.gz: d9ba681539d488a829655f84168ad156f03bbe13
3
+ metadata.gz: ba8d5846022ccf031d60062e4060c98a7990d4c0
4
+ data.tar.gz: 72f136789d589bdc3f874f9f732805f98c1cf906
5
5
  SHA512:
6
- metadata.gz: 04bb1980eb953b815d1fe577dfe6a8d9af546d2488de6eec2f36187dc8f2b2749fef29f2559020be502cfd6751cc392d567adcd657c9198aa0c15706eee91522
7
- data.tar.gz: f01a6de1f2d4f7b96e59dd0ccd1d0a3b5bb648a29aea4378b7e62493d6ceb5d8f3c398fed74db72d01f22a87acfa82444bd15021a445cff4fb37c4f2ce60f3f4
6
+ metadata.gz: 0c5e969ef2e81d460003af525aea0e0db301141a4549dd05260d32586d480b811c17de0945a9e94c09d11128e34f4e675618b49ec240de1fb1fb77d01754a39e
7
+ data.tar.gz: a3e5360e8e737bbf00671e91d68a6bf3b4efbf8bff0f4f1b791c45ecba5aa752ac4ef863651e36d56960f0205890f07658954dd36a906572ab870547dd7e981c
@@ -1,5 +1,10 @@
1
1
  # Overwrites slow ActiveSupport ActiveSupport::JSON.encode by faster Yajl or JSON libraries
2
- require 'active_support/core_ext/object/to_json'
2
+ if Rails.version < '4'
3
+ require 'active_support/core_ext/object/to_json'
4
+ else
5
+ require 'active_support/core_ext/object/json'
6
+ end
7
+
3
8
  begin
4
9
  require 'yajl'
5
10
 
@@ -1,3 +1,3 @@
1
1
  module RMTools
2
- VERSION = '2.4.2'
2
+ VERSION = '2.4.3'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rmtools
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.4.2
4
+ version: 2.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sergey Baev