runoff 0.1.1 → 0.1.2

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,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZjY2YzY5MjRhYzFkZTU4NDlhMjQyMzk0MzgxOTE2YzBiZThjNWMxZA==
4
+ MmUzMWI2ZWE4ZThmNTE1OTk5NmU2MjVhYmIzOGNmOGU5MGUyZDNiYg==
5
5
  data.tar.gz: !binary |-
6
- MDg2M2Q5NzA4ZTRhNWIzNTA2YmFjNzU0NGVhZmMwNjY5MWZjYmY4OQ==
6
+ OWZiYzc1Y2I0NzdiN2M0MTExOWEwYTFhZjI0YTJkYzU2N2JmYzg5Zg==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- Mzc2Nzk4Mjc2ZTFkM2JkYTdhYWJhYzNhZmY4NTU2NDJlNDMzM2I0ZmQxZWY2
10
- MzhkNWU4MmMwNWJlZThhMjkwYzljNTFlMGYwNDljNzcyOGViYTVlNzNmMmI2
11
- YmJiNTcwMzVhZDYzNmYzNWM4NmVkOWU3ODk3NDVjZTNhZTRhNzY=
9
+ MTg5NzYxNmZlNWRkMWU3YzkyZmMwMWRkODdkMmY1MTBkM2Y2ZjI2ODU4Yjli
10
+ ZDc1ZmU3NjA5ZWU2YWFhNTE2NmZiOWNlNDJlMGYzNzhkYzkxNDlhZjY2MWEz
11
+ ZDM5ZjNiNjJlNGJlNmFiZWQzMGRkYWE3N2ZhYmQ5MDFjZGQ2ZGY=
12
12
  data.tar.gz: !binary |-
13
- MjIwMTEzY2FiM2ZjMWVjNDQzNDM5ZGVlY2E0ZmE1OTc4OThkYmE4N2NmN2Ew
14
- YjYzZmIwZjUzNjMyZjAxZDhkZTRmNmE4NmJmOTFhNTcwZWIyZTM2NGRlZDg2
15
- MDc2NWE1YjY2YTRhYWE3NjhlNDkwNDIzMWIxMWRlMmFhNzBiMTY=
13
+ YWU1YjU5NDNmZjE3Mjc5Mzk2MmY4ZjE1MWIwNDk0OTQ4MmUxZDE2OTNjOWFj
14
+ Y2U0N2UwNTQxM2U5NDJmOTY3YmJhNzE1ODYxMzY0ZDE0ODhiY2E3ZDQ4Nzdh
15
+ Y2U3M2FkNDRmNmM3NTM4OWY1NDA1M2E4MmQyN2Q5YmRlOGJmNjI=
checksums.yaml.gz.sig CHANGED
Binary file
data/README.md CHANGED
@@ -7,37 +7,39 @@ SDBR is written in C# using WPF, therefore it runs only on Windows. Moreover, it
7
7
 
8
8
  ## Install
9
9
 
10
- Sorry, this gem is still in development, therefore I haven't published it to RubyGems yet, but you can build it locally and install it that way.
10
+ gem install runoff
11
11
 
12
12
  ## Usage
13
13
 
14
- The current version only works with the default Skype location.
14
+ To export all the chat history.
15
15
 
16
- <pre><code>runoff all skype_username # this will save all the files in your home directory
17
- </code></pre>
16
+ # save all the files in your home directory
17
+ runoff all skype_username
18
18
 
19
- To export files to a specific directory you can use <code>--to</code> or <code>-t</code> option.
19
+ # save the files in a specific directory
20
+ runoff all skype_username -t ~/skype_backup
20
21
 
21
- <pre><code>runoff all skype_username --to ~/skype_backup
22
- </code></pre>
22
+ # export database that isn't located in the default path
23
+ runoff all -f ~/main.db -t ~/skype_backup
24
+
25
+ To export specific chats.
26
+
27
+ runoff chat skype_username -t ~/skype_backup
23
28
 
24
29
  If you're confused, you can get some help.
25
30
 
26
- <pre><code>runoff help all
27
- </code></pre>
31
+ runoff help all
28
32
 
29
- If you don't want to install the development version, clone down the repository and call the executable file directly!
33
+ ## Problems
30
34
 
31
- <pre><code>ruby -Ilib ./bin/runoff.rb
32
- </code></pre>
35
+ The current version (0.1.1) doesn't support Windows, but it will be fixed soon.
33
36
 
34
37
  ## What else?
35
38
 
36
- Things to do before runoff is ready to be published:
37
- - Add tests for the executable file.
38
- - Use <code>--from</code>/<code>-f</code> option to specify the location of main.db file.
39
- - Add comments to the code.
40
-
41
39
  Things to do in the future versions:
42
- - Add additional methods to export only specific conversations.
43
- - Append only new messages to the previously genetrated files instead of appending everything.
40
+
41
+ - Fix sqlite path bug in Windows.
42
+ - Append only new messages to the previously genetrated files instead of appending everything or create different versions for the files.
43
+ - Add some colors.
44
+
45
+ If you have something to say about this gem or anything else, you can find me on Twitter as [@AigarsDz](http://twitter.com/AigarsDz "@AigarsDz").
@@ -103,6 +103,8 @@ module Runoff
103
103
  end
104
104
 
105
105
  @exported_filenames << filename
106
+ rescue StandardError
107
+ puts 'An error occured while parsing a chatname'
106
108
  end
107
109
 
108
110
  # Internal: Converts chatname from database to a valid file name.
@@ -21,16 +21,19 @@ module Runoff
21
21
  #
22
22
  # On Windows:
23
23
  # default_skype_data_location skype_username
24
- # # => C:\Users\user\AppData\Roaming\Skype\skype_username\main.db
24
+ # # => /Users/user/AppData/Roaming/Skype/skype_username/main.db
25
25
  #
26
26
  # Returns a String that contains the path to the Skype database file.
27
27
  def self.default_skype_data_location(skype_username)
28
28
  if RbConfig::CONFIG['host_os'] =~ /mingw/
29
- "#{ENV['APPDATA']}\\Skype\\#{skype_username}\\main.db"
29
+ location = "#{ENV['APPDATA']}\\Skype\\#{skype_username}\\main.db"
30
+
31
+ location.gsub! /\\/, '/'
32
+ location.gsub /^[a-zA-Z]:/, ''
30
33
  elsif RbConfig::CONFIG['host_os'] =~ /linux/
31
34
  "#{ENV['HOME']}/.Skype/#{skype_username}/main.db"
32
35
  else
33
- "~/Library/Application Support/Skype/#{skype_username}/main.db"
36
+ "#{ENV['HOME']}/Library/Application Support/Skype/#{skype_username}/main.db"
34
37
  end
35
38
  end
36
39
 
@@ -1,3 +1,3 @@
1
1
  module Runoff
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: runoff
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aigars Dzerviniks
@@ -39,7 +39,7 @@ cert_chain:
39
39
  dHFPWFp1ck5FWmdTMlRSWG5GRG9TWmRtT3IxMjM2ZS9SNTBzc1dlR0dIUUox
40
40
  V2wKN2ZZbFZpQThPY2Z3aGdyaDcyc05mVHpTCi0tLS0tRU5EIENFUlRJRklD
41
41
  QVRFLS0tLS0K
42
- date: 2013-03-25 00:00:00.000000000 Z
42
+ date: 2013-03-27 00:00:00.000000000 Z
43
43
  dependencies:
44
44
  - !ruby/object:Gem::Dependency
45
45
  name: thor
metadata.gz.sig CHANGED
Binary file