active-storage-ftp 0.1.3 → 0.1.4

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
  SHA256:
3
- metadata.gz: 51c0c18d64d6fc45c576eb7322a3a6e83ce479b414dc9a33b6495869e21d7e2c
4
- data.tar.gz: 4989199076218c6484451cfceffe361e2cabdecd06940dce1b9249c3dbc07e2a
3
+ metadata.gz: 9d5d8937e183615a42c60449ca4238e8f3a193da2399c0428b808b2fe341c089
4
+ data.tar.gz: 83f9e7f89c065abace054424de941cf607dc760bf84b78c672cc3be2b013d4a7
5
5
  SHA512:
6
- metadata.gz: 84273dbb248ba0e9da48cd5991472a4050584862ed74957a602ad7e093b4f4206660824de537900fc75432347f8f7ff4bf2ae7f624a176c6dda43e9897bcf2b1
7
- data.tar.gz: 5f00a418c46b1d3b272f3f4a3e4fb91f2cc9e6f42eb5c806b095658053ec2e9208c302a9b0dde9c2c77a66a999b3eaade4b5d374646b497b885be6df21938edd
6
+ metadata.gz: ab9a01d0e8a92475bafa3d2a594ee1edf364ec2782e2f98cc0dfdf0a1140bcf8512136bfee01f025d31dadd6b014d787c363cf8fdc7768bf6c322b78acdb8038
7
+ data.tar.gz: d54b04890fe879d7a7bce31862360097b008fe05a84f8884ab1ef220bde225ff032764e59b406426e3c8abc5d4e0f822b85905110728852d61accf0d3bbb3003
@@ -0,0 +1,26 @@
1
+ version: 2
2
+
3
+ .build_template: &build_definition
4
+ steps:
5
+ - checkout
6
+ - run:
7
+ name: Bundle version
8
+ command: gem install bundler
9
+ - run:
10
+ name: Bundle Install
11
+ command: bundle check || bundle install
12
+ - run:
13
+ name: Run tests
14
+ command: |
15
+ bundle exec rspec
16
+ working_directory: ~/app
17
+ jobs:
18
+ build_ruby2_5:
19
+ <<: *build_definition
20
+ docker:
21
+ - image: ruby:2.5
22
+ workflows:
23
+ version: 2
24
+ build_ruby_versions:
25
+ jobs:
26
+ - build_ruby2_5
data/Gemfile.lock CHANGED
@@ -1,12 +1,65 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- active-storage-ftp (0.1.3)
4
+ active-storage-ftp (0.1.4)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
8
8
  specs:
9
+ actionpack (5.2.3)
10
+ actionview (= 5.2.3)
11
+ activesupport (= 5.2.3)
12
+ rack (~> 2.0)
13
+ rack-test (>= 0.6.3)
14
+ rails-dom-testing (~> 2.0)
15
+ rails-html-sanitizer (~> 1.0, >= 1.0.2)
16
+ actionview (5.2.3)
17
+ activesupport (= 5.2.3)
18
+ builder (~> 3.1)
19
+ erubi (~> 1.4)
20
+ rails-dom-testing (~> 2.0)
21
+ rails-html-sanitizer (~> 1.0, >= 1.0.3)
22
+ activemodel (5.2.3)
23
+ activesupport (= 5.2.3)
24
+ activerecord (5.2.3)
25
+ activemodel (= 5.2.3)
26
+ activesupport (= 5.2.3)
27
+ arel (>= 9.0)
28
+ activestorage (5.2.3)
29
+ actionpack (= 5.2.3)
30
+ activerecord (= 5.2.3)
31
+ marcel (~> 0.3.1)
32
+ activesupport (5.2.3)
33
+ concurrent-ruby (~> 1.0, >= 1.0.2)
34
+ i18n (>= 0.7, < 2)
35
+ minitest (~> 5.1)
36
+ tzinfo (~> 1.1)
37
+ arel (9.0.0)
38
+ builder (3.2.3)
39
+ concurrent-ruby (1.1.5)
40
+ crass (1.0.4)
9
41
  diff-lcs (1.3)
42
+ erubi (1.8.0)
43
+ i18n (1.6.0)
44
+ concurrent-ruby (~> 1.0)
45
+ loofah (2.2.3)
46
+ crass (~> 1.0.2)
47
+ nokogiri (>= 1.5.9)
48
+ marcel (0.3.3)
49
+ mimemagic (~> 0.3.2)
50
+ mimemagic (0.3.3)
51
+ mini_portile2 (2.4.0)
52
+ minitest (5.11.3)
53
+ nokogiri (1.10.3)
54
+ mini_portile2 (~> 2.4.0)
55
+ rack (2.0.7)
56
+ rack-test (1.1.0)
57
+ rack (>= 1.0, < 3)
58
+ rails-dom-testing (2.0.3)
59
+ activesupport (>= 4.2.0)
60
+ nokogiri (>= 1.6)
61
+ rails-html-sanitizer (1.0.4)
62
+ loofah (~> 2.2, >= 2.2.2)
10
63
  rake (10.5.0)
11
64
  rspec (3.8.0)
12
65
  rspec-core (~> 3.8.0)
@@ -21,12 +74,16 @@ GEM
21
74
  diff-lcs (>= 1.2.0, < 2.0)
22
75
  rspec-support (~> 3.8.0)
23
76
  rspec-support (3.8.0)
77
+ thread_safe (0.3.6)
78
+ tzinfo (1.2.5)
79
+ thread_safe (~> 0.1)
24
80
 
25
81
  PLATFORMS
26
82
  ruby
27
83
 
28
84
  DEPENDENCIES
29
85
  active-storage-ftp!
86
+ activestorage (> 5.0)
30
87
  bundler (~> 2.0)
31
88
  rake (~> 10.0)
32
89
  rspec (~> 3.0)
data/README.md CHANGED
@@ -2,6 +2,11 @@
2
2
 
3
3
  Active Storage FTP Service, This project only support FTP service not SSH
4
4
 
5
+ [![Build Status](https://travis-ci.org/iscreen/active-storage-ftp.svg)](https://travis-ci.org/iscreen/active-storage-ftp)
6
+ [![CircleCI](https://circleci.com/gh/iscreen/active-storage-ftp.svg?style=svg)](https://circleci.com/gh/iscreen/active-storage-ftp)
7
+ [![Gem Version](https://badge.fury.io/rb/active-storage-ftp.svg)](https://badge.fury.io/rb/active-storage-ftp)
8
+
9
+
5
10
  ## Installation
6
11
 
7
12
  Add this line to your application's Gemfile:
@@ -11,7 +11,7 @@ Gem::Specification.new do |spec|
11
11
 
12
12
  spec.summary = %q{Active Storage FTP Service.}
13
13
  spec.description = %q{Active Storage FTP Service.}
14
- spec.homepage = 'https://api.genbagames.com/doc/'
14
+ spec.homepage = 'https://github.com/iscreen/active-storage-ftp'
15
15
 
16
16
  # Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
17
17
  # to allow pushing to a single host or delete this section to allow pushing to any host.
@@ -35,5 +35,6 @@ Gem::Specification.new do |spec|
35
35
 
36
36
  spec.add_development_dependency 'bundler', '~> 2.0'
37
37
  spec.add_development_dependency 'rake', '~> 10.0'
38
+ spec.add_development_dependency 'activestorage', '> 5.0'
38
39
  spec.add_development_dependency 'rspec', '~> 3.0'
39
40
  end
@@ -25,8 +25,6 @@ module ActiveStorage
25
25
  result += data
26
26
  end
27
27
  result
28
- rescue StandardError => _
29
- raise ActiveStorage::FileNotFoundError
30
28
  end
31
29
  end
32
30
  end
@@ -46,8 +44,6 @@ module ActiveStorage
46
44
  offset += data
47
45
  end
48
46
  end
49
- rescue StandardError => _
50
- raise ActiveStorage::FileNotFoundError
51
47
  end
52
48
  end
53
49
 
@@ -1,4 +1,7 @@
1
1
  require 'net/ftp'
2
+ require 'active_support/all'
3
+ require 'active_storage'
4
+
2
5
  require 'active_storage/service/ftp_service'
3
6
  require 'active_storage_ftp/enhance_ftp'
4
7
 
@@ -1,3 +1,3 @@
1
1
  module ActiveStorageFtp
2
- VERSION = '0.1.3'
2
+ VERSION = '0.1.4'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active-storage-ftp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dean Lin
@@ -38,6 +38,20 @@ dependencies:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '10.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: activestorage
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">"
46
+ - !ruby/object:Gem::Version
47
+ version: '5.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">"
53
+ - !ruby/object:Gem::Version
54
+ version: '5.0'
41
55
  - !ruby/object:Gem::Dependency
42
56
  name: rspec
43
57
  requirement: !ruby/object:Gem::Requirement
@@ -59,6 +73,7 @@ executables: []
59
73
  extensions: []
60
74
  extra_rdoc_files: []
61
75
  files:
76
+ - ".circleci/config.yml"
62
77
  - ".gitignore"
63
78
  - ".rspec"
64
79
  - ".travis.yml"
@@ -74,11 +89,11 @@ files:
74
89
  - lib/active_storage_ftp.rb
75
90
  - lib/active_storage_ftp/enhance_ftp.rb
76
91
  - lib/active_storage_ftp/version.rb
77
- homepage: https://api.genbagames.com/doc/
92
+ homepage: https://github.com/iscreen/active-storage-ftp
78
93
  licenses: []
79
94
  metadata:
80
95
  allowed_push_host": https://rubygems.org
81
- homepage_uri: https://api.genbagames.com/doc/
96
+ homepage_uri: https://github.com/iscreen/active-storage-ftp
82
97
  post_install_message:
83
98
  rdoc_options: []
84
99
  require_paths: