egov_utils 0.4.6 → 0.4.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
  SHA256:
3
- metadata.gz: 66d133407dc31299f15ce849825b23a6ac77d52783fbf4686a8928a0f4e05a9a
4
- data.tar.gz: 95497bdd6db247defa4ec9f100407841eec6d0a735332f88d000a768dca837be
3
+ metadata.gz: ebfe2b7a245184c67084c7ccd0b3080545f2e6152f94b7539e039e50ee85dd25
4
+ data.tar.gz: 54630c77b3547fbf6436c9579ae752cd0f2d1314e19fe60cc84180ca7981a61c
5
5
  SHA512:
6
- metadata.gz: a467e39164e6d48664139f449d21c87302ea8aadb7117b802c9b8043a728d8dcae69e206177082e17a1b424f9c5943c4c6cdd3bd51e07b1b3f5db476177fd5f3
7
- data.tar.gz: 1c92a72ca60dcad40c5362ad891a508516e15466af6d18b3a412650782f7fe316ab92a109729b4a78069e9039de73fe5bc496fd18ca97f31227ab29e4b0f95b5
6
+ metadata.gz: 05203634b32d05bd37df95b1e6cf680ed694055becaa7f08bf1a1bb2050c9cf464c786e0f2436f75897e4a672a75a13554d0051f3bf161ae0e7b23bf03d40252
7
+ data.tar.gz: 82d436cfe8150bc95e9036b859b7b39f78ea1ed238a07e01b9b35b930b5d87e13d8873e49ac81faf4816ac904e146f6244ef9ae0c36e5f50882226a6c532f39b
data/README.md CHANGED
@@ -103,12 +103,7 @@ Add this lines to your application's Gemfile:
103
103
 
104
104
  ```ruby
105
105
  gem 'egov_utils'
106
-
107
- source 'https://rails-assets.org' do
108
- gem 'rails-assets-tether', '>= 1.3.3'
109
- end
110
106
  ```
111
- 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.
112
107
 
113
108
  And then execute:
114
109
  ```bash
@@ -6,7 +6,7 @@ $.widget 'egov_utils.roles',
6
6
  options:
7
7
  editBtnClass: 'btn btn-sm btn-info'
8
8
  submitBtnClass: 'btn btn-xs btn-primary'
9
- editIconClass: 'fa fa-pencil'
9
+ editIconClass: 'fa fa-pencil-alt'
10
10
  allRoles: ['<%= EgovUtils::UserUtils::Role.roles.keys.join("', '") %>']
11
11
  url: null
12
12
  idParamName: 'id'
@@ -3,8 +3,6 @@ $ ->
3
3
  grid ||= schema.outputs.grid
4
4
  page_size ||= 50
5
5
  additional_params ||= {}
6
- create_attributes ||= {}
7
- create_model ||= schema.model
8
6
  %>
9
7
 
10
8
  after_modal_submit = (evt, data)->
@@ -15,10 +13,6 @@ $ ->
15
13
  $('body').off 'egov:submitted', after_modal_submit
16
14
  $('body').on 'egov:submitted', '#modal', after_modal_submit
17
15
 
18
- <%# would be a bit cleaner to give the filled form to the shield grid create method, then send the form by ajax %>
19
- createRecord = (evt)->
20
- $.ajax('<%= new_polymorphic_path(create_model, create_attributes.merge(format: :js)) %>')
21
-
22
16
 
23
17
  editRecord = (index)->
24
18
  grid = $("#<%= grid_id %>").swidget()
@@ -73,19 +67,6 @@ $ ->
73
67
  delete dataObject.take
74
68
  dataObject
75
69
  modify:
76
- create: (items, success, error) ->
77
- newItem = items[0]
78
- $.ajax
79
- url: '<%= polymorphic_path(create_model, format: :json) %>'
80
- type: 'POST'
81
- dataType: 'json'
82
- data: { <%= create_model.model_name.name.underscore %>: newItem.data }
83
- complete: (xhr) ->
84
- if xhr.readyState == 4 and xhr.status == 201
85
- newItem.data.id = xhr.responseJSON.id
86
- success()
87
- return
88
- error(xhr)
89
70
  remove: (items, success, error) ->
90
71
  $.ajax(
91
72
  type: "DELETE"
@@ -1,3 +1,3 @@
1
1
  module EgovUtils
2
- VERSION = '0.4.6'
2
+ VERSION = '0.4.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.4.6
4
+ version: 0.4.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: 2018-07-16 00:00:00.000000000 Z
11
+ date: 2018-08-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -235,33 +235,33 @@ dependencies:
235
235
  - !ruby/object:Gem::Version
236
236
  version: '4.0'
237
237
  - !ruby/object:Gem::Dependency
238
- name: sass-rails
238
+ name: sassc-rails
239
239
  requirement: !ruby/object:Gem::Requirement
240
240
  requirements:
241
241
  - - "~>"
242
242
  - !ruby/object:Gem::Version
243
- version: '5.0'
243
+ version: '1.3'
244
244
  type: :runtime
245
245
  prerelease: false
246
246
  version_requirements: !ruby/object:Gem::Requirement
247
247
  requirements:
248
248
  - - "~>"
249
249
  - !ruby/object:Gem::Version
250
- version: '5.0'
250
+ version: '1.3'
251
251
  - !ruby/object:Gem::Dependency
252
252
  name: font-awesome-sass
253
253
  requirement: !ruby/object:Gem::Requirement
254
254
  requirements:
255
255
  - - "~>"
256
256
  - !ruby/object:Gem::Version
257
- version: '4.7'
257
+ version: '5.0'
258
258
  type: :runtime
259
259
  prerelease: false
260
260
  version_requirements: !ruby/object:Gem::Requirement
261
261
  requirements:
262
262
  - - "~>"
263
263
  - !ruby/object:Gem::Version
264
- version: '4.7'
264
+ version: '5.0'
265
265
  - !ruby/object:Gem::Dependency
266
266
  name: bootstrap_form
267
267
  requirement: !ruby/object:Gem::Requirement