xftp-rails 0.2.1.pre.alpha

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 0383c74898411e3de2cd25ac1117d5d4508da39d
4
+ data.tar.gz: 33c2f208e7249721dfcce181fa2f2e8c33500b1b
5
+ SHA512:
6
+ metadata.gz: dd54dc6648e90c4763eadcc7c7d28330f5f7586c0aff10f733718022858f774c00f60ccdd916f1ad582830ab3d70b80adccba8a9f1693bd914f0f98d3a4958f3
7
+ data.tar.gz: ede25f83d8c6f7014fc772c87962b087ee341d2915eb84d5600642b169fd53ed64dca6bf75c4db219adbd6f1e42e348134d0b2ef79f02f3f728edcc65fe398e9
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2015 Vasiliy Yorkin
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,41 @@
1
+ # Xftp::Rails
2
+
3
+ Rails generator for xftp gem
4
+
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ ```ruby
10
+ gem 'xftp-rails'
11
+ ```
12
+
13
+ And then execute:
14
+
15
+ $ bundle
16
+
17
+ Or install it yourself as:
18
+
19
+ $ gem install xftp-rails
20
+
21
+ ## Usage
22
+
23
+ To generate xftp initializer file run:
24
+
25
+ ```
26
+ $ rails g xftp:install
27
+ ```
28
+
29
+ ## Development
30
+
31
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `bin/console` for an interactive prompt that will allow you to experiment.
32
+
33
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release` to create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
34
+
35
+ ## Contributing
36
+
37
+ 1. Fork it ( https://github.com/[my-github-username]/xftp-rails/fork )
38
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
39
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
40
+ 4. Push to the branch (`git push origin my-new-feature`)
41
+ 5. Create a new Pull Request
@@ -0,0 +1,2 @@
1
+ Description:
2
+ Generates an initializer
@@ -0,0 +1,20 @@
1
+ require 'rails/generators'
2
+
3
+ # HACK: I use camel case notation here,
4
+ # because otherwise the resulting name that displayed
5
+ # when running `rails g` will be x_f_t_p
6
+
7
+ module Xftp
8
+ module Generators
9
+ # @api private
10
+ class InstallGenerator < ::Rails::Generators::Base
11
+ def self.source_root
12
+ @source_root ||= File.expand_path('../templates', __FILE__)
13
+ end
14
+
15
+ def create_initializer_file
16
+ template 'initializer.rb', File.join('config', 'initializers', 'xftp.rb')
17
+ end
18
+ end
19
+ end
20
+ end
@@ -0,0 +1,30 @@
1
+ XFTP.configure do |config|
2
+ # Logging configuration
3
+ #
4
+ # Default logger fallbacks to `Rails.logger` if available, otherwise `STDERR` will be used.
5
+ #
6
+ # config.logging = {
7
+ # :logger => defined?(Rails) ? Rails.logger : Logger.new(STDERR),
8
+ # :verbose => false,
9
+ # :colorize => true
10
+ # }
11
+
12
+ # FTP connection settings
13
+ #
14
+ # config.ftp = {
15
+ # binary: true,
16
+ # passive: true,
17
+ # debug_mode: false,
18
+ # open_timeout: nil,
19
+ # resume: false
20
+ # }
21
+
22
+ # SSH (SFTP) connection settings
23
+ #
24
+ # config.ssh = {
25
+ # keepalive: true,
26
+ # keepalive_interval: 30,
27
+ # forward_agent: true,
28
+ # verbose: :error
29
+ # }
30
+ end
data/lib/xftp/rails.rb ADDED
@@ -0,0 +1 @@
1
+ require 'xftp/rails/version'
@@ -0,0 +1,13 @@
1
+ module XFTP
2
+ module Rails
3
+ module VERSION
4
+ MAJOR = 0
5
+ MINOR = 2
6
+ PATCH = 1
7
+ SUFFIX = 'alpha'
8
+
9
+ NUMBER = [MAJOR, MINOR, PATCH].compact.join('.')
10
+ STRING = "#{NUMBER}-#{SUFFIX}"
11
+ end
12
+ end
13
+ end
metadata ADDED
@@ -0,0 +1,114 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: xftp-rails
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.2.1.pre.alpha
5
+ platform: ruby
6
+ authors:
7
+ - Vasiliy Yorkin
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2015-04-25 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.8'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.8'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '10.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '10.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rails
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '3.2'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '3.2'
55
+ - !ruby/object:Gem::Dependency
56
+ name: xftp
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: 0.2.a
62
+ - - "<"
63
+ - !ruby/object:Gem::Version
64
+ version: '0.3'
65
+ type: :runtime
66
+ prerelease: false
67
+ version_requirements: !ruby/object:Gem::Requirement
68
+ requirements:
69
+ - - ">="
70
+ - !ruby/object:Gem::Version
71
+ version: 0.2.a
72
+ - - "<"
73
+ - !ruby/object:Gem::Version
74
+ version: '0.3'
75
+ description: Unified interface for ftp/sftp to be used with Rails 3.x
76
+ email:
77
+ - vasiliy.yorkin@gmail.com
78
+ executables: []
79
+ extensions: []
80
+ extra_rdoc_files: []
81
+ files:
82
+ - LICENSE.txt
83
+ - README.md
84
+ - lib/generators/xftp/install/USAGE
85
+ - lib/generators/xftp/install/install_generator.rb
86
+ - lib/generators/xftp/install/templates/initializer.rb
87
+ - lib/xftp/rails.rb
88
+ - lib/xftp/rails/version.rb
89
+ homepage: https://github.com/vyorkin/xftp-rails
90
+ licenses:
91
+ - MIT
92
+ metadata: {}
93
+ post_install_message:
94
+ rdoc_options: []
95
+ require_paths:
96
+ - lib
97
+ required_ruby_version: !ruby/object:Gem::Requirement
98
+ requirements:
99
+ - - ">="
100
+ - !ruby/object:Gem::Version
101
+ version: '0'
102
+ required_rubygems_version: !ruby/object:Gem::Requirement
103
+ requirements:
104
+ - - ">"
105
+ - !ruby/object:Gem::Version
106
+ version: 1.3.1
107
+ requirements: []
108
+ rubyforge_project:
109
+ rubygems_version: 2.2.2
110
+ signing_key:
111
+ specification_version: 4
112
+ summary: xftp-rails-0.2.1-alpha
113
+ test_files: []
114
+ has_rdoc: