fuzzy_notes 0.0.5 → 0.0.6

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.
data/TODO CHANGED
@@ -1,2 +1,5 @@
1
1
  TODO
2
- -Evernote integration
2
+ * Evernote support
3
+ - sync all notes to evernote dir and user the same search mechanism
4
+
5
+
data/bin/fnote CHANGED
@@ -55,9 +55,10 @@ puts "Warning: config file not found, using defaults" if config.empty?
55
55
 
56
56
  # find matching notes
57
57
  #
58
- notes = FuzzyNotes::Notes.new(:log_level => (options[:verbose] || config[:verbose]) ? 0 : 1,
58
+ notes = FuzzyNotes::Notes.new(:editor => config[:editor],
59
59
  :note_paths => config[:note_paths],
60
60
  :full_text_search => options[:search] || config[:full_text_search],
61
+ :log_level => (options[:verbose] || config[:verbose]) ? 0 : 1,
61
62
  :keywords => ARGV)
62
63
 
63
64
  # perform action on matching notes
@@ -0,0 +1,23 @@
1
+ require 'evernote'
2
+ user_store_url = 'https://sandbox.evernote.com/edam/user'
3
+
4
+ config = {
5
+ :username => 'rut216',
6
+ :password => 'password',
7
+ :consumer_key => 'rut216',
8
+ :consumer_secret => '160988912605c36c' }
9
+
10
+ user_store = Evernote::UserStore.new(user_store_url, config)
11
+ auth_result = user_store.authenticate
12
+ user = auth_result.user
13
+ @token = auth_result.authenticationToken
14
+ puts "Authentication was successful for #{user.username}"
15
+ puts "Authentication token = #{@token}"
16
+
17
+ note_store_url = "http://sandbox.evernote.com/edam/note/#{user.shardId}"
18
+ @note_store = Evernote::NoteStore.new(note_store_url)
19
+
20
+ #notebooks = note_store.listNotebooks(auth_token)
21
+ #puts "Found #{notebooks.size} notebooks:"
22
+ #default_notebook = notebooks[0]
23
+ #notebooks.each { |notebook| puts " * #{notebook.name}"}
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fuzzy_notes
3
3
  version: !ruby/object:Gem::Version
4
- hash: 21
4
+ hash: 19
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 5
10
- version: 0.0.5
9
+ - 6
10
+ version: 0.0.6
11
11
  platform: ruby
12
12
  authors:
13
13
  - Alex Skryl
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-07-20 00:00:00 -05:00
18
+ date: 2011-07-25 00:00:00 -05:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -55,11 +55,12 @@ extensions: []
55
55
  extra_rdoc_files: []
56
56
 
57
57
  files:
58
- - lib/fuzzy_notes.rb
59
- - lib/fuzzy_notes/logger.rb
60
58
  - lib/fuzzy_notes/cipher.rb
61
- - lib/fuzzy_notes/notes.rb
59
+ - lib/fuzzy_notes/evernote_sync.rb
62
60
  - lib/fuzzy_notes/fuzzy_finder.rb
61
+ - lib/fuzzy_notes/logger.rb
62
+ - lib/fuzzy_notes/notes.rb
63
+ - lib/fuzzy_notes.rb
63
64
  - bin/fnote
64
65
  - README
65
66
  - TODO