github-rundeck 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.gitignore +8 -0
- data/.gitlab-ci.yml +38 -0
- data/.rubocop.yml +12 -0
- data/Gemfile +13 -0
- data/Gemfile.lock +91 -0
- data/LICENSE.txt +21 -0
- data/README.md +45 -0
- data/Rakefile +6 -0
- data/bin/console +17 -0
- data/bin/setup +8 -0
- data/config.json +4 -0
- data/exe/github-rundeck +82 -0
- data/github-rundeck.gemspec +43 -0
- data/lib/github-rundeck.rb +113 -0
- metadata +186 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 7a9927c4dfeb9442f88559ebbc85c9c46153885d
|
4
|
+
data.tar.gz: 47955a3d644249c9bc9c1fd66d5d5d0154910b45
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 8ccf58df379c4a413f60746ac5eb5efebf63e419da1fdf0956ef22d70256dbe35150b91b32668c866062cae24b38e5691e7378a39637eb8572db66947de5777f
|
7
|
+
data.tar.gz: d219c63b04e470d968884ef913927650a90456c0cd7e8d2863933a3ed43b42a496df4026d277ec4d7029e804f0f01aea1c44fd0db7c9bdc277ccb47b851f65b7
|
data/.gitignore
ADDED
data/.gitlab-ci.yml
ADDED
@@ -0,0 +1,38 @@
|
|
1
|
+
before_script:
|
2
|
+
- ruby -v
|
3
|
+
- which ruby
|
4
|
+
- gem install bundler --no-ri --no-rdoc
|
5
|
+
- bundle install --jobs $(nproc) --path vendor/bundle
|
6
|
+
|
7
|
+
test:Ruby 2.2:
|
8
|
+
image: ruby:2.2
|
9
|
+
cache:
|
10
|
+
group: ruby_2.2
|
11
|
+
paths:
|
12
|
+
- .bundle
|
13
|
+
- vendor/bundle
|
14
|
+
script:
|
15
|
+
- bundle exec rubocop
|
16
|
+
tags:
|
17
|
+
- ruby
|
18
|
+
except:
|
19
|
+
- tags
|
20
|
+
|
21
|
+
release:Ruby 2.2:
|
22
|
+
image: ruby:2.2
|
23
|
+
cache:
|
24
|
+
group: ruby_2.2
|
25
|
+
paths:
|
26
|
+
- .bundle
|
27
|
+
- vendor/bundle
|
28
|
+
script:
|
29
|
+
- bundle exec rubocop
|
30
|
+
- bundle exec rake build
|
31
|
+
artifacts:
|
32
|
+
name: "github-rundeck-$CI_BUILD_REF_NAME"
|
33
|
+
paths:
|
34
|
+
- pkg/*.gem
|
35
|
+
tags:
|
36
|
+
- ruby
|
37
|
+
only:
|
38
|
+
- tags
|
data/.rubocop.yml
ADDED
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,91 @@
|
|
1
|
+
GEM
|
2
|
+
remote: https://rubygems.org/
|
3
|
+
specs:
|
4
|
+
addressable (2.4.0)
|
5
|
+
ast (2.3.0)
|
6
|
+
backports (3.6.8)
|
7
|
+
descendants_tracker (0.0.4)
|
8
|
+
thread_safe (~> 0.3, >= 0.3.1)
|
9
|
+
diff-lcs (1.2.5)
|
10
|
+
faraday (0.9.2)
|
11
|
+
multipart-post (>= 1.2, < 3)
|
12
|
+
github_api (0.14.0)
|
13
|
+
addressable (~> 2.4.0)
|
14
|
+
descendants_tracker (~> 0.0.4)
|
15
|
+
faraday (~> 0.8, < 0.10)
|
16
|
+
hashie (>= 3.4)
|
17
|
+
oauth2
|
18
|
+
hashie (3.4.4)
|
19
|
+
jwt (1.5.1)
|
20
|
+
mixlib-cli (1.6.0)
|
21
|
+
multi_json (1.12.1)
|
22
|
+
multi_xml (0.5.5)
|
23
|
+
multipart-post (2.0.0)
|
24
|
+
oauth2 (1.1.0)
|
25
|
+
faraday (>= 0.8, < 0.10)
|
26
|
+
jwt (~> 1.0, < 1.5.2)
|
27
|
+
multi_json (~> 1.3)
|
28
|
+
multi_xml (~> 0.5)
|
29
|
+
rack (>= 1.2, < 3)
|
30
|
+
parser (2.3.1.2)
|
31
|
+
ast (~> 2.2)
|
32
|
+
powerpack (0.1.1)
|
33
|
+
rack (1.6.4)
|
34
|
+
rack-cache (1.6.1)
|
35
|
+
rack (>= 0.4)
|
36
|
+
rack-protection (1.5.3)
|
37
|
+
rack
|
38
|
+
rack-test (0.6.3)
|
39
|
+
rack (>= 1.0)
|
40
|
+
rainbow (2.1.0)
|
41
|
+
rake (11.1.2)
|
42
|
+
rspec (3.4.0)
|
43
|
+
rspec-core (~> 3.4.0)
|
44
|
+
rspec-expectations (~> 3.4.0)
|
45
|
+
rspec-mocks (~> 3.4.0)
|
46
|
+
rspec-core (3.4.4)
|
47
|
+
rspec-support (~> 3.4.0)
|
48
|
+
rspec-expectations (3.4.0)
|
49
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
50
|
+
rspec-support (~> 3.4.0)
|
51
|
+
rspec-mocks (3.4.1)
|
52
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
53
|
+
rspec-support (~> 3.4.0)
|
54
|
+
rspec-support (3.4.1)
|
55
|
+
rubocop (0.40.0)
|
56
|
+
parser (>= 2.3.1.0, < 3.0)
|
57
|
+
powerpack (~> 0.1)
|
58
|
+
rainbow (>= 1.99.1, < 3.0)
|
59
|
+
ruby-progressbar (~> 1.7)
|
60
|
+
unicode-display_width (~> 1.0, >= 1.0.1)
|
61
|
+
ruby-progressbar (1.8.1)
|
62
|
+
sinatra (1.4.7)
|
63
|
+
rack (~> 1.5)
|
64
|
+
rack-protection (~> 1.4)
|
65
|
+
tilt (>= 1.3, < 3)
|
66
|
+
sinatra-contrib (1.4.7)
|
67
|
+
backports (>= 2.0)
|
68
|
+
multi_json
|
69
|
+
rack-protection
|
70
|
+
rack-test
|
71
|
+
sinatra (~> 1.4.0)
|
72
|
+
tilt (>= 1.3, < 3)
|
73
|
+
thread_safe (0.3.5)
|
74
|
+
tilt (2.0.5)
|
75
|
+
unicode-display_width (1.0.5)
|
76
|
+
|
77
|
+
PLATFORMS
|
78
|
+
ruby
|
79
|
+
|
80
|
+
DEPENDENCIES
|
81
|
+
github_api
|
82
|
+
mixlib-cli
|
83
|
+
rack-cache
|
84
|
+
rake
|
85
|
+
rspec
|
86
|
+
rubocop
|
87
|
+
sinatra
|
88
|
+
sinatra-contrib
|
89
|
+
|
90
|
+
BUNDLED WITH
|
91
|
+
1.12.3
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2016 Brian Dwyer - Intelligent Digital Services
|
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,45 @@
|
|
1
|
+
# Github-RunDeck
|
2
|
+
|
3
|
+
## GitHub Options Provider
|
4
|
+
This gem delivers RunDeck options in the supported JSON format
|
5
|
+
|
6
|
+
* List of User Repos - `GET` - *http://localhost:9125/github/v1/repos/user/${ORGNAME}*
|
7
|
+
* List of Organization Repos - `GET` - *http://localhost:9125/github/v1/repos/org/${ORGNAME}*
|
8
|
+
* List of Branch/Tag Names for a Repo - `GET` - *http://localhost:9125/github/v1/revisions/${ORGNAME}/${REPONAME}*
|
9
|
+
|
10
|
+
### OAuth Key
|
11
|
+
You can feed a GitHub OAuth key via local configuration, or as the Query Parameter `oauth_token`
|
12
|
+
|
13
|
+
|
14
|
+
## Installation
|
15
|
+
|
16
|
+
Add this line to your application's Gemfile:
|
17
|
+
|
18
|
+
```ruby
|
19
|
+
gem 'github-rundeck'
|
20
|
+
```
|
21
|
+
|
22
|
+
And then execute:
|
23
|
+
|
24
|
+
$ bundle
|
25
|
+
|
26
|
+
Or install it yourself as:
|
27
|
+
|
28
|
+
$ gem install github-rundeck
|
29
|
+
|
30
|
+
|
31
|
+
## Development
|
32
|
+
|
33
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
34
|
+
|
35
|
+
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`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
36
|
+
|
37
|
+
## Contributing
|
38
|
+
|
39
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/bdwyertech/github-rundeck. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
40
|
+
|
41
|
+
|
42
|
+
## License
|
43
|
+
|
44
|
+
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
45
|
+
|
data/Rakefile
ADDED
data/bin/console
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
lib = File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib'))
|
4
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
5
|
+
|
6
|
+
require 'bundler/setup'
|
7
|
+
require 'github-rundeck'
|
8
|
+
|
9
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
10
|
+
# with your gem easier. You can also use a different console, if you like.
|
11
|
+
|
12
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
13
|
+
# require "pry"
|
14
|
+
# Pry.start
|
15
|
+
|
16
|
+
require 'irb'
|
17
|
+
IRB.start
|
data/bin/setup
ADDED
data/config.json
ADDED
data/exe/github-rundeck
ADDED
@@ -0,0 +1,82 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# encoding: UTF-8
|
3
|
+
# rubocop: disable LineLength
|
4
|
+
# RunDeck Options Provider - GitHub Repositories
|
5
|
+
# Brian Dwyer - Intelligent Digital Services - 5/14/16
|
6
|
+
|
7
|
+
lib = File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib'))
|
8
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
9
|
+
|
10
|
+
require 'rubygems'
|
11
|
+
require 'github-rundeck'
|
12
|
+
require 'mixlib/cli'
|
13
|
+
require 'json'
|
14
|
+
|
15
|
+
# => Github-RunDeck Launcher
|
16
|
+
class GithubRunDeckCLI
|
17
|
+
include Mixlib::CLI
|
18
|
+
|
19
|
+
option :github_oauth_token,
|
20
|
+
short: '-o TOKEN',
|
21
|
+
long: '--github-oauth-token TOKEN',
|
22
|
+
description: 'OAuth Token to use for querying GitHub',
|
23
|
+
default: nil
|
24
|
+
|
25
|
+
option :cache_timeout,
|
26
|
+
short: '-t CACHE_TIMEOUT',
|
27
|
+
long: '--timeout CACHE_TIMEOUT',
|
28
|
+
description: 'Sets the response timeout in seconds for the query data.',
|
29
|
+
default: 30
|
30
|
+
|
31
|
+
option :config_file,
|
32
|
+
short: '-c CONFIG',
|
33
|
+
long: '--config CONFIG',
|
34
|
+
description: 'The configuration file to use, as opposed to command-line parameters (optional)',
|
35
|
+
default: nil
|
36
|
+
|
37
|
+
option :host,
|
38
|
+
short: '-h HOST',
|
39
|
+
long: '--host HOST',
|
40
|
+
description: 'Listen on HOST (default: localhost)',
|
41
|
+
default: 'localhost'
|
42
|
+
|
43
|
+
option :port,
|
44
|
+
short: '-p PORT',
|
45
|
+
long: '--port PORT',
|
46
|
+
description: 'The port to run on, default 9123',
|
47
|
+
default: 9123
|
48
|
+
|
49
|
+
option :env,
|
50
|
+
short: '-e ENV',
|
51
|
+
long: '--env ENV',
|
52
|
+
description: 'Sets the environment for chef-rundeck to execute under. Use "development" for more logging.',
|
53
|
+
default: 'production'
|
54
|
+
end
|
55
|
+
|
56
|
+
cli = GithubRunDeckCLI.new
|
57
|
+
cli.parse_options
|
58
|
+
|
59
|
+
# => Define JSON Parser
|
60
|
+
def parse_json_config(file = nil)
|
61
|
+
return unless file && ::File.exist?(file.to_s)
|
62
|
+
begin
|
63
|
+
::JSON.parse(::File.read(file.to_s), symbolize_names: true)
|
64
|
+
rescue JSON::ParserError
|
65
|
+
return
|
66
|
+
end
|
67
|
+
end
|
68
|
+
|
69
|
+
# => Parse JSON Config File
|
70
|
+
json_config = parse_json_config(cli.config[:config_file])
|
71
|
+
|
72
|
+
# => Merge Configuration (JSON File Wins)
|
73
|
+
config = [cli.config, json_config].compact.reduce(:merge)
|
74
|
+
|
75
|
+
# => Apply Configuration
|
76
|
+
GithubRunDeck.github_oauth_token = config[:github_oauth_token]
|
77
|
+
GithubRunDeck.cache_timeout = config[:cache_timeout].to_i
|
78
|
+
GithubRunDeck.config_file = config[:config_file] if json_config
|
79
|
+
GithubRunDeck.environment = config[:env].to_sym
|
80
|
+
|
81
|
+
# => Launch the Application
|
82
|
+
GithubRunDeck.run! bind: config[:host], port: config[:port]
|
@@ -0,0 +1,43 @@
|
|
1
|
+
# encoding: UTF-8
|
2
|
+
# rubocop: disable LineLength
|
3
|
+
|
4
|
+
lib = File.expand_path('../lib', __FILE__)
|
5
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
6
|
+
require 'github-rundeck'
|
7
|
+
|
8
|
+
Gem::Specification.new do |spec|
|
9
|
+
spec.name = 'github-rundeck'
|
10
|
+
spec.version = GithubRunDeck::VERSION
|
11
|
+
spec.authors = ['Brian Dwyer']
|
12
|
+
spec.email = ['bdwyer@IEEE.org']
|
13
|
+
|
14
|
+
spec.summary = %(Github Options Provider for RunDeck)
|
15
|
+
spec.homepage = 'https://github.com/bdwyertech/github-rundeck'
|
16
|
+
spec.license = 'MIT'
|
17
|
+
|
18
|
+
# Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
|
19
|
+
# to allow pushing to a single host or delete this section to allow pushing to any host.
|
20
|
+
if spec.respond_to?(:metadata)
|
21
|
+
spec.metadata['allowed_push_host'] = 'https://rubygems.org'
|
22
|
+
else
|
23
|
+
raise 'RubyGems 2.0 or newer is required to protect against public gem pushes.'
|
24
|
+
end
|
25
|
+
|
26
|
+
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
27
|
+
spec.bindir = 'exe'
|
28
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
29
|
+
spec.require_paths = ['lib']
|
30
|
+
|
31
|
+
# => Dependencies
|
32
|
+
spec.add_runtime_dependency 'github_api', '~> 0.14'
|
33
|
+
spec.add_runtime_dependency 'mixlib-cli', '~> 1.6'
|
34
|
+
spec.add_runtime_dependency 'rack-cache', '~> 1.6'
|
35
|
+
spec.add_runtime_dependency 'sinatra', '~> 1.4'
|
36
|
+
spec.add_runtime_dependency 'sinatra-contrib', '~> 1.4'
|
37
|
+
|
38
|
+
# => Development Dependencies
|
39
|
+
spec.add_development_dependency 'bundler', '~> 1.12'
|
40
|
+
spec.add_development_dependency 'rake', '~> 10.0'
|
41
|
+
spec.add_development_dependency 'rspec', '~> 3.0'
|
42
|
+
spec.add_development_dependency 'rubocop'
|
43
|
+
end
|
@@ -0,0 +1,113 @@
|
|
1
|
+
# encoding: UTF-8
|
2
|
+
# rubocop: disable LineLength
|
3
|
+
# GitHub Repo Poller for RunDeck
|
4
|
+
# Brian Dwyer - Intelligent Digital Services - 5/14/16
|
5
|
+
|
6
|
+
require 'sinatra/base'
|
7
|
+
require 'sinatra/namespace'
|
8
|
+
require 'github_api'
|
9
|
+
require 'json'
|
10
|
+
require 'rack/cache'
|
11
|
+
|
12
|
+
# => GitHub RunDeck
|
13
|
+
class GithubRunDeck < Sinatra::Base
|
14
|
+
register Sinatra::Namespace
|
15
|
+
|
16
|
+
class << self
|
17
|
+
attr_accessor :config_file
|
18
|
+
attr_accessor :cache_timeout
|
19
|
+
attr_accessor :github_oauth_token
|
20
|
+
end
|
21
|
+
|
22
|
+
if development?
|
23
|
+
require 'sinatra/reloader'
|
24
|
+
register Sinatra::Reloader
|
25
|
+
end
|
26
|
+
|
27
|
+
VERSION = '0.1.0'.freeze
|
28
|
+
|
29
|
+
######################
|
30
|
+
# => Definitions <=#
|
31
|
+
######################
|
32
|
+
|
33
|
+
def ghclient
|
34
|
+
# => Instantiate a new GitHub Client
|
35
|
+
Github::Client::Repos.new
|
36
|
+
end
|
37
|
+
|
38
|
+
def serialize(response)
|
39
|
+
# => Serialize Object into JSON Array
|
40
|
+
JSON.pretty_generate(response.map(&:name).sort_by(&:downcase))
|
41
|
+
end
|
42
|
+
|
43
|
+
def serialize_revisions(branches, tags)
|
44
|
+
# => Serialize Branches/Tags into JSON Array
|
45
|
+
# => Branches = String, Tags = Key/Value
|
46
|
+
branches = branches.map(&:name).sort_by(&:downcase)
|
47
|
+
tags = tags.map(&:name).sort_by(&:downcase).reverse.map { |tag| { name: "Tag: #{tag}", value: tag } }
|
48
|
+
JSON.pretty_generate(branches + tags)
|
49
|
+
end
|
50
|
+
|
51
|
+
######################
|
52
|
+
# => Sinatra <=#
|
53
|
+
######################
|
54
|
+
|
55
|
+
use Rack::Cache do
|
56
|
+
set :verbose, true
|
57
|
+
set :metastore, 'file:' + File.join(Dir.tmpdir, 'rack', 'meta')
|
58
|
+
set :entitystore, 'file:' + File.join(Dir.tmpdir, 'rack', 'body')
|
59
|
+
end
|
60
|
+
|
61
|
+
# => Current Configuration & Healthcheck Endpoint
|
62
|
+
get '/' do
|
63
|
+
content_type 'application/json'
|
64
|
+
JSON.pretty_generate(
|
65
|
+
Status: "#{self.class} is up and running!",
|
66
|
+
ConfigFile: GithubRunDeck.config_file,
|
67
|
+
CacheTimeout: GithubRunDeck.cache_timeout,
|
68
|
+
GithubOAuthToken: GithubRunDeck.github_oauth_token,
|
69
|
+
Params: params.inspect
|
70
|
+
)
|
71
|
+
end
|
72
|
+
|
73
|
+
#######################
|
74
|
+
# => JSON API <=#
|
75
|
+
#######################
|
76
|
+
|
77
|
+
namespace '/github/v1' do
|
78
|
+
# => Define our common namespace parameters
|
79
|
+
before do
|
80
|
+
# => This is a JSON API
|
81
|
+
content_type 'application/json'
|
82
|
+
|
83
|
+
# => Cache GitHub Responses
|
84
|
+
cache_control :public, max_age: GithubRunDeck.cache_timeout || 30
|
85
|
+
|
86
|
+
# => Parameter Overrides
|
87
|
+
Github.configure do |cfg|
|
88
|
+
cfg.oauth_token = params['oauth_token'] || GithubRunDeck.github_oauth_token
|
89
|
+
end
|
90
|
+
end
|
91
|
+
|
92
|
+
# => Get Organization Repo List
|
93
|
+
get '/repos/org/:org' do |org|
|
94
|
+
ghresponse = ghclient.with(org: org).list(per_page: 100)
|
95
|
+
etag ghresponse.headers.etag
|
96
|
+
body serialize(ghresponse)
|
97
|
+
end
|
98
|
+
|
99
|
+
# => Get User Repo List
|
100
|
+
get '/repos/user/:user' do |user|
|
101
|
+
ghresponse = ghclient.with(user: user).list(per_page: 100)
|
102
|
+
etag ghresponse.headers.etag
|
103
|
+
body serialize(ghresponse)
|
104
|
+
end
|
105
|
+
|
106
|
+
# => Get Branch/Tag Names
|
107
|
+
get '/revisions/:user/:repo' do |user, repo|
|
108
|
+
branches = ghclient.with(user: user, repo: repo).branches
|
109
|
+
tags = ghclient.with(user: user, repo: repo).tags
|
110
|
+
body serialize_revisions(branches, tags)
|
111
|
+
end
|
112
|
+
end
|
113
|
+
end
|
metadata
ADDED
@@ -0,0 +1,186 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: github-rundeck
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Brian Dwyer
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2016-06-10 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: github_api
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0.14'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0.14'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: mixlib-cli
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '1.6'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '1.6'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rack-cache
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '1.6'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '1.6'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: sinatra
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '1.4'
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '1.4'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: sinatra-contrib
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '1.4'
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '1.4'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: bundler
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '1.12'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '1.12'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: rake
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - "~>"
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '10.0'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - "~>"
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '10.0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: rspec
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - "~>"
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '3.0'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - "~>"
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '3.0'
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: rubocop
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - ">="
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '0'
|
132
|
+
type: :development
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - ">="
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '0'
|
139
|
+
description:
|
140
|
+
email:
|
141
|
+
- bdwyer@IEEE.org
|
142
|
+
executables:
|
143
|
+
- github-rundeck
|
144
|
+
extensions: []
|
145
|
+
extra_rdoc_files: []
|
146
|
+
files:
|
147
|
+
- ".gitignore"
|
148
|
+
- ".gitlab-ci.yml"
|
149
|
+
- ".rubocop.yml"
|
150
|
+
- Gemfile
|
151
|
+
- Gemfile.lock
|
152
|
+
- LICENSE.txt
|
153
|
+
- README.md
|
154
|
+
- Rakefile
|
155
|
+
- bin/console
|
156
|
+
- bin/setup
|
157
|
+
- config.json
|
158
|
+
- exe/github-rundeck
|
159
|
+
- github-rundeck.gemspec
|
160
|
+
- lib/github-rundeck.rb
|
161
|
+
homepage: https://github.com/bdwyertech/github-rundeck
|
162
|
+
licenses:
|
163
|
+
- MIT
|
164
|
+
metadata:
|
165
|
+
allowed_push_host: https://rubygems.org
|
166
|
+
post_install_message:
|
167
|
+
rdoc_options: []
|
168
|
+
require_paths:
|
169
|
+
- lib
|
170
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
171
|
+
requirements:
|
172
|
+
- - ">="
|
173
|
+
- !ruby/object:Gem::Version
|
174
|
+
version: '0'
|
175
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
176
|
+
requirements:
|
177
|
+
- - ">="
|
178
|
+
- !ruby/object:Gem::Version
|
179
|
+
version: '0'
|
180
|
+
requirements: []
|
181
|
+
rubyforge_project:
|
182
|
+
rubygems_version: 2.6.4
|
183
|
+
signing_key:
|
184
|
+
specification_version: 4
|
185
|
+
summary: Github Options Provider for RunDeck
|
186
|
+
test_files: []
|