Skip to content

Commit 90fc840

Browse files
committed
initial version
0 parents  commit 90fc840

41 files changed

Lines changed: 1420 additions & 0 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.gitignore‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
/.bundle/
2+
/.yardoc
3+
/Gemfile.lock
4+
/*.gem
5+
/_yardoc/
6+
/coverage/
7+
/doc/
8+
/pkg/
9+
/spec/reports/
10+
/tmp/
11+
12+
# rspec failure tracking
13+
.rspec_status

‎.rspec‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
--format documentation
2+
--color
3+
--require spec_helper

‎.rubocop.yml‎

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
AllCops:
2+
DisplayCopNames: true # Display the name of the failing cops
3+
Exclude:
4+
- 'gemfiles/vendor/**/*'
5+
- 'vendor/**/*'
6+
7+
Metrics/BlockLength:
8+
ExcludedMethods:
9+
- context
10+
- describe
11+
- it
12+
- shared_context
13+
- shared_examples
14+
- shared_examples_for
15+
- namespace
16+
- draw
17+
18+
Metrics/LineLength:
19+
Enabled: false
20+
21+
Style/HashSyntax:
22+
EnforcedStyle: hash_rockets
23+
24+
Style/Lambda:
25+
Enabled: false
26+
27+
Style/PercentLiteralDelimiters:
28+
Enabled: false
29+
30+
Style/SymbolArray:
31+
Enabled: false
32+
33+
# Enable when drop support for Ruby < 2
34+
Style/ExpandPathArguments:
35+
Enabled: false

‎.travis.yml‎

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
env:
2+
global:
3+
- JRUBY_OPTS="-Xcli.debug=true --debug"
4+
- CC_TEST_REPORTER_ID=b371af9d80b8b1f593e87d11c20137cf7573149a6296278715acd3fa48ddc280
5+
6+
before_script:
7+
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
8+
- chmod +x ./cc-test-reporter
9+
- ./cc-test-reporter before-build
10+
11+
script:
12+
- bundle exec rspec
13+
14+
after_script:
15+
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
16+
17+
before_install:
18+
- gem update --system
19+
- gem install bundler
20+
21+
install:
22+
- bundle install
23+
24+
bundler_args: --no-deployment --jobs 3 --retry 3
25+
26+
cache: bundler
27+
28+
language: ruby
29+
sudo: false
30+
matrix:
31+
allow_failures:
32+
- rvm: jruby-head
33+
- rvm: ruby-head
34+
fast_finish: true
35+
include:
36+
- rvm: 1.8.7-p371
37+
gemfile: gemfiles/ruby_1.8.7_p371.gemfile
38+
- rvm: 1.9.3-p551
39+
gemfile: gemfiles/ruby_1.9.3_p551.gemfile
40+
- rvm: 2.0.0-p648
41+
gemfile: gemfiles/ruby_2.0.0_p648.gemfile
42+
- rvm: 2.1.10
43+
gemfile: gemfiles/ruby_2.1.10.gemfile
44+
- rvm: 2.2.10
45+
gemfile: gemfiles/ruby_2.2.10.gemfile
46+
- rvm: 2.3.7
47+
gemfile: gemfiles/ruby_2.3.7.gemfile
48+
- rvm: 2.4.4
49+
gemfile: gemfiles/ruby_2.4.4.gemfile
50+
- rvm: 2.5.1
51+
gemfile: gemfiles/ruby_2.5.1.gemfile
52+
- rvm: ruby-head
53+
gemfile: gemfiles/ruby_head.gemfile
54+
- rvm: jruby-1.7.26
55+
gemfile: gemfiles/jruby_1.7.26.gemfile
56+
- rvm: jruby-9.1.9.0
57+
gemfile: gemfiles/jruby_9.1.9.0.gemfile
58+
- rvm: jruby-9.2.0.0
59+
gemfile: gemfiles/jruby_9.2.0.0.gemfile
60+
- rvm: jruby-head
61+
gemfile: gemfiles/jruby_head.gemfile

‎Appraisals‎

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
appraise 'jruby-1.7.26' do
2+
end
3+
4+
appraise 'ruby-1.8.7-p371' do
5+
end
6+
7+
appraise 'ruby-1.9.3-p551' do
8+
end
9+
10+
appraise 'ruby-2.0.0-p648' do
11+
end
12+
13+
appraise 'ruby-2.1.10' do
14+
end
15+
16+
appraise 'ruby-2.2.10' do
17+
end
18+
19+
appraise 'jruby-9.1.9.0' do
20+
end
21+
22+
appraise 'ruby-2.3.7' do
23+
end
24+
25+
appraise 'ruby-2.4.4' do
26+
end
27+
28+
appraise 'ruby-2.5.1' do
29+
end
30+
31+
appraise 'jruby-9.2.0.0' do
32+
end

‎CODE_OF_CONDUCT.md‎

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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 peter.boling@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/

‎Gemfile‎

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
source 'https://rubygems.org'
2+
3+
git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }
4+
5+
group :test do
6+
ruby_version = Gem::Version.new(RUBY_VERSION)
7+
if ruby_version >= Gem::Version.new('2.1')
8+
gem 'rubocop', '~> 0.59.0'
9+
gem 'rubocop-rspec', '~> 1.24.0'
10+
end
11+
if ruby_version >= Gem::Version.new('2.0')
12+
gem 'byebug', '~> 10', platform: :mri, require: false
13+
gem 'pry', '~> 0', platform: :mri, require: false
14+
gem 'pry-byebug', '~> 3', platform: :mri, require: false
15+
end
16+
gem 'simplecov', '~> 0', require: false
17+
end
18+
19+
# Specify your gem's dependencies in rspec-block_is_expected.gemspec
20+
gemspec

‎LICENSE‎

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
Copyright (c) 2018 Peter H. Boling of RailsBling.com
2+
3+
MIT License
4+
5+
Permission is hereby granted, free of charge, to any person obtaining
6+
a copy of this software and associated documentation files (the
7+
"Software"), to deal in the Software without restriction, including
8+
without limitation the rights to use, copy, modify, merge, publish,
9+
distribute, sublicense, and/or sell copies of the Software, and to
10+
permit persons to whom the Software is furnished to do so, subject to
11+
the following conditions:
12+
13+
The above copyright notice and this permission notice shall be
14+
included in all copies or substantial portions of the Software.
15+
16+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

0 commit comments

Comments
 (0)