momentjs-rails 2.8.0 → 2.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0426cbbc4eff925ef47d88fb7f6e3ee93068e4b5
4
- data.tar.gz: 823543eba7d87c03112e982d1a8569672e0dfac9
3
+ metadata.gz: 3810c117c8fa10ad1791cf721a5fe180c983a69b
4
+ data.tar.gz: 357aa83925132f037484bc26deeb0b2bf6568cd2
5
5
  SHA512:
6
- metadata.gz: 725bd561c1623c88bdeea097574d0f3c5d3a17b1334e52f0e138dab411d09044edca7e3f3c754952b3c4c2bdcd6dc46365665648baa3ba5817b12e6c383c93f3
7
- data.tar.gz: 47edf3fd8d218cd64e4560ed91ef0ae48064cea1b81acd47ae3185ba63ec643d397208904e8fafeae6917d9f9dc83aa3c533b502ec0b29b49e2ab61de2159b13
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.0 == Moment.js 2.8.0
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
@@ -1,3 +1,6 @@
1
+ ### Version 2.8.1 (2014-08-06)
2
+ - Updated to Moment.js to 2.8.1
3
+
1
4
  ### Version 2.8.0 (2014-08-06)
2
5
  - Updated to Moment.js to 2.8.0
3
6
 
@@ -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\.0"/, @response.body)
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.0
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.0',
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
- return this.localeData(key);
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
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: momentjs-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.8.0
4
+ version: 2.8.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Derek Prior