escobar 0.1.0

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: 5d4c8b96a21452c34086e1a222dd0fcefd18f3fe
4
+ data.tar.gz: 398b822d6c11e52dec31491bdf9f7214bc083dfb
5
+ SHA512:
6
+ metadata.gz: 7d6c73f24d7037a35685bae7497d963700c8c2402eb710dcb4a9f266ef749a65c15e9637c0e3c515ef5ac24a6b696a09e9e45c08fb1595c1bc68a47df28767e7
7
+ data.tar.gz: 4983a769c5883ec7e5903da1c04deb248ae728d58f36199b398c8bdda8d5990033d131e4a6aae0431501631a6fb98b158480154d0ea5de21eeb70a5a804fb8f8
data/.gitignore ADDED
@@ -0,0 +1,9 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
data/.rspec ADDED
@@ -0,0 +1,2 @@
1
+ --format documentation
2
+ --color
data/.rubocop.yml ADDED
@@ -0,0 +1,109 @@
1
+ # Ruby linting configuration.
2
+ # We only worry about two kinds of issues: 'error' and anything less than that.
3
+ # Error is not about severity, but about taste. Simple style choices that
4
+ # never have a great excuse to be broken, such as 1.9 JSON-like hash syntax,
5
+ # are errors. Choices that tend to have good exceptions in practice, such as
6
+ # line length, are warnings.
7
+
8
+ # If you'd like to make changes, a full list of available issues is at
9
+ # https://github.com/bbatsov/rubocop/blob/master/config/enabled.yml
10
+ # A list of configurable issues is at:
11
+ # https://github.com/bbatsov/rubocop/blob/master/config/default.yml
12
+ #
13
+ # If you disable a check, document why.
14
+
15
+
16
+ StringLiterals:
17
+ EnforcedStyle: double_quotes
18
+ Severity: error
19
+
20
+ HashSyntax:
21
+ EnforcedStyle: ruby19
22
+ Severity: error
23
+ Exclude:
24
+ - !ruby/regexp /db\/schema.rb/
25
+
26
+ AlignHash:
27
+ SupportedLastArgumentHashStyles: always_ignore
28
+
29
+ AlignParameters:
30
+ Enabled: false # This is usually true, but we often want to roll back to
31
+ # the start of a line.
32
+
33
+ Attr:
34
+ Enabled: false # We have no styleguide guidance here, and it seems to be
35
+ # in frequent use.
36
+
37
+ ClassAndModuleChildren:
38
+ Enabled: false # module X<\n>module Y is just as good as module X::Y.
39
+
40
+ Documentation:
41
+ Exclude:
42
+ - !ruby/regexp /spec\/*\/*/
43
+
44
+ ClassLength:
45
+ Max: 100
46
+ Exclude:
47
+ - !ruby/regexp /spec\/*\/*/
48
+
49
+ PercentLiteralDelimiters:
50
+ PreferredDelimiters:
51
+ '%w': '{}'
52
+
53
+ LineLength:
54
+ Max: 80
55
+ Severity: warning
56
+
57
+ MultilineTernaryOperator:
58
+ Severity: error
59
+
60
+ UnreachableCode:
61
+ Severity: error
62
+
63
+ AndOr:
64
+ Severity: error
65
+
66
+ EndAlignment:
67
+ Severity: error
68
+
69
+ IndentationWidth:
70
+ Severity: error
71
+
72
+ MethodLength:
73
+ CountComments: false # count full line comments?
74
+ Max: 25
75
+ Severity: error
76
+
77
+ Alias:
78
+ Enabled: false # We have no guidance on alias vs alias_method
79
+
80
+ RedundantSelf:
81
+ Enabled: false # Sometimes a self.field is a bit more clear
82
+
83
+ IfUnlessModifier:
84
+ Enabled: false
85
+
86
+ Metrics/AbcSize:
87
+ Max: 16
88
+
89
+ AllCops:
90
+ # Include gemspec and Rakefile
91
+ Include:
92
+ - '**/*.gemspec'
93
+ - '**/*.rake'
94
+ - '**/Gemfile'
95
+ - '**/Rakefile'
96
+ - '**/Capfile'
97
+ - '**/Guardfile'
98
+ - '**/Podfile'
99
+ - '**/Vagrantfile'
100
+ Exclude:
101
+ - 'db/**/*'
102
+ - 'bin/*'
103
+ - 'script/**/*'
104
+ - 'config/**/*'
105
+ - 'vendor/**/*'
106
+ # By default, the rails cops are not run. Override in project or home
107
+ # directory .rubocop.yml files, or by giving the -R/--rails option.
108
+ Rails:
109
+ Enabled: true
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
@@ -0,0 +1,49 @@
1
+ # Contributor Code of Conduct
2
+
3
+ As contributors and maintainers of this project, and in the interest of
4
+ fostering an open and welcoming community, we pledge to respect all people who
5
+ contribute through reporting issues, posting feature requests, updating
6
+ documentation, submitting pull requests or patches, and other activities.
7
+
8
+ We are committed to making participation in this project a harassment-free
9
+ experience for everyone, regardless of level of experience, gender, gender
10
+ identity and expression, sexual orientation, disability, personal appearance,
11
+ body size, race, ethnicity, age, religion, or nationality.
12
+
13
+ Examples of unacceptable behavior by participants include:
14
+
15
+ * The use of sexualized language or imagery
16
+ * Personal attacks
17
+ * Trolling or insulting/derogatory comments
18
+ * Public or private harassment
19
+ * Publishing other's private information, such as physical or electronic
20
+ addresses, without explicit permission
21
+ * Other unethical or unprofessional conduct
22
+
23
+ Project maintainers have the right and responsibility to remove, edit, or
24
+ reject comments, commits, code, wiki edits, issues, and other contributions
25
+ that are not aligned to this Code of Conduct, or to ban temporarily or
26
+ permanently any contributor for other behaviors that they deem inappropriate,
27
+ threatening, offensive, or harmful.
28
+
29
+ By adopting this Code of Conduct, project maintainers commit themselves to
30
+ fairly and consistently applying these principles to every aspect of managing
31
+ this project. Project maintainers who do not follow or enforce the Code of
32
+ Conduct may be permanently removed from the project team.
33
+
34
+ This code of conduct applies both within project spaces and in public spaces
35
+ when an individual is representing the project or its community.
36
+
37
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
38
+ reported by contacting a project maintainer at atmos@atmos.org. All
39
+ complaints will be reviewed and investigated and will result in a response that
40
+ is deemed necessary and appropriate to the circumstances. Maintainers are
41
+ obligated to maintain confidentiality with regard to the reporter of an
42
+ incident.
43
+
44
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage],
45
+ version 1.3.0, available at
46
+ [http://contributor-covenant.org/version/1/3/0/][version]
47
+
48
+ [homepage]: http://contributor-covenant.org
49
+ [version]: http://contributor-covenant.org/version/1/3/0/
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source "https://rubygems.org"
2
+
3
+ # Specify your gem"s dependencies in escobar.gemspec
4
+ gemspec
data/Guardfile ADDED
@@ -0,0 +1,42 @@
1
+ # A sample Guardfile
2
+ # More info at https://github.com/guard/guard#readme
3
+
4
+ ## Uncomment and set this to only include directories you want to watch
5
+ # directories %w(app lib config test spec features) \
6
+ # .select{|d| Dir.exists?(d) ? d : UI.warning("Directory #{d} does not exist")}
7
+
8
+ ## Note: if you are using the `directories` clause above and you are not
9
+ ## watching the project directory ('.'), then you will want to move
10
+ ## the Guardfile to a watched dir and symlink it back, e.g.
11
+ #
12
+ # $ mkdir config
13
+ # $ mv Guardfile config/
14
+ # $ ln -s config/Guardfile .
15
+ #
16
+ # and, you'll have to watch "config/Guardfile" instead of "Guardfile"
17
+
18
+ # Note: The cmd option is now required due to the increasing number of ways
19
+ # rspec may be run, below are examples of the most common uses.
20
+ # * bundler: 'bundle exec rspec'
21
+ # * bundler binstubs: 'bin/rspec'
22
+ # * spring: 'bin/rspec' (This will use spring if running and you have
23
+ # installed the spring binstubs per the docs)
24
+ # * zeus: 'zeus rspec' (requires the server to be started separately)
25
+ # * 'just' rspec: 'rspec'
26
+
27
+ guard :rspec, cmd: "bundle exec rspec" do
28
+ require "guard/rspec/dsl"
29
+ dsl = Guard::RSpec::Dsl.new(self)
30
+
31
+ # Feel free to open issues for suggestions and improvements
32
+
33
+ # RSpec files
34
+ rspec = dsl.rspec
35
+ watch(rspec.spec_helper) { rspec.spec_dir }
36
+ watch(rspec.spec_support) { rspec.spec_dir }
37
+ watch(rspec.spec_files)
38
+
39
+ # Ruby files
40
+ ruby = dsl.ruby
41
+ dsl.watch_spec_files_for(ruby.lib_files)
42
+ end
data/LICENSE.md ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2016 Corey Donohoe
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,27 @@
1
+ # Escobar
2
+
3
+ Escobar is an attempt to combine Heroku Pipelines with GitHub Deployments API.
4
+
5
+ TODO: Delete this and the text above, and describe your gem
6
+
7
+ ## Installation
8
+
9
+ Use the `escobar` gem on rubygems.org.
10
+
11
+ ## Usage
12
+
13
+ Write usage instructions here when it works
14
+
15
+ ## Development
16
+
17
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `bin/cibuild` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
18
+
19
+ ## Contributing
20
+
21
+ Bug reports and pull requests are welcome on GitHub at https://github.com/atmos/escobar. 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.
22
+
23
+
24
+ ## License
25
+
26
+ The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
27
+
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
data/bin/cibuild ADDED
@@ -0,0 +1,14 @@
1
+ #!/bin/sh
2
+
3
+ set -x
4
+ git log -n 1 HEAD | cat
5
+ ruby -v
6
+ bundle -v
7
+ set +x
8
+ set -e
9
+
10
+ export RACK_ENV=test
11
+ export RAILS_ENV=test
12
+
13
+ bundle exec rspec spec
14
+ bundle exec rubocop
data/bin/console ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "escobar"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "irb"
14
+ IRB.start
data/bin/setup ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
data/escobar.gemspec ADDED
@@ -0,0 +1,32 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path("../lib", __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require "escobar/version"
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "escobar"
8
+ spec.version = Escobar::VERSION
9
+ spec.authors = ["Corey Donohoe"]
10
+ spec.email = ["atmos@atmos.org"]
11
+
12
+ spec.summary = %(Heroku pipelines and GitHub Deployments)
13
+ spec.description = %(Heroku pipelines and GitHub Deployments)
14
+ spec.homepage = "https://github.com/atmos/escobar"
15
+ spec.license = "MIT"
16
+
17
+ spec.files = `git ls-files -z`.split("\x0")
18
+ .reject { |f|
19
+ f.match(%r{^(test|spec|features)/})
20
+ }
21
+ spec.bindir = "exe"
22
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
23
+ spec.require_paths = ["lib"]
24
+
25
+ spec.add_dependency "faraday", "~> 0.9.2"
26
+
27
+ spec.add_development_dependency "bundler", "~> 1.11"
28
+ spec.add_development_dependency "guard-rspec", "~> 4.6.2"
29
+ spec.add_development_dependency "rake", "~> 10.0"
30
+ spec.add_development_dependency "rspec", "~> 3.5.0.beta2"
31
+ spec.add_development_dependency "rubocop", "~> 0.38"
32
+ end
data/lib/escobar.rb ADDED
@@ -0,0 +1,8 @@
1
+ require "faraday"
2
+ require "escobar/version"
3
+
4
+ # Top-level module for Escobar code
5
+ module Escobar
6
+ end
7
+
8
+ require_relative "./escobar/client"
@@ -0,0 +1,5 @@
1
+ module Escobar
2
+ # Top-level client for heroku
3
+ class Client
4
+ end
5
+ end
@@ -0,0 +1,3 @@
1
+ module Escobar
2
+ VERSION = "0.1.0".freeze
3
+ end
metadata ADDED
@@ -0,0 +1,145 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: escobar
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Corey Donohoe
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2016-03-17 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: faraday
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: 0.9.2
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: 0.9.2
27
+ - !ruby/object:Gem::Dependency
28
+ name: bundler
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '1.11'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '1.11'
41
+ - !ruby/object:Gem::Dependency
42
+ name: guard-rspec
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: 4.6.2
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: 4.6.2
55
+ - !ruby/object:Gem::Dependency
56
+ name: rake
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '10.0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '10.0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: rspec
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: 3.5.0.beta2
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: 3.5.0.beta2
83
+ - !ruby/object:Gem::Dependency
84
+ name: rubocop
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: '0.38'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: '0.38'
97
+ description: Heroku pipelines and GitHub Deployments
98
+ email:
99
+ - atmos@atmos.org
100
+ executables: []
101
+ extensions: []
102
+ extra_rdoc_files: []
103
+ files:
104
+ - ".gitignore"
105
+ - ".rspec"
106
+ - ".rubocop.yml"
107
+ - ".travis.yml"
108
+ - CODE_OF_CONDUCT.md
109
+ - Gemfile
110
+ - Guardfile
111
+ - LICENSE.md
112
+ - README.md
113
+ - Rakefile
114
+ - bin/cibuild
115
+ - bin/console
116
+ - bin/setup
117
+ - escobar.gemspec
118
+ - lib/escobar.rb
119
+ - lib/escobar/client.rb
120
+ - lib/escobar/version.rb
121
+ homepage: https://github.com/atmos/escobar
122
+ licenses:
123
+ - MIT
124
+ metadata: {}
125
+ post_install_message:
126
+ rdoc_options: []
127
+ require_paths:
128
+ - lib
129
+ required_ruby_version: !ruby/object:Gem::Requirement
130
+ requirements:
131
+ - - ">="
132
+ - !ruby/object:Gem::Version
133
+ version: '0'
134
+ required_rubygems_version: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - ">="
137
+ - !ruby/object:Gem::Version
138
+ version: '0'
139
+ requirements: []
140
+ rubyforge_project:
141
+ rubygems_version: 2.5.1
142
+ signing_key:
143
+ specification_version: 4
144
+ summary: Heroku pipelines and GitHub Deployments
145
+ test_files: []