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

Version Path
appscrolls-0.11.2 scrolls/untested/cartographer.rb
appscrolls-0.11.1 scrolls/untested/cartographer.rb
appscrolls-0.11.0 scrolls/untested/cartographer.rb
appscrolls-0.10.1 scrolls/untested/cartographer.rb
appscrolls-0.10.0 scrolls/untested/cartographer.rb
appscrolls-0.9.0 scrolls/untested/cartographer.rb
appscrolls-0.8.4 scrolls/zzz/cartographer.rb
appscrolls-0.8.3 scrolls/zzz/cartographer.rb
appscrolls-0.8.2 scrolls/zzz/cartographer.rb
appscrolls-0.8.1 scrolls/zzz/cartographer.rb
appscrolls-0.8.0 scrolls/zzz/cartographer.rb
appscrolls-0.7.1 scrolls/zzz/cartographer.rb
appscrolls-0.7.0 scrolls/zzz/cartographer.rb
eldarscrolls-0.7.0 scrolls/zzz/cartographer.rb
ey_rails_wizard-0.6.0 scrolls/zzz/cartographer.rb
ey_rails_wizard-0.5.0 scrolls/cartographer.rb
ey_rails_wizard-0.4.0 scrolls/cartographer.rb
ey_rails_wizard-0.3.1 recipes/cartographer.rb