zadok 0.5.3.1 → 0.5.4

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 41f91ec152b30b1b3d139e2e212dcb7f5c551b714a02260b8830dcc4a039fef8
4
- data.tar.gz: 8feb41d4f4fecdf6f00dc41b184570065eb35aa2afb8d4aa08b18f0dc8a477c0
3
+ metadata.gz: 290961a8a32f9534df9f2f195cbb8ce787599a2274bfdea8afbc9677c90bbaf0
4
+ data.tar.gz: 605ca5a6fb0397f2937b2672be689ca4ddf97b652285e830267a6827b63a007c
5
5
  SHA512:
6
- metadata.gz: a5d31935a60ffc6645b7ab67a327940e7cc5e31d9674ac01724ba9a42dd0c042a0a9902f8652b159e0bcfc40968de9de81c6dff8a4f1f92e7469c5399a627a45
7
- data.tar.gz: 92cad26eab119243db88c08059e26d5fdb1446384ae2cdea18b76ac6a395edcae5b27a66f1d274871b94a57610ebd955c3c37a7aa93c04299cd75d19ef8e0cd1
6
+ metadata.gz: 8b70f2f80c3c186d957affd794919b47b2fd46412293fbcf97759ad46ac0c27fb05973346b927e33e0ef4453f7c43585847324756cbefbde3720915ef7685a2f
7
+ data.tar.gz: 5921790a716bf9f0bc884056d848b96b30fdc010b8c780bf97bb5eeac67abc48eeec5dfea066fccc26265baf7a1e0b697b2ce9bf2241c3c1b3ce2fe65377807c
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- zadok (0.5.3)
4
+ zadok (0.5.4)
5
5
  bootstrap (~> 4.0)
6
6
  bundler-audit (~> 0.6)
7
7
  cancancan (~> 2.1)
@@ -69,7 +69,7 @@ GEM
69
69
  tzinfo (~> 1.1)
70
70
  arel (8.0.0)
71
71
  ast (2.4.0)
72
- autoprefixer-rails (8.0.0)
72
+ autoprefixer-rails (8.1.0)
73
73
  execjs
74
74
  bcrypt (3.1.11)
75
75
  bootstrap (4.0.0)
@@ -89,7 +89,7 @@ GEM
89
89
  railties (>= 4.1.0, < 5.2)
90
90
  responders
91
91
  warden (~> 1.2.3)
92
- devise-i18n (1.6.0)
92
+ devise-i18n (1.6.1)
93
93
  devise (>= 4.4)
94
94
  devise_invitable (1.7.3)
95
95
  actionmailer (>= 4.1.0)
@@ -178,15 +178,15 @@ GEM
178
178
  activesupport (>= 3.0)
179
179
  i18n
180
180
  polyamorous (~> 1.3.2)
181
- rb-fsevent (0.10.2)
181
+ rb-fsevent (0.10.3)
182
182
  rb-inotify (0.9.10)
183
183
  ffi (>= 0.5.0, < 2)
184
184
  responders (2.4.0)
185
185
  actionpack (>= 4.2.0, < 5.3)
186
186
  railties (>= 4.2.0, < 5.3)
187
- rubocop (0.52.1)
187
+ rubocop (0.53.0)
188
188
  parallel (~> 1.10)
189
- parser (>= 2.4.0.2, < 3.0)
189
+ parser (>= 2.5)
190
190
  powerpack (~> 0.1)
191
191
  rainbow (>= 2.2.2, < 4.0)
192
192
  ruby-progressbar (~> 1.7)
@@ -1,6 +1,8 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class ZadokController < ApplicationController
4
+ attr_reader :resources, :resource
5
+
4
6
  helper_method :edit_attributes
5
7
  helper_method :index_attributes
6
8
  helper_method :new_attributes
@@ -136,18 +138,10 @@ class ZadokController < ApplicationController
136
138
  t("#{controller_name}.#{action_name}")
137
139
  end
138
140
 
139
- def resources
140
- @resources
141
- end
142
-
143
141
  def filter_and_paginate_resources!
144
142
  @resources = filtered_resources.paginate(page: page, per_page: per_page)
145
143
  end
146
144
 
147
- def resource
148
- @resource
149
- end
150
-
151
145
  def show_attributes
152
146
  resource_class.attribute_names
153
147
  end
@@ -25,8 +25,8 @@
25
25
  collection: resources,
26
26
  as: :resource)
27
27
  - else
28
- tr
29
- - resources.each do |resource|
28
+ - resources.each do |resource|
29
+ tr
30
30
  - index_attributes.each do |attr|
31
31
  td= resource.send(attr)
32
32
 
@@ -14,4 +14,4 @@ module Zadok
14
14
  end
15
15
  end
16
16
  end
17
- end
17
+ end
@@ -14,4 +14,4 @@ module Zadok
14
14
  end
15
15
  end
16
16
  end
17
- end
17
+ end
@@ -16,4 +16,4 @@ module Zadok
16
16
  end
17
17
  end
18
18
  end
19
- end
19
+ end
data/lib/zadok/version.rb CHANGED
@@ -3,8 +3,8 @@
3
3
  module Zadok
4
4
  VERSION_MAJOR = 0
5
5
  VERSION_MINOR = 5
6
- VERSION_TINY = 3
7
- VERSION_PRE = 1
6
+ VERSION_TINY = 4
7
+ VERSION_PRE = nil
8
8
 
9
9
  VERSION = [
10
10
  VERSION_MAJOR,
data/zadok.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- lib = File.expand_path("../lib", __FILE__)
3
+ lib = File.expand_path("lib", __dir__)
4
4
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
5
  require "zadok/version"
6
6
 
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.3.1
4
+ version: 0.5.4
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-01 00:00:00.000000000 Z
11
+ date: 2018-03-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bootstrap