cruj_cruj_cruj_visagio 1.0.0 → 1.0.5

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: '0168f1b620e8207bca74b3c0a791f80c21f0a17bb4543f2cdc1871bb5577898c'
4
- data.tar.gz: ca650d8c1767bfaebe1079b7a0b6cbcf95d6c8c18227912561338e3955ac619b
3
+ metadata.gz: 37cbabd2008ce9320cf86f7157283701a062b21a0f5ca32c42dfe4a19570b74c
4
+ data.tar.gz: 2caea412ce625e05bc0b65a0f6ab4f13b358cdb5641b5602afaf585d5529b9a8
5
5
  SHA512:
6
- metadata.gz: c2f5b03e537b40992b01017eb286b0597103b030bd73ed7c1e6ad6c0bfc72ac88a516f8ba95c95ed4add4ca2ddffcba93d2dc017671b6a97778f2d43b111249d
7
- data.tar.gz: a05acf1be2b6de81bd052faf4b9b4d789337f58c9ed4f6120aeda477cebd6255c7a4bf730a1b4c3c56de2dc6d83065af8ec8be0c1ffaf4f1505080a18188a233
6
+ metadata.gz: 0e34145f7349a745bc15948850435497790d6f9447459dc1569d63057126a12dd84e565f6ab207631798730c1d8e79e1eea9f8df9262947f4f65568e1f81489b
7
+ data.tar.gz: 3e8e5529334621fe075e60d51bcbe610bbcd2c649a8e50a47239eeb10fe71a6555a2045c0113715619c7c086eb29959378580ab5bf598a92a2d8cf2b6185fb13
@@ -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
@@ -94,7 +97,11 @@ class CrujCrujCrujController < ApplicationController
94
97
  end
95
98
 
96
99
  def safe_parameters
97
- params.require(snake_case_model_name).permit!
100
+ if Rails::VERSION::MAJOR < 4
101
+ params[snake_case_model_name]
102
+ else
103
+ params.require(snake_case_model_name).permit!
104
+ end
98
105
  end
99
106
 
100
107
  def find_resource
@@ -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,93 @@
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_type: Type
8
+
9
+ project_name_cont: Project Name contains
10
+ tracker_name_cont: Tracker Name contains
11
+ custom_field_name_cont: Custom Field Name contains
12
+ group_lastname_cont: Group Name contains
13
+ issue_status_name_cont: Status Name contains
14
+ status_from_name_cont: Status From Name contains
15
+ status_to_name_cont: Status To Name contains
16
+ custom_field_value_cont: Custom Field Value contains
17
+ principal_firstname_or_principal_lastname_cont: Assigned To contains
18
+ type_cont: Type contains
19
+
20
+ export_template_label: Export Template
21
+ import_template_label: Import Template
22
+
23
+ entry_delete_confirmation_message: Are you sure you want to delete this record?
24
+
25
+ ransack:
26
+ search: search
27
+ predicate: predicate
28
+ and: and
29
+ or: or
30
+ any: any
31
+ all: all
32
+ combinator: combinator
33
+ attribute: attribute
34
+ value: value
35
+ condition: condition
36
+ sort: sort
37
+ asc: ascendent
38
+ desc: descendent
39
+ predicates:
40
+ eq: equal
41
+ eq_any: equal to any
42
+ eq_all: equal to all
43
+ not_eq: not equal
44
+ not_eq_any: not equal to any
45
+ not_eq_all: not equal to all
46
+ matches: matches
47
+ matches_any: matches any
48
+ matches_all: matches all
49
+ does_not_match: does not match
50
+ does_not_match_any: does not match any
51
+ does_not_match_all: does not match all
52
+ lt: less than
53
+ lt_any: less than any
54
+ lt_all: less than all
55
+ lteq: less than or equal
56
+ lteq_any: less than or equal to any
57
+ lteq_all: less than or equal to all
58
+ gt: greater than
59
+ gt_any: greater than any
60
+ gt_all: greater than all
61
+ gteq: greater than or equal
62
+ gteq_any: greater than or equal to any
63
+ gteq_all: greater than or equal to all
64
+ in: in
65
+ in_any: in any
66
+ in_all: in all
67
+ not_in: not in
68
+ not_in_any: not in any
69
+ not_in_all: not in all
70
+ cont: contains
71
+ cont_any: contains any
72
+ cont_all: contains all
73
+ not_cont: not contains
74
+ not_cont_any: not contains any
75
+ not_cont_all: not contains all
76
+ start: starts with
77
+ start_any: starts with any
78
+ start_all: starts with all
79
+ not_start: not starts with
80
+ not_start_any: not starts with any
81
+ not_start_all: not starts with all
82
+ end: ends with
83
+ end_any: ends with any
84
+ end_all: ends with all
85
+ not_end: not ends with
86
+ not_end_any: not ends with any
87
+ not_end_all: not ends with all
88
+ 'true': 'true'
89
+ 'false': 'false'
90
+ present: present
91
+ blank: blank
92
+ 'null': 'null'
93
+ not_null: 'not null'
@@ -20,6 +20,8 @@ pt-BR:
20
20
  export_template_label: "Exportar Template"
21
21
  import_template_label: "Importar Template"
22
22
 
23
+ entry_delete_confirmation_message: Tem certeza que deseja deletar esse registro?
24
+
23
25
  ransack:
24
26
  search: "pesquisar"
25
27
  predicate: "predicado"
@@ -1,3 +1,3 @@
1
1
  module CrujCrujCruj
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.5"
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.0
4
+ version: 1.0.5
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