zadok 0.5.7 → 0.5.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.gitignore +0 -0
- data/.rubocop.yml +13 -13
- data/Gemfile +5 -5
- data/Gemfile.lock +1 -1
- data/README.md +0 -0
- data/app/assets/javascripts/zadok/data_links.js +0 -0
- data/app/assets/javascripts/zadok.js +0 -0
- data/app/assets/stylesheets/zadok/data_links.sass +0 -0
- data/app/assets/stylesheets/zadok/resources.sass +0 -0
- data/app/assets/stylesheets/zadok/turbolinks.sass +0 -0
- data/app/assets/stylesheets/zadok.sass +0 -0
- data/app/controllers/zadok_controller.rb +4 -4
- data/app/helpers/zadok_helper.rb +0 -0
- data/app/models/zadok/filters/null_filter.rb +0 -0
- data/app/views/zadok/edit.html.slim +2 -2
- data/app/views/zadok/filters/_autocomplete.html.slim +0 -0
- data/app/views/zadok/filters/_edit.html.slim +0 -0
- data/app/views/zadok/filters/_form_fields.html.slim +0 -0
- data/app/views/zadok/filters/_hidden.html.slim +0 -0
- data/app/views/zadok/filters/_multiselect.slim +0 -0
- data/app/views/zadok/filters/_numeric_range_field.html.slim +1 -1
- data/app/views/zadok/filters/_options.html.slim +0 -0
- data/app/views/zadok/filters/_range.html.slim +0 -0
- data/app/views/zadok/filters/_select.html.slim +0 -0
- data/app/views/zadok/filters/_textfield.html.slim +0 -0
- data/app/views/zadok/filters/_typeable_multiselect.html.slim +0 -0
- data/app/views/zadok/form/fields/_array.html.slim +0 -0
- data/app/views/zadok/form/fields/_boolean.html.slim +0 -0
- data/app/views/zadok/form/fields/_date.html.slim +0 -0
- data/app/views/zadok/form/fields/_decimal.html.slim +0 -0
- data/app/views/zadok/form/fields/_email_field.html.slim +0 -0
- data/app/views/zadok/form/fields/_file_field.html.slim +0 -0
- data/app/views/zadok/form/fields/_float.html.slim +0 -0
- data/app/views/zadok/form/fields/_hex_field.html.slim +0 -0
- data/app/views/zadok/form/fields/_inet.html.slim +0 -0
- data/app/views/zadok/form/fields/_integer.html.slim +0 -0
- data/app/views/zadok/form/fields/_number_field.html.slim +0 -0
- data/app/views/zadok/form/fields/_select.html.slim +0 -0
- data/app/views/zadok/form/fields/_serialized.html.slim +0 -0
- data/app/views/zadok/form/fields/_string.html.slim +0 -0
- data/app/views/zadok/form/fields/_text.html.slim +0 -0
- data/app/views/zadok/form/fields/_text_area.html.slim +0 -0
- data/app/views/zadok/form/fields/_text_field.html.slim +0 -0
- data/app/views/zadok/form/fields/_time_zone_converter.html.slim +0 -0
- data/app/views/zadok/form/fields/_url_field.html.slim +0 -0
- data/app/views/zadok/form/fields/_uuid.html.slim +0 -0
- data/app/views/zadok/index.html.slim +1 -1
- data/app/views/zadok/new.html.slim +0 -0
- data/app/views/zadok/show.html.slim +1 -1
- data/lib/zadok/engine.rb +0 -0
- data/lib/zadok/filter_collection.rb +0 -0
- data/lib/zadok/filters/ransack/autocomplete_filter.rb +0 -0
- data/lib/zadok/filters/ransack/base.rb +0 -0
- data/lib/zadok/filters/ransack/hidden_filter.rb +0 -0
- data/lib/zadok/filters/ransack/multiselect_filter.rb +0 -0
- data/lib/zadok/filters/ransack/numeric_range_filter.rb +0 -0
- data/lib/zadok/filters/ransack/options_filter.rb +0 -0
- data/lib/zadok/filters/ransack/range_filter.rb +0 -0
- data/lib/zadok/filters/ransack/select_filter.rb +0 -0
- data/lib/zadok/filters/ransack/textfield_filter.rb +0 -0
- data/lib/zadok/filters/ransack/typeable_multiselect_filter.rb +0 -0
- data/lib/zadok/link_renderer.rb +0 -0
- data/lib/zadok/version.rb +1 -1
- data/lib/zadok.rb +0 -0
- data/zadok.gemspec +0 -0
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: bb94012460b91d2e0de4e00e4bc8df108e18aacf756718a141cb69078acf5a11
|
|
4
|
+
data.tar.gz: d7faa2c1083f49d0859a73e54ffafc1d7dcc29148cc191b3cf80d15ee3bb59ab
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: bab87f41e490715288ea0ecc680a598932eb6dd30daae1bc5cf3a1ffaebe83a32be1a348e56c15f5f3492e78e6eee90b744fd96f6ea03df30b6c90bf5821e88f
|
|
7
|
+
data.tar.gz: 487dd7020b1c4b985ad8bb067932c0afcde6a898395c6aee9ef34e75e9a79646de9e90dcbf6f97881b53cbbf457ca4a4f8c28600b4942880c756afbf5d8f041c
|
data/.gitignore
CHANGED
|
File without changes
|
data/.rubocop.yml
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
AllCops:
|
|
2
|
-
TargetRailsVersion: 5.1
|
|
3
|
-
TargetRubyVersion: 2.4
|
|
4
|
-
|
|
5
|
-
Rails:
|
|
6
|
-
Enabled: true
|
|
7
|
-
|
|
8
|
-
Style/StringLiterals:
|
|
9
|
-
EnforcedStyle: double_quotes
|
|
10
|
-
|
|
11
|
-
# Disabled failing Cops
|
|
12
|
-
Documentation:
|
|
13
|
-
Enabled: false
|
|
1
|
+
AllCops:
|
|
2
|
+
TargetRailsVersion: 5.1
|
|
3
|
+
TargetRubyVersion: 2.4
|
|
4
|
+
|
|
5
|
+
Rails:
|
|
6
|
+
Enabled: true
|
|
7
|
+
|
|
8
|
+
Style/StringLiterals:
|
|
9
|
+
EnforcedStyle: double_quotes
|
|
10
|
+
|
|
11
|
+
# Disabled failing Cops
|
|
12
|
+
Documentation:
|
|
13
|
+
Enabled: false
|
data/Gemfile
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
source "https://rubygems.org"
|
|
4
|
-
|
|
5
|
-
gemspec
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
source "https://rubygems.org"
|
|
4
|
+
|
|
5
|
+
gemspec
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -38,7 +38,7 @@ class ZadokController < ApplicationController
|
|
|
38
38
|
|
|
39
39
|
def create
|
|
40
40
|
if resource.save
|
|
41
|
-
flash.now[:success] = t("
|
|
41
|
+
flash.now[:success] = t("zadok.create.success", model: resource_name)
|
|
42
42
|
flash.keep(:success)
|
|
43
43
|
redirect_to url_for(controller: controller_name, action: :index)
|
|
44
44
|
else
|
|
@@ -53,7 +53,7 @@ class ZadokController < ApplicationController
|
|
|
53
53
|
|
|
54
54
|
def update
|
|
55
55
|
if resource.update(resource_params)
|
|
56
|
-
flash.now[:success] = t("
|
|
56
|
+
flash.now[:success] = t("zadok.update.success", model: resource_name)
|
|
57
57
|
else
|
|
58
58
|
flash.now[:danger] = resource.errors.full_messages.join("<br />")
|
|
59
59
|
end
|
|
@@ -62,7 +62,7 @@ class ZadokController < ApplicationController
|
|
|
62
62
|
|
|
63
63
|
def destroy
|
|
64
64
|
if resource.destroy
|
|
65
|
-
flash.now[:success] = t("
|
|
65
|
+
flash.now[:success] = t("zadok.destroy.success", model: resource_name)
|
|
66
66
|
flash.keep(:success)
|
|
67
67
|
else
|
|
68
68
|
flash.now[:danger] = resource.errors.full_messages.join("<br />")
|
|
@@ -151,7 +151,7 @@ class ZadokController < ApplicationController
|
|
|
151
151
|
end
|
|
152
152
|
|
|
153
153
|
def page_title
|
|
154
|
-
t("
|
|
154
|
+
t("zadok.#{action_name}.action", model: resource_name)
|
|
155
155
|
end
|
|
156
156
|
|
|
157
157
|
def filter_and_paginate_resources!
|
data/app/helpers/zadok_helper.rb
CHANGED
|
File without changes
|
|
File without changes
|
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
|
|
23
23
|
- if can?(:destroy, resource)
|
|
24
24
|
.card-footer
|
|
25
|
-
= link_to(t("
|
|
25
|
+
= link_to(t("zadok.destroy.action", model: resource_name),
|
|
26
26
|
resource_url_for(:destroy),
|
|
27
|
-
data: { confirm: t("
|
|
27
|
+
data: { confirm: t("zadok.destroy.confirm", model: resource_name) },
|
|
28
28
|
method: :delete,
|
|
29
29
|
class: "btn btn-danger pull-right")
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
.textfield.numeric_range_field
|
|
2
2
|
= text_field_tag filter.name, filter.value(params),
|
|
3
|
-
placeholder: I18n.t("
|
|
3
|
+
placeholder: I18n.t("filter.labels.numeric_range.placeholder"),
|
|
4
4
|
pattern: ' *- *\d+|\d+( *- *(\d+)?)?',
|
|
5
5
|
"data-role" => "numeric_range",
|
|
6
6
|
"data-left" => filter.params[0],
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
data/lib/zadok/engine.rb
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
data/lib/zadok/link_renderer.rb
CHANGED
|
File without changes
|
data/lib/zadok/version.rb
CHANGED
data/lib/zadok.rb
CHANGED
|
File without changes
|
data/zadok.gemspec
CHANGED
|
File without changes
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: zadok
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.5.
|
|
4
|
+
version: 0.5.8
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Leon Hooijer
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2018-03-
|
|
11
|
+
date: 2018-03-29 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bootstrap
|
|
@@ -438,7 +438,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
438
438
|
version: '0'
|
|
439
439
|
requirements: []
|
|
440
440
|
rubyforge_project:
|
|
441
|
-
rubygems_version: 2.7.
|
|
441
|
+
rubygems_version: 2.7.6
|
|
442
442
|
signing_key:
|
|
443
443
|
specification_version: 4
|
|
444
444
|
summary: A data management gem.
|