muck-engine 0.2.7 → 0.2.8

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.7
1
+ 0.2.8
@@ -197,55 +197,15 @@ module MuckEngineHelper
197
197
  render :partial => 'scripts/time_scripts', :locals => {:locale => locale}
198
198
  end
199
199
 
200
- # Outputs include script for google ajax api
201
- def google_ajax_api_scripts
202
- return '' if defined?(@google_ajax_api_scripts_included)
203
- script = '<script type="text/javascript" src="http://www.google.com/jsapi'
204
- script << "?key=#{GlobalConfig.google_ajax_api_key}" if GlobalConfig.google_ajax_api_key
205
- script << '"></script>'
206
- @google_ajax_api_scripts_included = true
207
- script
208
- end
209
-
210
- # Output include script for google slideshows
211
- def google_ajax_slideshow_scripts
212
- return '' if defined?(@google_ajax_slideshow_scripts_included)
213
- @google_ajax_slideshow_scripts_included = true
214
- '<script src="http://www.google.com/uds/solutions/slideshow/gfslideshow.js" type="text/javascript"></script>'
215
- end
216
-
217
- # Output include script for google feeds
218
- def google_load_feeds
219
- return '' if defined?(@google_load_feeds_included)
220
- @google_load_feeds_included = true
221
- google_ajax_api_scripts + '<script type="text/javascript">google.load("feeds", "1");</script>'
222
- end
223
-
224
- # Output include script for google search
225
- def google_load_search
226
- return '' if defined?(@google_load_search_included)
227
- @google_load_search_included = true
228
- google_ajax_api_scripts + '<script type="text/javascript">google.load("search", "1");</script>'
229
- end
230
-
231
- # Output include script to load jquery from google
232
- def google_load_jquery
233
- return '' if defined?(@google_load_jquery_included)
234
- @google_load_jquery_included = true
235
- google_ajax_api_scripts + '<script type="text/javascript">google.load("jquery", "1");</script>'
236
- end
237
-
238
- # Output include script to load jquery ui from google
239
- def google_load_jquery_ui
240
- return '' if defined?(@google_load_jquery_ui_included)
241
- @google_load_jquery_ui_included = true
242
- google_ajax_api_scripts + '<script type="text/javascript">google.load("jqueryui", "1");</script>'
243
- end
244
-
245
200
  # Outputs a snippet of javascript that can parse uris
246
201
  # http://blog.stevenlevithan.com/archives/parseuri
247
202
  def parse_uri_script
248
203
  render :partial => 'scripts/parse_uri'
249
204
  end
250
205
 
206
+ def safe_id(term)
207
+ term = URI.escape(term)
208
+ term = term.gsub('.', '%2E')
209
+ end
210
+
251
211
  end
@@ -5,7 +5,7 @@ class CreateLanguages < ActiveRecord::Migration
5
5
  t.string :english_name
6
6
  t.string :locale
7
7
  t.boolean :supported, :default => true
8
- t.integer :is_default, :default => false
8
+ t.boolean :is_default, :default => false
9
9
  end
10
10
  add_index :languages, :name
11
11
  add_index :languages, :locale
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{muck-engine}
8
- s.version = "0.2.7"
8
+ s.version = "0.2.8"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Justin Ball"]
12
- s.date = %q{2009-10-29}
12
+ s.date = %q{2009-11-02}
13
13
  s.description = %q{The base engine for the muck system. Contains common tables, custom for, css and javascript.}
14
14
  s.email = %q{justinball@gmail.com}
15
15
  s.extra_rdoc_files = [
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: muck-engine
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.7
4
+ version: 0.2.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Ball
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-10-29 00:00:00 -06:00
12
+ date: 2009-11-02 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency