niconico 1.1.1 → 1.1.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -10,7 +10,7 @@ class Niconico
10
10
  if page.search("script").map(&:inner_text).find{|x| /preload/ =~ x }.match(/Mylist\.preload\(\d+, (.+?)\);/)
11
11
  json = JSON.parse($1)
12
12
  #require 'pp'; pp json
13
- json.map do |item|
13
+ json.sort_by{|item| item["create_time"].to_f }.map do |item|
14
14
  Video.new(self, item["item_data"]["video_id"],
15
15
  title: item["item_data"]["title"],
16
16
  mylist_comment: item["description"])
@@ -1,3 +1,3 @@
1
1
  class Niconico
2
- VERSION = "1.1.1"
2
+ VERSION = "1.1.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: niconico
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: