vario 1.0.4 → 1.0.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: e5acf75bd0852c41850a2b32fa3d1387fe7dd71983be8aad08e31b670b0b62f7
4
- data.tar.gz: 858c1606b7b0c69d6cde96b6b986a00579c93d95bf422427152b092048221aba
3
+ metadata.gz: c47660adc798f2ddb4e09725e140d57107a2b5f66eccbff37fca4b3d8e8f3230
4
+ data.tar.gz: 0c6b04dc76ea3b61b9fd5ca35b334b485404e18b7576e3dcd30337b7451bf099
5
5
  SHA512:
6
- metadata.gz: 5d337ac5edff7a676b0d4f3352d7d45962acfe0a78ea2fa0eb8f70955ddcdbf48b1591e6f24341c34f5498ffb11ca6e8672923d3ee77a8a07fb37e5a18fcc6b9
7
- data.tar.gz: 7a329a2889dec030eebb4fc7b41cdcf9c499419ac8ee8311b6f3090a16b8a675960ed9fc9e1d9fe072d46893b1241bcd7cc577cc4d543c8aa6dd2575b3cd2338
6
+ metadata.gz: 1394d5ab1247d7386423e1547cbcaf181dd3758fc53b2b12aa676a9f8394bf76626796dabdf229c9a585a3ec2fd356a7f8a531e962e09c3aba7d4b27bc82729c
7
+ data.tar.gz: 8759bf321bdddaf09131fc9b5b1d2cc4513f689801ddf9f9dfe5426271732c9bea7cfd6b628b4fc164993832f4fad7a9916f2bc450eb227043a6f7338c39f190
data/Rakefile CHANGED
@@ -32,6 +32,6 @@ end
32
32
 
33
33
  task default: :test
34
34
 
35
- # Adds the Auxilium semver task
36
- spec = Gem::Specification.find_by_name 'auxilium'
37
- load "#{spec.gem_dir}/lib/tasks/semver.rake"
35
+ # # Adds the Auxilium semver task
36
+ # spec = Gem::Specification.find_by_name 'auxilium'
37
+ # # load "#{spec.gem_dir}/lib/tasks/semver.rake"
@@ -27,8 +27,11 @@ module Vario
27
27
  @level.value = level_params[:value]
28
28
  @level.conditions = normalize_booleans(level_params[:conditions].to_h)
29
29
  @setting.save
30
-
31
- respond_with @setting, collection_location: -> { setting_path(@setting) }
30
+ if request.referer.present? && URI.parse(request.referer).path != setting_path(@setting)
31
+ redirect_to request.referer
32
+ else
33
+ respond_with @setting, collection_location: -> { setting_path(@setting) }
34
+ end
32
35
  end
33
36
 
34
37
  def destroy
data/lib/vario/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Vario
4
- VERSION = "1.0.4"
4
+ VERSION = "1.0.6"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vario
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.4
4
+ version: 1.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andre Meij
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-04-08 00:00:00.000000000 Z
11
+ date: 2025-03-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: grape
@@ -70,14 +70,14 @@ dependencies:
70
70
  name: slim
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - "~>"
73
+ - - ">="
74
74
  - !ruby/object:Gem::Version
75
75
  version: '4'
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - "~>"
80
+ - - ">="
81
81
  - !ruby/object:Gem::Version
82
82
  version: '4'
83
83
  - !ruby/object:Gem::Dependency
@@ -122,7 +122,7 @@ dependencies:
122
122
  - - ">="
123
123
  - !ruby/object:Gem::Version
124
124
  version: '0'
125
- description:
125
+ description:
126
126
  email:
127
127
  - andre@itsmeij.com
128
128
  executables: []
@@ -172,7 +172,7 @@ homepage: https://github.com/entdec/vario
172
172
  licenses:
173
173
  - MIT
174
174
  metadata: {}
175
- post_install_message:
175
+ post_install_message:
176
176
  rdoc_options: []
177
177
  require_paths:
178
178
  - lib
@@ -188,7 +188,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
188
188
  version: '0'
189
189
  requirements: []
190
190
  rubygems_version: 3.4.10
191
- signing_key:
191
+ signing_key:
192
192
  specification_version: 4
193
193
  summary: Vario adds custom runtime configuration to your Rails app.
194
194
  test_files: []