actionview 4.2.1.rc2 → 4.2.1.rc3

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of actionview might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 42dbcce65ef4075066c77cd72f746394542a1fdb
4
- data.tar.gz: f4f73d39210af680109372adaf2b32405800b13c
3
+ metadata.gz: edcbf3a2de21bd1748b2c9e04335e02818a72471
4
+ data.tar.gz: 9ab51b016d942a7f9fd2171160452a96fe7bce21
5
5
  SHA512:
6
- metadata.gz: 37198315aee196874ee20c0751e760d079f3e07c07faf258c918ddb11a268f1856bd7b6e6fb2cd9d4f7eeaab0db3679a67b2d445b9d8487740435ca473093732
7
- data.tar.gz: 176bb942f4e32bf9e39b5890bb9bd9a5a7e4a4b5882f80fe276bb88874aa368144b3dc8b9d5b93d7d8a5f0ea2f276923f2f2fa27cfdec9bd542328e9c1681d52
6
+ metadata.gz: e7cf2a4f02d14915d07bb57f619257282a28337209be2a33ed3ba427779361841123167e289aa3cd59b1aeb4351fa20c06f91ded8b738746399c08d8ebc09c20
7
+ data.tar.gz: 316680d6df56e2371f05f53313a4a00b42f0298689487be77e6735446c3fd35d14b9a4d00551102c09c079c5ae6374d422c975afb6393866ca4a616bb4f1215b
@@ -8,7 +8,7 @@ module ActionView
8
8
  MAJOR = 4
9
9
  MINOR = 2
10
10
  TINY = 1
11
- PRE = "rc2"
11
+ PRE = "rc3"
12
12
 
13
13
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
14
14
  end
@@ -37,8 +37,12 @@ module ActionView
37
37
  # you know what kind of output to expect when you call translate in a template.
38
38
  def translate(key, options = {})
39
39
  options = options.dup
40
+ has_default = options.has_key?(:default)
40
41
  remaining_defaults = Array(options.delete(:default))
41
- options[:default] = remaining_defaults.shift if remaining_defaults.first.kind_of? String
42
+
43
+ if has_default && !remaining_defaults.first.kind_of?(Symbol)
44
+ options[:default] = remaining_defaults.shift
45
+ end
42
46
 
43
47
  # If the user has explicitly decided to NOT raise errors, pass that option to I18n.
44
48
  # Otherwise, tell I18n to raise an exception, which we rescue further in this method.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: actionview
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.2.1.rc2
4
+ version: 4.2.1.rc3
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-25 00:00:00.000000000 Z
11
+ date: 2015-03-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 4.2.1.rc2
19
+ version: 4.2.1.rc3
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 4.2.1.rc2
26
+ version: 4.2.1.rc3
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: builder
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -98,28 +98,28 @@ dependencies:
98
98
  requirements:
99
99
  - - '='
100
100
  - !ruby/object:Gem::Version
101
- version: 4.2.1.rc2
101
+ version: 4.2.1.rc3
102
102
  type: :development
103
103
  prerelease: false
104
104
  version_requirements: !ruby/object:Gem::Requirement
105
105
  requirements:
106
106
  - - '='
107
107
  - !ruby/object:Gem::Version
108
- version: 4.2.1.rc2
108
+ version: 4.2.1.rc3
109
109
  - !ruby/object:Gem::Dependency
110
110
  name: activemodel
111
111
  requirement: !ruby/object:Gem::Requirement
112
112
  requirements:
113
113
  - - '='
114
114
  - !ruby/object:Gem::Version
115
- version: 4.2.1.rc2
115
+ version: 4.2.1.rc3
116
116
  type: :development
117
117
  prerelease: false
118
118
  version_requirements: !ruby/object:Gem::Requirement
119
119
  requirements:
120
120
  - - '='
121
121
  - !ruby/object:Gem::Version
122
- version: 4.2.1.rc2
122
+ version: 4.2.1.rc3
123
123
  description: Simple, battle-tested conventions and helpers for building web pages.
124
124
  email: david@loudthinking.com
125
125
  executables: []