distro 0.0.1

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.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: db70e81166e3561621fc818347004ec55ce42e88
4
+ data.tar.gz: a90bc346b3c92019fb2212e4dbfd29f35e572876
5
+ SHA512:
6
+ metadata.gz: 9c42523d66f2738759acd985ec32d346b22e12d7435b317ed9144b8620410c59720a5c2b56fabaa355bcda1db07886c939bd3bbc41db112ae075e77e1a388f5f
7
+ data.tar.gz: 3692533709bd8ae002c9652a33a85796246d84df4b5e216970cd1cc1483bbdb5d17c20db3c8e0860b523537f5863f03bee72056515896bde094f6a096795410a
@@ -0,0 +1,34 @@
1
+ #!/usr/bin/env sh
2
+
3
+ while test $# -gt 0; do
4
+ case "$1" in
5
+ -a|--about)
6
+ echo "Ensure staged changes don't introduce defects into code style."
7
+ exit 0
8
+ ;;
9
+ -h|--help)
10
+ echo "A git hook installed by ruby-appraiser."
11
+ exit 0
12
+ ;;
13
+ *)
14
+ break
15
+ ;;
16
+ esac
17
+ done
18
+
19
+ echo -e "\033[0;36mRuby Appraiser: running\033[0m"
20
+ bundle exec ruby-appraiser --mode=staged reek rubocop
21
+ result_code=$?
22
+ if [ $result_code -gt "0" ]; then
23
+ echo -en "\033[0;31m" # RED
24
+ echo "[✘] Ruby Appraiser found newly-created defects and "
25
+ echo " has blocked your commit."
26
+ echo " Fix the defects and commit again."
27
+ echo " To bypass, commit again with --no-verify."
28
+ echo -en "\033[0m" # RESET
29
+ exit $result_code
30
+ else
31
+ echo -en "\033[0;32m" # GREEN
32
+ echo "[✔] Ruby Appraiser ok"
33
+ echo -en "\033[0m" #RESET
34
+ fi
@@ -0,0 +1,17 @@
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
@@ -0,0 +1 @@
1
+ 2.1.1
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in distro.gemspec
4
+ gemspec
@@ -0,0 +1,13 @@
1
+ Copyright 2014 Ryan Biesemeyer
2
+
3
+ Licensed under the Apache License, Version 2.0 (the "License");
4
+ you may not use this file except in compliance with the License.
5
+ You may obtain a copy of the License at
6
+
7
+ http://www.apache.org/licenses/LICENSE-2.0
8
+
9
+ Unless required by applicable law or agreed to in writing, software
10
+ distributed under the License is distributed on an "AS IS" BASIS,
11
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ See the License for the specific language governing permissions and
13
+ limitations under the License.
@@ -0,0 +1,40 @@
1
+ # Distro
2
+
3
+ Distro is an opinionated toolchain to facilitate distributed work in ruby, simply.
4
+
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ gem 'distro'
10
+
11
+ And then execute:
12
+
13
+ $ bundle
14
+
15
+ Or install it yourself as:
16
+
17
+ $ gem install distro
18
+
19
+ ## Acceptance Criteria
20
+
21
+ Distro is currently being designed as a modular library with sensible default implementations of the interfaces it presents;
22
+ presently, the following is acceptance criteria:
23
+
24
+ - isolated, replacable, modular interfaces (and default implementations) for
25
+ - command-and-control,
26
+ - loging,
27
+ - queue,
28
+ - metadata, and
29
+ - performers;
30
+ - absolute bare-minimum secondary runtime dependencies;
31
+ - clear insight into:
32
+ - what work has been done,
33
+ - what work has failed, and
34
+ - what work is pending;
35
+ - concurrency-safe tools for managment to handle
36
+ - mitigation of failed work,
37
+ - job control,
38
+ - performer control; and
39
+ - tools for testing dependant application code; and
40
+ - a clear path from a zero-dependency install to production at scale.
@@ -0,0 +1 @@
1
+ require 'bundler/gem_tasks'
@@ -0,0 +1,29 @@
1
+ # encoding: utf-8
2
+
3
+ lib = File.expand_path('../lib', __FILE__)
4
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
+ require 'distro/version'
6
+
7
+ Gem::Specification.new do |spec|
8
+ spec.name = 'distro'
9
+ spec.version = Distro::VERSION
10
+ spec.authors = ['Ryan Biesemeyer']
11
+ spec.email = ['ryan@yaauie.com']
12
+ spec.summary = 'Distro: distributed work, simply.'
13
+ spec.homepage = 'https://github.com/anules/distro'
14
+ spec.license = 'Apache2'
15
+
16
+ spec.files = `git ls-files -z`.split("\x0")
17
+ spec.executables = spec.files.grep(/^bin\//) { |f| File.basename(f) }
18
+ spec.test_files = spec.files.grep(/^(test|spec|features)\//)
19
+ spec.require_paths = ['lib']
20
+
21
+ spec.required_ruby_version = '>= 2.0.0'
22
+
23
+ spec.add_development_dependency 'bundler', '~> 1.5'
24
+ spec.add_development_dependency 'rake', '~>10.0'
25
+ spec.add_development_dependency 'rspec', '~> 3.0'
26
+ spec.add_development_dependency 'yard', '~> 0.8'
27
+ spec.add_development_dependency 'ruby-appraiser-reek', '~> 1.0'
28
+ spec.add_development_dependency 'ruby-appraiser-rubocop', '~> 1.0'
29
+ end
@@ -0,0 +1,8 @@
1
+ # encoding: utf-8
2
+
3
+ require 'distro/version'
4
+
5
+ # A distributed work library to end all distributed work libraries.
6
+ module Distro
7
+ # More to come...
8
+ end
@@ -0,0 +1,6 @@
1
+ # encoding: utf-8
2
+
3
+ # Distro adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html)
4
+ module Distro
5
+ VERSION = '0.0.1'
6
+ end
metadata ADDED
@@ -0,0 +1,139 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: distro
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Ryan Biesemeyer
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2014-07-26 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.5'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.5'
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
+ - !ruby/object:Gem::Dependency
56
+ name: yard
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '0.8'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '0.8'
69
+ - !ruby/object:Gem::Dependency
70
+ name: ruby-appraiser-reek
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '1.0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '1.0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: ruby-appraiser-rubocop
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: '1.0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: '1.0'
97
+ description:
98
+ email:
99
+ - ryan@yaauie.com
100
+ executables: []
101
+ extensions: []
102
+ extra_rdoc_files: []
103
+ files:
104
+ - ".githooks/pre-commit/ruby-appraiser-staged"
105
+ - ".gitignore"
106
+ - ".ruby-version"
107
+ - Gemfile
108
+ - LICENSE.txt
109
+ - README.md
110
+ - Rakefile
111
+ - distro.gemspec
112
+ - lib/distro.rb
113
+ - lib/distro/version.rb
114
+ homepage: https://github.com/anules/distro
115
+ licenses:
116
+ - Apache2
117
+ metadata: {}
118
+ post_install_message:
119
+ rdoc_options: []
120
+ require_paths:
121
+ - lib
122
+ required_ruby_version: !ruby/object:Gem::Requirement
123
+ requirements:
124
+ - - ">="
125
+ - !ruby/object:Gem::Version
126
+ version: 2.0.0
127
+ required_rubygems_version: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ">="
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
132
+ requirements: []
133
+ rubyforge_project:
134
+ rubygems_version: 2.2.2
135
+ signing_key:
136
+ specification_version: 4
137
+ summary: 'Distro: distributed work, simply.'
138
+ test_files: []
139
+ has_rdoc: