cruj_cruj_cruj_visagio 1.0.1 → 1.0.6

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: 6a38ee4063d59b2de4ebaceaf0fc9fa93aeb3bb25483cbdf3c599046435c46e6
4
- data.tar.gz: e843e01e6347b1ee214e1b4875136375ebd9416b38949e2c9793ab192e386a85
3
+ metadata.gz: ce74d578d9c053b19922fc0ede3bc55f18ead413799ae59acd868d52cb1c1ae4
4
+ data.tar.gz: e1492be6699e682cf252a9e4693bb38717a7da1c1f1cf590952e3edd09a95aa5
5
5
  SHA512:
6
- metadata.gz: 37d378c47f4f4a541b68bd63ec96c3706f30aa19850023ce807c6eb99063a0eba5ababe792af31d3aeb124cdb46e8693859d950ccab5fbe2549d00e34011d49c
7
- data.tar.gz: 3a1810e5b07cb5d7bf1000f80c6950d2029138d8346bfb2af1cbdc950c8741a3eed7e862be78141fda87d1388cc4043f83b3f499ba44a826d1d1578af674dd03
6
+ metadata.gz: fae9e50d46d085364adf3153518eaac4d13c41a7dea09c1a80261e344310933f43154efe1839740a3b63757431c01c8691c321edf7d0f54a3cce1447663b347f
7
+ data.tar.gz: e7ee1644a1e586b531eb718eda9aadc44add939d692e6c0d2da00415fe0dcbedd6b318169e2c103affa315963c0dd75f32bae1c61794f6062b69c9c585de08b6
@@ -1,16 +1,16 @@
1
1
  class CrujCrujCrujController < ApplicationController
2
2
  include ActionView::Helpers::NumberHelper
3
3
 
4
- before_filter :before_index , only: [:index]
5
- before_filter :before_new , only: [:new]
6
- before_filter :before_create, only: [:create]
7
- before_filter :before_edit , only: [:edit]
8
- before_filter :before_update, only: [:update]
9
- before_filter :before_destroy, only: [:destroy]
4
+ before_action :before_index , only: [:index]
5
+ before_action :before_new , only: [:new]
6
+ before_action :before_create, only: [:create]
7
+ before_action :before_edit , only: [:edit]
8
+ before_action :before_update, only: [:update]
9
+ before_action :before_destroy, only: [:destroy]
10
10
 
11
- before_filter :find_all_resources, only: [:index]
12
- before_filter :build_resource , only: [:new, :create]
13
- before_filter :find_resource , only: [:edit, :update, :destroy]
11
+ before_action :find_all_resources, only: [:index]
12
+ before_action :build_resource , only: [:new, :create]
13
+ before_action :find_resource , only: [:edit, :update, :destroy]
14
14
 
15
15
  helper_method :namespace_url, :namespaces, :model_class, :snake_case_model_name,
16
16
  :resource_url,
@@ -72,7 +72,10 @@ class CrujCrujCrujController < ApplicationController
72
72
 
73
73
  protected
74
74
 
75
- def before_index; end
75
+ def before_index
76
+ params["q"] && params["q"].permit!
77
+ end
78
+
76
79
  def before_new; end
77
80
  def before_create; end
78
81
  def before_edit; end
@@ -217,6 +220,10 @@ class CrujCrujCrujController < ApplicationController
217
220
  "#{attribute}_cont"
218
221
  end
219
222
 
223
+ def filter_for_integer(attribute)
224
+ "#{attribute}_eq"
225
+ end
226
+
220
227
  def filter_for_boolean(attribute)
221
228
  "#{attribute}_true"
222
229
  end
@@ -15,7 +15,7 @@
15
15
  <%= f.select attribute_name, attribute_values.map { |k,v| [v,k] }, { include_blank: t(:all_field), selected: params[:q] ? params[:q][attribute_name] : '' } %>
16
16
  <% elsif attribute_name =~ /true/ %>
17
17
  <%= f.select attribute_name, [[t(:true_field), 1], [t(:false_field), 0]], { include_blank: t(:all_field), selected: params[:q] ? params[:q][attribute_name] : '' } %>
18
- <% elsif attribute_name =~ /cont/ %>
18
+ <% elsif attribute_name =~ /cont|eq/ %>
19
19
  <%= f.search_field attribute_name %>
20
20
  <% else %>
21
21
  <%= render "#{attribute_name}_filter" %>
@@ -28,7 +28,7 @@
28
28
  <% end %>
29
29
 
30
30
  <td><%= link_to l(:button_edit) , url_for([:edit] | resource_url(resource)) %></td>
31
- <td><%= link_to l(:button_delete), url_for(resource_url(resource)), confirm: l(:access_delete_confirmation_message), method: :delete %></td>
31
+ <td><%= link_to l(:button_delete), url_for(resource_url(resource)), method: :delete, data:{ confirm: l(:entry_delete_confirmation_message) } %></td>
32
32
  </tr>
33
33
  <% end %>
34
34
  </table>
@@ -0,0 +1,96 @@
1
+ en:
2
+ true_field: 'Yes'
3
+ false_field: 'No'
4
+ all_field: All
5
+ label_principal: Assigned To
6
+ label_issue_status: 'Status'
7
+ label_status_from: Status From
8
+ label_status_to: Status To
9
+ label_name: Name
10
+ label_type: Type
11
+
12
+ project_name_cont: Project Name contains
13
+ tracker_name_cont: Tracker Name contains
14
+ custom_field_name_cont: Custom Field Name contains
15
+ group_lastname_cont: Group Name contains
16
+ issue_status_name_cont: Status Name contains
17
+ status_from_name_cont: Status From Name contains
18
+ status_to_name_cont: Status To Name contains
19
+ custom_field_value_cont: Custom Field Value contains
20
+ principal_firstname_or_principal_lastname_cont: Assigned To contains
21
+ type_cont: Type contains
22
+
23
+ export_template_label: Export Template
24
+ import_template_label: Import Template
25
+
26
+ entry_delete_confirmation_message: Are you sure you want to delete this record?
27
+
28
+ ransack:
29
+ search: search
30
+ predicate: predicate
31
+ and: and
32
+ or: or
33
+ any: any
34
+ all: all
35
+ combinator: combinator
36
+ attribute: attribute
37
+ value: value
38
+ condition: condition
39
+ sort: sort
40
+ asc: ascendent
41
+ desc: descendent
42
+ predicates:
43
+ eq: equal
44
+ eq_any: equal to any
45
+ eq_all: equal to all
46
+ not_eq: not equal
47
+ not_eq_any: not equal to any
48
+ not_eq_all: not equal to all
49
+ matches: matches
50
+ matches_any: matches any
51
+ matches_all: matches all
52
+ does_not_match: does not match
53
+ does_not_match_any: does not match any
54
+ does_not_match_all: does not match all
55
+ lt: less than
56
+ lt_any: less than any
57
+ lt_all: less than all
58
+ lteq: less than or equal
59
+ lteq_any: less than or equal to any
60
+ lteq_all: less than or equal to all
61
+ gt: greater than
62
+ gt_any: greater than any
63
+ gt_all: greater than all
64
+ gteq: greater than or equal
65
+ gteq_any: greater than or equal to any
66
+ gteq_all: greater than or equal to all
67
+ in: in
68
+ in_any: in any
69
+ in_all: in all
70
+ not_in: not in
71
+ not_in_any: not in any
72
+ not_in_all: not in all
73
+ cont: contains
74
+ cont_any: contains any
75
+ cont_all: contains all
76
+ not_cont: not contains
77
+ not_cont_any: not contains any
78
+ not_cont_all: not contains all
79
+ start: starts with
80
+ start_any: starts with any
81
+ start_all: starts with all
82
+ not_start: not starts with
83
+ not_start_any: not starts with any
84
+ not_start_all: not starts with all
85
+ end: ends with
86
+ end_any: ends with any
87
+ end_all: ends with all
88
+ not_end: not ends with
89
+ not_end_any: not ends with any
90
+ not_end_all: not ends with all
91
+ 'true': 'true'
92
+ 'false': 'false'
93
+ present: present
94
+ blank: blank
95
+ 'null': 'null'
96
+ not_null: 'not null'
@@ -4,6 +4,9 @@ pt-BR:
4
4
  all_field: Todos
5
5
  label_principal: 'Atribuído para'
6
6
  label_issue_status: 'Status'
7
+ label_status_from: Status De
8
+ label_status_to: Status Para
9
+ label_name: Nome
7
10
  label_type: Tipo
8
11
 
9
12
  project_name_cont: Nome do projeto contém
@@ -20,6 +23,8 @@ pt-BR:
20
23
  export_template_label: "Exportar Template"
21
24
  import_template_label: "Importar Template"
22
25
 
26
+ entry_delete_confirmation_message: Tem certeza que deseja deletar esse registro?
27
+
23
28
  ransack:
24
29
  search: "pesquisar"
25
30
  predicate: "predicado"
@@ -1,3 +1,3 @@
1
1
  module CrujCrujCruj
2
- VERSION = "1.0.1"
2
+ VERSION = "1.0.6"
3
3
  end
@@ -5,5 +5,5 @@ module CrujCrujCruj
5
5
  require "ransack"
6
6
  require 'kaminari'
7
7
  require 'roo'
8
- require 'axlsx'
8
+ require 'caxlsx'
9
9
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cruj_cruj_cruj_visagio
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Visagio
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-10-24 00:00:00.000000000 Z
11
+ date: 2021-07-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - ">"
18
18
  - !ruby/object:Gem::Version
19
- version: '3.0'
19
+ version: '5'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - ">"
25
25
  - !ruby/object:Gem::Version
26
- version: '3.0'
26
+ version: '5'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: ransack
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -67,19 +67,19 @@ dependencies:
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
- name: axlsx
70
+ name: caxlsx
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - "~>"
73
+ - - ">="
74
74
  - !ruby/object:Gem::Version
75
- version: '2.0'
75
+ version: '0'
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - "~>"
80
+ - - ">="
81
81
  - !ruby/object:Gem::Version
82
- version: '2.0'
82
+ version: '0'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: sqlite3
85
85
  requirement: !ruby/object:Gem::Requirement
@@ -114,6 +114,7 @@ files:
114
114
  - app/views/cruj_cruj_cruj/edit.html.erb
115
115
  - app/views/cruj_cruj_cruj/new.html.erb
116
116
  - app/views/layouts/cruj_cruj_cruj/application.html.erb
117
+ - config/locales/en.yml
117
118
  - config/locales/pt-BR.yml
118
119
  - config/routes.rb
119
120
  - lib/cruj_cruj_cruj/engine.rb
@@ -177,15 +178,12 @@ required_rubygems_version: !ruby/object:Gem::Requirement
177
178
  - !ruby/object:Gem::Version
178
179
  version: '0'
179
180
  requirements: []
180
- rubyforge_project:
181
- rubygems_version: 2.7.8
181
+ rubygems_version: 3.0.8
182
182
  signing_key:
183
183
  specification_version: 4
184
184
  summary: Crud Generator for Redmine
185
185
  test_files:
186
186
  - test/cruj_cruj_cruj_test.rb
187
- - test/dummy/README.rdoc
188
- - test/dummy/Rakefile
189
187
  - test/dummy/app/assets/javascripts/application.js
190
188
  - test/dummy/app/assets/stylesheets/application.css
191
189
  - test/dummy/app/controllers/application_controller.rb
@@ -218,5 +216,7 @@ test_files:
218
216
  - test/dummy/public/422.html
219
217
  - test/dummy/public/500.html
220
218
  - test/dummy/public/favicon.ico
219
+ - test/dummy/Rakefile
220
+ - test/dummy/README.rdoc
221
221
  - test/integration/navigation_test.rb
222
222
  - test/test_helper.rb