Navigation Menu

Skip to content

Commit

Permalink
Install development tools
Browse files Browse the repository at this point in the history
  • Loading branch information
aldesantis committed Nov 17, 2016
1 parent b52ed43 commit 4a49d70
Show file tree
Hide file tree
Showing 7 changed files with 88 additions and 29 deletions.
1 change: 1 addition & 0 deletions .rspec
@@ -1,2 +1,3 @@
--format documentation
--color
--require spec_helper
69 changes: 69 additions & 0 deletions .rubocop.yml
@@ -0,0 +1,69 @@
require: rubocop-rspec

AllCops:
TargetRubyVersion: 2.3
Include:
- '**/Gemfile'
- '**/Rakefile'
Exclude:
- 'bin/*'
- 'db/**/*'
- 'vendor/bundle/**/*'
- 'spec/spec_helper.rb'
- 'spec/rails_helper.rb'
- 'spec/support/**/*'
- 'config/**/*'
- '**/Rakefile'
- '**/Gemfile'

RSpec/DescribeClass:
Exclude:
- 'spec/requests/**/*'

Style/BlockDelimiters:
Exclude:
- 'spec/**/*'

Style/AlignParameters:
EnforcedStyle: with_fixed_indentation

Style/ClosingParenthesisIndentation:
Enabled: false

Metrics/LineLength:
Max: 100
AllowURI: true

Style/FirstParameterIndentation:
Enabled: false

Style/MultilineMethodCallIndentation:
EnforcedStyle: indented

Style/IndentArray:
EnforcedStyle: consistent

Style/IndentHash:
EnforcedStyle: consistent

Style/SignalException:
EnforcedStyle: semantic

Style/BracesAroundHashParameters:
EnforcedStyle: context_dependent

Lint/EndAlignment:
AlignWith: variable
AutoCorrect: true

Style/AndOr:
EnforcedStyle: conditionals

Style/MultilineBlockChain:
Enabled: false

RSpec/NamedSubject:
Enabled: false

RSpec/ExampleLength:
Enabled: false
7 changes: 5 additions & 2 deletions lib/pragma/contract.rb
@@ -1,7 +1,10 @@
require "pragma/contract/version"
# frozen_string_literal: true
require 'pragma/contract/version'

# Form objects on steroids for your HTTP API.
#
# @author Alessandro Desantis
module Pragma
module Contract
# Your code goes here...
end
end
3 changes: 2 additions & 1 deletion lib/pragma/contract/version.rb
@@ -1,5 +1,6 @@
# frozen_string_literal: true
module Pragma
module Contract
VERSION = "0.1.0"
VERSION = '0.1.0'
end
end
23 changes: 8 additions & 15 deletions pragma-contract.gemspec
Expand Up @@ -9,28 +9,21 @@ Gem::Specification.new do |spec|
spec.authors = ["Alessandro Desantis"]
spec.email = ["desa.alessandro@gmail.com"]

spec.summary = %q{TODO: Write a short summary, because Rubygems requires one.}
spec.description = %q{TODO: Write a longer description or delete this line.}
spec.homepage = "TODO: Put your gem's website or public repo URL here."
spec.summary = 'Form objects on steroids for your HTTP API.'
spec.homepage = "https://github.com/pragmarb/pragma-contract"
spec.license = "MIT"

# Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
# to allow pushing to a single host or delete this section to allow pushing to any host.
if spec.respond_to?(:metadata)
spec.metadata['allowed_push_host'] = "TODO: Set to 'http://mygemserver.com'"
else
raise "RubyGems 2.0 or newer is required to protect against " \
"public gem pushes."
end

spec.files = `git ls-files -z`.split("\x0").reject do |f|
f.match(%r{^(test|spec|features)/})
end
spec.bindir = "exe"
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
spec.require_paths = ["lib"]

spec.add_development_dependency "bundler", "~> 1.13"
spec.add_development_dependency "rake", "~> 10.0"
spec.add_development_dependency "rspec", "~> 3.0"
spec.add_development_dependency "bundler"
spec.add_development_dependency "rake"
spec.add_development_dependency "rspec"
spec.add_development_dependency "rubocop"
spec.add_development_dependency "rubocop-rspec"
spec.add_development_dependency "coveralls"
end
11 changes: 0 additions & 11 deletions spec/pragma/contract_spec.rb

This file was deleted.

3 changes: 3 additions & 0 deletions spec/spec_helper.rb
@@ -1,2 +1,5 @@
require 'coveralls'
Coveralls.wear!

$LOAD_PATH.unshift File.expand_path("../../lib", __FILE__)
require "pragma/contract"

0 comments on commit 4a49d70

Please sign in to comment.