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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b44f57ad429c2e9ad05d5f237299ad934190e0dd
4
- data.tar.gz: c7cdd740505581db566108513875172f0aad5144
3
+ metadata.gz: 0df8969256f526e4de2032f51e46fe1f03d27b07
4
+ data.tar.gz: 6ad142f4f9711533b0c4cb296e46815a60f73c76
5
5
  SHA512:
6
- metadata.gz: 03118fb5bddbc83d39876598d43442f1d02e9006c1a8d2e4db89b0707f9109551d94afdb1b87aa756af1e596cdca927cb2cbdb7996bd9928ef7229cc6475a113
7
- data.tar.gz: ebac18266685ad2eaf436d90aa4a74d833d6486785a642f3918af4c699c234266a9459deaf783fc8fd7dc66adae5d73dc8e3499fde5542f733daa7783d858dca
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 method names by [Jessie A. Young](https://github.com/jessieay). [#46](https://github.com/glebm/i18n-tasks/issues/46)
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), or similar, even if it isn't ruby.
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.9'
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
 
@@ -1,6 +1,6 @@
1
1
  # coding: utf-8
2
2
  module I18n
3
3
  module Tasks
4
- VERSION = '0.7.9'
4
+ VERSION = '0.7.10'
5
5
  end
6
6
  end
@@ -3,7 +3,7 @@ class EventsController < ApplicationController
3
3
  def create
4
4
  end
5
5
 
6
- def show
6
+ def show()
7
7
  redirect_to :edit, notice: I18n.t('cb.a')
8
8
 
9
9
  # args are ignored
@@ -15,7 +15,7 @@ describe 'Pattern Scanner' do
15
15
  {:data=>
16
16
  {
17
17
  :src_path=>"spec/fixtures/app/controllers/events_controller.rb",
18
- :pos=>788,
18
+ :pos=>790,
19
19
  :line_num=>34,
20
20
  :line_pos=>10,
21
21
  :line =>" I18n.t(\".success\")"}
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: i18n-tasks
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.9
4
+ version: 0.7.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - glebm