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 +4 -4
- data/doc/CHANGELOG +3 -2
- data/lib/application_record.rb +3 -0
- data/lib/redmineup/patches/compatibility/routing_mapper_patch.rb +2 -0
- data/lib/redmineup/version.rb +1 -1
- data/lib/redmineup.rb +2 -0
- data/test/liquid/liquid_helper.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3a6b58c1ecdb0368bd3b949b8d310a1e3c2847f49d59aa80d93c4b0ff68cec33
|
4
|
+
data.tar.gz: 0d159288203a69ac719c96446c3713a6155eddf23bb2774f8ff0ab73bc2b72b5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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-
|
4
|
+
Copyright (C) 2011-2024 Kirill Bezrukov (RedmineUP)
|
5
5
|
https://www.redmineup.com/
|
6
6
|
|
7
|
-
==
|
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
|
|
@@ -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
|
data/lib/redmineup/version.rb
CHANGED
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)
|
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.
|
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:
|
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
|