I would use
```ruby
(Gem.loaded_specs["compass"].version.split('.') <=> [0,12,0]) == 1
```
string comparison can behave unexpectedly.