haul 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +23 -0
- data/.travis.yml +3 -0
- data/Gemfile +4 -0
- data/LICENSE +22 -0
- data/README.md +52 -0
- data/Rakefile +8 -0
- data/haul.gemspec +28 -0
- data/lib/haul.rb +7 -0
- data/lib/haul/version.rb +3 -0
- data/logo.png +0 -0
- data/pully.gemspec +28 -0
- data/spec/env_spec.rb +18 -0
- metadata +156 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: c974f6b1f54be2bfd6f9be0b5c8f4009e41f604b
|
4
|
+
data.tar.gz: 093a5a05f1808e535e7338e5be8ae2f4bf95ff12
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: addf0b363696101db41932b0f67ea3c732d8e099dba08a033413fefd103abe3b5071ae6e68b27aca70ec60491e645f30ae86b1eac4b115ca6b10285f75f137bd
|
7
|
+
data.tar.gz: 03b151b5c19b495d38e5123e2954e09fdfd43e249c16758e39e5abf0c502f92716295b85532eca177638e2d3bb1abd3fb87f6fc985f12b36d2930b837610019b
|
data/.gitignore
ADDED
@@ -0,0 +1,23 @@
|
|
1
|
+
*.gem
|
2
|
+
*.rbc
|
3
|
+
.bundle
|
4
|
+
.config
|
5
|
+
.yardoc
|
6
|
+
Gemfile.lock
|
7
|
+
InstalledFiles
|
8
|
+
_yardoc
|
9
|
+
coverage
|
10
|
+
doc/
|
11
|
+
lib/bundler/man
|
12
|
+
pkg
|
13
|
+
rdoc
|
14
|
+
spec/reports
|
15
|
+
test/tmp
|
16
|
+
test/version_tmp
|
17
|
+
tmp
|
18
|
+
*.bundle
|
19
|
+
*.so
|
20
|
+
*.o
|
21
|
+
*.a
|
22
|
+
mkmf.log
|
23
|
+
.run
|
data/.travis.yml
ADDED
data/Gemfile
ADDED
data/LICENSE
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2015 Seo Townsend
|
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.
|
22
|
+
|
data/README.md
ADDED
@@ -0,0 +1,52 @@
|
|
1
|
+
![haul: A ruby library for managing GitHub pull requests](https://raw.githubusercontent.com/sotownsend/haul/master/logo.png)
|
2
|
+
|
3
|
+
[![Gem Version](https://badge.fury.io/rb/haul.svg)](http://badge.fury.io/rb/haul)
|
4
|
+
[![Build Status](https://travis-ci.org/sotownsend/Haul.svg?branch=master)](https://travis-ci.org/sotownsend/Haul)
|
5
|
+
[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/sotownsend/haul/trend.png)](https://bitdeli.com/free "Bitdeli Badge")
|
6
|
+
[![License](http://img.shields.io/badge/license-MIT-green.svg?style=flat)](https://github.com/sotownsend/haul/blob/master/LICENSE)
|
7
|
+
|
8
|
+
# What is this?
|
9
|
+
Haul is a server for coordinating GitHub pull requests; it is built ontop of the [Pully](https://github.com/sotownsend/pully) library. Purpose built for our continuous integration & deployment infrastructure at [Fittr®](http://www.fittr.com).
|
10
|
+
It is a work in progress.
|
11
|
+
|
12
|
+
# Usage
|
13
|
+
```sh
|
14
|
+
(user@localhost:~/)>haul start --port 3000
|
15
|
+
```
|
16
|
+
|
17
|
+
## Requirements
|
18
|
+
|
19
|
+
- Ruby 2.1 or Higher
|
20
|
+
|
21
|
+
## Communication
|
22
|
+
|
23
|
+
- If you **found a bug**, submit a pull request.
|
24
|
+
- If you **have a feature request**, submit a pull request.
|
25
|
+
- If you **want to contribute**, submit a pull request.
|
26
|
+
|
27
|
+
## Installation
|
28
|
+
|
29
|
+
Run `sudo gem install haul`
|
30
|
+
|
31
|
+
---
|
32
|
+
|
33
|
+
## FAQ
|
34
|
+
|
35
|
+
### When should I use haul?
|
36
|
+
|
37
|
+
When you want to automate GitHub pull requests. Haul provides the necessary facilities for you to authenticate and control GitHub pull requests in
|
38
|
+
any way you wish. Duplicate the functionality of many popular CI solutions.
|
39
|
+
|
40
|
+
### What's Fittr?
|
41
|
+
|
42
|
+
Fittr is a SaaS company that focuses on providing personalized workouts and health information to individuals and corporations through phenomenal interfaces and algorithmic data-collection and processing.
|
43
|
+
|
44
|
+
* * *
|
45
|
+
|
46
|
+
### Creator
|
47
|
+
|
48
|
+
- [Seo Townsend](http://github.com/sotownsend) ([@seotownsend](https://twitter.com/seotownsend))
|
49
|
+
|
50
|
+
## License
|
51
|
+
|
52
|
+
haul is released under the MIT license. See LICENSE for details.
|
data/Rakefile
ADDED
data/haul.gemspec
ADDED
@@ -0,0 +1,28 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'haul/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "haul"
|
8
|
+
spec.version = Haul::VERSION
|
9
|
+
spec.authors = ["Seo Townsend"]
|
10
|
+
spec.email = ["seotownsend@icloud.com"]
|
11
|
+
spec.summary = %q{A ruby library for managing GitHub pull requests}
|
12
|
+
spec.description = %q{Create your own pull request GitHub bot with ease}
|
13
|
+
spec.homepage = "https://github.com/sotownsend/haul"
|
14
|
+
spec.license = "MIT"
|
15
|
+
|
16
|
+
spec.files = `git ls-files -z`.split("\x0")
|
17
|
+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
18
|
+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
|
+
spec.require_paths = ["lib"]
|
20
|
+
|
21
|
+
spec.add_development_dependency "bundler", "~> 1.6"
|
22
|
+
spec.add_development_dependency "rake", "~> 10.3"
|
23
|
+
spec.add_development_dependency "rspec", "~> 3.2"
|
24
|
+
spec.add_runtime_dependency "thor", "~> 0.19"
|
25
|
+
spec.add_runtime_dependency "ghee", "~> 0.12.17"
|
26
|
+
spec.add_runtime_dependency "octokit", "~> 3.0"
|
27
|
+
spec.add_runtime_dependency "git", "~> 1.2.9.1"
|
28
|
+
end
|
data/lib/haul.rb
ADDED
data/lib/haul/version.rb
ADDED
data/logo.png
ADDED
Binary file
|
data/pully.gemspec
ADDED
@@ -0,0 +1,28 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'haul/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "haul"
|
8
|
+
spec.version = Haul::VERSION
|
9
|
+
spec.authors = ["Seo Townsend"]
|
10
|
+
spec.email = ["seotownsend@icloud.com"]
|
11
|
+
spec.summary = %q{A ruby library for managing GitHub pull requests}
|
12
|
+
spec.description = %q{Create your own pull request GitHub bot with ease}
|
13
|
+
spec.homepage = "https://github.com/sotownsend/haul"
|
14
|
+
spec.license = "MIT"
|
15
|
+
|
16
|
+
spec.files = `git ls-files -z`.split("\x0")
|
17
|
+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
18
|
+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
|
+
spec.require_paths = ["lib"]
|
20
|
+
|
21
|
+
spec.add_development_dependency "bundler", "~> 1.6"
|
22
|
+
spec.add_development_dependency "rake", "~> 10.3"
|
23
|
+
spec.add_development_dependency "rspec", "~> 3.2"
|
24
|
+
spec.add_runtime_dependency "thor", "~> 0.19"
|
25
|
+
spec.add_runtime_dependency "ghee", "~> 0.12.17"
|
26
|
+
spec.add_runtime_dependency "octokit", "~> 3.0"
|
27
|
+
spec.add_runtime_dependency "git", "~> 1.2.9.1"
|
28
|
+
end
|
data/spec/env_spec.rb
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
require 'yaml'
|
2
|
+
require 'ghee'
|
3
|
+
require './lib/haul.rb'
|
4
|
+
require 'securerandom'
|
5
|
+
|
6
|
+
RSpec.describe "Test Environment" do
|
7
|
+
it "Can write to a tempfile" do
|
8
|
+
#Create a temp path
|
9
|
+
temp_file = Tempfile.new('pully')
|
10
|
+
@path = temp_file.path
|
11
|
+
temp_file.close
|
12
|
+
temp_file.unlink
|
13
|
+
|
14
|
+
File.write temp_file, "test"
|
15
|
+
str = File.read temp_file
|
16
|
+
expect(str).to eq("test")
|
17
|
+
end
|
18
|
+
end
|
metadata
ADDED
@@ -0,0 +1,156 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: haul
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Seo Townsend
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2015-03-31 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.6'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.6'
|
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.3'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '10.3'
|
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.2'
|
48
|
+
type: :development
|
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: thor
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0.19'
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0.19'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: ghee
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: 0.12.17
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: 0.12.17
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: octokit
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '3.0'
|
90
|
+
type: :runtime
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '3.0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: git
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - "~>"
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: 1.2.9.1
|
104
|
+
type: :runtime
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - "~>"
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: 1.2.9.1
|
111
|
+
description: Create your own pull request GitHub bot with ease
|
112
|
+
email:
|
113
|
+
- seotownsend@icloud.com
|
114
|
+
executables: []
|
115
|
+
extensions: []
|
116
|
+
extra_rdoc_files: []
|
117
|
+
files:
|
118
|
+
- ".gitignore"
|
119
|
+
- ".travis.yml"
|
120
|
+
- Gemfile
|
121
|
+
- LICENSE
|
122
|
+
- README.md
|
123
|
+
- Rakefile
|
124
|
+
- haul.gemspec
|
125
|
+
- lib/haul.rb
|
126
|
+
- lib/haul/version.rb
|
127
|
+
- logo.png
|
128
|
+
- pully.gemspec
|
129
|
+
- spec/env_spec.rb
|
130
|
+
homepage: https://github.com/sotownsend/haul
|
131
|
+
licenses:
|
132
|
+
- MIT
|
133
|
+
metadata: {}
|
134
|
+
post_install_message:
|
135
|
+
rdoc_options: []
|
136
|
+
require_paths:
|
137
|
+
- lib
|
138
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
139
|
+
requirements:
|
140
|
+
- - ">="
|
141
|
+
- !ruby/object:Gem::Version
|
142
|
+
version: '0'
|
143
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
144
|
+
requirements:
|
145
|
+
- - ">="
|
146
|
+
- !ruby/object:Gem::Version
|
147
|
+
version: '0'
|
148
|
+
requirements: []
|
149
|
+
rubyforge_project:
|
150
|
+
rubygems_version: 2.4.1
|
151
|
+
signing_key:
|
152
|
+
specification_version: 4
|
153
|
+
summary: A ruby library for managing GitHub pull requests
|
154
|
+
test_files:
|
155
|
+
- spec/env_spec.rb
|
156
|
+
has_rdoc:
|