[NEW] Gestalts for silverlight + popular JS libs
authorRobin Luckey <robin@ohloh.net>
Sat, 15 Aug 2009 01:13:27 +0000 (18:13 -0700)
committerRobin Luckey <robin@ohloh.net>
Sat, 15 Aug 2009 01:13:27 +0000 (18:13 -0700)
commit6f25f7fb6be5259e99be2e1dfdd420a503759ad4
tree8815a004cb26b99bd5dc1c493a405c20e3767e3b
parent7a98efd6cced6a99620109a972f7af6783c21628
[NEW] Gestalts for silverlight + popular JS libs

New gestalts for:
silverlight
mootools
prototype
yahoo ui (yui)
dojo

Implementing the silverlight gestalt requires parsing *.csproj files.

There appears to be a bug in the ohcount C core. If you query
the language_breakdowns of a source_file object, but that source_file
happens to not contain any known languages, then the source_file.contents
are reset to nil! I gave this bug a good long hunt, but I just couldn't
find it.

To work around this bug, *.csproj files are now counted as XML. It's a
bit cheeky, but they really are XML, so it works out. Without this,
the gestalt rule would explode because the contents are nil.
12 files changed:
ruby/gestalt/definition.rb
ruby/gestalt/definitions.rb
ruby/gestalt/dot_net_definitions.rb
ruby/gestalt/rules/csproj_parser.rb [new file with mode: 0755]
ruby/gestalt/rules/csproj_rule.rb [new file with mode: 0644]
ruby/gestalt/rules/logical_rule.rb
ruby/gestalt/rules/maven_rule.rb
src/hash/extensions.gperf
test/unit/ruby/gestalt/definitions_test.rb
test/unit/ruby/gestalt/dot_net_definitions_test.rb
test/unit/ruby/gestalt/gestalt_test.rb
test/unit/ruby/gestalt/java_definitions_test.rb