abstract_analyzer 0.1.0 → 0.1.1
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.rdoc +7 -3
- data/VERSION.yml +1 -1
- data/abstract_analyzer.gemspec +1 -1
- metadata +1 -1
data/README.rdoc
CHANGED
|
@@ -24,11 +24,15 @@ You can use the DashAnalyzer with any rack app you'd like. Check the tests for a
|
|
|
24
24
|
|
|
25
25
|
If Rails is your bag, I've included a middleware implementation of the DashAnalyzer. Implementing is pretty easy.
|
|
26
26
|
|
|
27
|
-
First,
|
|
27
|
+
First, require the gem in RAILS_ROOT/config/environment.rb:
|
|
28
28
|
|
|
29
|
-
|
|
29
|
+
Rails::Initializer.run do |config|
|
|
30
|
+
# .....
|
|
31
|
+
config.gem 'abstract_analyzer', :version => '>0.1.0'
|
|
32
|
+
# .....
|
|
33
|
+
end
|
|
30
34
|
|
|
31
|
-
|
|
35
|
+
Second, in RAILS_ROOT/config/initializers/middlewares.rb
|
|
32
36
|
|
|
33
37
|
# Setup the Analyzer DB
|
|
34
38
|
abstract_analyzer_db = Mongo::Connection.new('localhost', 27017).db('aa-rails-dash-analyzer-db')
|
data/VERSION.yml
CHANGED
data/abstract_analyzer.gemspec
CHANGED