pupil 0.0.6 → 0.1.0

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.
@@ -1,19 +0,0 @@
1
- #!/usr/bin/env ruby
2
- # -*- coding: utf-8 -*-
3
- # only 1.9.2
4
-
5
- $LOAD_PATH << File.join(File.dirname(File.expand_path(__FILE__)), "../")
6
- require "lib/pupil"
7
- require "yaml"
8
-
9
- keygen = Pupil::Keygen.new({:consumer_key => "yIyK3TaGo5VJX7MdkS95g", :consumer_secret => "ukIvD6yqP8SNbFfaIqVNkqg08J33uvRvpGa1ktuRc"})
10
- tokens = keygen.interactive
11
-
12
- pupil = Pupil.new tokens
13
- user = pupil.verify_credentials
14
- friends = pupil.friends_ids user.screen_name
15
- followers = pupil.followers_ids user.screen_name
16
-
17
- open("ff.yml", "w") do |f|
18
- f.puts({:friends => friends, :followers => followers}.to_yaml)
19
- end