rows_controller 3.1.5 → 3.1.6

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: 8a206ae121049268e27378c7bb72126b0d4f5edf2e7657e3b2865dd74c819a2c
4
- data.tar.gz: bb86a2b5f7b4f16970939b4d1456fd2cee07b38ddcc9d33871c0015727446a17
3
+ metadata.gz: 618397c8786b4799f77e8e70bfa22172923003580a0ad13d5ff3323b9dedd93f
4
+ data.tar.gz: 4265ff70f3fdaa358779f042c45792348b1f4f6a20cdcca88696a52b04237cca
5
5
  SHA512:
6
- metadata.gz: fec8b23c7b82a59c2d2436815517f4e939ff714539608725717c83141650bf34242309bfa5d143b1a6469472d296833ac282a14ff1b25493defd2d91762db333
7
- data.tar.gz: 3613ec800de5ce1d2698226340da38d182d59faae5899443ce95633e0eb8c4cfca5d4669e90e0f78212bc62938c7ffa875cc02e015ed964b6378fb7f2a06f2b3
6
+ metadata.gz: d8ab460b7b817a0a2fece2237f0df7cf6484cbd1df3409ebd2b6c2f19ed9efade233d4b7684bd79c755ee44095d7289ad66b3d89f25bceb0e41b7bdb44f1fea5
7
+ data.tar.gz: 4f2ebde808777961a661a5458ca8749c589244d5ab12d18b72d82f86058cbbda0f87d02fcc98958f407a50f19725a9eb182610f33792208456418540abfbf787
data/MIT-LICENSE CHANGED
@@ -1,6 +1,4 @@
1
- The MIT License (MIT)
2
-
3
- Copyright (c) 2012-2023 Dittmar Krall (www.matiq.com)
1
+ Copyright (c) 2012-2024 Dittmar Krall (www.matiq.com)
4
2
 
5
3
  Permission is hereby granted, free of charge, to any person obtaining
6
4
  a copy of this software and associated documentation files (the
data/README.md CHANGED
@@ -1,6 +1,7 @@
1
1
  # RowsController
2
2
  [![Gem Version](https://badge.fury.io/rb/rows_controller.svg)](https://badge.fury.io/rb/rows_controller)
3
3
  [![GEM Downloads](https://img.shields.io/gem/dt/rows_controller?color=168AFE&logo=ruby&logoColor=FE1616)](https://rubygems.org/gems/rows_controller)
4
+ �[![MIT License](https://img.shields.io/badge/license-MIT-blue.svg)](http://choosealicense.com/licenses/mit/)
4
5
 
5
6
  DRYs Rails controllers. Imagine replacing that @order by 'resource' in the
6
7
  controllers/views and, imho, an area for DRYing appears.
@@ -77,7 +78,7 @@ The model class can be retrieved with the helper model_class.
77
78
 
78
79
  ## Rails 7
79
80
 
80
- RowsController 3.1.0 is intended for Rails 7.
81
+ RowsController 3.1.* is intended for Rails 7.
81
82
  In particular Hotwire caused some quirks
82
83
  which are handled by this version.
83
84
  Compatibility with older Rails versions are not intended
@@ -11,14 +11,14 @@ module Rows::Resources
11
11
 
12
12
  def set_resource(row = nil)
13
13
  row ||= model_class.find_by_id(params[:id].to_i)
14
- instance_variable_set("@#{model_symbol}", row)
14
+ instance_variable_set(:"@#{model_symbol}", row)
15
15
  @_resource = row
16
16
  @row = row
17
17
  end
18
18
 
19
19
  def set_resources(rows = nil)
20
20
  rows ||= model_class.all
21
- instance_variable_set("@#{model_symbol_plural}", rows)
21
+ instance_variable_set(:"@#{model_symbol_plural}", rows)
22
22
  @_resources = rows
23
23
  @rows = rows
24
24
  end
data/lib/rows/version.rb CHANGED
@@ -1,5 +1,6 @@
1
1
  module Rows
2
- VERSION = "3.1.5" # 2024-02-18
2
+ VERSION = "3.1.6" # 2024-09-07
3
+ # VERSION = "3.1.5" # 2024-02-18
3
4
  # VERSION = "3.1.4" # 2024-02-18
4
5
  # VERSION = "3.1.3" # 2023-12-09
5
6
  # VERSION = "3.1.2" # 2023-07-20
@@ -1,5 +1,7 @@
1
1
  module Rows
2
- VERSION = "3.1.4" # 2024-02-18
2
+ VERSION = "3.1.6" # 2024-09-07
3
+ # VERSION = "3.1.5" # 2024-02-18
4
+ # VERSION = "3.1.4" # 2024-02-18
3
5
  # VERSION = "3.1.3" # 2023-12-09
4
6
  # VERSION = "3.1.2" # 2023-07-20
5
7
  # VERSION = "3.1.1" # 2023-04-20
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rows_controller
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.5
4
+ version: 3.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dittmar Krall
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-02-18 00:00:00.000000000 Z
11
+ date: 2024-09-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -80,20 +80,6 @@ dependencies:
80
80
  - - ">="
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
- - !ruby/object:Gem::Dependency
84
- name: sqlite3
85
- requirement: !ruby/object:Gem::Requirement
86
- requirements:
87
- - - ">="
88
- - !ruby/object:Gem::Version
89
- version: '0'
90
- type: :development
91
- prerelease: false
92
- version_requirements: !ruby/object:Gem::Requirement
93
- requirements:
94
- - - ">="
95
- - !ruby/object:Gem::Version
96
- version: '0'
97
83
  description: YourController < RowsController ( < ApplicationController).
98
84
  email:
99
85
  - dittmar.krall@matiq.com
@@ -133,7 +119,7 @@ licenses:
133
119
  - MIT
134
120
  metadata:
135
121
  source_code_uri: https://github.com/matique/rows_controller
136
- post_install_message:
122
+ post_install_message:
137
123
  rdoc_options: []
138
124
  require_paths:
139
125
  - lib
@@ -148,8 +134,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
148
134
  - !ruby/object:Gem::Version
149
135
  version: '0'
150
136
  requirements: []
151
- rubygems_version: 3.5.6
152
- signing_key:
137
+ rubygems_version: 3.5.16
138
+ signing_key:
153
139
  specification_version: 4
154
140
  summary: RowsController DRYs your controllers.
155
141
  test_files: []