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 +4 -4
- data/lib/generators/redmine_extensions/entity/entity_generator.rb +9 -7
- data/lib/generators/redmine_extensions/entity/templates/custom_field.rb.erb +7 -7
- data/lib/generators/redmine_extensions/entity/templates/index.api.rsb.erb +5 -5
- data/lib/generators/redmine_extensions/entity/templates/mail_added.html.erb.erb +1 -1
- data/lib/generators/redmine_extensions/entity/templates/mail_added.text.erb.erb +2 -2
- data/lib/generators/redmine_extensions/entity/templates/mail_updated.text.erb.erb +2 -2
- data/lib/generators/redmine_extensions/entity/templates/routes.rb.erb +12 -12
- data/lib/redmine_extensions/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a1bf1471373c5aeda366bbf866d42dcf3b9ed1b3
|
|
4
|
+
data.tar.gz: 7e761e16b4c9b4e31091d3034452667e30779c8a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
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
|
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.
|
|
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-
|
|
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.
|
|
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
|