mr_mongo 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/ChangeLog.md +6 -0
- data/bin/mr_mongo +5 -0
- data/lib/mr_mongo/loader.rb +1 -1
- data/lib/mr_mongo/version.rb +1 -1
- metadata +4 -4
data/ChangeLog.md
CHANGED
@@ -1,6 +1,12 @@
|
|
1
1
|
ChangeLog of Mr. Mongo
|
2
2
|
======================
|
3
3
|
|
4
|
+
0.1.2 released 2013-04-13
|
5
|
+
-------------------------
|
6
|
+
|
7
|
+
- [Add] Append `./mapreduce` directory into `$LOAD_PATH`
|
8
|
+
- [Fix] Now __FILE__ in DSL is its file path
|
9
|
+
|
4
10
|
0.1.1 released 2013-04-12
|
5
11
|
-------------------------
|
6
12
|
|
data/bin/mr_mongo
CHANGED
@@ -1,4 +1,9 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
require 'mr_mongo'
|
3
3
|
|
4
|
+
mapreduce_dir = File.expand_path('../mapreduce', File.dirname(__FILE__))
|
5
|
+
if Dir.exist?(mapreduce_dir) and not $LOAD_PATH.include?(mapreduce_dir)
|
6
|
+
$LOAD_PATH.unshift(mapreduce_dir)
|
7
|
+
end
|
8
|
+
|
4
9
|
MrMongo::Application.start
|
data/lib/mr_mongo/loader.rb
CHANGED
@@ -9,7 +9,7 @@ module MrMongo
|
|
9
9
|
def load(file)
|
10
10
|
dsl_script = ::File.read(file).sub!(/^__END__\n.*\Z/m, '')
|
11
11
|
|
12
|
-
map_reduce = load_from_string(dsl_script)
|
12
|
+
map_reduce = load_from_string(dsl_script, file)
|
13
13
|
|
14
14
|
InlineTemplateLoader.load(file).each do |key, val|
|
15
15
|
map_reduce.send("#{key}=".to_sym, val)
|
data/lib/mr_mongo/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mr_mongo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
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-04-
|
12
|
+
date: 2013-04-13 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: mongo
|
@@ -234,7 +234,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
234
234
|
version: '0'
|
235
235
|
segments:
|
236
236
|
- 0
|
237
|
-
hash:
|
237
|
+
hash: 125387154104810201
|
238
238
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
239
239
|
none: false
|
240
240
|
requirements:
|
@@ -243,7 +243,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
243
243
|
version: '0'
|
244
244
|
segments:
|
245
245
|
- 0
|
246
|
-
hash:
|
246
|
+
hash: 125387154104810201
|
247
247
|
requirements: []
|
248
248
|
rubyforge_project:
|
249
249
|
rubygems_version: 1.8.23
|