sendgrid_events 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- sendgrid_events (0.0.3)
4
+ sendgrid_events (0.0.4)
5
5
  enumerated_field
6
6
  rails (~> 3.0.15)
7
7
  sendgrid
@@ -47,7 +47,7 @@ module SendgridEvents
47
47
  def middleware
48
48
  puts "Copying config..."
49
49
  insert_into_file Rails.root.join('config', 'application.rb'), :after => /class Application.*$/ do
50
- "\n\t\tconfig.middleware.insert_after ActiveRecord::ParamsParser, SendgridEvents::Middleware"
50
+ "\n config.middleware.insert_before ActiveRecord::ParamsParser, SendgridEvents::Middleware"
51
51
  end
52
52
  end
53
53
  end
@@ -5,7 +5,7 @@ module SendgridEvents
5
5
  end
6
6
 
7
7
  def call(env)
8
- scrub(env) if env["REQUEST_URI"].include? Configure.mount_at
8
+ scrub(env) if env and env["REQUEST_URI"] and env["REQUEST_URI"].include? Configure.mount_at
9
9
  @app.call(env)
10
10
  end
11
11
 
@@ -1,3 +1,3 @@
1
1
  module SendgridEvents
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sendgrid_events
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
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-07-18 00:00:00.000000000 Z
12
+ date: 2012-07-26 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake
@@ -241,7 +241,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
241
241
  version: '0'
242
242
  segments:
243
243
  - 0
244
- hash: 143610152345397580
244
+ hash: 3242785666592842753
245
245
  required_rubygems_version: !ruby/object:Gem::Requirement
246
246
  none: false
247
247
  requirements:
@@ -250,7 +250,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
250
250
  version: '0'
251
251
  segments:
252
252
  - 0
253
- hash: 143610152345397580
253
+ hash: 3242785666592842753
254
254
  requirements: []
255
255
  rubyforge_project:
256
256
  rubygems_version: 1.8.24