maptastic-form 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -8,13 +8,17 @@ Next, install Maptastic as a plugin:
8
8
 
9
9
  script/plugin install git@github.com:MattHall/maptastic.git
10
10
 
11
- Or as a Gem:
11
+ ...and run the rake task to install the required js file into your javascripts directory. You will probably need to include this in your layouts, too.
12
+
13
+ rake maptastic_form:install
14
+
15
+ You can alternatively install the gem:
12
16
 
13
17
  gem install maptastic-form
14
18
 
15
- ...and run the rake task to install the required js file into your javascripts directory. You will probably need to include this in your layouts, too.
19
+ Note if you're using the gem, then you'll need to copy the JS asset from:
16
20
 
17
- rake maptastic_form:install
21
+ https://github.com/MattHall/maptastic/blob/master/assets/javascripts/maptastic.js
18
22
 
19
23
  You'll need to add the [Google Maps **V3**][3] script include in your page, above your semantic_form:
20
24
 
@@ -1,3 +1,2 @@
1
- # Include hook code here
2
- require File.join(File.dirname(__FILE__), *%w[maptastic_form semantic_form_builder])
1
+ require File.join(File.dirname(__FILE__), *%w[maptastic-form semantic_form_builder])
3
2
  Formtastic::SemanticFormHelper.builder = MaptasticForm::SemanticFormBuilder
@@ -1,3 +1,3 @@
1
1
  module MaptasticForm
2
- VERSION = '0.1.1'
2
+ VERSION = '0.1.2'
3
3
  end
@@ -0,0 +1,8 @@
1
+ include FileUtils
2
+
3
+ namespace :maptastic_form do
4
+ desc 'Install maptastic javascript'
5
+ task :install => :environment do
6
+ cp_r "#{File.join(File.dirname(__FILE__), '../assets')}/javascripts/maptastic.js", "#{Rails.root}/public/javascripts"
7
+ end
8
+ end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: maptastic-form
3
3
  version: !ruby/object:Gem::Version
4
- hash: 25
4
+ hash: 31
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 1
10
- version: 0.1.1
9
+ - 2
10
+ version: 0.1.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Matt Hall
@@ -45,6 +45,7 @@ files:
45
45
  - lib/maptastic-form/semantic_form_builder.rb
46
46
  - lib/maptastic-form/version.rb
47
47
  - lib/maptastic-form.rb
48
+ - tasks/maptastic_tasks.rake
48
49
  - MIT-LICENSE
49
50
  - README.markdown
50
51
  has_rdoc: true