evernote-analyzer 0.0.9 → 0.0.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/evernote-exporter.rb +5 -7
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4545a223a5d2d0a9d1532a7e7e56ee82d73df1fc0fc2886e5efb34f01f27f841
|
4
|
+
data.tar.gz: 1c4c9381c6f19a2a7d4a49abd824bae1c9fc975a3669b63b6bd91f1d6518f851
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5e3d53845285497505fc2314e3df89a9df5c648c6b7d0e904cce85502e651f8cdc5beb1dd4efd408e4f436b49cda3a8c3e70b288aad35e51e21f02ff09578dd7
|
7
|
+
data.tar.gz: 1b4fb78ffc482dd863bff0081c6e15f74c28e1c7f525ff5206e9c7988a0f7556bc3aa1a3f17e96160eed8e42c16268181592061596540803e861242465158e8e
|
data/lib/evernote-exporter.rb
CHANGED
@@ -47,7 +47,7 @@ class EvernoteExporter
|
|
47
47
|
note_index = 1
|
48
48
|
note_count = sqlite3_db_connection.execute(sql_note_count).to_a.flatten[0]
|
49
49
|
sqlite3_db_connection.prepare(sql_note_list).execute.each_hash do |record|
|
50
|
-
filesize_hash = _local_note_filesize(record['uuid'])
|
50
|
+
filesize_hash = _local_note_filesize(local_account_path, record['uuid'])
|
51
51
|
csv_row << [record['zstack'], record['zname'], record['title'], record['updated_at'], record['note_size'], filesize_hash[:local_note_size], filesize_hash[:local_note_size_human], filesize_hash[:local_note_path]]
|
52
52
|
set_progress(note_index, note_count, account_id)
|
53
53
|
note_index += 1
|
@@ -67,13 +67,13 @@ class EvernoteExporter
|
|
67
67
|
$stdout.flush
|
68
68
|
end
|
69
69
|
|
70
|
-
def _local_note_path(
|
71
|
-
"#{
|
70
|
+
def _local_note_path(local_account_path, note_uuid)
|
71
|
+
"#{local_account_path}/content/#{note_uuid}"
|
72
72
|
end
|
73
73
|
|
74
|
-
def _local_note_filesize(
|
74
|
+
def _local_note_filesize(local_account_path, note_uuid)
|
75
75
|
filesize_hash = {
|
76
|
-
'local_note_path': _local_note_path(
|
76
|
+
'local_note_path': _local_note_path(local_account_path, note_uuid),
|
77
77
|
'local_note_size': 0
|
78
78
|
}
|
79
79
|
Dir.glob([filesize_hash[:local_note_path], '*'].join('/')) do |path|
|
@@ -108,5 +108,3 @@ ORDER BY note.ZDATEUPDATED DESC;
|
|
108
108
|
end
|
109
109
|
end
|
110
110
|
end
|
111
|
-
|
112
|
-
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: evernote-analyzer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jaden Li
|
@@ -35,7 +35,7 @@ files:
|
|
35
35
|
- bin/evernote-analyzer
|
36
36
|
- lib/evernote-analyzer.rb
|
37
37
|
- lib/evernote-exporter.rb
|
38
|
-
homepage: https://github.com/imjaden/
|
38
|
+
homepage: https://github.com/imjaden/EvernoteAnalyzer.git
|
39
39
|
licenses:
|
40
40
|
- MIT
|
41
41
|
metadata: {}
|