Sha256: 4d4894d7a289ed81da20ac0e6d1a9ee8ac8647ecd21b39384e388a18ff2caaf3
Contents?: true
Size: 944 Bytes
Versions: 18
Compression:
Stored size: 944 Bytes
Contents
after_bundler do #fixes missing Command error when running rails plugin if File.open('script/rails').grep(/module Commands; end/) == [] source_rails = <<-RB APP_PATH = File.expand_path('../../config/application', __FILE__) RB add_commands = <<-RB module Commands; end APP_PATH = File.expand_path('../../config/application', __FILE__) RB gsub_file 'script/rails', source_rails, add_commands end run 'rails plugin install git://github.com/jonochang/cartographer.git' if File.open('config/environment.rb').grep(/CARTOGRAPHER_GMAP_VERSION/) == [] source = "require File.expand_path('../application', __FILE__)" add_cartographer_const = "require File.expand_path('../application', __FILE__)\n\nCARTOGRAPHER_GMAP_VERSION = 3" gsub_file 'config/environment.rb', source, add_cartographer_const end end __END__ name: cartographer description: "Google Maps on Rails" author: jonochang category: mapping
Version data entries
18 entries across 18 versions & 3 rubygems