activesupport 4.2.1.rc1 → 4.2.1.rc2
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of activesupport might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/active_support/core_ext/string/filters.rb +1 -1
- data/lib/active_support/gem_version.rb +1 -1
- 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: a467c7d8f13b5570edec72c2f6eb94e92c0fde91
|
4
|
+
data.tar.gz: 45614ce99bd33c6b7403c532633fe909a98038e3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a18e89ab76aabb39ca727619c4ca68c0d24909d1e09a5e23de225eb456a78932ae755308894462bf1047085c40df9a865487cfc4c5a6ee169b23865c5378818e
|
7
|
+
data.tar.gz: 5db0b2bbbe2f766a7371ea18e02c4809d816cbff220d3f602d85a31f280417343c66f8ac45c3aef697e5be5d1fa61047f263a337da81ef93151e38deb96d3660
|
data/CHANGELOG.md
CHANGED
@@ -93,7 +93,7 @@ class String
|
|
93
93
|
def truncate_words(words_count, options = {})
|
94
94
|
sep = options[:separator] || /\s+/
|
95
95
|
sep = Regexp.escape(sep.to_s) unless Regexp === sep
|
96
|
-
if self =~ /\A((
|
96
|
+
if self =~ /\A((?>.+?#{sep}){#{words_count - 1}}.+?)#{sep}.*/m
|
97
97
|
$1 + (options[:omission] || '...')
|
98
98
|
else
|
99
99
|
dup
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: activesupport
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.2.1.
|
4
|
+
version: 4.2.1.rc2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Heinemeier Hansson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-02-
|
11
|
+
date: 2015-02-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: i18n
|