stringex 2.8.1 → 2.8.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/stringex/acts_as_url.rb +1 -1
- data/lib/stringex/acts_as_url/adapter/data_mapper.rb +0 -4
- data/lib/stringex/localization.rb +1 -1
- data/lib/stringex/localization/backend/i18n.rb +0 -1
- data/lib/stringex/localization/conversion_expressions.rb +1 -1
- data/lib/stringex/localization/converter.rb +1 -1
- data/lib/stringex/string_extensions.rb +1 -1
- data/stringex.gemspec +3 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 23d323c095b108323bdc5739ff783e24c18352a1
|
4
|
+
data.tar.gz: ab9462fc5ca596a254da010fa33f801543dcc6c0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eee3ac2e5eef121f444465b987dd520e2fcad918afd4b3568ee2509c56d4fba9ac5c041c96a06410bc93bdb72c3e12d2c51ad8364a161a74500d4d9f7be10314
|
7
|
+
data.tar.gz: f48e8eca03bee646879639054c71b792d806af3ce95c9a5511fd6470b9212cf295f08f671322b03838318ead65c113f8c999f97b09414585bb30046657a6eb37
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.8.
|
1
|
+
2.8.2
|
data/lib/stringex/acts_as_url.rb
CHANGED
@@ -40,10 +40,6 @@ module Stringex
|
|
40
40
|
instance.class.key.first.instance_variable_get '@name'
|
41
41
|
end
|
42
42
|
|
43
|
-
def read_attribute(instance, attribute)
|
44
|
-
instance.attributes[attribute]
|
45
|
-
end
|
46
|
-
|
47
43
|
def url_owners
|
48
44
|
@url_owners ||= url_owners_class.all(conditions: url_owner_conditions)
|
49
45
|
end
|
@@ -47,7 +47,6 @@ module Stringex
|
|
47
47
|
|
48
48
|
def load_translations(locale = nil)
|
49
49
|
locale ||= self.locale
|
50
|
-
path = Dir[File.join(LOAD_PATH_BASE, "#{locale}.yml")]
|
51
50
|
::I18n.load_path |= Dir[File.join(LOAD_PATH_BASE, "#{locale}.yml")]
|
52
51
|
::I18n.backend.load_translations
|
53
52
|
reset_translations_cache
|
data/stringex.gemspec
CHANGED
@@ -2,16 +2,16 @@
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
3
|
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
|
-
# stub: stringex 2.8.
|
5
|
+
# stub: stringex 2.8.2 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "stringex".freeze
|
9
|
-
s.version = "2.8.
|
9
|
+
s.version = "2.8.2"
|
10
10
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
|
12
12
|
s.require_paths = ["lib".freeze]
|
13
13
|
s.authors = ["Russell Norris".freeze]
|
14
|
-
s.date = "2017-12-
|
14
|
+
s.date = "2017-12-21"
|
15
15
|
s.description = "Some [hopefully] useful extensions to Ruby's String class. Stringex is made up of three libraries: ActsAsUrl [permalink solution with better character translation], Unidecoder [Unicode to ASCII transliteration], and StringExtensions [miscellaneous helper methods for the String class].".freeze
|
16
16
|
s.email = "rsl@luckysneaks.com".freeze
|
17
17
|
s.extra_rdoc_files = [
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: stringex
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.8.
|
4
|
+
version: 2.8.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Russell Norris
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-12-
|
11
|
+
date: 2017-12-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jeweler
|