redmine_crm 0.0.50 → 0.0.51
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/views/redmine_crm/settings.html.erb +1 -1
- data/bitbucket-pipelines.yml +1 -0
- data/config/locales/en.yml +1 -1
- data/config/locales/ru.yml +1 -1
- data/doc/CHANGELOG +6 -0
- data/lib/redmine_crm/acts_as_draftable/rcrm_acts_as_draftable.rb +4 -2
- data/lib/redmine_crm/liquid/filters/arrays.rb +1 -1
- data/lib/redmine_crm/settings.rb +2 -0
- data/lib/redmine_crm/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3e9789117b9a4f848202900cd758b2fad6ca12bb
|
4
|
+
data.tar.gz: a6cb4c6de03bbc3eb6637d67c6bea1a3e5e60cd4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 622502f3842e4c207fd49b2b234c5f3558c9dfe02b1513260e62942a78bf57e4b3d387571abf74069b0c72d3935f593b110f677fc56213076ba46e0f73476292
|
7
|
+
data.tar.gz: e36b0a353a72dc5c4570663863fded89f4a277629fb77fb3da4d6fce8f7caa536945e3778a8a1935651f8bb47ad56a54ecf50bc5f5cd424aa330b253c6c11620
|
data/bitbucket-pipelines.yml
CHANGED
@@ -32,6 +32,7 @@ pipelines:
|
|
32
32
|
- sed -i "s/'pg'/'pg', '~> 0.18.0'/g" redmine_crm.gemspec
|
33
33
|
- sed -i "s/^end/ spec.add_development_dependency 'minitest', '~> 5.11.3'\nend/g" redmine_crm.gemspec
|
34
34
|
- sed -i "s/^end/ spec.add_development_dependency 'sprockets', '~> 3.5.2'\nend/g" redmine_crm.gemspec
|
35
|
+
- sed -i "s/^end/ spec.add_development_dependency 'thor', '~> 0.20.3'\nend/g" redmine_crm.gemspec
|
35
36
|
- bundle install
|
36
37
|
- bundle exec rake test DB=sqlite
|
37
38
|
- bundle exec rake test DB=mysql
|
data/config/locales/en.yml
CHANGED
data/config/locales/ru.yml
CHANGED
data/doc/CHANGELOG
CHANGED
@@ -4,6 +4,12 @@ Redmine crm gem - general functions for plugins (tags, vote, viewing, currency)
|
|
4
4
|
Copyright (C) 2011-2019 RedmineUP
|
5
5
|
https://www.redmineup.com/
|
6
6
|
|
7
|
+
== 2019-12-20 v0.0.51
|
8
|
+
|
9
|
+
* Changed drafts params
|
10
|
+
* Changed Money settings UI
|
11
|
+
* Fixed bug with settings access
|
12
|
+
|
7
13
|
== 2019-11-18 v0.0.50
|
8
14
|
|
9
15
|
* Fixed bug with settings initialization
|
@@ -78,8 +78,10 @@ module RedmineCrm
|
|
78
78
|
target
|
79
79
|
end
|
80
80
|
|
81
|
-
def drafts(user)
|
82
|
-
Draft.where(
|
81
|
+
def drafts(user = nil)
|
82
|
+
drafts = Draft.where(target_type: name)
|
83
|
+
drafts = drafts.where(user_id: user.id) if user
|
84
|
+
drafts
|
83
85
|
end
|
84
86
|
end # ClassMethods
|
85
87
|
|
@@ -100,7 +100,7 @@ module RedmineCrm
|
|
100
100
|
def tagged_with(input, tags, match='all')
|
101
101
|
return input unless input.respond_to?(:select)
|
102
102
|
input = input.values if input.is_a?(Hash)
|
103
|
-
tag_list =
|
103
|
+
tag_list = tags.is_a?(Array) ? tags.sort : tags.split(',').map(&:strip).sort
|
104
104
|
case match
|
105
105
|
when "all"
|
106
106
|
input.select do |object|
|
data/lib/redmine_crm/settings.rb
CHANGED
@@ -26,6 +26,8 @@ module RedmineCrm
|
|
26
26
|
|
27
27
|
# Use apply instead attrs assign because it can rewrite other attributes
|
28
28
|
def apply=(values)
|
29
|
+
initialize_gem_settings unless @settings_initialized
|
30
|
+
|
29
31
|
Setting.plugin_redmine_crm = Setting.plugin_redmine_crm.merge(values)
|
30
32
|
end
|
31
33
|
|
data/lib/redmine_crm/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: redmine_crm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.51
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- RedmineUP
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-12-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|