egov_utils 0.1.6 → 0.1.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +6 -1
- data/app/attributes/egov_utils/all_role_names.rb +15 -0
- data/app/schemas/egov_utils/user_schema.rb +16 -0
- data/app/views/egov_utils/people/_form.html.haml +1 -1
- data/lib/egov_utils.rb +6 -0
- data/lib/egov_utils/engine.rb +1 -0
- data/lib/egov_utils/version.rb +1 -1
- metadata +75 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7ca95f0c5c995ac85c29cd87edcfe7e35e9904e5
|
4
|
+
data.tar.gz: 69672adb4c2a1f79399e981c8dedbda6c7f11d14
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d71984dde90acb66b5a8369e6aec389f60a43c1352002d996b089b255c7008a40b04ad3773db193f9dd98867c9d0ed38f04b910bef99999a553dac2e425ec3b1
|
7
|
+
data.tar.gz: de2a25afc213098d2159ce9944375cad85769e419d960ceeb16d7f15a129825db8545f6e377e6816f11e025d55b9aaefa4f0bbaadecc4d123c5d01d2f8e4c2fc
|
data/README.md
CHANGED
@@ -5,11 +5,16 @@ Short description and motivation.
|
|
5
5
|
How to use my plugin.
|
6
6
|
|
7
7
|
## Installation
|
8
|
-
Add this
|
8
|
+
Add this lines to your application's Gemfile:
|
9
9
|
|
10
10
|
```ruby
|
11
11
|
gem 'egov_utils'
|
12
|
+
|
13
|
+
source 'https://rails-assets.org' do
|
14
|
+
gem 'rails-assets-tether', '>= 1.3.3'
|
15
|
+
end
|
12
16
|
```
|
17
|
+
Because it is not possible to add a tether as a dependency (as long as it is from other source), you need to add it to your own Gemfile.
|
13
18
|
|
14
19
|
And then execute:
|
15
20
|
```bash
|
@@ -0,0 +1,16 @@
|
|
1
|
+
module EgovUtils
|
2
|
+
class UserSchema < AzaharaSchema::ModelSchema
|
3
|
+
|
4
|
+
def main_attribute_name
|
5
|
+
'fullname'
|
6
|
+
end
|
7
|
+
|
8
|
+
def initialize_available_attributes
|
9
|
+
@available_attributes ||= []
|
10
|
+
@available_attributes << Fullname.new(model, 'fullname', 'string')
|
11
|
+
super
|
12
|
+
@available_attributes << AllRoleNames.new(model, 'all_role_names', 'string')
|
13
|
+
end
|
14
|
+
|
15
|
+
end
|
16
|
+
end
|
data/lib/egov_utils.rb
CHANGED
data/lib/egov_utils/engine.rb
CHANGED
data/lib/egov_utils/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: egov_utils
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ondřej Ezr
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-10-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -52,6 +52,34 @@ dependencies:
|
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0.16'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: haml
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '5.0'
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '5.0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: rails-i18n
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '5.0'
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '5.0'
|
55
83
|
- !ruby/object:Gem::Dependency
|
56
84
|
name: i18n-js
|
57
85
|
requirement: !ruby/object:Gem::Requirement
|
@@ -108,6 +136,48 @@ dependencies:
|
|
108
136
|
- - "~>"
|
109
137
|
- !ruby/object:Gem::Version
|
110
138
|
version: '2.0'
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: azahara_schema
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - "~>"
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: 0.1.0
|
146
|
+
type: :runtime
|
147
|
+
prerelease: false
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - "~>"
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: 0.1.0
|
153
|
+
- !ruby/object:Gem::Dependency
|
154
|
+
name: jquery-rails
|
155
|
+
requirement: !ruby/object:Gem::Requirement
|
156
|
+
requirements:
|
157
|
+
- - "~>"
|
158
|
+
- !ruby/object:Gem::Version
|
159
|
+
version: 4.3.1
|
160
|
+
type: :runtime
|
161
|
+
prerelease: false
|
162
|
+
version_requirements: !ruby/object:Gem::Requirement
|
163
|
+
requirements:
|
164
|
+
- - "~>"
|
165
|
+
- !ruby/object:Gem::Version
|
166
|
+
version: 4.3.1
|
167
|
+
- !ruby/object:Gem::Dependency
|
168
|
+
name: jquery-ui-rails
|
169
|
+
requirement: !ruby/object:Gem::Requirement
|
170
|
+
requirements:
|
171
|
+
- - "~>"
|
172
|
+
- !ruby/object:Gem::Version
|
173
|
+
version: 6.0.1
|
174
|
+
type: :runtime
|
175
|
+
prerelease: false
|
176
|
+
version_requirements: !ruby/object:Gem::Requirement
|
177
|
+
requirements:
|
178
|
+
- - "~>"
|
179
|
+
- !ruby/object:Gem::Version
|
180
|
+
version: 6.0.1
|
111
181
|
- !ruby/object:Gem::Dependency
|
112
182
|
name: bootstrap
|
113
183
|
requirement: !ruby/object:Gem::Requirement
|
@@ -200,6 +270,7 @@ files:
|
|
200
270
|
- app/assets/stylesheets/egov_utils/groups.css
|
201
271
|
- app/assets/stylesheets/egov_utils/roles.css
|
202
272
|
- app/assets/stylesheets/egov_utils/users.css
|
273
|
+
- app/attributes/egov_utils/all_role_names.rb
|
203
274
|
- app/attributes/egov_utils/district.rb
|
204
275
|
- app/attributes/egov_utils/full_address.rb
|
205
276
|
- app/attributes/egov_utils/fullname.rb
|
@@ -228,6 +299,7 @@ files:
|
|
228
299
|
- app/models/egov_utils/user.rb
|
229
300
|
- app/schemas/egov_utils/address_schema.rb
|
230
301
|
- app/schemas/egov_utils/person_schema.rb
|
302
|
+
- app/schemas/egov_utils/user_schema.rb
|
231
303
|
- app/validators/email_validator.rb
|
232
304
|
- app/validators/ico_validator.rb
|
233
305
|
- app/views/common/_grid.html.coffee
|
@@ -329,7 +401,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
329
401
|
version: '0'
|
330
402
|
requirements: []
|
331
403
|
rubyforge_project:
|
332
|
-
rubygems_version: 2.6.
|
404
|
+
rubygems_version: 2.6.14
|
333
405
|
signing_key:
|
334
406
|
specification_version: 4
|
335
407
|
summary: The eGoverment utilities is set of functionalities to support basic eGoverment
|