litterbox 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
+ SHA256:
3
+ metadata.gz: 89858d05cb28335a94b13b770283980e1c7dfcfdafc576366a73804d952479d7
4
+ data.tar.gz: eb76abdb9f0e9997e9e667bd8d2b07249db7b32756e3a30d01c9791e22eb0d57
5
+ SHA512:
6
+ metadata.gz: 4a488804f1f04df21d028ec403328905ef066ef99b31b41a49891bd5f42eb40eab69d32008c792e7567de62334de4de2157113fd1c38c3a16c17d38690046d4d
7
+ data.tar.gz: 8f0c29a918e6e1e9293024d1d3b78f8c7d3ed975a6b159eaa40534d30a77b9975674e770357eb45a1f985deb833fd6b900ff31f2f668f51599a11f47b791c833
@@ -0,0 +1,11 @@
1
+ ### Description
2
+
3
+
4
+ ### What is the current behavior?
5
+
6
+
7
+ ### What is the expected behavior?
8
+
9
+
10
+ ### What is the motivation / use case for changing the behavior?
11
+
@@ -0,0 +1,13 @@
1
+ ### Description
2
+
3
+ [Describe what this change achieves]
4
+
5
+ ### Issues Resolved
6
+
7
+ [List any existing issues this PR resolves]
8
+
9
+ ### Check List
10
+
11
+ - [ ] New functionality has been appropriately documented
12
+ - [ ] New functionality includes unit testing
13
+
data/.gitignore ADDED
@@ -0,0 +1,14 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
9
+
10
+ # rspec failure tracking
11
+ .rspec_status
12
+
13
+ spec/plan
14
+ spec/plan.zip
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
data/.rubocop.yml ADDED
@@ -0,0 +1,6 @@
1
+ # This is the configuration used to check the rubocop source code.
2
+ AllCops:
3
+ Exclude:
4
+ - 'vendor/**/*'
5
+ - 'spec/**/*'
6
+ - 'tmp/**/*'
data/.travis.yml ADDED
@@ -0,0 +1,8 @@
1
+ sudo: false
2
+ language: ruby
3
+ rvm:
4
+ - 2.5.0
5
+ before_install:
6
+ - gem install bundler -v 1.16.1
7
+ - curl https://raw.githubusercontent.com/habitat-sh/habitat/master/components/hab/install.sh | sudo bash
8
+ - ./install_keys.sh
@@ -0,0 +1,74 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ In the interest of fostering an open and welcoming environment, we as
6
+ contributors and maintainers pledge to making participation in our project and
7
+ our community a harassment-free experience for everyone, regardless of age, body
8
+ size, disability, ethnicity, gender identity and expression, level of experience,
9
+ nationality, personal appearance, race, religion, or sexual identity and
10
+ orientation.
11
+
12
+ ## Our Standards
13
+
14
+ Examples of behavior that contributes to creating a positive environment
15
+ include:
16
+
17
+ * Using welcoming and inclusive language
18
+ * Being respectful of differing viewpoints and experiences
19
+ * Gracefully accepting constructive criticism
20
+ * Focusing on what is best for the community
21
+ * Showing empathy towards other community members
22
+
23
+ Examples of unacceptable behavior by participants include:
24
+
25
+ * The use of sexualized language or imagery and unwelcome sexual attention or
26
+ advances
27
+ * Trolling, insulting/derogatory comments, and personal or political attacks
28
+ * Public or private harassment
29
+ * Publishing others' private information, such as a physical or electronic
30
+ address, without explicit permission
31
+ * Other conduct which could reasonably be considered inappropriate in a
32
+ professional setting
33
+
34
+ ## Our Responsibilities
35
+
36
+ Project maintainers are responsible for clarifying the standards of acceptable
37
+ behavior and are expected to take appropriate and fair corrective action in
38
+ response to any instances of unacceptable behavior.
39
+
40
+ Project maintainers have the right and responsibility to remove, edit, or
41
+ reject comments, commits, code, wiki edits, issues, and other contributions
42
+ that are not aligned to this Code of Conduct, or to ban temporarily or
43
+ permanently any contributor for other behaviors that they deem inappropriate,
44
+ threatening, offensive, or harmful.
45
+
46
+ ## Scope
47
+
48
+ This Code of Conduct applies both within project spaces and in public spaces
49
+ when an individual is representing the project or its community. Examples of
50
+ representing a project or community include using an official project e-mail
51
+ address, posting via an official social media account, or acting as an appointed
52
+ representative at an online or offline event. Representation of a project may be
53
+ further defined and clarified by project maintainers.
54
+
55
+ ## Enforcement
56
+
57
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
+ reported by contacting the project team at skylerclayne@gmail.com. All
59
+ complaints will be reviewed and investigated and will result in a response that
60
+ is deemed necessary and appropriate to the circumstances. The project team is
61
+ obligated to maintain confidentiality with regard to the reporter of an incident.
62
+ Further details of specific enforcement policies may be posted separately.
63
+
64
+ Project maintainers who do not follow or enforce the Code of Conduct in good
65
+ faith may face temporary or permanent repercussions as determined by other
66
+ members of the project's leadership.
67
+
68
+ ## Attribution
69
+
70
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
+ available at [http://contributor-covenant.org/version/1/4][version]
72
+
73
+ [homepage]: http://contributor-covenant.org
74
+ [version]: http://contributor-covenant.org/version/1/4/
data/Gemfile ADDED
@@ -0,0 +1,6 @@
1
+ source 'https://rubygems.org'
2
+
3
+ git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }
4
+
5
+ # Specify your gem's dependencies in litterbox.gemspec
6
+ gemspec
data/Gemfile.lock ADDED
@@ -0,0 +1,90 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ litterbox (0.1.0)
5
+ thor (~> 0.20.0)
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ ast (2.4.0)
11
+ coderay (1.1.2)
12
+ diff-lcs (1.3)
13
+ ffi (1.9.23)
14
+ formatador (0.2.5)
15
+ guard (2.14.2)
16
+ formatador (>= 0.2.4)
17
+ listen (>= 2.7, < 4.0)
18
+ lumberjack (>= 1.0.12, < 2.0)
19
+ nenv (~> 0.1)
20
+ notiffany (~> 0.0)
21
+ pry (>= 0.9.12)
22
+ shellany (~> 0.0)
23
+ thor (>= 0.18.1)
24
+ guard-rake (1.0.0)
25
+ guard
26
+ rake
27
+ listen (3.1.5)
28
+ rb-fsevent (~> 0.9, >= 0.9.4)
29
+ rb-inotify (~> 0.9, >= 0.9.7)
30
+ ruby_dep (~> 1.2)
31
+ lumberjack (1.0.12)
32
+ method_source (0.9.0)
33
+ nenv (0.3.0)
34
+ notiffany (0.1.1)
35
+ nenv (~> 0.1)
36
+ shellany (~> 0.0)
37
+ parallel (1.12.1)
38
+ parser (2.5.0.2)
39
+ ast (~> 2.4.0)
40
+ powerpack (0.1.1)
41
+ pry (0.11.3)
42
+ coderay (~> 1.1.0)
43
+ method_source (~> 0.9.0)
44
+ rainbow (3.0.0)
45
+ rake (10.5.0)
46
+ rb-fsevent (0.10.2)
47
+ rb-inotify (0.9.10)
48
+ ffi (>= 0.5.0, < 2)
49
+ rspec (3.7.0)
50
+ rspec-core (~> 3.7.0)
51
+ rspec-expectations (~> 3.7.0)
52
+ rspec-mocks (~> 3.7.0)
53
+ rspec-core (3.7.1)
54
+ rspec-support (~> 3.7.0)
55
+ rspec-expectations (3.7.0)
56
+ diff-lcs (>= 1.2.0, < 2.0)
57
+ rspec-support (~> 3.7.0)
58
+ rspec-mocks (3.7.0)
59
+ diff-lcs (>= 1.2.0, < 2.0)
60
+ rspec-support (~> 3.7.0)
61
+ rspec-support (3.7.1)
62
+ rubocop (0.52.1)
63
+ parallel (~> 1.10)
64
+ parser (>= 2.4.0.2, < 3.0)
65
+ powerpack (~> 0.1)
66
+ rainbow (>= 2.2.2, < 4.0)
67
+ ruby-progressbar (~> 1.7)
68
+ unicode-display_width (~> 1.0, >= 1.0.1)
69
+ ruby-progressbar (1.9.0)
70
+ ruby_dep (1.5.0)
71
+ rubyzip (1.2.1)
72
+ shellany (0.0.1)
73
+ thor (0.20.0)
74
+ unicode-display_width (1.3.0)
75
+
76
+ PLATFORMS
77
+ ruby
78
+
79
+ DEPENDENCIES
80
+ bundler (~> 1.16.1)
81
+ guard (~> 2.14.2)
82
+ guard-rake (~> 1.0.0)
83
+ litterbox!
84
+ rake (~> 10.0)
85
+ rspec (~> 3.0)
86
+ rubocop (~> 0.52.1)
87
+ rubyzip (~> 1.2.1)
88
+
89
+ BUNDLED WITH
90
+ 1.16.1
data/Guardfile ADDED
@@ -0,0 +1,21 @@
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
+ guard :rake, task: 'default' do
19
+ watch(%r{^spec/.+_spec\.rb$})
20
+ watch(%r{^lib/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
21
+ end
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2018 skylerto
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,72 @@
1
+ # Litterbox
2
+
3
+ [![Build Status](https://travis-ci.org/skylerto/litterbox.svg?branch=master)](https://travis-ci.org/skylerto/litterbox)
4
+
5
+ Some of the bits around the edge of Habitat, that I wish were available natively.
6
+
7
+ ## Installation
8
+
9
+ Add this line to your application's Gemfile:
10
+
11
+ ```ruby
12
+ gem 'litterbox'
13
+ ```
14
+
15
+ And then execute:
16
+
17
+ $ bundle
18
+
19
+ Or install it yourself as:
20
+
21
+ $ gem install litterbox
22
+
23
+ ## Usage
24
+
25
+ ### Build
26
+
27
+ ```
28
+ hab = Litterbox::Habitat::Build.new(plan_dir)
29
+ hab.build
30
+ last_build = Litterbox.last_build("#{plan_dir}/results/last_build.env")
31
+ ```
32
+
33
+ ### Upload
34
+
35
+ ```
36
+ hab = Litterbox::Habitat::Upload.new(
37
+ File.join(plan_dir, 'results', last_build.pkg_artifact),
38
+ ENV['HAB_AUTH_TOKEN']
39
+ )
40
+
41
+ hab.upload
42
+ ```
43
+
44
+ ### Promote
45
+
46
+ ```
47
+ channel = 'stable'
48
+ hab = Litterbox::Habitat::Promote.new(
49
+ last_build.pkg_ident,
50
+ channel,
51
+ ENV['HAB_AUTH_TOKEN']
52
+ )
53
+ hab.promote
54
+ ```
55
+
56
+ ## Development
57
+
58
+ 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.
59
+
60
+ 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).
61
+
62
+ ## Contributing
63
+
64
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/litterbox. 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.
65
+
66
+ ## License
67
+
68
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
69
+
70
+ ## Code of Conduct
71
+
72
+ Everyone interacting in the Litterbox project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/litterbox/blob/master/CODE_OF_CONDUCT.md).
data/Rakefile ADDED
@@ -0,0 +1,10 @@
1
+ require 'bundler/gem_tasks'
2
+ require 'rspec/core/rake_task'
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+
6
+ task :rubocop do
7
+ sh 'rubocop'
8
+ end
9
+
10
+ task default: %i[rubocop spec]
data/bin/console ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'bundler/setup'
4
+ require 'litterbox'
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(__FILE__)
data/bin/litterbox ADDED
@@ -0,0 +1,5 @@
1
+ #!/usr/bin/env ruby -U
2
+
3
+ require 'litterbox'
4
+
5
+ Litterbox::CLI.start( ARGV )
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/install_keys.sh ADDED
@@ -0,0 +1,18 @@
1
+ #!/usr/bin/env sh
2
+
3
+ mkdir -p ~/.hab/cache/keys
4
+
5
+ cat << EOF > ~/.hab/cache/keys/skylerto-20180220124055.pub
6
+ SIG-PUB-1
7
+ skylerto-20180220124055
8
+
9
+ $HAB_PUB
10
+ EOF
11
+
12
+ cat << EOF > ~/.hab/cache/keys/skylerto-20180220124055.sig.key
13
+ SIG-SEC-1
14
+ skylerto-20180220124055
15
+
16
+ $HAB_KEY
17
+ EOF
18
+
data/lib/litterbox.rb ADDED
@@ -0,0 +1,71 @@
1
+ require 'thor'
2
+
3
+ require 'litterbox/habitat'
4
+ require 'litterbox/last_build'
5
+ require 'litterbox/version'
6
+
7
+ # Top level module for Litterbox
8
+ module Litterbox
9
+ # Constant to define the name of the last_build file
10
+ LAST_BUILD = 'last_build.env'.freeze
11
+
12
+ # CLI for litterbox
13
+ class CLI < Thor
14
+ desc 'build PATH', 'build a package at the given path defaults to .'
15
+ def build(path = '.')
16
+ Litterbox::Habitat::Build.new(path).build
17
+ end
18
+
19
+ desc 'upload PATH', 'upload the latest build'
20
+ def upload(path)
21
+ path ||= find_last_build
22
+ raise "Could not find last_build.env in #{locations}" unless path
23
+
24
+ path = File.join(LAST_BUILD) unless path.include?(LAST_BUILD)
25
+ last_build = Litterbox.last_build(
26
+ path
27
+ )
28
+
29
+ Litterbox::Habitat::Upload.new(
30
+ File.join(plan_dir, 'results', last_build.pkg_artifact),
31
+ ENV['HAB_AUTH_TOKEN']
32
+ ).upload
33
+ end
34
+
35
+ desc 'export EXPORTER', 'export a package via exporter'
36
+ def export(exporter = 'docker')
37
+ path ||= find_last_build
38
+ raise "Could not find last_build.env in #{locations}" unless path
39
+
40
+ path = File.join(LAST_BUILD) unless path.include?(LAST_BUILD)
41
+ last_build = Litterbox.last_build(
42
+ path
43
+ )
44
+
45
+ Litterbox::Habitat::Export.new(
46
+ File.join(plan_dir, 'results', last_build.pkg_artifact),
47
+ exporter
48
+ ).upload
49
+ end
50
+
51
+ private
52
+
53
+ def find_last_build
54
+ locations = [
55
+ File.join('.', 'results'),
56
+ File.join('habitat', 'results')
57
+ ]
58
+ exists = {}
59
+ locations.each do |loc|
60
+ exists[loc] = File.exist?(File.join(loc, LAST_BUILD))
61
+ end
62
+ exists.select { |_, v| v }.first
63
+ end
64
+ end
65
+
66
+ class << self
67
+ def last_build(path)
68
+ Litterbox::LastBuild.parse(path)
69
+ end
70
+ end
71
+ end
@@ -0,0 +1,10 @@
1
+ require_relative './habitat/build'
2
+ require_relative './habitat/export'
3
+ require_relative './habitat/promote'
4
+ require_relative './habitat/upload'
5
+
6
+ module Litterbox
7
+ # habitat to level module
8
+ module Habitat
9
+ end
10
+ end
@@ -0,0 +1,20 @@
1
+ require 'open3'
2
+
3
+ module Litterbox
4
+ module Habitat
5
+ # Habitat build
6
+ class Build
7
+ def initialize(dir)
8
+ @dir = dir
9
+ end
10
+
11
+ def build(dir = '.')
12
+ Open3.popen3("cd #{@dir} && hab pkg build #{dir}") do |_, stderr, _, _|
13
+ while (line = stderr.gets)
14
+ puts(line)
15
+ end
16
+ end
17
+ end
18
+ end
19
+ end
20
+ end
@@ -0,0 +1,23 @@
1
+ require 'open3'
2
+
3
+ module Litterbox
4
+ module Habitat
5
+ # Habitat upload
6
+ class Export
7
+ def initialize(pkg, exporter = 'docker')
8
+ @pkg = pkg
9
+ @exporter = exporter
10
+ end
11
+
12
+ def upload(pkg = @pkg, exporter = @exporter)
13
+ raise 'file artifact not found' unless File.exist?(pkg)
14
+ Open3.popen3("hab pkg export #{exporter} #{pkg}") do |_, out, _, thr|
15
+ while (line = out.gets)
16
+ puts(line)
17
+ end
18
+ return thr.value
19
+ end
20
+ end
21
+ end
22
+ end
23
+ end
@@ -0,0 +1,24 @@
1
+ require 'open3'
2
+
3
+ module Litterbox
4
+ module Habitat
5
+ # Habitat upload
6
+ class Promote
7
+ def initialize(pkg_ident, channel, auth)
8
+ @pkg_ident = pkg_ident
9
+ @channel = channel
10
+ @auth = auth
11
+ end
12
+
13
+ def promote(pkg_ident = @pkg_ident, channel = @channel, auth = @auth)
14
+ command = "hab pkg promote #{pkg_ident} #{channel} -z #{auth}"
15
+ Open3.popen3(command) do |_, out, _, thr|
16
+ while (line = out.gets)
17
+ puts(line)
18
+ end
19
+ return thr.value
20
+ end
21
+ end
22
+ end
23
+ end
24
+ end
@@ -0,0 +1,23 @@
1
+ require 'open3'
2
+
3
+ module Litterbox
4
+ module Habitat
5
+ # Habitat upload
6
+ class Upload
7
+ def initialize(pkg, auth)
8
+ @pkg = pkg
9
+ @auth = auth
10
+ end
11
+
12
+ def upload(pkg = @pkg, auth = @auth)
13
+ raise 'file artifact not found' unless File.exist?(pkg)
14
+ Open3.popen3("hab pkg upload #{pkg} -z #{auth}") do |_, out, _, thr|
15
+ while (line = out.gets)
16
+ puts(line)
17
+ end
18
+ return thr.value
19
+ end
20
+ end
21
+ end
22
+ end
23
+ end
@@ -0,0 +1,22 @@
1
+ module Litterbox
2
+ # LastBuild class
3
+ class LastBuild
4
+ attr_accessor :pkg_origin
5
+ attr_accessor :pkg_name
6
+ attr_accessor :pkg_version
7
+ attr_accessor :pkg_release
8
+ attr_accessor :pkg_ident
9
+ attr_accessor :pkg_artifact
10
+ attr_accessor :pkg_sha256sum
11
+ attr_accessor :pkg_blake2bsum
12
+
13
+ def self.parse(file)
14
+ build = LastBuild.new
15
+ File.readlines(file).each do |line|
16
+ key, value = line.split('=')
17
+ build.instance_variable_set("@#{key.strip}", value.strip)
18
+ end
19
+ build
20
+ end
21
+ end
22
+ end
@@ -0,0 +1,3 @@
1
+ module Litterbox
2
+ VERSION = '0.1.0'.freeze
3
+ end
data/litterbox.gemspec ADDED
@@ -0,0 +1,34 @@
1
+
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'litterbox/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = 'litterbox'
8
+ spec.version = Litterbox::VERSION
9
+ spec.authors = ['skylerto']
10
+ spec.email = ['skylerclayne@gmail.com']
11
+
12
+ spec.summary = 'Some of the bits around the edge of Habitat'
13
+ spec.description = <<-DESC
14
+ Some of the bits around the edge of Habitat, that I wish were available natively.
15
+ DESC
16
+ spec.homepage = 'https://github.com/skylerto/litterbox'
17
+ spec.license = 'MIT'
18
+
19
+ spec.files = `git ls-files -z`.split("\x0").reject do |f|
20
+ f.match(%r{^(test|spec|features)/})
21
+ end
22
+ spec.bindir = 'bin'
23
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
24
+ spec.require_paths = ['lib']
25
+
26
+ spec.add_development_dependency 'bundler', '~> 1.16.1'
27
+ spec.add_development_dependency 'guard', '~> 2.14.2'
28
+ spec.add_development_dependency 'guard-rake', '~> 1.0.0'
29
+ spec.add_development_dependency 'rake', '~> 10.0'
30
+ spec.add_development_dependency 'rspec', '~> 3.0'
31
+ spec.add_development_dependency 'rubocop', '~> 0.52.1'
32
+ spec.add_development_dependency 'rubyzip', '~> 1.2.1'
33
+ spec.add_dependency 'thor', '~> 0.20.0'
34
+ end
metadata ADDED
@@ -0,0 +1,186 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: litterbox
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - skylerto
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2018-03-29 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.16.1
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: 1.16.1
27
+ - !ruby/object:Gem::Dependency
28
+ name: guard
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: 2.14.2
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: 2.14.2
41
+ - !ruby/object:Gem::Dependency
42
+ name: guard-rake
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: 1.0.0
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: 1.0.0
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.0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '3.0'
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.52.1
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: 0.52.1
97
+ - !ruby/object:Gem::Dependency
98
+ name: rubyzip
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: 1.2.1
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: 1.2.1
111
+ - !ruby/object:Gem::Dependency
112
+ name: thor
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - "~>"
116
+ - !ruby/object:Gem::Version
117
+ version: 0.20.0
118
+ type: :runtime
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - "~>"
123
+ - !ruby/object:Gem::Version
124
+ version: 0.20.0
125
+ description: " Some of the bits around the edge of Habitat, that I wish were available
126
+ natively.\n"
127
+ email:
128
+ - skylerclayne@gmail.com
129
+ executables:
130
+ - console
131
+ - litterbox
132
+ - setup
133
+ extensions: []
134
+ extra_rdoc_files: []
135
+ files:
136
+ - ".github/ISSUE_TEMPLATE.md"
137
+ - ".github/PULL_REQUEST_TEMPLATE.md"
138
+ - ".gitignore"
139
+ - ".rspec"
140
+ - ".rubocop.yml"
141
+ - ".travis.yml"
142
+ - CODE_OF_CONDUCT.md
143
+ - Gemfile
144
+ - Gemfile.lock
145
+ - Guardfile
146
+ - LICENSE.txt
147
+ - README.md
148
+ - Rakefile
149
+ - bin/console
150
+ - bin/litterbox
151
+ - bin/setup
152
+ - install_keys.sh
153
+ - lib/litterbox.rb
154
+ - lib/litterbox/habitat.rb
155
+ - lib/litterbox/habitat/build.rb
156
+ - lib/litterbox/habitat/export.rb
157
+ - lib/litterbox/habitat/promote.rb
158
+ - lib/litterbox/habitat/upload.rb
159
+ - lib/litterbox/last_build.rb
160
+ - lib/litterbox/version.rb
161
+ - litterbox.gemspec
162
+ homepage: https://github.com/skylerto/litterbox
163
+ licenses:
164
+ - MIT
165
+ metadata: {}
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.7.3
183
+ signing_key:
184
+ specification_version: 4
185
+ summary: Some of the bits around the edge of Habitat
186
+ test_files: []