redmine_extensions 0.1.20 → 0.1.21

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2ea7e94b5e3a4174383f226888b122d12d6bdac8
4
- data.tar.gz: 24b74598a5af55abd7baaf2f96f7bba9a4c9c231
3
+ metadata.gz: a1bf1471373c5aeda366bbf866d42dcf3b9ed1b3
4
+ data.tar.gz: 7e761e16b4c9b4e31091d3034452667e30779c8a
5
5
  SHA512:
6
- metadata.gz: 9ad76f9f3ed6bcf6f4f40d3930d793db31ce9f1b1ed48ff201b01d957a606aeab9f0c7a9484e3eec2ec405f603d310ac7d9df878e4d3e80916948869660f7032
7
- data.tar.gz: a18f8e004d97d973dd17ffb7abd0559ba0bf111debea7a913226bf3c73eb797a2e3af2f09ff058bab139f4a0751df6991d03a440f09174010bdb325d473ce40b
6
+ metadata.gz: 7a5fdfa6fbacd7fe2dd0129ac62185a4abbc25f9ad904c7f693fff3117c1b57402db5fc5324ea5f74ff106718c36e2d8951a76d76337516571b18a4326bb4214
7
+ data.tar.gz: bb675e84de42d7e88bbe6374bfe2d922cf77d34504bc2b73d4a6c22996311694cf93b360a05d820e9165bf4756eec3d6a1ce89542be7146ae279c7c8ddcc0705
@@ -55,13 +55,15 @@ module RedmineExtensions
55
55
  if File.exists?("#{plugin_path}/config/locales/en.yml")
56
56
  original_langfile = YAML.load_file("#{plugin_path}/config/locales/en.yml")
57
57
 
58
- template 'en.yml.erb', "#{plugin_path}/tmp/tmp_en.yml"
59
- added_translations = YAML.load_file("#{plugin_path}/tmp/tmp_en.yml")
60
- File.delete("#{plugin_path}/tmp/tmp_en.yml")
61
-
62
- merged_langfile = original_langfile.deep_merge(added_translations)
63
- File.open("#{plugin_path}/config/locales/en.yml", "w") do |file|
64
- file.write merged_langfile.to_yaml
58
+ template 'en.yml.erb', "#{plugin_path}/tmp/tmp_en.yml", pretend: true
59
+ if File.exist?("#{plugin_path}/tmp/tmp_en.yml")
60
+ added_translations = YAML.load_file("#{plugin_path}/tmp/tmp_en.yml")
61
+ File.delete("#{plugin_path}/tmp/tmp_en.yml")
62
+
63
+ merged_langfile = original_langfile.deep_merge(added_translations)
64
+ File.open("#{plugin_path}/config/locales/en.yml", "w") do |file|
65
+ file.write merged_langfile.to_yaml
66
+ end
65
67
  end
66
68
  else
67
69
  template 'en.yml.erb', "#{plugin_path}/config/locales/en.yml"
@@ -1,7 +1,7 @@
1
- class <%= model_name %>CustomField < CustomField
2
-
3
- def type_name
4
- :label_<%= @model_name_pluralize_underscored %>
5
- end
6
-
7
- end
1
+ class <%= model_name %>CustomField < CustomField
2
+
3
+ def type_name
4
+ :label_<%= @model_name_pluralize_underscored %>
5
+ end
6
+
7
+ end
@@ -1,5 +1,5 @@
1
- api.array :<%= model_name_pluralize_underscored %>, api_meta(total_count: @entity_count, offset: @offset, limit: @limit) do
2
- @entities.each do |<%= model_name_underscored %>|
3
- render_api_<%= model_name_underscored %>(api, <%= model_name_underscored %>)
4
- end
5
- end
1
+ api.array :<%= model_name_pluralize_underscored %>, api_meta(total_count: @entity_count, offset: @offset, limit: @limit) do
2
+ @entities.each do |<%= model_name_underscored %>|
3
+ render_api_<%= model_name_underscored %>(api, <%= model_name_underscored %>)
4
+ end
5
+ end
@@ -1 +1 @@
1
- <h1><%%= link_to(@<%= model_name_underscored %>.to_s, @<%= model_name_underscored %>_url) %></h1>
1
+ <h1><%%= link_to(@<%= model_name_underscored %>.to_s, @<%= model_name_underscored %>_url) %></h1>
@@ -1,2 +1,2 @@
1
- <%%= @<%= model_name_underscored %>.to_s %>
2
- <%%= @<%= model_name_underscored %>_url %>
1
+ <%%= @<%= model_name_underscored %>.to_s %>
2
+ <%%= @<%= model_name_underscored %>_url %>
@@ -1,2 +1,2 @@
1
- <%%= @<%= model_name_underscored %>.to_s %>
2
- <%%= @<%= model_name_underscored %>_url %>
1
+ <%%= @<%= model_name_underscored %>.to_s %>
2
+ <%%= @<%= model_name_underscored %>_url %>
@@ -1,13 +1,13 @@
1
- <% if project? %>
2
- resources :projects do
3
- resources :<%= model_name_pluralize_underscored %>
4
- end
5
- <% end %>
6
- resources :<%= model_name_pluralize_underscored %> do
7
- collection do
8
- get 'autocomplete'
9
- get 'bulk_edit'
10
- post 'bulk_update'
11
- get 'context_menu'
12
- end
1
+ <% if project? %>
2
+ resources :projects do
3
+ resources :<%= model_name_pluralize_underscored %>
4
+ end
5
+ <% end %>
6
+ resources :<%= model_name_pluralize_underscored %> do
7
+ collection do
8
+ get 'autocomplete'
9
+ get 'bulk_edit'
10
+ post 'bulk_update'
11
+ get 'context_menu'
12
+ end
13
13
  end
@@ -1,3 +1,3 @@
1
1
  module RedmineExtensions
2
- VERSION = '0.1.20'
2
+ VERSION = '0.1.21'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: redmine_extensions
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.20
4
+ version: 0.1.21
5
5
  platform: ruby
6
6
  authors:
7
7
  - Easy Software Ltd
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-03-22 00:00:00.000000000 Z
11
+ date: 2017-04-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -270,7 +270,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
270
270
  version: '0'
271
271
  requirements: []
272
272
  rubyforge_project:
273
- rubygems_version: 2.6.7
273
+ rubygems_version: 2.4.3
274
274
  signing_key:
275
275
  specification_version: 4
276
276
  summary: Redmine Extensions is set of usefull features for Redmine. Main focus is