Why change this code? It's more confusing now. You have to understand that `Rails.version` will be gsubbed to a different constant, which would make the code work.

Simpler to leave the original code and add
```ruby
def self.gem_version
  Gem::Version.new VERSION::STRING
end
```

That's true for all components and doesn't require gsubbing.