edgarj 0.01.18 → 0.01.19
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/helpers/edgarj/form_drawer.rb +1 -1
- data/app/models/edgarj/search_form.rb +6 -2
- data/lib/edgarj/version.rb +1 -1
- data/test/dummy/config/locales/ja.yml +15 -0
- metadata +56 -23
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f7dcfccb2029b1dc2b66cef4128f66f46ebdec25
|
4
|
+
data.tar.gz: c9d75de9e737a204e8156e83c3d7d2c94c4d26fe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2dd21b30f123b201fc72283fd9ab3403ce8041b05afe70e296e0430a6db73e4d9ccd16d3fae60ec0f5fd2adc95fce9f5d02f05cf9e4e046e37c17f1fb4d1eafc
|
7
|
+
data.tar.gz: bdd1cd446d5d0677aef030079b7b868ef32e1460338b943ecabaec552ab33544da7ace552f87d66143225c3f067d4b4ff6d148677567b1fc5284597b3819505c
|
@@ -225,7 +225,7 @@ module Edgarj
|
|
225
225
|
#
|
226
226
|
def _draw_head(col, label=nil, &block)
|
227
227
|
_draw_2_lane{
|
228
|
-
sprintf("<th>%s</th><td>", label || @record.
|
228
|
+
sprintf("<th>%s</th><td>", label || @record.klass.human_attribute_name(col.name)) +
|
229
229
|
|
230
230
|
# add operator for appropreate data type.
|
231
231
|
if col.name == 'id'
|
@@ -154,7 +154,7 @@ module Edgarj
|
|
154
154
|
|
155
155
|
conds = []
|
156
156
|
values = []
|
157
|
-
for col in
|
157
|
+
for col in klass.columns do
|
158
158
|
col_str = col_name(col)
|
159
159
|
val = @attrs[encode_name(col)]
|
160
160
|
if !val.blank?
|
@@ -199,6 +199,10 @@ module Edgarj
|
|
199
199
|
return [conds.join(' and ')] + values
|
200
200
|
end
|
201
201
|
|
202
|
+
def klass
|
203
|
+
@_klass_str.constantize
|
204
|
+
end
|
205
|
+
|
202
206
|
private
|
203
207
|
def is_dbms?
|
204
208
|
@is_dbms ||=
|
@@ -238,7 +242,7 @@ module Edgarj
|
|
238
242
|
end
|
239
243
|
|
240
244
|
def validate_data_type
|
241
|
-
for col in
|
245
|
+
for col in klass.columns do
|
242
246
|
col_str = col_name(col)
|
243
247
|
encoded_col = encode_name(col)
|
244
248
|
val = @attrs[encoded_col]
|
data/lib/edgarj/version.rb
CHANGED
metadata
CHANGED
@@ -1,20 +1,23 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: edgarj
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.01.
|
4
|
+
version: 0.01.19
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Fuminori Ido
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-12-
|
11
|
+
date: 2014-12-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
17
|
- - ~>
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '3.2'
|
20
|
+
- - '>='
|
18
21
|
- !ruby/object:Gem::Version
|
19
22
|
version: 3.2.19
|
20
23
|
type: :runtime
|
@@ -22,6 +25,9 @@ dependencies:
|
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
24
27
|
- - ~>
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '3.2'
|
30
|
+
- - '>='
|
25
31
|
- !ruby/object:Gem::Version
|
26
32
|
version: 3.2.19
|
27
33
|
- !ruby/object:Gem::Dependency
|
@@ -29,6 +35,9 @@ dependencies:
|
|
29
35
|
requirement: !ruby/object:Gem::Requirement
|
30
36
|
requirements:
|
31
37
|
- - ~>
|
38
|
+
- !ruby/object:Gem::Version
|
39
|
+
version: '3.1'
|
40
|
+
- - '>='
|
32
41
|
- !ruby/object:Gem::Version
|
33
42
|
version: 3.1.0
|
34
43
|
type: :runtime
|
@@ -36,6 +45,9 @@ dependencies:
|
|
36
45
|
version_requirements: !ruby/object:Gem::Requirement
|
37
46
|
requirements:
|
38
47
|
- - ~>
|
48
|
+
- !ruby/object:Gem::Version
|
49
|
+
version: '3.1'
|
50
|
+
- - '>='
|
39
51
|
- !ruby/object:Gem::Version
|
40
52
|
version: 3.1.0
|
41
53
|
- !ruby/object:Gem::Dependency
|
@@ -43,6 +55,9 @@ dependencies:
|
|
43
55
|
requirement: !ruby/object:Gem::Requirement
|
44
56
|
requirements:
|
45
57
|
- - ~>
|
58
|
+
- !ruby/object:Gem::Version
|
59
|
+
version: '5.0'
|
60
|
+
- - '>='
|
46
61
|
- !ruby/object:Gem::Version
|
47
62
|
version: 5.0.0
|
48
63
|
type: :runtime
|
@@ -50,104 +65,119 @@ dependencies:
|
|
50
65
|
version_requirements: !ruby/object:Gem::Requirement
|
51
66
|
requirements:
|
52
67
|
- - ~>
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '5.0'
|
70
|
+
- - '>='
|
53
71
|
- !ruby/object:Gem::Version
|
54
72
|
version: 5.0.0
|
55
73
|
- !ruby/object:Gem::Dependency
|
56
|
-
name:
|
74
|
+
name: rails_config
|
57
75
|
requirement: !ruby/object:Gem::Requirement
|
58
76
|
requirements:
|
59
77
|
- - ~>
|
60
78
|
- !ruby/object:Gem::Version
|
61
|
-
version: '0
|
79
|
+
version: '0'
|
62
80
|
type: :runtime
|
63
81
|
prerelease: false
|
64
82
|
version_requirements: !ruby/object:Gem::Requirement
|
65
83
|
requirements:
|
66
84
|
- - ~>
|
67
85
|
- !ruby/object:Gem::Version
|
68
|
-
version: '0
|
86
|
+
version: '0'
|
69
87
|
- !ruby/object:Gem::Dependency
|
70
|
-
name:
|
88
|
+
name: bcrypt-ruby
|
71
89
|
requirement: !ruby/object:Gem::Requirement
|
72
90
|
requirements:
|
73
91
|
- - ~>
|
74
92
|
- !ruby/object:Gem::Version
|
75
|
-
version: '
|
93
|
+
version: '3.0'
|
94
|
+
- - '>='
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: 3.0.1
|
76
97
|
type: :runtime
|
77
98
|
prerelease: false
|
78
99
|
version_requirements: !ruby/object:Gem::Requirement
|
79
100
|
requirements:
|
80
101
|
- - ~>
|
81
102
|
- !ruby/object:Gem::Version
|
82
|
-
version: '
|
103
|
+
version: '3.0'
|
104
|
+
- - '>='
|
105
|
+
- !ruby/object:Gem::Version
|
106
|
+
version: 3.0.1
|
83
107
|
- !ruby/object:Gem::Dependency
|
84
|
-
name:
|
108
|
+
name: strong_parameters
|
85
109
|
requirement: !ruby/object:Gem::Requirement
|
86
110
|
requirements:
|
111
|
+
- - ~>
|
112
|
+
- !ruby/object:Gem::Version
|
113
|
+
version: '0.2'
|
87
114
|
- - '>='
|
88
115
|
- !ruby/object:Gem::Version
|
89
|
-
version:
|
116
|
+
version: 0.2.3
|
90
117
|
type: :runtime
|
91
118
|
prerelease: false
|
92
119
|
version_requirements: !ruby/object:Gem::Requirement
|
93
120
|
requirements:
|
121
|
+
- - ~>
|
122
|
+
- !ruby/object:Gem::Version
|
123
|
+
version: '0.2'
|
94
124
|
- - '>='
|
95
125
|
- !ruby/object:Gem::Version
|
96
|
-
version:
|
126
|
+
version: 0.2.3
|
97
127
|
- !ruby/object:Gem::Dependency
|
98
|
-
name:
|
128
|
+
name: kaminari
|
99
129
|
requirement: !ruby/object:Gem::Requirement
|
100
130
|
requirements:
|
101
131
|
- - ~>
|
102
132
|
- !ruby/object:Gem::Version
|
103
|
-
version: '
|
133
|
+
version: '0.15'
|
104
134
|
type: :runtime
|
105
135
|
prerelease: false
|
106
136
|
version_requirements: !ruby/object:Gem::Requirement
|
107
137
|
requirements:
|
108
138
|
- - ~>
|
109
139
|
- !ruby/object:Gem::Version
|
110
|
-
version: '
|
140
|
+
version: '0.15'
|
111
141
|
- !ruby/object:Gem::Dependency
|
112
|
-
name:
|
142
|
+
name: remotipart
|
113
143
|
requirement: !ruby/object:Gem::Requirement
|
114
144
|
requirements:
|
115
145
|
- - ~>
|
116
146
|
- !ruby/object:Gem::Version
|
117
|
-
version:
|
147
|
+
version: '1.2'
|
118
148
|
type: :runtime
|
119
149
|
prerelease: false
|
120
150
|
version_requirements: !ruby/object:Gem::Requirement
|
121
151
|
requirements:
|
122
152
|
- - ~>
|
123
153
|
- !ruby/object:Gem::Version
|
124
|
-
version:
|
154
|
+
version: '1.2'
|
125
155
|
- !ruby/object:Gem::Dependency
|
126
|
-
name:
|
156
|
+
name: awesome_nested_set
|
127
157
|
requirement: !ruby/object:Gem::Requirement
|
128
158
|
requirements:
|
129
159
|
- - ~>
|
130
160
|
- !ruby/object:Gem::Version
|
131
|
-
version:
|
161
|
+
version: '2'
|
132
162
|
type: :runtime
|
133
163
|
prerelease: false
|
134
164
|
version_requirements: !ruby/object:Gem::Requirement
|
135
165
|
requirements:
|
136
166
|
- - ~>
|
137
167
|
- !ruby/object:Gem::Version
|
138
|
-
version:
|
168
|
+
version: '2'
|
139
169
|
- !ruby/object:Gem::Dependency
|
140
170
|
name: mysql2
|
141
171
|
requirement: !ruby/object:Gem::Requirement
|
142
172
|
requirements:
|
143
|
-
- -
|
173
|
+
- - ~>
|
144
174
|
- !ruby/object:Gem::Version
|
145
175
|
version: '0'
|
146
176
|
type: :development
|
147
177
|
prerelease: false
|
148
178
|
version_requirements: !ruby/object:Gem::Requirement
|
149
179
|
requirements:
|
150
|
-
- -
|
180
|
+
- - ~>
|
151
181
|
- !ruby/object:Gem::Version
|
152
182
|
version: '0'
|
153
183
|
description: |
|
@@ -307,6 +337,7 @@ files:
|
|
307
337
|
- test/dummy/config/initializers/strong_parameter.rb
|
308
338
|
- test/dummy/config/initializers/wrap_parameters.rb
|
309
339
|
- test/dummy/config/locales/en.yml
|
340
|
+
- test/dummy/config/locales/ja.yml
|
310
341
|
- test/dummy/config/routes.rb
|
311
342
|
- test/dummy/db/migrate/20131107120635_create_authors.rb
|
312
343
|
- test/dummy/db/migrate/20131218011851_create_books.rb
|
@@ -346,7 +377,8 @@ files:
|
|
346
377
|
- test/unit/helpers/edgarj/model_permissions_helper_test.rb
|
347
378
|
- test/unit/helpers/edgarj/user_group_users_helper_test.rb
|
348
379
|
homepage: https://sourceforge.net/projects/jjedgar/
|
349
|
-
licenses:
|
380
|
+
licenses:
|
381
|
+
- MIT
|
350
382
|
metadata: {}
|
351
383
|
post_install_message:
|
352
384
|
rdoc_options: []
|
@@ -403,6 +435,7 @@ test_files:
|
|
403
435
|
- test/dummy/app/helpers/application_helper.rb
|
404
436
|
- test/dummy/app/helpers/books_helper.rb
|
405
437
|
- test/dummy/config/locales/en.yml
|
438
|
+
- test/dummy/config/locales/ja.yml
|
406
439
|
- test/dummy/config/application.rb
|
407
440
|
- test/dummy/config/edgarj/menu_config.rb
|
408
441
|
- test/dummy/config/environments/production.rb
|