overview 0.0.2.1.40
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 +15 -0
- data/.gitignore +2 -0
- data/.rspec +2 -0
- data/.travis.yml +18 -0
- data/Gemfile +2 -0
- data/README.rdoc +6 -0
- data/Rakefile +24 -0
- data/bin/overview +110 -0
- data/lib/appversion/appversion.rb +102 -0
- data/lib/appversion/ci.rb +27 -0
- data/lib/appversion/git.rb +42 -0
- data/lib/appversion/string.rb +14 -0
- data/lib/overview/version.rb +3 -0
- data/lib/overview.rb +13 -0
- data/overview.gemspec +30 -0
- data/overview.rdoc +5 -0
- data/spec/appversion_spec.rb +17 -0
- data/spec/spec_helper.rb +93 -0
- metadata +195 -0
checksums.yaml
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
---
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
OTA4Y2U4ZTI1ZmQ3Y2FjMzBiMjQ1YTM2NjRiMzFhODgxMDZhNWQxZQ==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
NjE3MjBlNzc2NGFmMTQxZmNiZGIzNmQxZWU3NmZjYWM0YzVjOTY5Mg==
|
7
|
+
SHA512:
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
MGU4ZGI0YTIxMTA0NTVkMDFjNTgxZTE2ZTA0ZDZlNTcyMzJkZGU1ZTI0ODc3
|
10
|
+
OTk4YzI5NTJlNDdiYTI5MGM5MzA4MWYxY2M1MDIwODBmZDliOWZmMTQ3ODM5
|
11
|
+
NzM2OWZlY2Y0ODFhM2NhM2I2ODkwY2NhNGQ2NTk0NDZkYzU1Zjg=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
NTUyMjVlZjdkZjEzMzE1NzVhMmYyNWMzNmU3YmNiNmYwZGQzMTVmZmUwNjFl
|
14
|
+
ZTY1ZDk3NWI5ZTA2MzI3NzMzYWI3ZWMwZDQ0NzFmNTg5ZjNmMTczNDgwZmZl
|
15
|
+
NzUwMzI1MzY3YmY5ZGE3NDhhMDIzMjE3YjM5YjQxYTlkZGM4MmE=
|
data/.gitignore
ADDED
data/.rspec
ADDED
data/.travis.yml
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
language: ruby
|
2
|
+
addons:
|
3
|
+
code_climate:
|
4
|
+
repo_token: 39120adb6403522f1d68fefdc6cc8c095d7ab862e780a13f5a3ec8a1b12bd718
|
5
|
+
notifications:
|
6
|
+
slack: over:lx3jYeMhQVhB5IESO7Z0RoRD
|
7
|
+
email: false
|
8
|
+
rvm:
|
9
|
+
- 2.0.0
|
10
|
+
before_script: bundle exec gem bump --version $(bundle exec ./bin/overview appversion -r | tail -1) --no-commit
|
11
|
+
deploy:
|
12
|
+
provider: rubygems
|
13
|
+
api_key:
|
14
|
+
secure: gh0GksPAZk6veUZpsfq15UwZfVgslrUaNcqsNapq2oCB4TiHX3e6UCF8xFfLJZriML9tQNZWtC2u61gzZWqG788rUVMuJRVTci99BNTqj4xrMfkhyqxLlRMB961jzo3vJU4cLNjjir6paZKsfwVdyPbHjZq973dVn6+2bPcmiHI=
|
15
|
+
gem: overview
|
16
|
+
on:
|
17
|
+
tags: true
|
18
|
+
repo: overllc/overview
|
data/Gemfile
ADDED
data/README.rdoc
ADDED
@@ -0,0 +1,6 @@
|
|
1
|
+
= overview {<img src="https://codeclimate.com/github/overllc/overview/badges/gpa.svg" />}[https://codeclimate.com/github/overllc/overview] {<img src="https://codeclimate.com/github/overllc/overview/badges/coverage.svg" />}[https://codeclimate.com/github/overllc/overview] {<img src="https://travis-ci.org/overllc/overview.svg?branch=master" alt="Build Status" />}[https://travis-ci.org/overllc/overview]
|
2
|
+
|
3
|
+
Describe your project here
|
4
|
+
|
5
|
+
:include:overview.rdoc
|
6
|
+
|
data/Rakefile
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
require 'rake/clean'
|
2
|
+
require 'rubygems'
|
3
|
+
require 'rubygems/package_task'
|
4
|
+
require 'rdoc/task'
|
5
|
+
|
6
|
+
Rake::RDocTask.new do |rd|
|
7
|
+
rd.main = "README.rdoc"
|
8
|
+
rd.rdoc_files.include("README.rdoc", "lib/**/*.rb", "bin/**/*")
|
9
|
+
rd.title = 'Your application title'
|
10
|
+
end
|
11
|
+
|
12
|
+
spec = eval(File.read('overview.gemspec'))
|
13
|
+
|
14
|
+
Gem::PackageTask.new(spec) do |pkg|
|
15
|
+
end
|
16
|
+
|
17
|
+
require 'rspec/core/rake_task'
|
18
|
+
|
19
|
+
RSpec::Core::RakeTask.new(:spec) do |t|
|
20
|
+
t.fail_on_error = true
|
21
|
+
end
|
22
|
+
|
23
|
+
task :default => :spec
|
24
|
+
|
data/bin/overview
ADDED
@@ -0,0 +1,110 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
require 'gli'
|
3
|
+
require 'overview'
|
4
|
+
|
5
|
+
include GLI::App
|
6
|
+
include Overview
|
7
|
+
|
8
|
+
program_desc "Config management tool connecting Over's CI / CD toolchain"
|
9
|
+
|
10
|
+
version Overview::VERSION
|
11
|
+
|
12
|
+
subcommand_option_handling :normal
|
13
|
+
arguments :strict
|
14
|
+
|
15
|
+
desc 'Describe some switch here'
|
16
|
+
switch [:s,:switch]
|
17
|
+
|
18
|
+
desc 'Describe some flag here'
|
19
|
+
default_value 'the default'
|
20
|
+
arg_name 'The name of the argument'
|
21
|
+
flag [:f,:flagname]
|
22
|
+
|
23
|
+
desc 'Describe deploy here'
|
24
|
+
arg_name 'Describe arguments to deploy here'
|
25
|
+
command :deploy do |c|
|
26
|
+
c.desc 'Describe a switch to deploy'
|
27
|
+
c.switch :s
|
28
|
+
|
29
|
+
c.desc 'Describe a flag to deploy'
|
30
|
+
c.default_value 'default'
|
31
|
+
c.flag :f
|
32
|
+
c.action do |global_options,options,args|
|
33
|
+
|
34
|
+
# Your command logic here
|
35
|
+
|
36
|
+
# If you have any errors, just raise them
|
37
|
+
# raise "that command made no sense"
|
38
|
+
|
39
|
+
puts "deploy command ran"
|
40
|
+
end
|
41
|
+
end
|
42
|
+
|
43
|
+
|
44
|
+
|
45
|
+
desc 'Retrieve the changelog for the latest commit'
|
46
|
+
#arg_name 'audience'
|
47
|
+
command :changelog do |c|
|
48
|
+
#c.desc 'Describe a switch to deploy'
|
49
|
+
#c.switch :s
|
50
|
+
c.desc "Audience receiving the changelog. Possible options are: alpha; beta; production"
|
51
|
+
c.default_value 'production'
|
52
|
+
c.flag :a
|
53
|
+
c.action do |global_options,options,args|
|
54
|
+
puts "alphalog command ran"
|
55
|
+
end
|
56
|
+
end
|
57
|
+
|
58
|
+
desc 'Derive app version from Github tag, release and branch, and build from CI server e.g. v2.8.6-pnginitialsize (5462)'
|
59
|
+
arg_name 'github_token', :input
|
60
|
+
command :appversion do |c|
|
61
|
+
c.desc 'Semantic version only e.g. 0.1.1'
|
62
|
+
c.switch :s
|
63
|
+
c.desc 'Build number only e.g. 534'
|
64
|
+
c.switch :b
|
65
|
+
c.desc 'Version (no build) with branch e.g. 0.1.1-feature'
|
66
|
+
c.switch :v
|
67
|
+
c.desc 'Rubygem compatible version with build appended e.g. 0.1.1.534'
|
68
|
+
c.switch :r
|
69
|
+
c.desc 'Github token'
|
70
|
+
c.flag :g
|
71
|
+
c.action do |global_options,options,args|
|
72
|
+
ENV['GITHUB_TOKEN'] = options[:g]
|
73
|
+
if options[:s]
|
74
|
+
puts Overview::AppVersion.new.version(true).to_s
|
75
|
+
elsif options[:b]
|
76
|
+
puts Overview::AppVersion.new.build_no.to_s
|
77
|
+
elsif options[:v]
|
78
|
+
puts Overview::AppVersion.new.version.to_s
|
79
|
+
elsif options[:r]
|
80
|
+
puts "#{Overview::AppVersion.new.version.to_s}.#{Overview::AppVersion.new.build_no.to_s}"
|
81
|
+
else
|
82
|
+
puts Overview::AppVersion.new.to_s
|
83
|
+
end
|
84
|
+
end
|
85
|
+
end
|
86
|
+
|
87
|
+
pre do |global,command,options,args|
|
88
|
+
# Pre logic here
|
89
|
+
# Return true to proceed; false to abort and not call the
|
90
|
+
# chosen command
|
91
|
+
# Use skips_pre before a command to skip this block
|
92
|
+
# on that command only
|
93
|
+
true
|
94
|
+
end
|
95
|
+
|
96
|
+
post do |global,command,options,args|
|
97
|
+
# Post logic here
|
98
|
+
# Use skips_post before a command to skip this
|
99
|
+
# block on that command only
|
100
|
+
end
|
101
|
+
|
102
|
+
on_error do |exception|
|
103
|
+
# Error logic here
|
104
|
+
# return false to skip default error handling
|
105
|
+
true
|
106
|
+
end
|
107
|
+
|
108
|
+
|
109
|
+
|
110
|
+
exit run(ARGV)
|
@@ -0,0 +1,102 @@
|
|
1
|
+
module Overview
|
2
|
+
|
3
|
+
class Release
|
4
|
+
def self.is_pre_release?(tag)
|
5
|
+
default = TRUE #default to true if running locally
|
6
|
+
begin
|
7
|
+
if tag.empty?
|
8
|
+
p 'No tag, so unable to check Github release status.'
|
9
|
+
default
|
10
|
+
else
|
11
|
+
require 'octokit'
|
12
|
+
repo = Git.repo
|
13
|
+
p "Repo slug is #{repo}."
|
14
|
+
if repo.empty? || ENV['GITHUB_TOKEN'].nil? #for local builds
|
15
|
+
p 'GITHUB_TOKEN missing, running locally.'
|
16
|
+
default
|
17
|
+
else
|
18
|
+
client = Octokit::Client.new(:access_token => ENV['GITHUB_TOKEN'])
|
19
|
+
p 'Connecting to Github.'
|
20
|
+
client.user.login
|
21
|
+
client.default_media_type = "application/vnd.github.moondragon+json"
|
22
|
+
release = client.release_for_tag(repo, tag)
|
23
|
+
p 'Checking Github release status.'
|
24
|
+
release[:prerelease]
|
25
|
+
end
|
26
|
+
end
|
27
|
+
|
28
|
+
rescue LoadError
|
29
|
+
p 'Octokit gem missing, running locally.'
|
30
|
+
default
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
class AppVersion
|
36
|
+
|
37
|
+
def to_s
|
38
|
+
"#{version} (#{build_no})"
|
39
|
+
end
|
40
|
+
|
41
|
+
def version(semantic = false)
|
42
|
+
version_suffix = CI.version_suffix
|
43
|
+
if Git.installed?
|
44
|
+
latest_tag = Git.tag
|
45
|
+
if latest_tag == 'HEAD'
|
46
|
+
commit_count = Git.commit_count
|
47
|
+
clean_tag = '0.0.1'
|
48
|
+
elsif latest_tag.empty? #not a git directory
|
49
|
+
commit_count = 0
|
50
|
+
clean_tag = '0.0.1'
|
51
|
+
else
|
52
|
+
commit_count_since_tag = Git.commit_count_since_tag(latest_tag)
|
53
|
+
clean_tag = Git.clean_tag
|
54
|
+
end
|
55
|
+
#Only increment version after production release, so that we retain a single version during beta and RCs
|
56
|
+
if commit_count_since_tag == 0 || Release.is_pre_release?(latest_tag)
|
57
|
+
short_version = clean_tag
|
58
|
+
else
|
59
|
+
short_version = clean_tag.increment_version
|
60
|
+
end
|
61
|
+
|
62
|
+
target = !version_suffix.empty? ? ":#{version_suffix.upcase}" : ''
|
63
|
+
if semantic
|
64
|
+
short_version
|
65
|
+
else
|
66
|
+
short_version + target + suffix
|
67
|
+
end
|
68
|
+
else
|
69
|
+
$stderr.puts 'Git required, not installed.'
|
70
|
+
exit 1
|
71
|
+
end
|
72
|
+
end
|
73
|
+
|
74
|
+
def build_no
|
75
|
+
CI.build_no
|
76
|
+
end
|
77
|
+
|
78
|
+
def suffix
|
79
|
+
branch = Git.branch
|
80
|
+
p "Branch = #{branch}"
|
81
|
+
case branch
|
82
|
+
when /develop/
|
83
|
+
suffix = '-develop'
|
84
|
+
when /master/
|
85
|
+
suffix = '-master'
|
86
|
+
when /feature*/
|
87
|
+
suffix = "-#{branch.split('/').last.downcase}"
|
88
|
+
when /release*/
|
89
|
+
suffix = "-#{branch.split('/').last.downcase}"
|
90
|
+
when /hotfix*/
|
91
|
+
suffix = "-#{branch.split('/').last.downcase}"
|
92
|
+
else
|
93
|
+
suffix = '-debug'
|
94
|
+
end
|
95
|
+
#special case for github releases
|
96
|
+
if CI.tagged_build?
|
97
|
+
suffix = ''
|
98
|
+
end
|
99
|
+
return suffix
|
100
|
+
end
|
101
|
+
end
|
102
|
+
end
|
@@ -0,0 +1,27 @@
|
|
1
|
+
module Overview
|
2
|
+
|
3
|
+
class CI
|
4
|
+
DEFAULT_BUILD_NO = '1'
|
5
|
+
|
6
|
+
def self.tagged_build?
|
7
|
+
!ENV['TRAVIS_TAG'].nil?
|
8
|
+
end
|
9
|
+
|
10
|
+
def self.build_no
|
11
|
+
ENV["TRAVIS_BUILD_NUMBER"] || ENV["CIRCLE_BUILD_NUM"] || DEFAULT_BUILD_NO
|
12
|
+
end
|
13
|
+
|
14
|
+
def self.branch
|
15
|
+
ENV['TRAVIS_REPO_SLUG'] || ENV['CIRCLE_PROJECT_REPONAME']
|
16
|
+
end
|
17
|
+
|
18
|
+
def self.repo
|
19
|
+
ENV['TRAVIS_REPO_SLUG'] || ENV['CIRCLE_PROJECT_REPONAME']
|
20
|
+
end
|
21
|
+
|
22
|
+
def self.version_suffix
|
23
|
+
ENV['VERSION_SUFFIX'] || ''
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
27
|
+
end
|
@@ -0,0 +1,42 @@
|
|
1
|
+
require_relative 'string.rb'
|
2
|
+
require_relative 'ci.rb'
|
3
|
+
|
4
|
+
module Overview
|
5
|
+
|
6
|
+
class Git
|
7
|
+
def self.remote
|
8
|
+
begin
|
9
|
+
`git remote -v show`.lines.first.strip.match(/github\.com[\/|:](.+)\.git/)[1]
|
10
|
+
rescue
|
11
|
+
$stderr.puts 'Unable to retrieve slug from >> git remote -v show'
|
12
|
+
exit 1
|
13
|
+
end
|
14
|
+
end
|
15
|
+
def self.repo
|
16
|
+
CI.repo || remote
|
17
|
+
end
|
18
|
+
def self.branch
|
19
|
+
CI.branch || `git rev-parse --abbrev-ref HEAD`.strip
|
20
|
+
end
|
21
|
+
def self.tag
|
22
|
+
(`git describe --tags --match 'v*' --abbrev=0 2>/dev/null` || 'HEAD').strip
|
23
|
+
end
|
24
|
+
def self.clean_tag
|
25
|
+
tag.strip.sub('v','').split('.').select { |e| e.is_number?}.join('.')
|
26
|
+
end
|
27
|
+
def self.commit_count
|
28
|
+
`git rev-list --count HEAD`
|
29
|
+
end
|
30
|
+
def self.commit_count_since_tag(tag)
|
31
|
+
`git rev-list --count ${tag}.. 2>/dev/null`
|
32
|
+
end
|
33
|
+
def self.installed?
|
34
|
+
system 'git --version >>/dev/null 2>&1'
|
35
|
+
end
|
36
|
+
end
|
37
|
+
def clean_tag
|
38
|
+
tag.strip.sub('v','').split('.').select { |e| e.is_number?}.join('.')
|
39
|
+
end
|
40
|
+
end
|
41
|
+
|
42
|
+
#puts Overview::Git.clean_tag
|
@@ -0,0 +1,14 @@
|
|
1
|
+
class String
|
2
|
+
def increment_version
|
3
|
+
short_version_parts = self.split('.')
|
4
|
+
last_digit = short_version_parts.last.to_i + 1
|
5
|
+
$stdout.puts 'Incrementing version...'
|
6
|
+
"#{short_version_parts.first(short_version_parts.length-1).join(".")}.#{last_digit}"
|
7
|
+
end
|
8
|
+
def increment_version!
|
9
|
+
replace increment_version
|
10
|
+
end
|
11
|
+
def is_number?
|
12
|
+
true if Float(self) rescue false
|
13
|
+
end
|
14
|
+
end
|
data/lib/overview.rb
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
require_relative 'overview/version.rb'
|
2
|
+
require_relative 'appversion/appversion.rb'
|
3
|
+
require_relative 'appversion/git.rb'
|
4
|
+
require_relative 'appversion/ci.rb'
|
5
|
+
require_relative 'appversion/string.rb'
|
6
|
+
|
7
|
+
|
8
|
+
# Add requires for other files you add to your project here, so
|
9
|
+
# you just need to require this one file in your bin file
|
10
|
+
|
11
|
+
|
12
|
+
|
13
|
+
|
data/overview.gemspec
ADDED
@@ -0,0 +1,30 @@
|
|
1
|
+
# Ensure we require the local version and not one we might have installed already
|
2
|
+
require File.join([File.dirname(__FILE__),'lib','overview','version.rb'])
|
3
|
+
|
4
|
+
spec = Gem::Specification.new do |s|
|
5
|
+
s.name = 'overview'
|
6
|
+
s.version = Overview::VERSION
|
7
|
+
s.author = 'Jonathan Orford'
|
8
|
+
s.email = 'jono@overllc.com'
|
9
|
+
s.homepage = 'http://www.overllc.com'
|
10
|
+
s.platform = Gem::Platform::RUBY
|
11
|
+
s.summary = "Over's custom CI / CD toolchain, integrating Sprint.ly, Github, Travis and ITC"
|
12
|
+
s.files = `git ls-files`.split("
|
13
|
+
")
|
14
|
+
s.require_paths << 'lib'
|
15
|
+
s.has_rdoc = true
|
16
|
+
s.extra_rdoc_files = ['README.rdoc','overview.rdoc']
|
17
|
+
s.rdoc_options << '--title' << 'overview' << '--main' << 'README.rdoc' << '-ri'
|
18
|
+
s.bindir = 'bin'
|
19
|
+
s.executables << 'overview'
|
20
|
+
s.add_development_dependency('rake')
|
21
|
+
s.add_development_dependency('rdoc')
|
22
|
+
s.add_development_dependency('aruba')
|
23
|
+
s.add_development_dependency('rspec')
|
24
|
+
s.add_development_dependency('rspec_junit_formatter')
|
25
|
+
s.add_development_dependency('codeclimate-test-reporter')
|
26
|
+
s.add_development_dependency('gem-release')
|
27
|
+
s.add_runtime_dependency('gli','2.13.0')
|
28
|
+
s.add_runtime_dependency('octokit','3.8.0')
|
29
|
+
|
30
|
+
end
|
data/overview.rdoc
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
require 'appversion/ci'
|
3
|
+
|
4
|
+
|
5
|
+
RSpec.describe '#build_no' do
|
6
|
+
|
7
|
+
include Overview
|
8
|
+
|
9
|
+
context 'running on CI' do
|
10
|
+
it 'returns build number' do
|
11
|
+
build_no = ENV['TRAVIS_BUILD_NUMBER'] || ENV['CIRCLE_BUILD_NUM'] || '1'
|
12
|
+
expect(Overview::CI.build_no).to eq(build_no)
|
13
|
+
end
|
14
|
+
|
15
|
+
end
|
16
|
+
|
17
|
+
end
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,93 @@
|
|
1
|
+
# This file was generated by the `rspec --init` command. Conventionally, all
|
2
|
+
# specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
|
3
|
+
# The generated `.rspec` file contains `--require spec_helper` which will cause
|
4
|
+
# this file to always be loaded, without a need to explicitly require it in any
|
5
|
+
# files.
|
6
|
+
#
|
7
|
+
# Given that it is always loaded, you are encouraged to keep this file as
|
8
|
+
# light-weight as possible. Requiring heavyweight dependencies from this file
|
9
|
+
# will add to the boot time of your test suite on EVERY test run, even for an
|
10
|
+
# individual file that may not need all of that loaded. Instead, consider making
|
11
|
+
# a separate helper file that requires the additional dependencies and performs
|
12
|
+
# the additional setup, and require it from the spec files that actually need
|
13
|
+
# it.
|
14
|
+
#
|
15
|
+
# The `.rspec` file also contains a few flags that are not defaults but that
|
16
|
+
# users commonly want.
|
17
|
+
#
|
18
|
+
# See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
|
19
|
+
|
20
|
+
require "codeclimate-test-reporter"
|
21
|
+
CodeClimate::TestReporter.start
|
22
|
+
|
23
|
+
RSpec.configure do |config|
|
24
|
+
# rspec-expectations config goes here. You can use an alternate
|
25
|
+
# assertion/expectation library such as wrong or the stdlib/minitest
|
26
|
+
# assertions if you prefer.
|
27
|
+
config.expect_with :rspec do |expectations|
|
28
|
+
# This option will default to `true` in RSpec 4. It makes the `description`
|
29
|
+
# and `failure_message` of custom matchers include text for helper methods
|
30
|
+
# defined using `chain`, e.g.:
|
31
|
+
# be_bigger_than(2).and_smaller_than(4).description
|
32
|
+
# # => "be bigger than 2 and smaller than 4"
|
33
|
+
# ...rather than:
|
34
|
+
# # => "be bigger than 2"
|
35
|
+
expectations.include_chain_clauses_in_custom_matcher_descriptions = true
|
36
|
+
end
|
37
|
+
|
38
|
+
# rspec-mocks config goes here. You can use an alternate test double
|
39
|
+
# library (such as bogus or mocha) by changing the `mock_with` option here.
|
40
|
+
config.mock_with :rspec do |mocks|
|
41
|
+
# Prevents you from mocking or stubbing a method that does not exist on
|
42
|
+
# a real object. This is generally recommended, and will default to
|
43
|
+
# `true` in RSpec 4.
|
44
|
+
mocks.verify_partial_doubles = true
|
45
|
+
end
|
46
|
+
|
47
|
+
# The settings below are suggested to provide a good initial experience
|
48
|
+
# with RSpec, but feel free to customize to your heart's content.
|
49
|
+
# These two settings work together to allow you to limit a spec run
|
50
|
+
# to individual examples or groups you care about by tagging them with
|
51
|
+
# `:focus` metadata. When nothing is tagged with `:focus`, all examples
|
52
|
+
# get run.
|
53
|
+
config.filter_run :focus
|
54
|
+
config.run_all_when_everything_filtered = true
|
55
|
+
|
56
|
+
# Limits the available syntax to the non-monkey patched syntax that is
|
57
|
+
# recommended. For more details, see:
|
58
|
+
# - http://myronmars.to/n/dev-blog/2012/06/rspecs-new-expectation-syntax
|
59
|
+
# - http://teaisaweso.me/blog/2013/05/27/rspecs-new-message-expectation-syntax/
|
60
|
+
# - http://myronmars.to/n/dev-blog/2014/05/notable-changes-in-rspec-3#new__config_option_to_disable_rspeccore_monkey_patching
|
61
|
+
config.disable_monkey_patching!
|
62
|
+
|
63
|
+
# This setting enables warnings. It's recommended, but in some cases may
|
64
|
+
# be too noisy due to issues in dependencies.
|
65
|
+
config.warnings = true
|
66
|
+
|
67
|
+
# Many RSpec users commonly either run the entire suite or an individual
|
68
|
+
# file, and it's useful to allow more verbose output when running an
|
69
|
+
# individual spec file.
|
70
|
+
if config.files_to_run.one?
|
71
|
+
# Use the documentation formatter for detailed output,
|
72
|
+
# unless a formatter has already been configured
|
73
|
+
# (e.g. via a command-line flag).
|
74
|
+
config.default_formatter = 'doc'
|
75
|
+
end
|
76
|
+
|
77
|
+
# Print the 10 slowest examples and example groups at the
|
78
|
+
# end of the spec run, to help surface which specs are running
|
79
|
+
# particularly slow.
|
80
|
+
config.profile_examples = 10
|
81
|
+
|
82
|
+
# Run specs in random order to surface order dependencies. If you find an
|
83
|
+
# order dependency and want to debug it, you can fix the order by providing
|
84
|
+
# the seed, which is printed after each run.
|
85
|
+
# --seed 1234
|
86
|
+
config.order = :random
|
87
|
+
|
88
|
+
# Seed global randomization in this process using the `--seed` CLI option.
|
89
|
+
# Setting this allows you to use `--seed` to deterministically reproduce
|
90
|
+
# test failures related to randomization by passing the same `--seed` value
|
91
|
+
# as the one that triggered the failure.
|
92
|
+
Kernel.srand config.seed
|
93
|
+
end
|
metadata
ADDED
@@ -0,0 +1,195 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: overview
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.2.1.40
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Jonathan Orford
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2015-04-01 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: rake
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ! '>='
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ! '>='
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rdoc
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ! '>='
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ! '>='
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: aruba
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ! '>='
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ! '>='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rspec
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ! '>='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ! '>='
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: rspec_junit_formatter
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ! '>='
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ! '>='
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: codeclimate-test-reporter
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ! '>='
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ! '>='
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: gem-release
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ! '>='
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ! '>='
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: gli
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - '='
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: 2.13.0
|
118
|
+
type: :runtime
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - '='
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: 2.13.0
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: octokit
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - '='
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: 3.8.0
|
132
|
+
type: :runtime
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - '='
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: 3.8.0
|
139
|
+
description:
|
140
|
+
email: jono@overllc.com
|
141
|
+
executables:
|
142
|
+
- overview
|
143
|
+
extensions: []
|
144
|
+
extra_rdoc_files:
|
145
|
+
- README.rdoc
|
146
|
+
- overview.rdoc
|
147
|
+
files:
|
148
|
+
- .gitignore
|
149
|
+
- .rspec
|
150
|
+
- .travis.yml
|
151
|
+
- Gemfile
|
152
|
+
- README.rdoc
|
153
|
+
- Rakefile
|
154
|
+
- bin/overview
|
155
|
+
- lib/appversion/appversion.rb
|
156
|
+
- lib/appversion/ci.rb
|
157
|
+
- lib/appversion/git.rb
|
158
|
+
- lib/appversion/string.rb
|
159
|
+
- lib/overview.rb
|
160
|
+
- lib/overview/version.rb
|
161
|
+
- overview.gemspec
|
162
|
+
- overview.rdoc
|
163
|
+
- spec/appversion_spec.rb
|
164
|
+
- spec/spec_helper.rb
|
165
|
+
homepage: http://www.overllc.com
|
166
|
+
licenses: []
|
167
|
+
metadata: {}
|
168
|
+
post_install_message:
|
169
|
+
rdoc_options:
|
170
|
+
- --title
|
171
|
+
- overview
|
172
|
+
- --main
|
173
|
+
- README.rdoc
|
174
|
+
- -ri
|
175
|
+
require_paths:
|
176
|
+
- lib
|
177
|
+
- lib
|
178
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
179
|
+
requirements:
|
180
|
+
- - ! '>='
|
181
|
+
- !ruby/object:Gem::Version
|
182
|
+
version: '0'
|
183
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
184
|
+
requirements:
|
185
|
+
- - ! '>='
|
186
|
+
- !ruby/object:Gem::Version
|
187
|
+
version: '0'
|
188
|
+
requirements: []
|
189
|
+
rubyforge_project:
|
190
|
+
rubygems_version: 2.4.5
|
191
|
+
signing_key:
|
192
|
+
specification_version: 4
|
193
|
+
summary: Over's custom CI / CD toolchain, integrating Sprint.ly, Github, Travis and
|
194
|
+
ITC
|
195
|
+
test_files: []
|