Benjamin Fleischer
0ef6ac30fc
Clear out master
2017-05-02 09:57:09 -05:00
Benjamin Fleischer
a36b25d2db
Add rubocop binstub that rspects file patterns
...
Best of both worlds!
(Because you can't override the default rubocop includes)
The binstub basically, lets me safely `rubocop test/foo_test.rb`
instead of `bundle exec rubocop test/foo_test.rb`
```bash
# ~/.profile
# https://twitter.com/tpope/status/165631968996900865
# tl;dr `mkdir .git/safe` to add `bin` to path, e.g. `bin/rails`
PATH=".git/safe/../../bin:$PATH"
```
2017-03-12 15:50:05 -05:00
Alexey Dubovskoy
aa416b2fb3
re: RuboCop - Suppress of handling LoadError for optional dependencies
2016-06-20 22:15:58 +01:00
Alexey Dubovskoy
024b2d51d3
re: RuboCop - replace rocket style hashes
2016-06-20 22:14:12 +01:00
Benjamin Fleischer
21b2eff2ab
Improvements from Rails plugin template
2016-04-01 05:39:03 -05:00
Benjamin Fleischer
408daae045
Allow devs to opt out of test warnings
2016-03-25 00:19:20 -05:00
Benjamin Fleischer
0d7def6a44
Always be warning
2016-03-14 21:55:20 -05:00
Benjamin Fleischer
2400f78e57
Ensure running 'bundle exec' before 'rake'
2016-03-13 00:27:40 -06:00
Ben Mills
cc10928472
Provide Rails url_helpers via SerializationContext
2016-03-07 10:40:34 -07:00
Benjamin Fleischer
042ec38b40
Escape paths in rake isolated for directory with spaces and parens
2016-02-26 14:14:00 -06:00
Benjamin Fleischer
f1b3fe6a37
Fix rubocop config
...
`undefined method '[]' for nil:NilClass`
2016-02-11 00:51:23 -06:00
Benjamin Fleischer
509221c1e0
Only call railtie when Rails is defined; assume controller loaded
...
Isolated Testing
- Rake test inspired by https://github.com/rails/rails/blob/v5.0.0.beta1/activejob/Rakefile
- Isolated unit inspired by
- https://github.com/rails/rails/blob/v5.0.0.beta1/railties/test/isolation/abstract_unit.rb
- https://github.com/rails/rails/blob/v5.0.0.beta1/activemodel/test/cases/railtie_test.rb
Misc
- Turns out `mattr_accessor(:logger) {
ActiveSupport::TaggedLogging.new(ActiveSupport::Logger.new(STDOUT)) }`
was always nil until the Railtie was loaded, since mattr_accessor
block defaults don't really work on modules, but on the classes that
include them.
- Commented on important on Rails being required first for caching to
work.
- In isolated tests, `active_support/core_ext/object/with_options` is required.
2016-01-15 01:54:07 -06:00
Benjamin Fleischer
9e3cf0241d
Separate default rake from rake ci
2015-10-22 10:45:24 -05:00
Mauro George
c7b8c54952
Change default rake task to run test and rubocop
...
The rubocop only runs in the CI this way a contributor probably will see a
rubocop offense only in the CI.
Running the rubocop in the default rake task we have more chance that a offense
be get in the local machine.
2015-10-01 19:52:14 -03:00
Benjamin Fleischer
94469be1ca
Add test coverage; account for no artifacts on CI
...
Drop coverage a bit for JRuby and Rubinius because they
don't generate the same Coverage as CRuby
2015-09-06 09:19:07 -05:00
Benjamin Fleischer
c39c20d4a4
Add no-op rubocop for rbx
2015-09-04 02:32:16 -05:00
Benjamin Fleischer
09c97de90d
Add Style enforcer (via Rubocop)
...
It will fail the build, but as it is currently,
most of the cops are 'todos'. Great for new contributors.. :)
2015-09-03 20:50:45 -05:00
Steve Klabnik
c6eea916ad
Move serializer tests into their own directory.
...
It'd be nice to keep some hygene here.
2014-07-09 16:19:02 -04:00
Steve Klabnik
729a823868
Getting started: attributes.
...
Super super basic collection of attributes. Nothing fancy.
2014-07-09 16:16:39 -04:00
Steve Klabnik
4fc0f679df
Add generators.
...
This seemed like the easiest place to start.
2014-07-05 12:35:29 -04:00
Steve Klabnik
99e3d0f70b
Set up minitest
2014-07-05 11:55:45 -04:00
Steve Klabnik
8a20377239
Set up gemspec, version, and .travis.yml
2014-07-05 00:56:57 -04:00
Steve Klabnik
c718915075
Generate a basic gem
2014-07-05 00:53:48 -04:00