restrack 1.6.9 → 1.7.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,9 @@
1
1
  # rackup config.ru
2
+
3
+ #use bundler instead of doing "require <gem>" at all places
4
+ require 'rubygems'
5
+ require 'bundler'
6
+ Bundler.require
7
+
2
8
  require File.join(File.dirname(__FILE__),'loader')
3
9
  run <%= @service_name.camelize %>::WebService.new
@@ -103,8 +103,8 @@ module RESTRack
103
103
  def package(data)
104
104
  if mime_type.like?( RESTRack.mime_type_for( :JSON ) )
105
105
  output = data.to_json
106
- elsif mime_type.like?( RESTRack.mime_type_for( :JS ) ) and !@request.get_params['callback'].nil?
107
- output = @request.get_params['callback'] + "(#{data.to_json});"
106
+ elsif mime_type.like?( RESTRack.mime_type_for( :JS ) ) and !@request.get_params[:callback].nil?
107
+ output = @request.get_params[:callback] + "(#{data.to_json});"
108
108
  elsif mime_type.like?( RESTRack.mime_type_for( :XML ) )
109
109
  if File.exists? builder_file
110
110
  output = builder_up(data)
@@ -1,3 +1,3 @@
1
1
  module RESTRack
2
- VERSION = "1.6.9"
2
+ VERSION = "1.7.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: restrack
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.9
4
+ version: 1.7.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-12-20 00:00:00.000000000 Z
12
+ date: 2013-01-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rack