map_reduced 0.0.5 → 0.0.6

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 CHANGED
@@ -2,11 +2,14 @@
2
2
 
3
3
  Easy templating for your MongoDB map_reduce runs.
4
4
 
5
+ MapReduced::Config.database = 'my_database_name'
6
+ MapReduced::Config.template_path = 'some/path/where/I/like/templates/to/go'
7
+
5
8
  class User
6
9
  include MapReduced::Document
7
10
 
8
11
  map_reduce :count_followers, ...
9
- functions :find_thing
12
+ use_functions :find_thing
10
13
  end
11
14
 
12
15
  ## User.run_count_followers
data/lib/map_reduced.rb CHANGED
@@ -1,10 +1,10 @@
1
1
  require 'map_reduced/config'
2
2
  require 'map_reduced/document'
3
- require 'standard_additions/string'
3
+ require 'active_support/core_ext/string/inflections'
4
4
  require 'mongo'
5
5
  require 'erb'
6
6
  require 'pathname'
7
7
 
8
8
  module MapReduced
9
- VERSION = "0.0.5"
9
+ VERSION = "0.0.6"
10
10
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: map_reduced
3
3
  version: !ruby/object:Gem::Version
4
- hash: 21
4
+ hash: 19
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 5
10
- version: 0.0.5
9
+ - 6
10
+ version: 0.0.6
11
11
  platform: ruby
12
12
  authors:
13
13
  - Scott Burton
@@ -45,7 +45,6 @@ files:
45
45
  - lib/map_reduced/config.rb
46
46
  - lib/map_reduced/document.rb
47
47
  - lib/map_reduced.rb
48
- - lib/standard_additions/string.rb
49
48
  - LICENSE
50
49
  - README.rdoc
51
50
  has_rdoc: true
@@ -1,5 +0,0 @@
1
- class String
2
- def underscore
3
- self.scan(/[A-Z][a-z0-9]*/).map(&:downcase).join("_")
4
- end
5
- end