mineral 0.3.2 → 0.3.3

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.2
1
+ 0.3.3
@@ -1,8 +1,8 @@
1
1
  require 'active_support/ordered_hash'
2
2
  require 'active_support/notifications'
3
+ require 'rails'
3
4
  require 'mineral/railtie'
4
5
  require 'mineral/response'
5
- require 'rails'
6
6
 
7
7
  module Mineral
8
8
  module Rack
@@ -0,0 +1,9 @@
1
+ require 'rails/railtie'
2
+
3
+ module Mineral
4
+ class Railtie < Rails::Railtie
5
+ initializer 'mineral.register_middleware' do |app|
6
+ app.config.middleware.insert_before ::ActionDispatch::Flash, Mineral::Rack::Mineral
7
+ end
8
+ end
9
+ end
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{mineral}
8
- s.version = "0.3.2"
8
+ s.version = "0.3.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["jonbell"]
@@ -23,6 +23,7 @@ Gem::Specification.new do |s|
23
23
  "VERSION",
24
24
  "lib/mineral.rb",
25
25
  "lib/mineral/response.rb",
26
+ "lib/mineral/railtie.rb",
26
27
  "mineral.gemspec",
27
28
  "test/app/mineral/handler.rb",
28
29
  "test/helper.rb",
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mineral
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2010-11-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rack
16
- requirement: &70343346770120 !ruby/object:Gem::Requirement
16
+ requirement: &70350003081260 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 1.0.0
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70343346770120
24
+ version_requirements: *70350003081260
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: shoulda
27
- requirement: &70343346769320 !ruby/object:Gem::Requirement
27
+ requirement: &70350003080520 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: 2.10.0
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *70343346769320
35
+ version_requirements: *70350003080520
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: mocha
38
- requirement: &70343346768840 !ruby/object:Gem::Requirement
38
+ requirement: &70350003080040 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,7 +43,7 @@ dependencies:
43
43
  version: 0.9.0
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *70343346768840
46
+ version_requirements: *70350003080040
47
47
  description: Rack metal with a better interface
48
48
  email: jonbell@spamcop.net
49
49
  executables: []
@@ -58,6 +58,7 @@ files:
58
58
  - VERSION
59
59
  - lib/mineral.rb
60
60
  - lib/mineral/response.rb
61
+ - lib/mineral/railtie.rb
61
62
  - mineral.gemspec
62
63
  - test/app/mineral/handler.rb
63
64
  - test/helper.rb