redmineup 1.0.3 → 1.0.4

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
  SHA256:
3
- metadata.gz: c1f4c8d29e3e301d443f1ff3ba42e1f259d7e9920b0dd08b817c776e362dc001
4
- data.tar.gz: fd4c8e149fb512e67a8d02a4efbc46f38341935a6da1b781fb675fdfb19353cc
3
+ metadata.gz: 3a6b58c1ecdb0368bd3b949b8d310a1e3c2847f49d59aa80d93c4b0ff68cec33
4
+ data.tar.gz: 0d159288203a69ac719c96446c3713a6155eddf23bb2774f8ff0ab73bc2b72b5
5
5
  SHA512:
6
- metadata.gz: 7b5b31109d40245e2c939a91a88a11f1536b0899aea8a032f773acaf0390f2f23cce5ff40161a8ade27bedb77e13a5604f339f2b61a85609f4d2a70113f93f66
7
- data.tar.gz: 106630460ba9b8cb2bb3e80de47834e5f88cda5c6631f4a2fd90ea6921afab7f268c3460ff012251ff201d850e758b3bf690b588c980fcc90b84ea1de7ccbb51
6
+ metadata.gz: 45003c8965a7c6460f1e2ba34605f6c3fd6e4471f39cdaeb188d5064c6b5567e8af74a44668e411b5e1cd41ce468bc94f1eabd206507d46928a037f4090aaac0
7
+ data.tar.gz: 125d1f7e5d3649b963fbc3b46fb22864a0494699e738f944b3c8b87c486c6504f9ce132739cc530f485d013134ff33f1e26273a8450c9d4f93928b8323df1e2d
data/doc/CHANGELOG CHANGED
@@ -1,11 +1,12 @@
1
1
  == Redmine UP gem changelog
2
2
 
3
3
  Redmine UP gem - general functions for plugins (tags, vote, viewing, currency)
4
- Copyright (C) 2011-2023 Kirill Bezrukov (RedmineUP)
4
+ Copyright (C) 2011-2024 Kirill Bezrukov (RedmineUP)
5
5
  https://www.redmineup.com/
6
6
 
7
- == 2023-10-12 v1.0.3
7
+ == 2024-01-30 v1.0.4
8
8
 
9
+ * Compatibility patches for ApplicationRecord
9
10
 
10
11
  == 2023-10-12 v1.0.1
11
12
 
@@ -0,0 +1,3 @@
1
+ class ApplicationRecord < ActiveRecord::Base
2
+ self.abstract_class = true
3
+ end
@@ -13,6 +13,8 @@ module Redmineup
13
13
 
14
14
  module InstanceMethods
15
15
  def constraints_with_redmineup(options = {}, &block)
16
+ return constraints_without_redmineup(options, &block) unless options.is_a?(Hash)
17
+
16
18
  options[:object_type] = /.+/ if options[:object_type] && options[:object_type].is_a?(Regexp)
17
19
  constraints_without_redmineup(options, &block)
18
20
  end
@@ -1,3 +1,3 @@
1
1
  module Redmineup
2
- VERSION = '1.0.3'
2
+ VERSION = '1.0.4'
3
3
  end
data/lib/redmineup.rb CHANGED
@@ -49,6 +49,8 @@ module Redmineup
49
49
  GEM_NAME = 'redmineup'.freeze
50
50
  end
51
51
 
52
+ require 'application_record' unless defined?(ApplicationRecord)
53
+
52
54
  if defined?(ActiveRecord::Base)
53
55
  ActiveRecord::Base.send :include, Redmineup::ActsAsList::List
54
56
  ActiveRecord::Base.extend(Redmineup::ActsAsVotable::Voter)
@@ -1,7 +1,7 @@
1
1
  require File.dirname(__FILE__) + '/../test_helper'
2
2
 
3
3
  class LiquidRender
4
-
4
+
5
5
  def initialize(drops = {})
6
6
  @objects_hash = [
7
7
  {'name' => 'one', "value" => 10},
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: redmineup
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - RedmineUP
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-12-12 00:00:00.000000000 Z
11
+ date: 2024-01-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -125,6 +125,7 @@ files:
125
125
  - config/routes.rb
126
126
  - doc/CHANGELOG
127
127
  - doc/LICENSE.txt
128
+ - lib/application_record.rb
128
129
  - lib/redmineup.rb
129
130
  - lib/redmineup/acts_as_draftable/draft.rb
130
131
  - lib/redmineup/acts_as_draftable/up_acts_as_draftable.rb