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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/evernote-exporter.rb +5 -7
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fe44a150057b28d895aa7d5796fd7c4902fbad15302a2393ca3f1366e074ae06
4
- data.tar.gz: a9e59dd42b94de0831a51c02bce0efe1afdbfe015b65423af5f522a55c626f08
3
+ metadata.gz: 4545a223a5d2d0a9d1532a7e7e56ee82d73df1fc0fc2886e5efb34f01f27f841
4
+ data.tar.gz: 1c4c9381c6f19a2a7d4a49abd824bae1c9fc975a3669b63b6bd91f1d6518f851
5
5
  SHA512:
6
- metadata.gz: af15aa61075cda8a8dd6062a250ee271a3ddca652b443458e2f4dbb4d7c3393e175865a1d29f1ad4d116cf2f4f301f5a8e572edf6f4439e195439b23938872cd
7
- data.tar.gz: 6a835c57cb940c3740c51aaf205c7c913b1adcad865d5efe9148a8f6f64b63e1add28de78a1d571fac4faf56ddfaac661d92637e4e34db043793c8a1acd71733
6
+ metadata.gz: 5e3d53845285497505fc2314e3df89a9df5c648c6b7d0e904cce85502e651f8cdc5beb1dd4efd408e4f436b49cda3a8c3e70b288aad35e51e21f02ff09578dd7
7
+ data.tar.gz: 1b4fb78ffc482dd863bff0081c6e15f74c28e1c7f525ff5206e9c7988a0f7556bc3aa1a3f17e96160eed8e42c16268181592061596540803e861242465158e8e
@@ -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(uuid)
71
- "#{@local_account_path}/content/#{uuid}"
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(uuid)
74
+ def _local_note_filesize(local_account_path, note_uuid)
75
75
  filesize_hash = {
76
- 'local_note_path': _local_note_path(uuid),
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.9
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/evernote-analyzer.git
38
+ homepage: https://github.com/imjaden/EvernoteAnalyzer.git
39
39
  licenses:
40
40
  - MIT
41
41
  metadata: {}