i18n-tasks 0.3.7 → 0.3.8

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: f92285f463714c33d1c83515dcd2aaf6767e4663
4
- data.tar.gz: b82019313500a6dc1a2122b56d0bc118086071a3
3
+ metadata.gz: b251c2d3a1ff43a022a0e2ef3d98517071f2bcd3
4
+ data.tar.gz: 0d7b6dd38ceb7136c64038d5c299df475aae7712
5
5
  SHA512:
6
- metadata.gz: 1cd49cb9ec3101e8ef38c75f5cace26f4dcf2afc613a89b15ea9741ec0ab420203d04039aefe79a5996cdef5736f2eb74b2503e076e2fd29cd7e05c6fda5258a
7
- data.tar.gz: 4fec3b2eb4ad06d80429b653ede00d06522f4710ebdcdb21341d5723d2b696812086caeab0415abc8965878fd0d1d058f3346da293725b535c2a7900da36d9ec
6
+ metadata.gz: 19108f53812ed81ec2fac74c99d877a2b19ddff2320cc9e929055e00015d260e0e695fcf7cebdfa6ecdddc4e5e6380351ac8091c113a54af17375ac810e03097
7
+ data.tar.gz: 990b2e75cd6f492f93647e37a5aad0f8550d422157f593910e3d09662d60a708701c35ddf0282fb4a2bfcb5187b38ceb6837482dad858c78cd3610f5029d916a
data/CHANGES.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.3.8
2
+
3
+ * Fix activesupport ~3.x compatibility issue (#45).
4
+
1
5
  ## 0.3.7
2
6
 
3
7
  * Catch Errno::EPIPE to allow `i18n-tasks <command> | head` for large reports
@@ -6,7 +6,9 @@ module I18n
6
6
  base.extend ClassMethods
7
7
  end
8
8
 
9
- delegate :adapter_for, to: :class
9
+ def adapter_for(path)
10
+ self.class.adapter_for(path)
11
+ end
10
12
 
11
13
  protected
12
14
 
@@ -4,16 +4,14 @@ module I18n::Tasks
4
4
  class LocaleTree
5
5
  attr_reader :locale, :data
6
6
 
7
- delegate :tree_data, to: :class
8
-
9
7
  def initialize(locale, data = {})
10
8
  @locale = locale.to_s
11
- data = tree_data(data)
9
+ data = to_tree_data(data)
12
10
  @data = data.with_indifferent_access
13
11
  end
14
12
 
15
13
  def merge(other)
16
- self.class.new locale, data.deep_merge(tree_data(other))
14
+ self.class.new locale, data.deep_merge(to_tree_data(other))
17
15
  end
18
16
 
19
17
  alias + merge
@@ -54,8 +52,12 @@ module I18n::Tasks
54
52
  self
55
53
  end
56
54
 
55
+ def to_tree_data(arg)
56
+ self.class.to_tree_data(arg)
57
+ end
58
+
57
59
  class << self
58
- def tree_data(any)
60
+ def to_tree_data(any)
59
61
  if any.is_a?(Hash)
60
62
  any
61
63
  elsif any.is_a?(Array)
@@ -1,5 +1,5 @@
1
1
  module I18n
2
2
  module Tasks
3
- VERSION = '0.3.7'
3
+ VERSION = '0.3.8'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: i18n-tasks
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.7
4
+ version: 0.3.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - glebm
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-03-02 00:00:00.000000000 Z
11
+ date: 2014-03-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: erubis