text_helpers 0.5.2 → 0.5.3

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: f015471aad735a53641fc7c929813edf85b002fb
4
- data.tar.gz: be9b3642de7ac04cadbdebd43891a2ed168a2f3c
3
+ metadata.gz: 6e9b829fa88f9ad1e94b5fc765be9ef96dece698
4
+ data.tar.gz: d44540a66cec3f4fc55833abdd5aeebdfdbbe10d
5
5
  SHA512:
6
- metadata.gz: bd136498aad27d06f3bdbb176fb329caa4b82fe9bf329eb8fd70709c1163acae036c22080a611680425f140b46be4ea765c31ebcfa32fb753e13ba9e164cf877
7
- data.tar.gz: 8702f859d002d2298ec3b3353e09232fc0d1026d8b23f7c55a48f80fb3f1386b36c2ff5a96b9b9d27dbed297a0d53a5dc5fc5b5103f5018f4f2520eb6f676b10
6
+ metadata.gz: b837b932d7ac506aeebd0a6710c5b2d5f8207661d5a4f73178109520a399faab0dd501d7d96e92d7e8683b155f4a83f9cf13630d85e02091c4ab32ca6b55f010
7
+ data.tar.gz: 4842e1f6a211bb49bde743ce7a90c671599c8588c25bb9f80766e60a602ffb8a411b728d7d5bc90567243b7059094379befdf72a0c93b3350034b187d81dd65a
@@ -21,9 +21,8 @@ shared_context "a view spec", view: true do
21
21
 
22
22
  def translation_scope
23
23
  matcher = /(?<path>.*)\/_?(?<view>[^\/.]+)(?<extension>\.html\.haml)?/
24
- info = matcher.match(example.metadata[:full_description])
24
+ info = matcher.match(_default_file_to_render)
25
25
  path = info[:path].gsub('/', '.')
26
-
27
26
  "views.#{path}.#{info[:view]}"
28
27
  end
29
28
  end
@@ -11,12 +11,9 @@ module TextHelpers
11
11
  # Public: Get the I18n localized text for the passed key.
12
12
  #
13
13
  # key - The desired I18n lookup key.
14
- # options - A Hash of options to pass through to the lookup.
15
- # :orphans - A special option that will prevent the insertion of
16
- # non-breaking space characters at the end of the text
17
- # when set to true.
18
- # :smart - Whether or not to apply smart quoting to the output.
19
- # Defaults to true.
14
+ # options - A Hash of options to forward to the `I18n.t` lookup.
15
+ # :smart - Whether or not to apply smart quoting to the output.
16
+ # Defaults to true.
20
17
  #
21
18
  # Returns a String resulting from the I18n lookup.
22
19
  def text(key, options = {})
@@ -1,3 +1,3 @@
1
1
  module TextHelpers
2
- VERSION = "0.5.2"
2
+ VERSION = "0.5.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: text_helpers
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.2
4
+ version: 0.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Horner
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-03 00:00:00.000000000 Z
11
+ date: 2015-02-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -123,7 +123,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
123
123
  version: '0'
124
124
  requirements: []
125
125
  rubyforge_project:
126
- rubygems_version: 2.4.2
126
+ rubygems_version: 2.4.3
127
127
  signing_key:
128
128
  specification_version: 4
129
129
  summary: TextHelpers is a gem which supplies some basic utilities for text localization