Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
fbabc67
Add rubocop (style linter), run as part of default rake task
rohitpaulk Nov 22, 2017
2ed4fc5
Generate rubocop_todo.yml
rohitpaulk Nov 22, 2017
a8f0e6e
Autocorrect simple cops
rohitpaulk Nov 22, 2017
426f7fb
Use consistent style for indenting hashes
rohitpaulk Nov 22, 2017
6ae23a3
Auto-correct cops
rohitpaulk Nov 22, 2017
b62e415
Avoid redefining #stub via attr_accessor
rohitpaulk Nov 22, 2017
0053fd9
Avoid assignment within condition
rohitpaulk Nov 22, 2017
dcc4be3
Avoid suppressing exception in spec_helper.rb
rohitpaulk Nov 22, 2017
730e283
Auto-correct cops
rohitpaulk Nov 22, 2017
c9178ff
Autocorrect symbol arrays
rohitpaulk Nov 22, 2017
28eacfe
Auto-correct string literals
rohitpaulk Nov 22, 2017
c5cb5e7
Auto-correct quotes within interpolation
rohitpaulk Nov 22, 2017
359647b
Autocorrect raising exceptions
rohitpaulk Nov 22, 2017
d70d528
Avoid using semi-colon as a separator
rohitpaulk Nov 22, 2017
deaa2eb
Set target ruby version
rohitpaulk Nov 22, 2017
bc9c013
Auto-correct Proc style
rohitpaulk Nov 22, 2017
d0224fb
Specify 'verbose' style for Hash#has_key?
rohitpaulk Nov 22, 2017
970ea26
Allow parallel assignment
rohitpaulk Nov 22, 2017
6a30604
Allow 6 digits without underscores
rohitpaulk Nov 22, 2017
16c7eb1
Allow mutable constants
rohitpaulk Nov 22, 2017
73948e4
Avoid multi-line if modifier usage
rohitpaulk Nov 22, 2017
666f502
Use parentheses for all method definitions
rohitpaulk Nov 22, 2017
60713a6
Allow 1.9 hash syntax in specs
rohitpaulk Nov 22, 2017
dfa3f8c
Allow one-liners to be wrapped in conditionals
rohitpaulk Nov 22, 2017
bf43e1d
Allow % for formatting
rohitpaulk Nov 22, 2017
0d2b55f
Use each_with_object instead of inject
rohitpaulk Nov 22, 2017
8e9ceed
Allow DateTime in specs
rohitpaulk Nov 22, 2017
7fdd365
Remove colon method call
rohitpaulk Nov 22, 2017
3f7f720
Allow bracket symbol arrays
rohitpaulk Nov 22, 2017
6654ff0
Disable doc checks
rohitpaulk Nov 23, 2017
a969429
Allow all block delimiters in specs
rohitpaulk Nov 23, 2017
c59fbbb
Remove non-ascii quote in comment
rohitpaulk Nov 23, 2017
3ae65ed
Allow is_requesting? as an exception for predicate names
rohitpaulk Nov 23, 2017
de64b48
Disable BracesAroundHashParameters check
rohitpaulk Nov 23, 2017
82fd5ef
Move legit items from .rubucop_todo.yml to .rubocop.yml
rohitpaulk Nov 23, 2017
1f1229a
Disable metrics check for specs
rohitpaulk Nov 23, 2017
3ae4855
Upload coverage stats to codecov in specs
rohitpaulk Nov 23, 2017
296bd06
Merge branch 'master' into add-codecov
f2prateek Nov 29, 2017
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions analytics-ruby.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,6 @@ Gem::Specification.new do |spec|
if RUBY_VERSION >= "2.1"
spec.add_development_dependency 'rubocop', '~> 0.51.0'
end

spec.add_development_dependency 'codecov', '~> 0.1.4'
end
6 changes: 6 additions & 0 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# https://github.com/codecov/codecov-ruby#usage
require 'simplecov'
SimpleCov.start
require 'codecov'
SimpleCov.formatter = SimpleCov::Formatter::Codecov

require 'segment/analytics'
require 'active_support/time'

Expand Down