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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e61e380826e482ca30b993e52ebe1affea6e9c10
4
- data.tar.gz: 58e85cd16d6d1feba124d7bb731417d680600d32
3
+ metadata.gz: 7ca95f0c5c995ac85c29cd87edcfe7e35e9904e5
4
+ data.tar.gz: 69672adb4c2a1f79399e981c8dedbda6c7f11d14
5
5
  SHA512:
6
- metadata.gz: 88cb050c1d625faf5efbda62c3577054f9feb9dba1d2adf49e410a1dc62d60f9a7054590c3cbb8a6e519aa86a20c73a59450b90838a98c65185b9c75e7f62d6e
7
- data.tar.gz: 8dd06b52581f81970c1cb89d455ec7cfb8c336086c6e9aa4c63489d30caf4496cda5d827d7bfecb2e36219ea90b09279e611f4e86ceef078cd5bf9e811b7c809
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 line to your application's Gemfile:
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,15 @@
1
+ module EgovUtils
2
+ class AllRoleNames < AzaharaSchema::Attribute
3
+
4
+ def filter?
5
+ false
6
+ end
7
+
8
+ def build_json_options!(options)
9
+ options[:methods] ||= []
10
+ options[:methods] << 'all_role_names'
11
+ options
12
+ end
13
+
14
+ end
15
+ end
@@ -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
@@ -1,3 +1,3 @@
1
1
  = form.text_field(:firstname)
2
2
  = form.text_field(:lastname)
3
- = form.date_field(:birth_date)
3
+ = form.date_field(:birth_date, data: {'date-view-mode' => 'decades'})
data/lib/egov_utils.rb CHANGED
@@ -1,3 +1,9 @@
1
+ require 'jquery-rails'
2
+ require 'jquery-ui-rails'
3
+ require 'bootstrap'
4
+ require 'bootstrap_form'
5
+ require 'momentjs-rails'
6
+
1
7
  require "egov_utils/engine"
2
8
 
3
9
  module EgovUtils
@@ -1,6 +1,7 @@
1
1
  require 'i18n-js'
2
2
  require 'cancancan'
3
3
  require 'audited'
4
+ require 'azahara_schema'
4
5
 
5
6
  module EgovUtils
6
7
  class Engine < ::Rails::Engine
@@ -1,3 +1,3 @@
1
1
  module EgovUtils
2
- VERSION = '0.1.6'
2
+ VERSION = '0.1.7'
3
3
  end
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.6
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-09-18 00:00:00.000000000 Z
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.13
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