route_translator 13.0.0 → 13.1.0

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: 2ed12e648ee1182125c8c2348fdecb75ac6e61b6f5dbb6a8d5ab2c41bfbf2992
4
- data.tar.gz: 9ca7e205c7ce45931322ac69e388bc35a8a8ed4866277a512c8acfe10087e7b1
3
+ metadata.gz: 773a40298cd3819de8d7801f3ae31b0dc5fcb4c3db65f809570adb1ae0a25e7e
4
+ data.tar.gz: 9176264924cade856a3c1e2e6b811bb744ca132f4382a377afb45aa4dd79061c
5
5
  SHA512:
6
- metadata.gz: f12fa98cbb77cb37837df68921bfda3be3a7672f1cdf60cdc3d0638e94030e1408645c9fc012d9aa00b7ef52ccdc9cc0ee5a10d116f3dcfa616b0d53acf09583
7
- data.tar.gz: 80444879f58a98abbbb257699d2f9e2d072526276e02d25fda83df929eea5c16aeb203fcb5d25a85586ff76ab9818afc1da14b6822eeee3836f6c7112b868eab
6
+ metadata.gz: d20204dae597c1d97111bf3f75d2079dd027bd71f8c36918d65be770daed4c5eb695d7802977b0650d9bd394861e93b5293d512f6dbc29d3e766ad9619ce5145
7
+ data.tar.gz: 87155014e01709f6418964b4278b699b2009371e03c69eb6b75d0ac32f1d579a6f415f3437fb77b08b0044fb954aefcb02e03cfe2f387b703fe9a94d40f38729
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Changelog
2
2
 
3
+ ## 13.1.0 / 2022-12-26
4
+
5
+ * [ENHANCEMENT] Test against Ruby 3.1 and Ruby 3.2
6
+ * [ENHANCEMENT] Better integration with ActionController::TestCase
7
+
3
8
  ## 13.0.0 / 2022-09-01
4
9
 
5
10
  * [FEATURE] Replace Addressable gem with `URI::DEFAULT_PARSER` ([#268](https://github.com/enriclluelles/route_translator/pull/234))
data/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2007 Raul Murciano [http://raul.murciano.net], Domestika INTERNET S.L. [http://domestika.org], 2015 Enric Lluelles [http://enric.lluell.es], 2022 Geremia Taglialatela
3
+ Copyright (c) 2007 Raul Murciano [http://raul.murciano.net], Domestika INTERNET S.L. [http://domestika.org], 2015 Enric Lluelles [http://enric.lluell.es], 2023 Geremia Taglialatela
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
data/README.md CHANGED
@@ -9,7 +9,7 @@ RouteTranslator is a gem to allow you to manage the translations of your app rou
9
9
 
10
10
  It started as a fork of the awesome [translate_routes](https://github.com/raul/translate_routes) plugin by [Raúl Murciano](https://github.com/raul).
11
11
 
12
- Right now it works with Rails 5.2 and Rails 6.x
12
+ Right now it works with Rails 5.2, 6.x, and 7.x
13
13
 
14
14
 
15
15
 
@@ -22,10 +22,10 @@ module RouteTranslator
22
22
  end
23
23
  end
24
24
 
25
- ActiveSupport.on_load(:action_controller) do
26
- include RouteTranslator::Controller
27
- if ENV.fetch('RAILS_ENV', nil) == 'test'
28
- require 'route_translator/extensions/test_case'
29
- ActionController::TestCase.include RouteTranslator::TestCase
30
- end
25
+ ActiveSupport.on_load(:action_controller) { include RouteTranslator::Controller }
26
+
27
+ ActiveSupport.on_load(:action_controller_test_case) do
28
+ require 'route_translator/extensions/test_case'
29
+
30
+ include RouteTranslator::TestCase
31
31
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RouteTranslator
4
- VERSION = '13.0.0'
4
+ VERSION = '13.1.0'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: route_translator
3
3
  version: !ruby/object:Gem::Version
4
- version: 13.0.0
4
+ version: 13.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Geremia Taglialatela
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2022-09-01 00:00:00.000000000 Z
13
+ date: 2022-12-26 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: actionpack
@@ -70,36 +70,30 @@ dependencies:
70
70
  name: byebug
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - ">="
74
- - !ruby/object:Gem::Version
75
- version: '10.0'
76
- - - "<"
73
+ - - "~>"
77
74
  - !ruby/object:Gem::Version
78
- version: '12'
75
+ version: '11.1'
79
76
  type: :development
80
77
  prerelease: false
81
78
  version_requirements: !ruby/object:Gem::Requirement
82
79
  requirements:
83
- - - ">="
84
- - !ruby/object:Gem::Version
85
- version: '10.0'
86
- - - "<"
80
+ - - "~>"
87
81
  - !ruby/object:Gem::Version
88
- version: '12'
82
+ version: '11.1'
89
83
  - !ruby/object:Gem::Dependency
90
84
  name: minitest
91
85
  requirement: !ruby/object:Gem::Requirement
92
86
  requirements:
93
87
  - - "~>"
94
88
  - !ruby/object:Gem::Version
95
- version: '5.15'
89
+ version: '5.16'
96
90
  type: :development
97
91
  prerelease: false
98
92
  version_requirements: !ruby/object:Gem::Requirement
99
93
  requirements:
100
94
  - - "~>"
101
95
  - !ruby/object:Gem::Version
102
- version: '5.15'
96
+ version: '5.16'
103
97
  - !ruby/object:Gem::Dependency
104
98
  name: rails
105
99
  requirement: !ruby/object:Gem::Requirement
@@ -138,22 +132,16 @@ dependencies:
138
132
  name: simplecov
139
133
  requirement: !ruby/object:Gem::Requirement
140
134
  requirements:
141
- - - ">="
142
- - !ruby/object:Gem::Version
143
- version: 0.18.5
144
- - - "<"
135
+ - - "~>"
145
136
  - !ruby/object:Gem::Version
146
- version: '0.22'
137
+ version: 0.22.0
147
138
  type: :development
148
139
  prerelease: false
149
140
  version_requirements: !ruby/object:Gem::Requirement
150
141
  requirements:
151
- - - ">="
152
- - !ruby/object:Gem::Version
153
- version: 0.18.5
154
- - - "<"
142
+ - - "~>"
155
143
  - !ruby/object:Gem::Version
156
- version: '0.22'
144
+ version: 0.22.0
157
145
  - !ruby/object:Gem::Dependency
158
146
  name: simplecov-lcov
159
147
  requirement: !ruby/object:Gem::Requirement
@@ -216,7 +204,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
216
204
  - !ruby/object:Gem::Version
217
205
  version: '0'
218
206
  requirements: []
219
- rubygems_version: 3.3.12
207
+ rubygems_version: 3.2.33
220
208
  signing_key:
221
209
  specification_version: 4
222
210
  summary: Translate your Rails routes in a simple manner