lib/nv.rb in nv-1.0.1 vs lib/nv.rb in nv-1.2.1
- old
+ new
@@ -3,22 +3,10 @@
require "nv/niconico"
require "nv/cli"
=begin
-nico = Niconico.new.sign_in(...)
-video = nico.video('sm9')
-video.download('./')
-
-mylist = nico.mylist('482029')
-mylist.download()
-
-include Niconico::Helper
-if mylist? 'http://...'
- ...
-end
-
##### Way #####
1. nico = Niconico::Base.new.sign_in(...)
video = nico.video('sm9') => Niconico::Video
puts video.id
@@ -31,7 +19,7 @@
=end
module Nv
class LackOfInformation < StandardError; end
- CONFIG_PATH = File.join(ENV['HOME'], '.config', 'nv')
+ CONFIG_PATH = "#{ENV['HOME']}/.config/nv"
end