paperclip-sftp 1.0.3 → 1.0.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: f8c0887a6e55796ae80296333cf553f624b58518
4
+ data.tar.gz: 2326a32785ce5bd690ba049ac0a9a2f7620c1aa0
5
+ SHA512:
6
+ metadata.gz: 296e9126d09e9cc5f84880810a6967e2d158fe86d2fead4f0698fd17663a7c1044a2ab5a02eb2939df521a3940ca98bc704518cd9a87402f0e7b9c8b5d9fed41
7
+ data.tar.gz: ca0a3fcef0596453b15e28c27356a3fc6a9dd66b15108652c6f53259c35644e689d4353a3ac7369dba19e175ad03cdf05284f81f2394f632fb217803cedb52a5
data/.gitignore CHANGED
@@ -3,7 +3,6 @@
3
3
  .bundle
4
4
  .config
5
5
  .yardoc
6
- Gemfile.lock
7
6
  InstalledFiles
8
7
  _yardoc
9
8
  coverage
data/Gemfile CHANGED
@@ -1,5 +1,9 @@
1
- source 'https://rubygems.org'
1
+ source "https://rubygems.org"
2
2
 
3
3
  gemspec
4
4
 
5
- gem 'rake'
5
+ gem "minitest"
6
+ gem "minitest_should", github: "citrus/minitest_should", ref: "6a91771"
7
+ gem "sqlite3"
8
+ gem "activerecord"
9
+ gem "rake"
@@ -0,0 +1,64 @@
1
+ GIT
2
+ remote: git://github.com/citrus/minitest_should.git
3
+ revision: 6a91771ac4edad877f72317f1166ce90ba37bd40
4
+ ref: 6a91771
5
+ specs:
6
+ minitest_should (0.3.2)
7
+
8
+ PATH
9
+ remote: .
10
+ specs:
11
+ paperclip-sftp (1.0.4)
12
+ net-sftp (>= 2.0.5)
13
+ paperclip (>= 3.2.0)
14
+
15
+ GEM
16
+ remote: https://rubygems.org/
17
+ specs:
18
+ activemodel (4.2.0)
19
+ activesupport (= 4.2.0)
20
+ builder (~> 3.1)
21
+ activerecord (4.2.0)
22
+ activemodel (= 4.2.0)
23
+ activesupport (= 4.2.0)
24
+ arel (~> 6.0)
25
+ activesupport (4.2.0)
26
+ i18n (~> 0.7)
27
+ json (~> 1.7, >= 1.7.7)
28
+ minitest (~> 5.1)
29
+ thread_safe (~> 0.3, >= 0.3.4)
30
+ tzinfo (~> 1.1)
31
+ arel (6.0.0)
32
+ builder (3.2.2)
33
+ climate_control (0.0.3)
34
+ activesupport (>= 3.0)
35
+ cocaine (0.5.5)
36
+ climate_control (>= 0.0.3, < 1.0)
37
+ i18n (0.7.0)
38
+ json (1.8.2)
39
+ mime-types (2.4.3)
40
+ minitest (5.5.1)
41
+ net-sftp (2.1.2)
42
+ net-ssh (>= 2.6.5)
43
+ net-ssh (2.9.2)
44
+ paperclip (4.2.1)
45
+ activemodel (>= 3.0.0)
46
+ activesupport (>= 3.0.0)
47
+ cocaine (~> 0.5.3)
48
+ mime-types
49
+ rake (10.4.2)
50
+ sqlite3 (1.3.10)
51
+ thread_safe (0.3.4)
52
+ tzinfo (1.2.2)
53
+ thread_safe (~> 0.1)
54
+
55
+ PLATFORMS
56
+ ruby
57
+
58
+ DEPENDENCIES
59
+ activerecord
60
+ minitest
61
+ minitest_should!
62
+ paperclip-sftp!
63
+ rake
64
+ sqlite3
data/README.md CHANGED
@@ -1,5 +1,8 @@
1
+ [![Gem
2
+ Version](https://badge.fury.io/rb/paperclip-sftp.png)](http://badge.fury.io/rb/paperclip-sftp)
1
3
  [![Dependency Status](https://gemnasium.com/spectator/paperclip-sftp.png)](https://gemnasium.com/spectator/paperclip-sftp)
2
- [![Code Climate](https://codeclimate.com/badge.png)](https://codeclimate.com/github/spectator/paperclip-sftp)
4
+ [![Code
5
+ Climate](https://codeclimate.com/github/spectator/paperclip-sftp.png)](https://codeclimate.com/github/spectator/paperclip-sftp)
3
6
 
4
7
  Paperclip SFTP
5
8
  ==============
@@ -23,7 +26,8 @@ class User < ActiveRecord::Base
23
26
  sftp_options: {
24
27
  host: "sftp.example.com",
25
28
  user: "user",
26
- password: "password"
29
+ password: "password",
30
+ port: 22
27
31
  }
28
32
  end
29
33
  ```
@@ -5,7 +5,7 @@ module Paperclip
5
5
  module Sftp
6
6
 
7
7
  # SFTP storage expects a hash with following options:
8
- # :host, :user, :password.
8
+ # :host, :user, :password, :port.
9
9
  #
10
10
  def self.extended(base)
11
11
  begin
@@ -26,7 +26,8 @@ module Paperclip
26
26
  @sftp ||= Net::SFTP.start(
27
27
  @sftp_options[:host],
28
28
  @sftp_options[:user],
29
- password: @sftp_options[:password]
29
+ password: @sftp_options[:password],
30
+ port: @sftp_options[:port]
30
31
  )
31
32
  end
32
33
 
@@ -1,5 +1,5 @@
1
1
  module Paperclip
2
2
  module Sftp
3
- VERSION = "1.0.3"
3
+ VERSION = "1.0.4"
4
4
  end
5
5
  end
@@ -19,8 +19,4 @@ Gem::Specification.new do |gem|
19
19
 
20
20
  gem.add_dependency "paperclip", ">= 3.2.0"
21
21
  gem.add_dependency "net-sftp", ">= 2.0.5"
22
-
23
- gem.add_development_dependency "minitest"
24
- gem.add_development_dependency "minitest_should"
25
- gem.add_development_dependency "sqlite3"
26
22
  end
@@ -1,6 +1,6 @@
1
1
  require "test_helper"
2
2
 
3
- class IntegrationTest < MiniTest::Should::TestCase
3
+ class IntegrationTest < Minitest::Should::TestCase
4
4
 
5
5
  setup do
6
6
  @file = fixture_file("ruby.png")
@@ -31,6 +31,8 @@ Paperclip.interpolates(:work_dir) do |attachment, style|
31
31
  File.expand_path(File.join(File.dirname(__FILE__), 'tmp'))
32
32
  end
33
33
 
34
+ ActiveRecord::Base.raise_in_transactional_callbacks = true
35
+
34
36
  class Dummy < ActiveRecord::Base
35
37
  include Paperclip::Glue
36
38
 
@@ -42,4 +44,6 @@ class Dummy < ActiveRecord::Base
42
44
  user: "spectator",
43
45
  password: "password"
44
46
  }
47
+
48
+ do_not_validate_attachment_file_type :avatar
45
49
  end
@@ -1,6 +1,6 @@
1
1
  require "test_helper"
2
2
 
3
- class UnitTest < MiniTest::Should::TestCase
3
+ class UnitTest < Minitest::Should::TestCase
4
4
  setup do
5
5
  @file = fixture_file("ruby.png")
6
6
  end
metadata CHANGED
@@ -1,96 +1,43 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: paperclip-sftp
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
5
- prerelease:
4
+ version: 1.0.4
6
5
  platform: ruby
7
6
  authors:
8
7
  - Yury Velikanau
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-02-21 00:00:00.000000000 Z
11
+ date: 2015-02-25 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: paperclip
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ! '>='
17
+ - - ">="
20
18
  - !ruby/object:Gem::Version
21
19
  version: 3.2.0
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ! '>='
24
+ - - ">="
28
25
  - !ruby/object:Gem::Version
29
26
  version: 3.2.0
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: net-sftp
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ! '>='
31
+ - - ">="
36
32
  - !ruby/object:Gem::Version
37
33
  version: 2.0.5
38
34
  type: :runtime
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
- - - ! '>='
38
+ - - ">="
44
39
  - !ruby/object:Gem::Version
45
40
  version: 2.0.5
46
- - !ruby/object:Gem::Dependency
47
- name: minitest
48
- requirement: !ruby/object:Gem::Requirement
49
- none: false
50
- requirements:
51
- - - ! '>='
52
- - !ruby/object:Gem::Version
53
- version: '0'
54
- type: :development
55
- prerelease: false
56
- version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
- requirements:
59
- - - ! '>='
60
- - !ruby/object:Gem::Version
61
- version: '0'
62
- - !ruby/object:Gem::Dependency
63
- name: minitest_should
64
- requirement: !ruby/object:Gem::Requirement
65
- none: false
66
- requirements:
67
- - - ! '>='
68
- - !ruby/object:Gem::Version
69
- version: '0'
70
- type: :development
71
- prerelease: false
72
- version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
- requirements:
75
- - - ! '>='
76
- - !ruby/object:Gem::Version
77
- version: '0'
78
- - !ruby/object:Gem::Dependency
79
- name: sqlite3
80
- requirement: !ruby/object:Gem::Requirement
81
- none: false
82
- requirements:
83
- - - ! '>='
84
- - !ruby/object:Gem::Version
85
- version: '0'
86
- type: :development
87
- prerelease: false
88
- version_requirements: !ruby/object:Gem::Requirement
89
- none: false
90
- requirements:
91
- - - ! '>='
92
- - !ruby/object:Gem::Version
93
- version: '0'
94
41
  description: SFTP (Secure File Transfer Protocol) storage for Paperclip.
95
42
  email:
96
43
  - yury.velikanau@gmail.com
@@ -98,8 +45,9 @@ executables: []
98
45
  extensions: []
99
46
  extra_rdoc_files: []
100
47
  files:
101
- - .gitignore
48
+ - ".gitignore"
102
49
  - Gemfile
50
+ - Gemfile.lock
103
51
  - LICENSE
104
52
  - README.md
105
53
  - Rakefile
@@ -113,31 +61,29 @@ files:
113
61
  - test/unit_test.rb
114
62
  homepage: https://github.com/spectator/paperclip-sftp
115
63
  licenses: []
64
+ metadata: {}
116
65
  post_install_message:
117
66
  rdoc_options: []
118
67
  require_paths:
119
68
  - lib
120
69
  required_ruby_version: !ruby/object:Gem::Requirement
121
- none: false
122
70
  requirements:
123
- - - ! '>='
71
+ - - ">="
124
72
  - !ruby/object:Gem::Version
125
73
  version: 1.9.2
126
74
  required_rubygems_version: !ruby/object:Gem::Requirement
127
- none: false
128
75
  requirements:
129
- - - ! '>='
76
+ - - ">="
130
77
  - !ruby/object:Gem::Version
131
78
  version: '0'
132
79
  requirements: []
133
80
  rubyforge_project:
134
- rubygems_version: 1.8.25
81
+ rubygems_version: 2.2.2
135
82
  signing_key:
136
- specification_version: 3
83
+ specification_version: 4
137
84
  summary: SFTP (Secure File Transfer Protocol) storage for Paperclip.
138
85
  test_files:
139
86
  - test/fixtures/ruby.png
140
87
  - test/integration_test.rb
141
88
  - test/test_helper.rb
142
89
  - test/unit_test.rb
143
- has_rdoc: