gg 0.9.8 → 0.9.10

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.
data/README.md CHANGED
@@ -1,5 +1,20 @@
1
1
  # GG
2
2
 
3
+ ## Rails Setup
4
+
5
+ Add the following to your Gemfile
6
+ ```ruby
7
+ gem "gg"
8
+ ```
9
+
10
+ Add the following to /config/application.rb
11
+ ```ruby
12
+ module Editors
13
+ class Application < Rails::Application
14
+ config.middleware.use GG
15
+ ```
16
+
17
+
3
18
  ## WARNINGS! Could not determine CONTENT-LENGTH of response body
4
19
 
5
20
  The warning "Could not determine content-length of response body" is a
data/lib/gg.rb CHANGED
@@ -9,6 +9,9 @@ require 'gg/logger'
9
9
  require 'gg/stack'
10
10
  require 'gg/stack_line'
11
11
 
12
+ # For automatic integration into Rails
13
+ require "gg/railtie" if defined? Rails
14
+
12
15
  class GG
13
16
 
14
17
  def self.root
@@ -0,0 +1,7 @@
1
+ class GG
2
+ class Railtie < Rails::Railtie
3
+ initializer "gg.insert_middleware" do |app|
4
+ app.config.middleware.use "GG"
5
+ end
6
+ end
7
+ end
@@ -1,3 +1,3 @@
1
1
  class GG
2
- VERSION = "0.9.8"
2
+ VERSION = "0.9.10"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gg
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.8
4
+ version: 0.9.10
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: 2013-01-21 00:00:00.000000000 Z
12
+ date: 2013-01-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake
@@ -94,6 +94,7 @@ files:
94
94
  - lib/gg/logger.rb
95
95
  - lib/gg/public/gg.css
96
96
  - lib/gg/rack_plugin.rb
97
+ - lib/gg/railtie.rb
97
98
  - lib/gg/slim/_logger.slim
98
99
  - lib/gg/slim/array.slim
99
100
  - lib/gg/slim/hash.slim