redmine_crm 0.0.50 → 0.0.51

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
  SHA1:
3
- metadata.gz: 0db9ce68acb0514cc0652eb603284800851c5a2a
4
- data.tar.gz: ba29da7491709f471cd6be83674fb70d73b7d710
3
+ metadata.gz: 3e9789117b9a4f848202900cd758b2fad6ca12bb
4
+ data.tar.gz: a6cb4c6de03bbc3eb6637d67c6bea1a3e5e60cd4
5
5
  SHA512:
6
- metadata.gz: f6b1ff459d4b63a648703af6306ccc87c81278d83fc057ea911a849690565adf41b5e31096f966ab7b67195c55967721337fb6b72508ecb739c7c71bcaab7b06
7
- data.tar.gz: 81b37a16be40aa4af841f63fe659a3b74c70977a36547fd73d375d523b1c8c9b6110500be48c5fb9a85055ba75c3ce46bf2aab5795a00edcea8b37270552ddcb
6
+ metadata.gz: 622502f3842e4c207fd49b2b234c5f3558c9dfe02b1513260e62942a78bf57e4b3d387571abf74069b0c72d3935f593b110f677fc56213076ba46e0f73476292
7
+ data.tar.gz: e36b0a353a72dc5c4570663863fded89f4a277629fb77fb3da4d6fce8f7caa536945e3778a8a1935651f8bb47ad56a54ecf50bc5f5cd424aa330b253c6c11620
@@ -3,7 +3,7 @@
3
3
  <div id="settings">
4
4
  <%= form_tag({ action: 'settings', id: @section[:id] }) do %>
5
5
  <div class="box tabular settings">
6
- <%= render_tabs @section_tabs %>
6
+ <%= render partial: 'money' %>
7
7
  </div>
8
8
  <%= submit_tag l(:button_apply) %>
9
9
  <% end %>
@@ -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
@@ -1,5 +1,5 @@
1
1
  en:
2
- label_redmine_crm_settings: Redmine Crm Settings
2
+ label_redmine_crm_settings: Money Settings
3
3
  label_redmine_crm_money: Money
4
4
 
5
5
  label_redmine_crm_disable_taxes: Disable taxes
@@ -1,5 +1,5 @@
1
1
  ru:
2
- label_redmine_crm_settings: Настройки Redmine Crm
2
+ label_redmine_crm_settings: Настройки валют
3
3
  label_redmine_crm_money: Деньги
4
4
 
5
5
  label_redmine_crm_disable_taxes: Отключить налоги
@@ -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(user_id: user.id, target_type: name)
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 = input.is_a?(Array) ? tags.sort : tags.split(',').map(&:strip).sort
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|
@@ -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
 
@@ -1,3 +1,3 @@
1
1
  module RedmineCrm
2
- VERSION = '0.0.50'
2
+ VERSION = '0.0.51'
3
3
  end
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.50
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-18 00:00:00.000000000 Z
11
+ date: 2019-12-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails