redmineup 1.0.4 → 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: 3a6b58c1ecdb0368bd3b949b8d310a1e3c2847f49d59aa80d93c4b0ff68cec33
4
- data.tar.gz: 0d159288203a69ac719c96446c3713a6155eddf23bb2774f8ff0ab73bc2b72b5
3
+ metadata.gz: 29dd99362c25b8a01eb005353b073fc5d190729cae314154be14b3fae52863c4
4
+ data.tar.gz: 93e2c8b1003d3ab551c251a432870ead47c409872c4340182cadca58e30085e5
5
5
  SHA512:
6
- metadata.gz: 45003c8965a7c6460f1e2ba34605f6c3fd6e4471f39cdaeb188d5064c6b5567e8af74a44668e411b5e1cd41ce468bc94f1eabd206507d46928a037f4090aaac0
7
- data.tar.gz: 125d1f7e5d3649b963fbc3b46fb22864a0494699e738f944b3c8b87c486c6504f9ce132739cc530f485d013134ff33f1e26273a8450c9d4f93928b8323df1e2d
6
+ metadata.gz: 4bf8304cea50ccb52e0b22c3adf96d391ccb50da550af0c09069ca4c81b7f79c8f1c53b09f6634a6251ed2dd8b3bf9d61fcacee00255ab9ebe5e429802b90b35
7
+ data.tar.gz: 446eaee72799ed74acd7690c5fdf19ae4fc3257dff7c71c3b88f301e111ba3ddd035eaca507e2b0591e214fa55b7c2c9583948be92a7fea950818c78f0adb1e4
data/doc/CHANGELOG CHANGED
@@ -4,8 +4,9 @@ Redmine UP gem - general functions for plugins (tags, vote, viewing, currency)
4
4
  Copyright (C) 2011-2024 Kirill Bezrukov (RedmineUP)
5
5
  https://www.redmineup.com/
6
6
 
7
- == 2024-01-30 v1.0.4
7
+ == 2024-01-31 v1.0.5
8
8
 
9
+ * Added plugin_installed? method
9
10
  * Compatibility patches for ApplicationRecord
10
11
 
11
12
  == 2023-10-12 v1.0.1
@@ -1,3 +1,3 @@
1
1
  module Redmineup
2
- VERSION = '1.0.4'
2
+ VERSION = '1.0.5'
3
3
  end
data/lib/redmineup.rb CHANGED
@@ -43,10 +43,14 @@ 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
 
52
56
  require 'application_record' unless defined?(ApplicationRecord)
@@ -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.4
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: 2024-01-30 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