redmineup 1.0.3 → 1.0.5

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: 29dd99362c25b8a01eb005353b073fc5d190729cae314154be14b3fae52863c4
4
+ data.tar.gz: 93e2c8b1003d3ab551c251a432870ead47c409872c4340182cadca58e30085e5
5
5
  SHA512:
6
- metadata.gz: 7b5b31109d40245e2c939a91a88a11f1536b0899aea8a032f773acaf0390f2f23cce5ff40161a8ade27bedb77e13a5604f339f2b61a85609f4d2a70113f93f66
7
- data.tar.gz: 106630460ba9b8cb2bb3e80de47834e5f88cda5c6631f4a2fd90ea6921afab7f268c3460ff012251ff201d850e758b3bf690b588c980fcc90b84ea1de7ccbb51
6
+ metadata.gz: 4bf8304cea50ccb52e0b22c3adf96d391ccb50da550af0c09069ca4c81b7f79c8f1c53b09f6634a6251ed2dd8b3bf9d61fcacee00255ab9ebe5e429802b90b35
7
+ data.tar.gz: 446eaee72799ed74acd7690c5fdf19ae4fc3257dff7c71c3b88f301e111ba3ddd035eaca507e2b0591e214fa55b7c2c9583948be92a7fea950818c78f0adb1e4
data/doc/CHANGELOG CHANGED
@@ -1,11 +1,13 @@
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-31 v1.0.5
8
8
 
9
+ * Added plugin_installed? method
10
+ * Compatibility patches for ApplicationRecord
9
11
 
10
12
  == 2023-10-12 v1.0.1
11
13
 
@@ -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.5'
3
3
  end
data/lib/redmineup.rb CHANGED
@@ -43,12 +43,18 @@ require 'redmineup/helpers/form_tag_helper'
43
43
  require 'redmineup/helpers/calendars_helper'
44
44
  require 'redmineup/assets_manager'
45
45
 
46
- require 'redmineup/patches/liquid_patch' unless BigDecimal.respond_to?(:new)
46
+ require 'redmineup/patches/liquid_patch'
47
47
 
48
48
  module Redmineup
49
49
  GEM_NAME = 'redmineup'.freeze
50
+
51
+ def self.plugin_installed?(plugin_id)
52
+ Rails.root.join("plugins/#{plugin_id}/init.rb").exist?
53
+ end
50
54
  end
51
55
 
56
+ require 'application_record' unless defined?(ApplicationRecord)
57
+
52
58
  if defined?(ActiveRecord::Base)
53
59
  ActiveRecord::Base.send :include, Redmineup::ActsAsList::List
54
60
  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},
@@ -10,6 +10,6 @@ table.cal td.odd p.day-num {color: #bbb;}
10
10
  table.cal td.today {background:#ffffdd;}
11
11
  table.cal td.today p.day-num {font-weight: bold;}
12
12
  table.cal td.nwday:not(.odd) {background-color:#f1f1f1;}
13
- table.cal .starting a.issue, p.cal.legend .starting {background: url(../images/bullet_go.png) no-repeat -1px -2px; padding-left:16px;}
14
- table.cal .ending a.issue, p.cal.legend .ending {background: url(../images/bullet_end.png) no-repeat -1px -2px; padding-left:16px;}
15
- table.cal .starting.ending a.issue, p.cal.legend .starting.ending {background: url(../images/bullet_diamond.png) no-repeat -1px -2px; padding-left:16px;}
13
+ table.cal .starting a.issue, p.cal.legend .starting {background: url(../../../images/bullet_go.png) no-repeat -1px -2px; padding-left:16px;}
14
+ table.cal .ending a.issue, p.cal.legend .ending {background: url(../../../images/bullet_end.png) no-repeat -1px -2px; padding-left:16px;}
15
+ table.cal .starting.ending a.issue, p.cal.legend .starting.ending {background: url(../../../images/bullet_diamond.png) no-repeat -1px -2px; padding-left:16px;}
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.5
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-31 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