quiver_note 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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c30b26a3fe0b06edd081d926cb6719aa14ada650
4
- data.tar.gz: 1b730381f5ded41ccb80dc99c936b72f218f57ed
3
+ metadata.gz: fad8440b224b95c00dbacf4c2deac100aac75243
4
+ data.tar.gz: 3f0d541e199d22a1bdcf39ba1bc9b35bcee27930
5
5
  SHA512:
6
- metadata.gz: 7fbb9c767f83b463bcef7c9d40fd7f5ee7e3ce646f999e9bd10898f89613557466cae81f316f501c6081107f97e2f0747c597a2be087a4cdbd539547f8ffc97c
7
- data.tar.gz: 1fcf78f055d424adb906afb93e06bc273622278852342b4c0cac96f5d8b8dc92d0ba9394de5e85f0ec5b966e03c7323155dcf2ef16308867d7a8e3763a26598c
6
+ metadata.gz: d1d7f9ab4b7963208701f086363a71944ff9044e81bab0080b5c9b367d541555107a084a501adf88c8f5a19948f858912db6736645f5ecc911e2c280d62f808f
7
+ data.tar.gz: 11630c85924bf322febef734a21e5c3cc08d74d37995512d6bede660ae68cb1b94d8f963dc6bf6ba7de401e6ff6a5c0a7be25c3744cfaf29c550239ae42b3a01
data/.gitignore CHANGED
File without changes
data/Gemfile CHANGED
File without changes
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 'quiver'
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 quiver
19
+ $ gem install quiver_note
20
20
 
21
21
  ## Usage
22
22
 
data/Rakefile CHANGED
File without changes
File without changes
@@ -1,4 +1,5 @@
1
- require 'dropbox_sdk'
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 ||= ::DropboxClient.new(@access_key)
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.media(normalize_path(path))['url']
17
+ @@image_url_cache[path] ||= client.get_temporary_link(normalize_path(path))
17
18
  end
18
19
  def each(path)
19
- dir_metadata = client.metadata(normalize_path(path))
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.get_file normalize_path(path)
27
+ client.download normalize_path(path)
27
28
  end
28
29
  def save(path, content)
29
- client.put_file normalize_path(path), content
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
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -1,3 +1,3 @@
1
1
  module Quiver
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
@@ -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 'quiver/version'
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.5
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: 2016-08-11 00:00:00.000000000 Z
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.4.5.1
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: []