Commit graph

33 commits

Author SHA1 Message Date
Markus Schirp
9523c66726 Use 1.9 style hash syntax where possible 2013-09-07 20:27:06 +02:00
Markus Schirp
3224789680 Refactor strategy CLI parsing
* Add CLI::Builder::Rspec
* Remove defunct static stragies
* Add --rspec-level argument
2013-09-02 00:07:55 +02:00
Markus Schirp
d5e586e66b Deactivate rubocop guard
Somehow it disables the rspec guard, and this one is more important for
me
2013-09-01 23:38:10 +02:00
Dan Kubb
952cf9fcd5 Refactor code to create less objects 2013-08-05 00:23:42 -07:00
Markus Schirp
0a554277c5 Fix alignment of end 2013-08-05 07:46:49 +02:00
Dan Kubb
94e5322541 Update constant lookup to use stricter approach 2013-07-29 17:40:18 -07:00
Dan Kubb
f3061f77c8 Update method not found to raise a NameError 2013-07-29 17:40:18 -07:00
Dan Kubb
85aabae109 Remove Mutant::CLI::Classifier::Method#identification
* This is a duplicate of #identifer in the parent class
2013-07-29 17:40:18 -07:00
Dan Kubb
d922e14e02 Change Mutant::CLI::Classifier::Method#matcher to be private 2013-07-29 17:40:18 -07:00
Dan Kubb
97aefb1876 Change Mutant::CLI::Classifier#matcher to be private 2013-07-29 17:40:18 -07:00
Dan Kubb
df172e704e Refactor scope and method regexps 2013-07-29 17:40:18 -07:00
Dan Kubb
6236f085fb Fix code formatting 2013-07-29 17:40:18 -07:00
Dan Kubb
7293386c26 Add magic encoding header to all ruby files
* rubocop still warns about this on ruby 1.9.3, so it was fixed so
  it produces less output on travis.
2013-07-28 16:03:06 -07:00
Markus Schirp
a9ae9932ec Fix style issue in Mutant::CLI* 2013-07-29 00:25:14 +02:00
Dan Kubb
ee72d6c042 Fix rubocop warnings
* Still a few more to go, but this should be the majority of them
2013-07-28 12:16:45 -07:00
Markus Schirp
1d981afae8 Move more literals to constants
As constans the literals get frozen. This improves sharpness of API use.
2013-07-21 22:19:41 +02:00
Markus Schirp
47bca3fa1f Correct mutation of adamantium memoized methods 2013-07-05 01:14:05 +02:00
Markus Schirp
777a223bf7 Add missing Classifier::Method#identification 2013-07-03 12:16:15 +02:00
Markus Schirp
6b1ed477d1 Freeze constants 2013-06-27 23:28:49 +02:00
Markus Schirp
350e2a8a73 Do not use unneded toplevel constant reference 2013-06-27 23:27:36 +02:00
Markus Schirp
0c00cb19f7 Update CLI method classifiers to match operator methods 2013-06-27 23:20:06 +02:00
Markus Schirp
49133680ee Add AST caching for subject matcher
At least this dramatically speeds up unit tests. And this is a good
thing.
2013-06-27 22:18:07 +02:00
Markus Schirp
1f25ab3ded Cosmetic end comments 2013-06-14 21:12:10 +02:00
Markus Schirp
c0a329fa53 Use better variable/method nameing 2013-04-27 18:22:28 +02:00
Markus Schirp
1d79063393 Improve classifier error message 2013-04-27 15:54:08 +02:00
Markus Schirp
aca87664db Collapse namespace and scope classifier similarities into baseclass 2013-04-21 02:36:21 +02:00
Markus Schirp
3965ca4eae Add scope classifier and matcher
This simplifies the namespace matcher a lot, it can use the scope
matcher internally.
2013-04-20 21:16:48 +02:00
Markus Schirp
e90f3c86aa Use long operator form in non boolean context 2013-04-20 14:52:43 +02:00
Markus Schirp
5a7cc0b965 Remove useless comment 2013-04-20 14:52:08 +02:00
Markus Schirp
2dbf91940c Correct method name 2013-04-19 22:24:26 +02:00
Dan Kubb
c3c0e06c86 Fix whitespace 2013-04-17 20:31:21 -07:00
Markus Schirp
eeb82ee8c6 Cleanup matcher and classifier interactions
* Some smells remain but it becomes cleaner now
2013-01-21 22:56:52 +01:00
Markus Schirp
a3fc233d95 Reorganize classifiers
* Classifiers are matcher subclass and delegate to lazy builded matcher
  interfaces
* Solves chicken egg problem between target library load and classifier
  matcher instantiation
2013-01-21 20:08:30 +01:00