shrine-scp 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d218a5be95309cbb6cf56dc828aa398846fc1c6a
4
- data.tar.gz: f77ec8bedb9ef89fd565e36a587b111a2ef31772
3
+ metadata.gz: 70ecf3e156aad4d75077c2b7ff7cdfbc5a7471bc
4
+ data.tar.gz: 32de5acb75d4bb7452f5b418ec98a77bf6e52cd3
5
5
  SHA512:
6
- metadata.gz: 5638954e75ee62d8a60e76c0bba774d040ec8ff52c70d5822072f7b3e7a93ff2b076a2a52f742daec3ea48faa9a4e0727515419885daf1f2495b9ecb6b16a031
7
- data.tar.gz: 63c615b69f7fc458ad27d01d3745eede7619c3729cc5abd9795f314cabe45c4850d5cbe5a1893e5fa3e7e6b4febb0a40dbac3544f6807d0f3ff571414bd1f43d
6
+ metadata.gz: 7662932db57342210901dbd7e7cbd5512eec915e97c59294ce34636f6d91329131f724850063160dcec0d8f95935aa4409cbbf91a435776f592f049255df9ed6
7
+ data.tar.gz: 589ab674fc092795cc07701e7a65ec36bffd6ced5fe7fa945560576f052c2bea4980d7c3ba240aad94ff5760f3376ee0bfa7fb19f9164bd591655c418e357732
data/README.md CHANGED
@@ -1,4 +1,6 @@
1
1
  # Shrine::Scp
2
+ [![Build Status](https://travis-ci.org/jordanandree/shrine-scp.svg?branch=master)](https://travis-ci.org/jordanandree/shrine-scp)
3
+ [![Dependency Status](https://gemnasium.com/badges/github.com/jordanandree/shrine-scp.svg)](https://gemnasium.com/github.com/jordanandree/shrine-scp)
2
4
 
3
5
  Scp storage plugin for Shrine attachment and upload toolkit
4
6
 
@@ -96,6 +96,7 @@ class Shrine
96
96
 
97
97
  def scp_down(id)
98
98
  source = path(id)
99
+ source = "#{ssh_host}:#{source}" if ssh_host
99
100
  tmp = tempfile!(id)
100
101
 
101
102
  tmp if scp_transfer(source: source, destination: tmp.path)
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = "shrine-scp"
7
- spec.version = "0.1.0"
7
+ spec.version = "0.1.1"
8
8
  spec.authors = ["jordanandree"]
9
9
  spec.email = ["jordanandree@gmail.com"]
10
10
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shrine-scp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - jordanandree
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-09-23 00:00:00.000000000 Z
11
+ date: 2016-10-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: shrine