photocopier 1.1.3 → 1.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +47 -0
- data/.travis.yml +3 -2
- data/README.md +2 -2
- data/Rakefile +5 -5
- data/lib/photocopier/version.rb +3 -1
- data/photocopier.gemspec +5 -6
- metadata +37 -36
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7acf98b9b3a7861017f1db6fb4eb13638387a7c7
|
4
|
+
data.tar.gz: 596b73b6e53f4d31e4e7b95722b7e0306b239014
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dea46a35116f91cf6c819185949b8092540f10432984e21a277886b990ec247712b24d023b611d7dbf8780ff98a3ed1d02a4d1a2d3ac40115bb9fb7621b8dc1b
|
7
|
+
data.tar.gz: e99130e1ff1914c232b264dc6c3479a972aeefb9e7c1d8f624598e77aca2ad4231572773da3872b07576341d9687222ec852bd95d5d69b638e5e1f5f3594f5e0
|
data/.rubocop.yml
ADDED
@@ -0,0 +1,47 @@
|
|
1
|
+
Rails:
|
2
|
+
Enabled: false
|
3
|
+
|
4
|
+
Rails/Output:
|
5
|
+
Enabled: false
|
6
|
+
|
7
|
+
AllCops:
|
8
|
+
TargetRubyVersion: 2.4
|
9
|
+
DisplayCopNames: true
|
10
|
+
DisplayStyleGuide: true
|
11
|
+
|
12
|
+
Exclude:
|
13
|
+
- 'bin/*'
|
14
|
+
|
15
|
+
Metrics/LineLength:
|
16
|
+
Max: 100
|
17
|
+
|
18
|
+
Metrics/MethodLength:
|
19
|
+
Max: 20
|
20
|
+
|
21
|
+
Metrics/ClassLength:
|
22
|
+
Max: 200
|
23
|
+
|
24
|
+
Metrics/BlockLength:
|
25
|
+
Exclude:
|
26
|
+
- 'spec/**/*_spec.rb'
|
27
|
+
- 'spec/factories/*.rb'
|
28
|
+
- '*.gemspec'
|
29
|
+
|
30
|
+
Metrics/CyclomaticComplexity:
|
31
|
+
Max: 10
|
32
|
+
|
33
|
+
Metrics/PerceivedComplexity:
|
34
|
+
Max: 10
|
35
|
+
|
36
|
+
Style/StringLiterals:
|
37
|
+
Enabled: false
|
38
|
+
EnforcedStyle: double_quotes
|
39
|
+
|
40
|
+
Style/Documentation:
|
41
|
+
Enabled: false
|
42
|
+
|
43
|
+
Style/FrozenStringLiteralComment:
|
44
|
+
Enabled: false
|
45
|
+
|
46
|
+
Metrics/AbcSize:
|
47
|
+
Max: 40
|
data/.travis.yml
CHANGED
data/README.md
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
Photocopier provides handy FTP/SSH adapters to abstract away file and directory copying.
|
4
4
|
To move directories to/from the remote server, it wraps efficient tools like lftp and rsync.
|
5
5
|
|
6
|
-
[![Build Status](https://travis-ci.org/welaika/photocopier.
|
6
|
+
[![Build Status](https://travis-ci.org/welaika/photocopier.svg?branch=master)](https://travis-ci.org/welaika/photocopier)
|
7
7
|
|
8
8
|
## Installation
|
9
9
|
|
@@ -57,7 +57,7 @@ The very same commands are valid for the `Photocopier::FTP` adapter.
|
|
57
57
|
|
58
58
|
## FTP
|
59
59
|
|
60
|
-
`Photocopier::FTP.new` accepts the following parameters
|
60
|
+
`Photocopier::FTP.new` accepts the following parameters
|
61
61
|
|
62
62
|
```ruby
|
63
63
|
{
|
data/Rakefile
CHANGED
@@ -1,8 +1,8 @@
|
|
1
|
-
#!/usr/bin/env rake
|
2
|
-
|
3
1
|
require "bundler/gem_tasks"
|
4
|
-
require
|
2
|
+
require "rspec/core/rake_task"
|
3
|
+
# require 'rubocop/rake_task'
|
5
4
|
|
6
5
|
RSpec::Core::RakeTask.new(:spec)
|
7
|
-
task :
|
8
|
-
|
6
|
+
task default: :spec
|
7
|
+
# RuboCop::RakeTask.new(:rubocop)
|
8
|
+
# task default: :rubocop
|
data/lib/photocopier/version.rb
CHANGED
data/photocopier.gemspec
CHANGED
@@ -1,4 +1,3 @@
|
|
1
|
-
# coding: utf-8
|
2
1
|
lib = File.expand_path('../lib', __FILE__)
|
3
2
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
3
|
require "photocopier/version"
|
@@ -9,8 +8,8 @@ Gem::Specification.new do |spec|
|
|
9
8
|
spec.authors = ["Stefano Verna", "Ju Liu", "Fabrizio Monti"]
|
10
9
|
spec.email = ["stefano.verna@welaika.com", "ju.liu@welaika.com", "fabrizio.monti@welaika.com"]
|
11
10
|
|
12
|
-
spec.summary =
|
13
|
-
spec.description =
|
11
|
+
spec.summary = 'Photocopier provides FTP/SSH adapters to abstract away file and directory copying.'
|
12
|
+
spec.description = 'Photocopier provides FTP/SSH adapters to abstract away file and directory copying.'
|
14
13
|
spec.homepage = "https://github.com/welaika/photocopier"
|
15
14
|
spec.license = "MIT"
|
16
15
|
|
@@ -19,16 +18,16 @@ Gem::Specification.new do |spec|
|
|
19
18
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
20
19
|
spec.require_paths = ["lib"]
|
21
20
|
|
22
|
-
spec.required_ruby_version = "
|
21
|
+
spec.required_ruby_version = ">= 2.4.0"
|
23
22
|
|
24
23
|
spec.add_dependency "activesupport", '~> 5.1', '>= 5.1.1'
|
25
|
-
spec.add_dependency "net-ssh", "~> 4.1"
|
26
24
|
spec.add_dependency "net-scp", "~> 1.2", ">= 1.2.1"
|
25
|
+
spec.add_dependency "net-ssh", "~> 4.1"
|
27
26
|
spec.add_dependency "net-ssh-gateway", "~> 2.0"
|
28
27
|
|
29
28
|
spec.add_development_dependency "bundler", "~> 1.14", '>= 1.14.6'
|
29
|
+
spec.add_development_dependency "pry-byebug", "~> 3.4", '>= 3.4.2'
|
30
30
|
spec.add_development_dependency "rake", "~> 12.0"
|
31
31
|
spec.add_development_dependency "rspec", "~> 3.6"
|
32
32
|
spec.add_development_dependency "simplecov", "~> 0.14", '>= 0.14.1'
|
33
|
-
spec.add_development_dependency "pry-byebug", "~> 3.4", '>= 3.4.2'
|
34
33
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: photocopier
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stefano Verna
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: exe
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2018-02-14 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: activesupport
|
@@ -33,39 +33,39 @@ dependencies:
|
|
33
33
|
- !ruby/object:Gem::Version
|
34
34
|
version: 5.1.1
|
35
35
|
- !ruby/object:Gem::Dependency
|
36
|
-
name: net-
|
36
|
+
name: net-scp
|
37
37
|
requirement: !ruby/object:Gem::Requirement
|
38
38
|
requirements:
|
39
39
|
- - "~>"
|
40
40
|
- !ruby/object:Gem::Version
|
41
|
-
version: '
|
41
|
+
version: '1.2'
|
42
|
+
- - ">="
|
43
|
+
- !ruby/object:Gem::Version
|
44
|
+
version: 1.2.1
|
42
45
|
type: :runtime
|
43
46
|
prerelease: false
|
44
47
|
version_requirements: !ruby/object:Gem::Requirement
|
45
48
|
requirements:
|
46
49
|
- - "~>"
|
47
50
|
- !ruby/object:Gem::Version
|
48
|
-
version: '
|
51
|
+
version: '1.2'
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 1.2.1
|
49
55
|
- !ruby/object:Gem::Dependency
|
50
|
-
name: net-
|
56
|
+
name: net-ssh
|
51
57
|
requirement: !ruby/object:Gem::Requirement
|
52
58
|
requirements:
|
53
59
|
- - "~>"
|
54
60
|
- !ruby/object:Gem::Version
|
55
|
-
version: '1
|
56
|
-
- - ">="
|
57
|
-
- !ruby/object:Gem::Version
|
58
|
-
version: 1.2.1
|
61
|
+
version: '4.1'
|
59
62
|
type: :runtime
|
60
63
|
prerelease: false
|
61
64
|
version_requirements: !ruby/object:Gem::Requirement
|
62
65
|
requirements:
|
63
66
|
- - "~>"
|
64
67
|
- !ruby/object:Gem::Version
|
65
|
-
version: '1
|
66
|
-
- - ">="
|
67
|
-
- !ruby/object:Gem::Version
|
68
|
-
version: 1.2.1
|
68
|
+
version: '4.1'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: net-ssh-gateway
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -101,73 +101,73 @@ dependencies:
|
|
101
101
|
- !ruby/object:Gem::Version
|
102
102
|
version: 1.14.6
|
103
103
|
- !ruby/object:Gem::Dependency
|
104
|
-
name:
|
104
|
+
name: pry-byebug
|
105
105
|
requirement: !ruby/object:Gem::Requirement
|
106
106
|
requirements:
|
107
107
|
- - "~>"
|
108
108
|
- !ruby/object:Gem::Version
|
109
|
-
version: '
|
109
|
+
version: '3.4'
|
110
|
+
- - ">="
|
111
|
+
- !ruby/object:Gem::Version
|
112
|
+
version: 3.4.2
|
110
113
|
type: :development
|
111
114
|
prerelease: false
|
112
115
|
version_requirements: !ruby/object:Gem::Requirement
|
113
116
|
requirements:
|
114
117
|
- - "~>"
|
115
118
|
- !ruby/object:Gem::Version
|
116
|
-
version: '
|
119
|
+
version: '3.4'
|
120
|
+
- - ">="
|
121
|
+
- !ruby/object:Gem::Version
|
122
|
+
version: 3.4.2
|
117
123
|
- !ruby/object:Gem::Dependency
|
118
|
-
name:
|
124
|
+
name: rake
|
119
125
|
requirement: !ruby/object:Gem::Requirement
|
120
126
|
requirements:
|
121
127
|
- - "~>"
|
122
128
|
- !ruby/object:Gem::Version
|
123
|
-
version: '
|
129
|
+
version: '12.0'
|
124
130
|
type: :development
|
125
131
|
prerelease: false
|
126
132
|
version_requirements: !ruby/object:Gem::Requirement
|
127
133
|
requirements:
|
128
134
|
- - "~>"
|
129
135
|
- !ruby/object:Gem::Version
|
130
|
-
version: '
|
136
|
+
version: '12.0'
|
131
137
|
- !ruby/object:Gem::Dependency
|
132
|
-
name:
|
138
|
+
name: rspec
|
133
139
|
requirement: !ruby/object:Gem::Requirement
|
134
140
|
requirements:
|
135
141
|
- - "~>"
|
136
142
|
- !ruby/object:Gem::Version
|
137
|
-
version: '
|
138
|
-
- - ">="
|
139
|
-
- !ruby/object:Gem::Version
|
140
|
-
version: 0.14.1
|
143
|
+
version: '3.6'
|
141
144
|
type: :development
|
142
145
|
prerelease: false
|
143
146
|
version_requirements: !ruby/object:Gem::Requirement
|
144
147
|
requirements:
|
145
148
|
- - "~>"
|
146
149
|
- !ruby/object:Gem::Version
|
147
|
-
version: '
|
148
|
-
- - ">="
|
149
|
-
- !ruby/object:Gem::Version
|
150
|
-
version: 0.14.1
|
150
|
+
version: '3.6'
|
151
151
|
- !ruby/object:Gem::Dependency
|
152
|
-
name:
|
152
|
+
name: simplecov
|
153
153
|
requirement: !ruby/object:Gem::Requirement
|
154
154
|
requirements:
|
155
155
|
- - "~>"
|
156
156
|
- !ruby/object:Gem::Version
|
157
|
-
version: '
|
157
|
+
version: '0.14'
|
158
158
|
- - ">="
|
159
159
|
- !ruby/object:Gem::Version
|
160
|
-
version:
|
160
|
+
version: 0.14.1
|
161
161
|
type: :development
|
162
162
|
prerelease: false
|
163
163
|
version_requirements: !ruby/object:Gem::Requirement
|
164
164
|
requirements:
|
165
165
|
- - "~>"
|
166
166
|
- !ruby/object:Gem::Version
|
167
|
-
version: '
|
167
|
+
version: '0.14'
|
168
168
|
- - ">="
|
169
169
|
- !ruby/object:Gem::Version
|
170
|
-
version:
|
170
|
+
version: 0.14.1
|
171
171
|
description: Photocopier provides FTP/SSH adapters to abstract away file and directory
|
172
172
|
copying.
|
173
173
|
email:
|
@@ -180,6 +180,7 @@ extra_rdoc_files: []
|
|
180
180
|
files:
|
181
181
|
- ".gitignore"
|
182
182
|
- ".rspec"
|
183
|
+
- ".rubocop.yml"
|
183
184
|
- ".ruby-gemset"
|
184
185
|
- ".ruby-version"
|
185
186
|
- ".travis.yml"
|
@@ -215,9 +216,9 @@ require_paths:
|
|
215
216
|
- lib
|
216
217
|
required_ruby_version: !ruby/object:Gem::Requirement
|
217
218
|
requirements:
|
218
|
-
- - "
|
219
|
+
- - ">="
|
219
220
|
- !ruby/object:Gem::Version
|
220
|
-
version:
|
221
|
+
version: 2.4.0
|
221
222
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
222
223
|
requirements:
|
223
224
|
- - ">="
|