i18n-tasks 0.7.9 → 0.7.10
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/CHANGES.md +5 -1
- data/README.md +2 -2
- data/lib/i18n/tasks/scanners/pattern_scanner.rb +1 -1
- data/lib/i18n/tasks/version.rb +1 -1
- data/spec/fixtures/app/controllers/events_controller.rb +1 -1
- data/spec/pattern_scanner_spec.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0df8969256f526e4de2032f51e46fe1f03d27b07
|
4
|
+
data.tar.gz: 6ad142f4f9711533b0c4cb296e46815a60f73c76
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6b90159e6b874f8d5cca14f9d242ab8359a2d7332193d5606d34a001d84cfd3f67f7ce6500267d4b6606263a9130fedc525d94f98e805c774dea331e2632a5fe
|
7
|
+
data.tar.gz: b7fe8ab3182022916e1fc0acf11909e90556cfb7831f5a8a1ec7d3b55fbde232bb5a8f2c3099d1250c2de1bffc9948a9242e961cf231ebc9110c98f50f30e3c4
|
data/CHANGES.md
CHANGED
@@ -1,6 +1,10 @@
|
|
1
|
+
## 0.7.10
|
2
|
+
|
3
|
+
* Support relative keys in controller action with argument
|
4
|
+
|
1
5
|
## 0.7.9
|
2
6
|
|
3
|
-
* Support Rails controller
|
7
|
+
* Support relative keys in Rails controller actions by [Jessie A. Young](https://github.com/jessieay). [#46](https://github.com/glebm/i18n-tasks/issues/46)
|
4
8
|
* Minor fixes
|
5
9
|
|
6
10
|
## 0.7.8
|
data/README.md
CHANGED
@@ -17,12 +17,12 @@ Thus addressing the two main problems of [i18n gem][i18n-gem] design:
|
|
17
17
|
|
18
18
|
## Installation
|
19
19
|
|
20
|
-
i18n-tasks can be used with any project using [i18n][i18n-gem] (default in Rails)
|
20
|
+
i18n-tasks can be used with any project using the ruby [i18n gem][i18n-gem] (default in Rails).
|
21
21
|
|
22
22
|
Add it to the Gemfile:
|
23
23
|
|
24
24
|
```ruby
|
25
|
-
gem 'i18n-tasks', '~> 0.7.
|
25
|
+
gem 'i18n-tasks', '~> 0.7.10'
|
26
26
|
```
|
27
27
|
|
28
28
|
Copy default [configuration file](#configuration) (optional):
|
@@ -61,7 +61,7 @@ module I18n::Tasks::Scanners
|
|
61
61
|
|
62
62
|
def closest_method(location)
|
63
63
|
method = File.readlines(location[:src_path]).first(location[:line_num] - 1).reverse_each.find { |x| x=~ /\bdef\b/ }
|
64
|
-
method &&= method.strip.sub(/^def\s*/, '')
|
64
|
+
method &&= method.strip.sub(/^def\s*/, '').sub(/[\(\s;].*$/, '')
|
65
65
|
method
|
66
66
|
end
|
67
67
|
|
data/lib/i18n/tasks/version.rb
CHANGED