quiver_note 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +0 -0
- data/Gemfile +0 -0
- data/LICENSE.txt +0 -0
- data/README.md +2 -2
- data/Rakefile +0 -0
- data/lib/quiver.rb +0 -0
- data/lib/quiver/adapter/dropbox.rb +9 -6
- data/lib/quiver/adapter/local.rb +0 -0
- data/lib/quiver/cell.rb +0 -0
- data/lib/quiver/config.rb +0 -0
- data/lib/quiver/note.rb +0 -0
- data/lib/quiver/notebook.rb +0 -0
- data/lib/quiver/root.rb +0 -0
- data/lib/quiver_note.rb +0 -0
- data/lib/quiver_note/version.rb +1 -1
- data/quiver_note.gemspec +2 -2
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fad8440b224b95c00dbacf4c2deac100aac75243
|
4
|
+
data.tar.gz: 3f0d541e199d22a1bdcf39ba1bc9b35bcee27930
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d1d7f9ab4b7963208701f086363a71944ff9044e81bab0080b5c9b367d541555107a084a501adf88c8f5a19948f858912db6736645f5ecc911e2c280d62f808f
|
7
|
+
data.tar.gz: 11630c85924bf322febef734a21e5c3cc08d74d37995512d6bede660ae68cb1b94d8f963dc6bf6ba7de401e6ff6a5c0a7be25c3744cfaf29c550239ae42b3a01
|
data/.gitignore
CHANGED
File without changes
|
data/Gemfile
CHANGED
File without changes
|
data/LICENSE.txt
CHANGED
File without changes
|
data/README.md
CHANGED
@@ -7,7 +7,7 @@ Unofficial ruby interface for [HappenApps quiver](happenapps.com/#quiver)
|
|
7
7
|
Add this line to your application's Gemfile:
|
8
8
|
|
9
9
|
```ruby
|
10
|
-
gem '
|
10
|
+
gem 'quiver_note'
|
11
11
|
```
|
12
12
|
|
13
13
|
And then execute:
|
@@ -16,7 +16,7 @@ And then execute:
|
|
16
16
|
|
17
17
|
Or install it yourself as:
|
18
18
|
|
19
|
-
$ gem install
|
19
|
+
$ gem install quiver_note
|
20
20
|
|
21
21
|
## Usage
|
22
22
|
|
data/Rakefile
CHANGED
File without changes
|
data/lib/quiver.rb
CHANGED
File without changes
|
@@ -1,4 +1,5 @@
|
|
1
|
-
|
1
|
+
if defined? ::DropboxApi
|
2
|
+
|
2
3
|
module Quiver
|
3
4
|
module Adapter
|
4
5
|
class Dropbox
|
@@ -7,26 +8,26 @@ module Quiver
|
|
7
8
|
@access_key = access_key
|
8
9
|
end
|
9
10
|
def client
|
10
|
-
@client ||= ::
|
11
|
+
@client ||= ::DropboxApi::Client.new(@access_key)
|
11
12
|
end
|
12
13
|
|
13
14
|
# Don't include this url direct on your site. Use via cdn.
|
14
15
|
def image_url(path)
|
15
16
|
@@image_url_cache ||= {}
|
16
|
-
@@image_url_cache[path] ||= client.
|
17
|
+
@@image_url_cache[path] ||= client.get_temporary_link(normalize_path(path))
|
17
18
|
end
|
18
19
|
def each(path)
|
19
|
-
dir_metadata = client.
|
20
|
+
dir_metadata = client.get_metadata(normalize_path(path))
|
20
21
|
dir_metadata['contents'].each do |content|
|
21
22
|
next unless content['is_dir']
|
22
23
|
yield Pathname.new(content['path'])
|
23
24
|
end
|
24
25
|
end
|
25
26
|
def load(path)
|
26
|
-
client.
|
27
|
+
client.download normalize_path(path)
|
27
28
|
end
|
28
29
|
def save(path, content)
|
29
|
-
client.
|
30
|
+
client.upload normalize_path(path), content
|
30
31
|
end
|
31
32
|
|
32
33
|
private
|
@@ -37,3 +38,5 @@ module Quiver
|
|
37
38
|
end
|
38
39
|
end
|
39
40
|
end
|
41
|
+
|
42
|
+
end # ::DropboxApi
|
data/lib/quiver/adapter/local.rb
CHANGED
File without changes
|
data/lib/quiver/cell.rb
CHANGED
File without changes
|
data/lib/quiver/config.rb
CHANGED
File without changes
|
data/lib/quiver/note.rb
CHANGED
File without changes
|
data/lib/quiver/notebook.rb
CHANGED
File without changes
|
data/lib/quiver/root.rb
CHANGED
File without changes
|
data/lib/quiver_note.rb
CHANGED
File without changes
|
data/lib/quiver_note/version.rb
CHANGED
data/quiver_note.gemspec
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
# coding: utf-8
|
2
2
|
lib = File.expand_path('../lib', __FILE__)
|
3
3
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
-
require '
|
4
|
+
require 'quiver_note/version'
|
5
5
|
|
6
6
|
Gem::Specification.new do |spec|
|
7
7
|
spec.name = "quiver_note"
|
8
8
|
spec.version = Quiver::VERSION
|
9
9
|
spec.authors = ["kuboon"]
|
10
10
|
spec.email = ["kuboon@trick-with.net"]
|
11
|
-
spec.summary = %q{Unofficial ruby interface for [HappenApps quiver](happenapps.com/#quiver)}
|
11
|
+
spec.summary = %q{Unofficial ruby interface for [HappenApps quiver](http://happenapps.com/#quiver)}
|
12
12
|
# spec.description = %q{TODO: Write a longer description. Optional.}
|
13
13
|
spec.homepage = "https://github.com/kuboon/quiver"
|
14
14
|
spec.license = "MIT"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: quiver_note
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- kuboon
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-09-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -95,8 +95,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
95
95
|
version: '0'
|
96
96
|
requirements: []
|
97
97
|
rubyforge_project:
|
98
|
-
rubygems_version: 2.
|
98
|
+
rubygems_version: 2.6.11
|
99
99
|
signing_key:
|
100
100
|
specification_version: 4
|
101
|
-
summary: Unofficial ruby interface for [HappenApps quiver](happenapps.com/#quiver)
|
101
|
+
summary: Unofficial ruby interface for [HappenApps quiver](http://happenapps.com/#quiver)
|
102
102
|
test_files: []
|