ssh2http 0.0.1

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: d974d8dc9bc699f7f9901a2ea7acb03598408bd2
4
+ data.tar.gz: 21ca41ff81d373212eb1620dd01695cde286036c
5
+ SHA512:
6
+ metadata.gz: 22a8012570674b907b4d751cc6d4d2fee0fc0a075ceb620bcbd2b9b1a526c782bf41ab1000ac7d37bd89b864d411f6cd25aaa27e909daecc1569ec1a05cff162
7
+ data.tar.gz: 9b17fafe3cbdaf6e7cf01b68b9ad4a7a096e8dd07b03dd815c777c104dcee53894d939d8ddca3f79dae89bebe7f378abb5f1c216655eb7aea2ea114d8b804e7b
data/.gitignore ADDED
@@ -0,0 +1,10 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
10
+ *.gem
data/.rspec ADDED
@@ -0,0 +1,2 @@
1
+ --format documentation
2
+ --color
data/.travis.yml ADDED
@@ -0,0 +1,4 @@
1
+ language: ruby
2
+ rvm:
3
+ - 2.3.0
4
+ before_install: gem install bundler -v 1.11.2
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in ssh2http.gemspec
4
+ gemspec
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2016 Minqi Pan (P.S.V.R)
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 all
13
+ 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 THE
21
+ SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,21 @@
1
+ # ssh2http
2
+
3
+ A restricted login shell for Git-only SSH access,
4
+ which delegates git pull/push requests to a git http backend.
5
+
6
+ [![Gem Version](https://badge.fury.io/rb/ssh2http.svg)](https://badge.fury.io/rb/ssh2http)
7
+ [![Build Status](https://travis-ci.org/pmq20/ssh2http.svg)](https://travis-ci.org/pmq20/ssh2http)
8
+ [![Code Climate](https://codeclimate.com/github/pmq20/ssh2http/badges/gpa.svg)](https://codeclimate.com/github/pmq20/ssh2http)
9
+ [![codecov.io](https://codecov.io/github/pmq20/ssh2http/coverage.svg?branch=master)](https://codecov.io/github/pmq20/ssh2http?branch=master)
10
+ [![](http://inch-ci.org/github/pmq20/ssh2http.svg?branch=master)](http://inch-ci.org/github/pmq20/ssh2http?branch=master)
11
+
12
+
13
+ ## installation
14
+
15
+ gem install ssh2http
16
+
17
+ ## usage
18
+
19
+ 'chsh' -s $(command -v ssh2http) <user>
20
+ 'git clone' <user>`@localhost:/path/to/repo.git`
21
+ 'ssh' <user>`@localhost`
data/Rakefile ADDED
@@ -0,0 +1,6 @@
1
+ require "bundler/gem_tasks"
2
+ require "rspec/core/rake_task"
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+
6
+ task :default => :spec
@@ -0,0 +1,3 @@
1
+ module Ssh2http
2
+ VERSION = "0.0.1"
3
+ end
data/lib/ssh2http.rb ADDED
@@ -0,0 +1,12 @@
1
+ require "ssh2http/version"
2
+
3
+ module Ssh2http
4
+ def self.exec(origin_cmd)
5
+ unless origin_cmd
6
+ puts "Welcome to ssh2http!"
7
+ return true
8
+ end
9
+ # Your code goes here...
10
+ true
11
+ end
12
+ end
data/ssh2http.gemspec ADDED
@@ -0,0 +1,25 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'ssh2http/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "ssh2http"
8
+ spec.version = Ssh2http::VERSION
9
+ spec.authors = ["P.S.V.R"]
10
+ spec.email = ["pmq2001@gmail.com"]
11
+
12
+ spec.summary = %q{delegating git ssh requests to git http backends}
13
+ spec.description = %q{A restricted login shell for Git-only SSH access, which delegates git pull/push requests to a git http backend.}
14
+ spec.homepage = 'https://github.com/pmq20/ssh2http'
15
+ spec.license = 'MIT'
16
+
17
+ spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
18
+ spec.bindir = "exe"
19
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
20
+ spec.require_paths = ["lib"]
21
+
22
+ spec.add_development_dependency "bundler", "~> 1.11"
23
+ spec.add_development_dependency "rake", "~> 10.0"
24
+ spec.add_development_dependency "rspec", "~> 3.0"
25
+ end
metadata ADDED
@@ -0,0 +1,97 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: ssh2http
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - P.S.V.R
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2016-04-19 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.11'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.11'
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: rspec
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '3.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '3.0'
55
+ description: A restricted login shell for Git-only SSH access, which delegates git
56
+ pull/push requests to a git http backend.
57
+ email:
58
+ - pmq2001@gmail.com
59
+ executables: []
60
+ extensions: []
61
+ extra_rdoc_files: []
62
+ files:
63
+ - ".gitignore"
64
+ - ".rspec"
65
+ - ".travis.yml"
66
+ - Gemfile
67
+ - LICENSE
68
+ - README.md
69
+ - Rakefile
70
+ - lib/ssh2http.rb
71
+ - lib/ssh2http/version.rb
72
+ - ssh2http.gemspec
73
+ homepage: https://github.com/pmq20/ssh2http
74
+ licenses:
75
+ - MIT
76
+ metadata: {}
77
+ post_install_message:
78
+ rdoc_options: []
79
+ require_paths:
80
+ - lib
81
+ required_ruby_version: !ruby/object:Gem::Requirement
82
+ requirements:
83
+ - - ">="
84
+ - !ruby/object:Gem::Version
85
+ version: '0'
86
+ required_rubygems_version: !ruby/object:Gem::Requirement
87
+ requirements:
88
+ - - ">="
89
+ - !ruby/object:Gem::Version
90
+ version: '0'
91
+ requirements: []
92
+ rubyforge_project:
93
+ rubygems_version: 2.5.1
94
+ signing_key:
95
+ specification_version: 4
96
+ summary: delegating git ssh requests to git http backends
97
+ test_files: []