momentjs-rails 2.8.0 → 2.8.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/news.md +3 -0
- data/test/integration/navigation_test.rb +1 -1
- data/vendor/assets/javascripts/moment.js +8 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3810c117c8fa10ad1791cf721a5fe180c983a69b
|
4
|
+
data.tar.gz: 357aa83925132f037484bc26deeb0b2bf6568cd2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 58af0e5c67f10711f326871826e6de88e499da5f4cb733d87c799c5a5679866f798bd850dd98c24c032aeb41eb424a07fc2708012092fc9540e637c919c62fdb
|
7
|
+
data.tar.gz: d12ecdfc9defba87b7ba26f31f8185b37d090f9803eef668e56bc36703e257ec1fd358c837d7aa0af69746c101cbfee80b28b5267c425446f8874e1333801e7a
|
data/README.md
CHANGED
@@ -24,7 +24,7 @@ If you want to include a localization file, also add the following directive:
|
|
24
24
|
|
25
25
|
## Versioning
|
26
26
|
|
27
|
-
momentjs-rails 2.8.
|
27
|
+
momentjs-rails 2.8.1 == Moment.js 2.8.1
|
28
28
|
|
29
29
|
Every attempt is made to mirror the currently shipping Momentum.js version number wherever possible.
|
30
30
|
The major, minor, and patch version numbers will always represent the Momentum.js version. Should a gem
|
data/news.md
CHANGED
@@ -8,7 +8,7 @@ class NavigationTest < ActionDispatch::IntegrationTest
|
|
8
8
|
|
9
9
|
test 'momentjs response is for the expected version' do
|
10
10
|
get 'assets/moment.js'
|
11
|
-
assert_match(/VERSION = "2\.8\.
|
11
|
+
assert_match(/VERSION = "2\.8\.1"/, @response.body)
|
12
12
|
end
|
13
13
|
|
14
14
|
test 'can access momentjs translation' do
|
@@ -1,5 +1,5 @@
|
|
1
1
|
//! moment.js
|
2
|
-
//! version : 2.8.
|
2
|
+
//! version : 2.8.1
|
3
3
|
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
|
4
4
|
//! license : MIT
|
5
5
|
//! momentjs.com
|
@@ -10,7 +10,7 @@
|
|
10
10
|
************************************/
|
11
11
|
|
12
12
|
var moment,
|
13
|
-
VERSION = '2.8.
|
13
|
+
VERSION = '2.8.1',
|
14
14
|
// the global-scope this is NOT the global object in Node.js
|
15
15
|
globalScope = typeof global !== 'undefined' ? global : this,
|
16
16
|
oldGlobalMoment,
|
@@ -2444,7 +2444,12 @@
|
|
2444
2444
|
lang : deprecate(
|
2445
2445
|
"moment().lang() is deprecated. Use moment().localeData() instead.",
|
2446
2446
|
function (key) {
|
2447
|
-
|
2447
|
+
if (key === undefined) {
|
2448
|
+
return this.localeData();
|
2449
|
+
} else {
|
2450
|
+
this._locale = moment.localeData(key);
|
2451
|
+
return this;
|
2452
|
+
}
|
2448
2453
|
}
|
2449
2454
|
),
|
2450
2455
|
|