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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f650b87b7119a5b7165a1e4f529d1c425e438f39
4
- data.tar.gz: f5bf7949a9f940550e3767064dfba037267fc670
3
+ metadata.gz: a467c7d8f13b5570edec72c2f6eb94e92c0fde91
4
+ data.tar.gz: 45614ce99bd33c6b7403c532633fe909a98038e3
5
5
  SHA512:
6
- metadata.gz: cff2bcb80b67ac0327843c5cecfc9fd0575b606c5be4c438b95bbfa2e46c2e7563c3737c16c931ab19b7268375b24257c2fa1c12acc2f8fa127f39fa49fcc2a7
7
- data.tar.gz: 369e41edf6cc159e7f38b71bf6b754c989423884a3b80e7f6600f7dda96c98cb2ea6d2c59decd15b30612b6d85bf051edf5d2e102c6f8153f65bf971d1843a70
6
+ metadata.gz: a18e89ab76aabb39ca727619c4ca68c0d24909d1e09a5e23de225eb456a78932ae755308894462bf1047085c40df9a865487cfc4c5a6ee169b23865c5378818e
7
+ data.tar.gz: 5db0b2bbbe2f766a7371ea18e02c4809d816cbff220d3f602d85a31f280417343c66f8ac45c3aef697e5be5d1fa61047f263a337da81ef93151e38deb96d3660
@@ -1,3 +1,8 @@
1
+ * Fixed a problem where String#truncate_words would get stuck with a complex
2
+ string.
3
+
4
+ *Henrik Nygren*
5
+
1
6
  * Fixed a roundtrip problem with AS::SafeBuffer where primitive-like strings
2
7
  will be dumped as primitives:
3
8
 
@@ -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((?:.+?#{sep}){#{words_count - 1}}.+?)#{sep}.*/m
96
+ if self =~ /\A((?>.+?#{sep}){#{words_count - 1}}.+?)#{sep}.*/m
97
97
  $1 + (options[:omission] || '...')
98
98
  else
99
99
  dup
@@ -8,7 +8,7 @@ module ActiveSupport
8
8
  MAJOR = 4
9
9
  MINOR = 2
10
10
  TINY = 1
11
- PRE = "rc1"
11
+ PRE = "rc2"
12
12
 
13
13
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
14
14
  end
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.rc1
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-20 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: i18n