skype_archive 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +17 -0
- data/Gemfile +4 -0
- data/LICENSE +22 -0
- data/README.md +29 -0
- data/Rakefile +2 -0
- data/bin/skype_archive +46 -0
- data/lib/skype_archive.rb +24 -0
- data/lib/skype_archive/message.rb +19 -0
- data/lib/skype_archive/model.rb +78 -0
- data/lib/skype_archive/version.rb +3 -0
- data/skype_archive.gemspec +27 -0
- data/spec/model/skype_archive_spec.rb +61 -0
- data/spec/skype_archive_spec.rb +13 -0
- data/spec/spec_helper.rb +21 -0
- data/spec/support/sqlite_seed.rb +79 -0
- metadata +193 -0
data/.gitignore
ADDED
data/Gemfile
ADDED
data/LICENSE
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Copyright (c) 2012 Richard Huang
|
2
|
+
|
3
|
+
MIT License
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
+
a copy of this software and associated documentation files (the
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
11
|
+
the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be
|
14
|
+
included in all copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
# SkypeArchive
|
2
|
+
|
3
|
+
TODO: Write a gem description
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Add this line to your application's Gemfile:
|
8
|
+
|
9
|
+
gem 'skype_archive'
|
10
|
+
|
11
|
+
And then execute:
|
12
|
+
|
13
|
+
$ bundle
|
14
|
+
|
15
|
+
Or install it yourself as:
|
16
|
+
|
17
|
+
$ gem install skype_archive
|
18
|
+
|
19
|
+
## Usage
|
20
|
+
|
21
|
+
TODO: Write usage instructions here
|
22
|
+
|
23
|
+
## Contributing
|
24
|
+
|
25
|
+
1. Fork it
|
26
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
27
|
+
3. Commit your changes (`git commit -am 'Added some feature'`)
|
28
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
29
|
+
5. Create new Pull Request
|
data/Rakefile
ADDED
data/bin/skype_archive
ADDED
@@ -0,0 +1,46 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
$LOAD_PATH.unshift(File.expand_path(File.dirname(__FILE__) + "/../lib"))
|
4
|
+
|
5
|
+
require 'skype_archive'
|
6
|
+
require 'optparse'
|
7
|
+
|
8
|
+
options = {}
|
9
|
+
OptionParser.new do |opts|
|
10
|
+
opts.banner = "Usage:\n
|
11
|
+
skype_archive search account_name [options] search_text\n
|
12
|
+
skype_archive sync"
|
13
|
+
|
14
|
+
opts.on("--from", "who sent the message") do |from|
|
15
|
+
options['from'] = from
|
16
|
+
end
|
17
|
+
|
18
|
+
opts.on("--sync", "sync local messages to remote server") do |sync|
|
19
|
+
options['sync'] = true
|
20
|
+
end
|
21
|
+
|
22
|
+
opts.on_tail("-h", "--help", "Show this message") do
|
23
|
+
puts opts
|
24
|
+
exit
|
25
|
+
end
|
26
|
+
|
27
|
+
opts.parse!
|
28
|
+
end
|
29
|
+
|
30
|
+
if ARGV.size == 0
|
31
|
+
puts "wrong usage, see skype_archive -h"
|
32
|
+
else
|
33
|
+
command = ARGV.first
|
34
|
+
if command == "search"
|
35
|
+
account_name = ARGV[1]
|
36
|
+
text = ARGV.last
|
37
|
+
SkypeArchive.search(account_name, text).each do |message|
|
38
|
+
printf "[%s] %-20s: %s\n", message.created_at.strftime("%Y-%m-%d %H:%M:%S"),
|
39
|
+
message.from_dispname,
|
40
|
+
message.body_xml.gsub(text, "\e[1m\e[34m#{text}\e[0m")
|
41
|
+
end
|
42
|
+
elsif command == "sync"
|
43
|
+
SkypeArchive.sync
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
@@ -0,0 +1,24 @@
|
|
1
|
+
require "skype_archive/version"
|
2
|
+
require "sqlite3"
|
3
|
+
require "sequel"
|
4
|
+
require "json"
|
5
|
+
|
6
|
+
module SkypeArchive
|
7
|
+
URL = "http://localhost"
|
8
|
+
|
9
|
+
autoload :Model, "skype_archive/model"
|
10
|
+
autoload :Message, "skype_archive/message"
|
11
|
+
|
12
|
+
def self.search(account_name, text)
|
13
|
+
Model.new(account_name).search(text)
|
14
|
+
end
|
15
|
+
|
16
|
+
def self.sync
|
17
|
+
Dir[File.expand_path("~/Library/Application\ Support/Skype/*")].each do |path|
|
18
|
+
name = File.basename(path)
|
19
|
+
if name =~ /^gii\./
|
20
|
+
Model.new(name).sync
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
module SkypeArchive
|
2
|
+
class Message
|
3
|
+
attr_reader :attributes
|
4
|
+
|
5
|
+
def initialize(attributes={})
|
6
|
+
@attributes = attributes
|
7
|
+
@timestamp = @attributes.delete(:timestamp)
|
8
|
+
@attributes[:created_at] = Time.at(@timestamp)
|
9
|
+
end
|
10
|
+
|
11
|
+
def to_json(*opts)
|
12
|
+
@attributes.to_json(*opts)
|
13
|
+
end
|
14
|
+
|
15
|
+
def method_missing(method, *args, &block)
|
16
|
+
@attributes[method.to_sym] or super
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
@@ -0,0 +1,78 @@
|
|
1
|
+
require "sqlite3"
|
2
|
+
require "sequel"
|
3
|
+
require "active_support/core_ext"
|
4
|
+
require "rest_client"
|
5
|
+
require "json"
|
6
|
+
require "base64"
|
7
|
+
|
8
|
+
module SkypeArchive
|
9
|
+
class Model
|
10
|
+
attr_reader :account_name
|
11
|
+
|
12
|
+
def initialize(account_name)
|
13
|
+
@account_name = account_name
|
14
|
+
end
|
15
|
+
|
16
|
+
def search(text, options={})
|
17
|
+
query = connection[:Messages].filter(:type => 61).filter("body_xml LIKE ?", "%#{text}%")
|
18
|
+
query = query.filter(:author => options[:skypename]) if options[:skypename]
|
19
|
+
query = query.filter("timestamp > ?", options[:timestamp]) if options[:timestamp]
|
20
|
+
if options[:conversation]
|
21
|
+
convo_ids = connection[:Conversations].filter("displayname LIKE ?", "%#{options[:conversation]}%").all.map { |convo| convo[:id] }
|
22
|
+
query = query.filter("convo_id in ?", convo_ids)
|
23
|
+
end
|
24
|
+
query = query.select(:author, :from_dispname, :body_xml, :timestamp)
|
25
|
+
query.all.map { |attrs| Message.new(attrs) }
|
26
|
+
end
|
27
|
+
|
28
|
+
def sync
|
29
|
+
start_time = Time.now.yesterday.at_beginning_of_day.to_i
|
30
|
+
end_time = Time.now.yesterday.at_midnight.to_i
|
31
|
+
sync_contacts
|
32
|
+
sync_conversations
|
33
|
+
sync_participants
|
34
|
+
sync_messages(start_time, end_time)
|
35
|
+
end
|
36
|
+
|
37
|
+
def sync_contacts
|
38
|
+
contacts = connection[:Contacts].select(:skypename, :displayname).all
|
39
|
+
RestClient.post "#{URL}/users", contacts.to_json, :content_type => :json, :accept => :json
|
40
|
+
contacts
|
41
|
+
end
|
42
|
+
|
43
|
+
def sync_conversations
|
44
|
+
@conversations = connection[:Conversations].filter(:type => 2).select(:id, :identity, :displayname).all
|
45
|
+
RestClient.post "#{URL}/conversations", @conversations.to_json, :content_type => :json, :accept => :json
|
46
|
+
@conversations
|
47
|
+
end
|
48
|
+
|
49
|
+
def sync_participants
|
50
|
+
@conversations or sync_conversations
|
51
|
+
@conversations.each do |convo|
|
52
|
+
participants = connection[:Participants].filter(:convo_id => convo[:id]).select(:identity).all
|
53
|
+
unless participants.empty?
|
54
|
+
url = "#{URL}/conversations/#{Base64.encode64(convo[:identity])[0...-1]}/participants"
|
55
|
+
RestClient.post url, participants.to_json, :content_type => :json, :accept => :json
|
56
|
+
end
|
57
|
+
end
|
58
|
+
end
|
59
|
+
|
60
|
+
def sync_messages(start_time=0, end_time=Time.now.to_i)
|
61
|
+
@conversations or sync_conversations
|
62
|
+
@conversations.each do |convo|
|
63
|
+
messages = connection[:Messages].filter("convo_id = ? and timestamp >= ? and timestamp <= ?", convo[:id], start_time, end_time).
|
64
|
+
select(:author, :from_dispname, :remote_id, :body_xml, :timestamp).
|
65
|
+
all.map { |attrs| Message.new(attrs) }
|
66
|
+
unless messages.empty?
|
67
|
+
url = "#{URL}/conversations/#{Base64.encode64(convo[:identity])[0...-1]}/messages"
|
68
|
+
RestClient.post url, messages.to_json, :content_type => :json, :accept => :json
|
69
|
+
end
|
70
|
+
end
|
71
|
+
end
|
72
|
+
|
73
|
+
private
|
74
|
+
def connection
|
75
|
+
@connection ||= Sequel.sqlite(File.expand_path("~/Library/Application\ Support/Skype/#{account_name}/main.db"))
|
76
|
+
end
|
77
|
+
end
|
78
|
+
end
|
@@ -0,0 +1,27 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
require File.expand_path('../lib/skype_archive/version', __FILE__)
|
3
|
+
|
4
|
+
Gem::Specification.new do |gem|
|
5
|
+
gem.authors = ["Richard Huang"]
|
6
|
+
gem.email = ["flyerhzm@gmail.com"]
|
7
|
+
gem.description = %q{skype archive client}
|
8
|
+
gem.summary = %q{skype archive for gii hackathon}
|
9
|
+
gem.homepage = ""
|
10
|
+
|
11
|
+
gem.files = `git ls-files`.split($\)
|
12
|
+
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
|
13
|
+
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
14
|
+
gem.name = "skype_archive"
|
15
|
+
gem.require_paths = ["lib"]
|
16
|
+
gem.version = SkypeArchive::VERSION
|
17
|
+
|
18
|
+
gem.add_dependency "sqlite3"
|
19
|
+
gem.add_dependency "sequel"
|
20
|
+
gem.add_dependency "activesupport"
|
21
|
+
gem.add_dependency "rest-client"
|
22
|
+
gem.add_dependency "json"
|
23
|
+
|
24
|
+
gem.add_development_dependency "rspec"
|
25
|
+
gem.add_development_dependency "mocha"
|
26
|
+
gem.add_development_dependency "webmock"
|
27
|
+
end
|
@@ -0,0 +1,61 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe SkypeArchive::Model do
|
4
|
+
let(:connection) { DB }
|
5
|
+
let(:model) { SkypeArchive::Model.new("gii.richard.huang") }
|
6
|
+
before do
|
7
|
+
Sequel.stubs(:sqlite).returns(connection)
|
8
|
+
end
|
9
|
+
|
10
|
+
context "#search" do
|
11
|
+
it "should search messages" do
|
12
|
+
model.search("gree message").should have(3).items
|
13
|
+
end
|
14
|
+
|
15
|
+
it "should search only text messages" do
|
16
|
+
model.search("self message").should have(1).item
|
17
|
+
end
|
18
|
+
|
19
|
+
it "should search by user" do
|
20
|
+
model.search("message", :skypename => "gii.jason.lai").should have(2).items
|
21
|
+
end
|
22
|
+
|
23
|
+
it "should search by timestamp" do
|
24
|
+
timestamp = Time.now.to_i - 2400
|
25
|
+
model.search("message", :timestamp => timestamp).should have(3).items
|
26
|
+
end
|
27
|
+
|
28
|
+
it "should search by conversation" do
|
29
|
+
model.search("message", :conversation => "flyerhzm").should have(1).item
|
30
|
+
end
|
31
|
+
end
|
32
|
+
|
33
|
+
context "#sync" do
|
34
|
+
it "should sync_contacts" do
|
35
|
+
stub_request(:post, "#{SkypeArchive::URL}/users")
|
36
|
+
model.sync_contacts.should have(3).items
|
37
|
+
end
|
38
|
+
|
39
|
+
it "should sync_conversations" do
|
40
|
+
stub_request(:post, "#{SkypeArchive::URL}/conversations")
|
41
|
+
model.sync_conversations.should have(1).items
|
42
|
+
end
|
43
|
+
|
44
|
+
it "should sync_participants" do
|
45
|
+
stub_request(:post, "#{SkypeArchive::URL}/conversations")
|
46
|
+
stub_request(:post, "#{SkypeArchive::URL}/conversations/JGdpaS5qYXNvbi5sYWkvMTIzNDU2Nzg5/participants")
|
47
|
+
model.sync_participants
|
48
|
+
end
|
49
|
+
|
50
|
+
it "should sync_message" do
|
51
|
+
stub_request(:post, "#{SkypeArchive::URL}/conversations")
|
52
|
+
stub_request(:post, "#{SkypeArchive::URL}/conversations/JGdpaS5qYXNvbi5sYWkvMTIzNDU2Nzg5/messages")
|
53
|
+
model.sync_messages
|
54
|
+
end
|
55
|
+
|
56
|
+
it "should sync_message with start_time and end_time" do
|
57
|
+
stub_request(:post, "#{SkypeArchive::URL}/conversations")
|
58
|
+
model.sync_messages(Time.now.to_i + 1, Time.now.to_i + 1000)
|
59
|
+
end
|
60
|
+
end
|
61
|
+
end
|
@@ -0,0 +1,13 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe SkypeArchive do
|
4
|
+
let(:connection) { DB }
|
5
|
+
let(:model) { SkypeArchive::Model.new("gii.richard.huang") }
|
6
|
+
before do
|
7
|
+
Sequel.stubs(:sqlite).returns(connection)
|
8
|
+
end
|
9
|
+
|
10
|
+
it "should call SkypeArchive::Model to search" do
|
11
|
+
SkypeArchive.search("gii.richard.huang", "self message").should have(1).item
|
12
|
+
end
|
13
|
+
end
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
require 'rspec'
|
2
|
+
require 'skype_archive'
|
3
|
+
require 'support/sqlite_seed'
|
4
|
+
require 'webmock/rspec'
|
5
|
+
|
6
|
+
DB = Sequel.sqlite
|
7
|
+
|
8
|
+
RSpec.configure do |config|
|
9
|
+
config.mock_with :mocha
|
10
|
+
config.filter_run :focus => true
|
11
|
+
config.run_all_when_everything_filtered = true
|
12
|
+
|
13
|
+
config.before(:suite) do
|
14
|
+
Support::SqliteSeed.setup_db
|
15
|
+
Support::SqliteSeed.seed_db
|
16
|
+
end
|
17
|
+
|
18
|
+
config.after(:suite) do
|
19
|
+
Support::SqliteSeed.teardown_db
|
20
|
+
end
|
21
|
+
end
|
@@ -0,0 +1,79 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
module Support
|
3
|
+
module SqliteSeed
|
4
|
+
def seed_db
|
5
|
+
richard = DB[:contacts].insert(:skypename => "gii.richard.huang", :displayname => "Richard Huang")
|
6
|
+
flyerhzm = DB[:contacts].insert(:skypename => "flyerhzm", :displayname => "Richard Huang")
|
7
|
+
jason = DB[:contacts].insert(:skypename => "gii.jason.lai", :displayname => "Jason Lai")
|
8
|
+
|
9
|
+
gree_conversation_id = DB[:conversations].insert(:type => 2, :identity => "$gii.jason.lai/123456789", :displayname => "GREE")
|
10
|
+
myself_conversation_id = DB[:conversations].insert(:type => 1, :identity => "flyerhzm", :displayname => "flyerhzm")
|
11
|
+
|
12
|
+
DB[:participants].insert(:convo_id => gree_conversation_id, :identity => "gii.jason.lai")
|
13
|
+
DB[:participants].insert(:convo_id => gree_conversation_id, :identity => "gii.richard.huang")
|
14
|
+
DB[:participants].insert(:convo_id => myself_conversation_id, :identity => "flyerhzm")
|
15
|
+
DB[:participants].insert(:convo_id => myself_conversation_id, :identity => "gii.richard.huang")
|
16
|
+
|
17
|
+
DB[:messages].insert(:convo_id => gree_conversation_id, :author => "gii.jason.lai", :from_dispname => "Jason Lai",
|
18
|
+
:remote_id => 1, :body_xml => "gree message 1", :type => 61, :timestamp => Time.now.to_i - 3600)
|
19
|
+
DB[:messages].insert(:convo_id => gree_conversation_id, :author => "gii.richard.huang", :from_dispname => "Richard Huang",
|
20
|
+
:remote_id => 2, :body_xml => "gree message 2", :type => 61, :timestamp => Time.now.to_i - 1800)
|
21
|
+
DB[:messages].insert(:convo_id => gree_conversation_id, :author => "gii.jason.lai", :from_dispname => "Jason Lai / (赖)",
|
22
|
+
:remote_id => 3, :body_xml => "gree message 3", :type => 61, :timestamp => Time.now.to_i)
|
23
|
+
DB[:messages].insert(:convo_id => myself_conversation_id, :author => "gii.richard.huang", :from_dispname => "Richard Huang",
|
24
|
+
:remote_id => 4, :body_xml => "self message 11", :type => 61, :timestamp => Time.now.to_i)
|
25
|
+
DB[:messages].insert(:convo_id => myself_conversation_id, :author => "flyerhzm", :from_dispname => "Richard Huang",
|
26
|
+
:remote_id => 5, :body_xml => "
|
27
|
+
<partlist alt=\"\">
|
28
|
+
<part identity=\"flyerhzm\">
|
29
|
+
<name>Ron Buell</name>
|
30
|
+
<duration>1099</duration>
|
31
|
+
</part>
|
32
|
+
<part identity=\"gii.richard.huang\">
|
33
|
+
<name>Richard Huang</name>
|
34
|
+
<duration>1099</duration>
|
35
|
+
</part>
|
36
|
+
</partlist>", :type => 39, :timestamp => Time.now.to_i)
|
37
|
+
end
|
38
|
+
|
39
|
+
def setup_db
|
40
|
+
DB.create_table :contacts do
|
41
|
+
primary_key :id
|
42
|
+
String :skypename
|
43
|
+
String :displayname
|
44
|
+
end
|
45
|
+
|
46
|
+
DB.create_table :conversations do
|
47
|
+
primary_key :id
|
48
|
+
Integer :type
|
49
|
+
String :identity
|
50
|
+
String :displayname
|
51
|
+
end
|
52
|
+
|
53
|
+
DB.create_table :participants do
|
54
|
+
primary_key :id
|
55
|
+
Integer :convo_id
|
56
|
+
String :identity
|
57
|
+
end
|
58
|
+
|
59
|
+
DB.create_table :messages do
|
60
|
+
primary_key :id
|
61
|
+
Integer :convo_id
|
62
|
+
String :author
|
63
|
+
String :from_dispname
|
64
|
+
Integer :remote_id
|
65
|
+
String :body_xml
|
66
|
+
Integer :type
|
67
|
+
Integer :timestamp
|
68
|
+
end
|
69
|
+
end
|
70
|
+
|
71
|
+
def teardown_db
|
72
|
+
DB.tables.each do |table|
|
73
|
+
DB.drop_table(table)
|
74
|
+
end
|
75
|
+
end
|
76
|
+
|
77
|
+
extend self
|
78
|
+
end
|
79
|
+
end
|
metadata
ADDED
@@ -0,0 +1,193 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: skype_archive
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Richard Huang
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2012-08-03 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: sqlite3
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '0'
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ! '>='
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '0'
|
30
|
+
- !ruby/object:Gem::Dependency
|
31
|
+
name: sequel
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
33
|
+
none: false
|
34
|
+
requirements:
|
35
|
+
- - ! '>='
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: '0'
|
38
|
+
type: :runtime
|
39
|
+
prerelease: false
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ! '>='
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: '0'
|
46
|
+
- !ruby/object:Gem::Dependency
|
47
|
+
name: activesupport
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
49
|
+
none: false
|
50
|
+
requirements:
|
51
|
+
- - ! '>='
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '0'
|
54
|
+
type: :runtime
|
55
|
+
prerelease: false
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
58
|
+
requirements:
|
59
|
+
- - ! '>='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
- !ruby/object:Gem::Dependency
|
63
|
+
name: rest-client
|
64
|
+
requirement: !ruby/object:Gem::Requirement
|
65
|
+
none: false
|
66
|
+
requirements:
|
67
|
+
- - ! '>='
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '0'
|
70
|
+
type: :runtime
|
71
|
+
prerelease: false
|
72
|
+
version_requirements: !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
74
|
+
requirements:
|
75
|
+
- - ! '>='
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: '0'
|
78
|
+
- !ruby/object:Gem::Dependency
|
79
|
+
name: json
|
80
|
+
requirement: !ruby/object:Gem::Requirement
|
81
|
+
none: false
|
82
|
+
requirements:
|
83
|
+
- - ! '>='
|
84
|
+
- !ruby/object:Gem::Version
|
85
|
+
version: '0'
|
86
|
+
type: :runtime
|
87
|
+
prerelease: false
|
88
|
+
version_requirements: !ruby/object:Gem::Requirement
|
89
|
+
none: false
|
90
|
+
requirements:
|
91
|
+
- - ! '>='
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
version: '0'
|
94
|
+
- !ruby/object:Gem::Dependency
|
95
|
+
name: rspec
|
96
|
+
requirement: !ruby/object:Gem::Requirement
|
97
|
+
none: false
|
98
|
+
requirements:
|
99
|
+
- - ! '>='
|
100
|
+
- !ruby/object:Gem::Version
|
101
|
+
version: '0'
|
102
|
+
type: :development
|
103
|
+
prerelease: false
|
104
|
+
version_requirements: !ruby/object:Gem::Requirement
|
105
|
+
none: false
|
106
|
+
requirements:
|
107
|
+
- - ! '>='
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: '0'
|
110
|
+
- !ruby/object:Gem::Dependency
|
111
|
+
name: mocha
|
112
|
+
requirement: !ruby/object:Gem::Requirement
|
113
|
+
none: false
|
114
|
+
requirements:
|
115
|
+
- - ! '>='
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
none: false
|
122
|
+
requirements:
|
123
|
+
- - ! '>='
|
124
|
+
- !ruby/object:Gem::Version
|
125
|
+
version: '0'
|
126
|
+
- !ruby/object:Gem::Dependency
|
127
|
+
name: webmock
|
128
|
+
requirement: !ruby/object:Gem::Requirement
|
129
|
+
none: false
|
130
|
+
requirements:
|
131
|
+
- - ! '>='
|
132
|
+
- !ruby/object:Gem::Version
|
133
|
+
version: '0'
|
134
|
+
type: :development
|
135
|
+
prerelease: false
|
136
|
+
version_requirements: !ruby/object:Gem::Requirement
|
137
|
+
none: false
|
138
|
+
requirements:
|
139
|
+
- - ! '>='
|
140
|
+
- !ruby/object:Gem::Version
|
141
|
+
version: '0'
|
142
|
+
description: skype archive client
|
143
|
+
email:
|
144
|
+
- flyerhzm@gmail.com
|
145
|
+
executables:
|
146
|
+
- skype_archive
|
147
|
+
extensions: []
|
148
|
+
extra_rdoc_files: []
|
149
|
+
files:
|
150
|
+
- .gitignore
|
151
|
+
- Gemfile
|
152
|
+
- LICENSE
|
153
|
+
- README.md
|
154
|
+
- Rakefile
|
155
|
+
- bin/skype_archive
|
156
|
+
- lib/skype_archive.rb
|
157
|
+
- lib/skype_archive/message.rb
|
158
|
+
- lib/skype_archive/model.rb
|
159
|
+
- lib/skype_archive/version.rb
|
160
|
+
- skype_archive.gemspec
|
161
|
+
- spec/model/skype_archive_spec.rb
|
162
|
+
- spec/skype_archive_spec.rb
|
163
|
+
- spec/spec_helper.rb
|
164
|
+
- spec/support/sqlite_seed.rb
|
165
|
+
homepage: ''
|
166
|
+
licenses: []
|
167
|
+
post_install_message:
|
168
|
+
rdoc_options: []
|
169
|
+
require_paths:
|
170
|
+
- lib
|
171
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
172
|
+
none: false
|
173
|
+
requirements:
|
174
|
+
- - ! '>='
|
175
|
+
- !ruby/object:Gem::Version
|
176
|
+
version: '0'
|
177
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
178
|
+
none: false
|
179
|
+
requirements:
|
180
|
+
- - ! '>='
|
181
|
+
- !ruby/object:Gem::Version
|
182
|
+
version: '0'
|
183
|
+
requirements: []
|
184
|
+
rubyforge_project:
|
185
|
+
rubygems_version: 1.8.24
|
186
|
+
signing_key:
|
187
|
+
specification_version: 3
|
188
|
+
summary: skype archive for gii hackathon
|
189
|
+
test_files:
|
190
|
+
- spec/model/skype_archive_spec.rb
|
191
|
+
- spec/skype_archive_spec.rb
|
192
|
+
- spec/spec_helper.rb
|
193
|
+
- spec/support/sqlite_seed.rb
|