mongo3 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +10 -0
- data/Gemfile.lock +45 -0
- data/HISTORY +4 -1
- data/README.rdoc +2 -2
- data/Rakefile +11 -38
- data/lib/app.rb +1 -1
- data/lib/controllers/collections.rb +1 -2
- data/lib/helpers/collection_helper.rb +0 -1
- data/lib/helpers/main_helper.rb +3 -3
- data/lib/mongo3/connection.rb +16 -12
- data/lib/mongo3.rb +1 -1
- data/lib/views/collections/_index_rows.erb +0 -1
- data/lib/views/collections/_results.erb +3 -11
- data/mongo3.gemspec +30 -0
- metadata +108 -206
- data/.bnignore +0 -3
- data/.bnsignore +0 -16
- data/.gitignore +0 -1
- data/config/mongo3.yml +0 -33
- data/data/populate +0 -37
- data/lib/public/.DS_Store +0 -0
- data/lib/public/javascripts/.DS_Store +0 -0
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,45 @@
|
|
1
|
+
GEM
|
2
|
+
remote: http://rubygems.org/
|
3
|
+
specs:
|
4
|
+
agnostic-will_paginate (3.0.0)
|
5
|
+
arrayfields (4.7.4)
|
6
|
+
bson (1.5.2)
|
7
|
+
bson_ext (1.5.2)
|
8
|
+
bson (= 1.5.2)
|
9
|
+
chronic (0.6.7)
|
10
|
+
fattr (2.2.1)
|
11
|
+
main (4.8.1)
|
12
|
+
arrayfields (~> 4.7.4)
|
13
|
+
chronic (~> 0.6.2)
|
14
|
+
fattr (~> 2.2.0)
|
15
|
+
map (~> 5.1.0)
|
16
|
+
map (5.1.0)
|
17
|
+
mongo (1.5.2)
|
18
|
+
bson (= 1.5.2)
|
19
|
+
mongo_ext (0.19.3)
|
20
|
+
mongo_rack (0.0.5)
|
21
|
+
mongo (>= 0.18.2)
|
22
|
+
mongo_ext (>= 0.18.2)
|
23
|
+
rack (>= 1.0.1)
|
24
|
+
rack (1.4.1)
|
25
|
+
rack-protection (1.2.0)
|
26
|
+
rack
|
27
|
+
rake (0.9.2.2)
|
28
|
+
sinatra (1.3.2)
|
29
|
+
rack (~> 1.3, >= 1.3.6)
|
30
|
+
rack-protection (~> 1.2)
|
31
|
+
tilt (~> 1.3, >= 1.3.3)
|
32
|
+
tilt (1.3.3)
|
33
|
+
|
34
|
+
PLATFORMS
|
35
|
+
ruby
|
36
|
+
|
37
|
+
DEPENDENCIES
|
38
|
+
agnostic-will_paginate
|
39
|
+
bson
|
40
|
+
bson_ext
|
41
|
+
main
|
42
|
+
mongo
|
43
|
+
mongo_rack
|
44
|
+
rake (~> 0.9.0)
|
45
|
+
sinatra
|
data/HISTORY
CHANGED
data/README.rdoc
CHANGED
@@ -52,7 +52,7 @@
|
|
52
52
|
|
53
53
|
== INSTALL:
|
54
54
|
|
55
|
-
|
55
|
+
gem install mongo3
|
56
56
|
|
57
57
|
== USAGE:
|
58
58
|
|
@@ -99,7 +99,7 @@
|
|
99
99
|
|
100
100
|
== LICENSE:
|
101
101
|
|
102
|
-
Copyright
|
102
|
+
Copyright 2011-2012 LiquidRail LLC
|
103
103
|
|
104
104
|
Licensed under the Apache License, Version 2.0 (the "License");
|
105
105
|
you may not use this file except in compliance with the License.
|
data/Rakefile
CHANGED
@@ -1,41 +1,14 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
# are where the options are used.
|
4
|
-
begin
|
5
|
-
require 'bones'
|
6
|
-
Bones.setup
|
7
|
-
rescue LoadError
|
8
|
-
begin
|
9
|
-
load 'tasks/setup.rb'
|
10
|
-
rescue LoadError
|
11
|
-
raise RuntimeError, '### please install the "bones" gem ###'
|
12
|
-
end
|
13
|
-
end
|
14
|
-
|
15
|
-
ensure_in_path 'lib'
|
16
|
-
require 'mongo3'
|
1
|
+
require 'bundler'
|
2
|
+
Bundler::GemHelper.install_tasks
|
17
3
|
|
18
|
-
task :default => '
|
4
|
+
task :default => 'test:run'
|
5
|
+
task 'gem:release' => 'test:run'
|
19
6
|
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
PROJ.readme = 'README.rdoc'
|
27
|
-
PROJ.rcov.opts = ["--sort", "coverage", "-T"]
|
28
|
-
PROJ.ignore_file = "*.log"
|
29
|
-
PROJ.spec.opts << '--color'
|
30
|
-
PROJ.rdoc.include = %w[.rb]
|
7
|
+
def ensure_in_path( *args )
|
8
|
+
args.each do |path|
|
9
|
+
path = File.expand_path(path)
|
10
|
+
$:.unshift(path) if test(?d, path) and not $:.include?(path)
|
11
|
+
end
|
12
|
+
end
|
31
13
|
|
32
|
-
|
33
|
-
depend_on "mongo" , ">= 1.0.1"
|
34
|
-
depend_on "bson" , ">= 1.0.1"
|
35
|
-
depend_on "bson_ext" , ">= 1.0.1"
|
36
|
-
depend_on "agnostic-will_paginate", ">= 3.0.0"
|
37
|
-
depend_on "memcache-client" , ">= 1.5.0"
|
38
|
-
depend_on "mongo_rack" , ">= 0.0.1"
|
39
|
-
depend_on "main" , ">= 4.2.0"
|
40
|
-
depend_on "json" , ">= 1.2.0"
|
41
|
-
depend_on "sinatra" , ">= 0.9.4"
|
14
|
+
ensure_in_path 'lib'
|
data/lib/app.rb
CHANGED
@@ -7,7 +7,7 @@ gem 'agnostic-will_paginate'
|
|
7
7
|
require 'will_paginate'
|
8
8
|
require 'mongo_rack'
|
9
9
|
|
10
|
-
set :
|
10
|
+
set :public_folder, File.join( File.dirname(__FILE__), %w[public] )
|
11
11
|
set :views , File.join( File.dirname(__FILE__), %w[views] )
|
12
12
|
|
13
13
|
# -----------------------------------------------------------------------------
|
@@ -39,7 +39,6 @@ module Collections
|
|
39
39
|
@page = params[:page].to_i || 1
|
40
40
|
|
41
41
|
@indexes = options.connection.indexes_for( session[:path_names] )
|
42
|
-
puts "INDEXES #{@indexes.inspect}"
|
43
42
|
load_cltn( params[:page].to_i )
|
44
43
|
|
45
44
|
erb :'collections/list'
|
@@ -115,7 +114,7 @@ puts "INDEXES #{@indexes.inspect}"
|
|
115
114
|
end
|
116
115
|
@page = page
|
117
116
|
path_names = session[:path_names]
|
118
|
-
|
117
|
+
puts "PARAMS ", query_params.inspect
|
119
118
|
@cltn = options.connection.paginate_cltn( path_names, query_params, @page, 15 )
|
120
119
|
end
|
121
120
|
end
|
data/lib/helpers/main_helper.rb
CHANGED
@@ -18,11 +18,11 @@ module MainHelper
|
|
18
18
|
end
|
19
19
|
|
20
20
|
def v_styles(stylesheet)
|
21
|
-
"/stylesheets/#{stylesheet}.css?" + File.mtime(File.join(Sinatra::Application.public, "stylesheets", "#{stylesheet}.css")).to_i.to_s
|
21
|
+
"/stylesheets/#{stylesheet}.css?" + File.mtime(File.join(Sinatra::Application.root, "..", "lib", "public", "stylesheets", "#{stylesheet}.css")).to_i.to_s
|
22
22
|
end
|
23
23
|
|
24
24
|
def v_js(js)
|
25
|
-
"/javascripts/#{js}.js?" + File.mtime(File.join(Sinatra::Application.public, "javascripts", "#{js}.js")).to_i.to_s
|
25
|
+
"/javascripts/#{js}.js?" + File.mtime(File.join(Sinatra::Application.root, "..", "lib", "public", "javascripts", "#{js}.js")).to_i.to_s
|
26
26
|
end
|
27
27
|
|
28
28
|
def zone_locator
|
@@ -92,4 +92,4 @@ module MainHelper
|
|
92
92
|
end
|
93
93
|
end
|
94
94
|
end
|
95
|
-
end
|
95
|
+
end
|
data/lib/mongo3/connection.rb
CHANGED
@@ -125,11 +125,14 @@ module Mongo3
|
|
125
125
|
connect_for( zone ) do |con|
|
126
126
|
db = con.db( db_name )
|
127
127
|
info[:links][:manage] = "/databases/1"
|
128
|
-
info
|
129
|
-
|
130
|
-
info[
|
131
|
-
info[
|
132
|
-
info[
|
128
|
+
info.merge!(db.stats)
|
129
|
+
info['dataSize'] = to_mb( info['dataSize'] )
|
130
|
+
info['storageSize'] = to_mb( info['storageSize'] )
|
131
|
+
info['avgObjSize'] = to_mb( info['avgObjSize'] )
|
132
|
+
info['fileSize'] = to_mb( info['fileSize'] )
|
133
|
+
info['indexSize'] = to_mb( info['indexSize'] )
|
134
|
+
info.delete('ok')
|
135
|
+
info[:errors] = db.error?
|
133
136
|
end
|
134
137
|
elsif path_name_tokens.size == 4
|
135
138
|
cltn_name = path_name_tokens.pop
|
@@ -183,7 +186,7 @@ module Mongo3
|
|
183
186
|
db = con.db( db_name )
|
184
187
|
cltn = db[cltn_name]
|
185
188
|
count = cltn.find( query_params.first ).count
|
186
|
-
|
189
|
+
puts "Count #{count} -- #{query_params.first}"
|
187
190
|
list = WillPaginate::Collection.create( page, per_page, count ) do |pager|
|
188
191
|
offset = (page-1)*per_page
|
189
192
|
sort = query_params.last.empty? ? [ ['_id', Mongo::DESCENDING] ] : query_params.last
|
@@ -198,7 +201,8 @@ module Mongo3
|
|
198
201
|
results = cltn.find( query,
|
199
202
|
:sort => sort,
|
200
203
|
:skip => offset,
|
201
|
-
:limit => per_page ).to_a
|
204
|
+
:limit => per_page ).to_a
|
205
|
+
puts "RESULTS #{results.count}"
|
202
206
|
pager.replace( results )
|
203
207
|
end
|
204
208
|
end
|
@@ -426,8 +430,8 @@ module Mongo3
|
|
426
430
|
yield con
|
427
431
|
con.close()
|
428
432
|
rescue => boom
|
429
|
-
|
430
|
-
|
433
|
+
puts boom
|
434
|
+
puts boom.backtrace.each {|l| puts l }
|
431
435
|
raise "MongoDB connection failed for `#{@info['host'].inspect}:#{@info['port'].inspect} with #{boom}"
|
432
436
|
end
|
433
437
|
end
|
@@ -456,10 +460,10 @@ module Mongo3
|
|
456
460
|
end
|
457
461
|
|
458
462
|
# Convert size to mb
|
459
|
-
def to_mb( val )
|
463
|
+
def to_mb( val )
|
460
464
|
return 0 unless val
|
461
|
-
return val if val < 1_000_000
|
462
|
-
"
|
465
|
+
return ("%5.2f" % val ) if val < 1_000_000
|
466
|
+
"%5.2f Mb" % (val/1_000_000.0)
|
463
467
|
end
|
464
468
|
|
465
469
|
# Add thousand markers
|
data/lib/mongo3.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
module Mongo3
|
2
2
|
|
3
3
|
# :stopdoc:
|
4
|
-
VERSION = '0.1.
|
4
|
+
VERSION = '0.1.4' unless defined? Mongo3::VERSION
|
5
5
|
LIBPATH = ::File.expand_path(::File.dirname(__FILE__)) + ::File::SEPARATOR unless defined? Mongo3::LIBPATH
|
6
6
|
PATH = ::File.dirname(LIBPATH) + ::File::SEPARATOR unless defined? Mongo3::PATH
|
7
7
|
# :startdoc:
|
@@ -1,11 +1,3 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
</div> -->
|
5
|
-
|
6
|
-
<div class="table">
|
7
|
-
<%= partial :'collections/rows_tree' %>
|
8
|
-
</div>
|
9
|
-
<% else %>
|
10
|
-
<div class="no_items">Oh snap! No items found...</span>
|
11
|
-
<% end %>
|
1
|
+
<div class="table">
|
2
|
+
<%= partial :'collections/rows_tree' %>
|
3
|
+
</div>
|
data/mongo3.gemspec
ADDED
@@ -0,0 +1,30 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
$:.push File.expand_path("../lib", __FILE__)
|
3
|
+
require "mongo3"
|
4
|
+
|
5
|
+
Gem::Specification.new do |s|
|
6
|
+
s.name = 'mongo3'
|
7
|
+
s.version = Mongo3::VERSION
|
8
|
+
s.platform = Gem::Platform::RUBY
|
9
|
+
s.authors = ["Fernand Galiana"]
|
10
|
+
s.email = ["fernand.galiana@gmail.com"]
|
11
|
+
s.homepage = 'http://www.mongo3.com'
|
12
|
+
s.summary = 'Rule your mongoDB clusters'
|
13
|
+
s.description = 'Console to administer MongoDB'
|
14
|
+
s.rubyforge_project = "mongo3"
|
15
|
+
s.files = `git ls-files`.split("\n")
|
16
|
+
s.test_files = `git ls-files -- {specs}/*`.split("\n")
|
17
|
+
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
18
|
+
s.require_paths = ["lib"]
|
19
|
+
s.required_ruby_version = ">= 1.9.2"
|
20
|
+
s.required_rubygems_version = ">= 1.3.7"
|
21
|
+
s.add_runtime_dependency 'mongo' , '>= 1.5.0'
|
22
|
+
s.add_runtime_dependency 'bson' , '>= 1.6.0'
|
23
|
+
s.add_runtime_dependency 'bson_ext' , '>= 1.6.0'
|
24
|
+
s.add_runtime_dependency 'agnostic-will_paginate', '>= 3.0.0'
|
25
|
+
s.add_runtime_dependency 'memcache-client' , '>= 1.5.0'
|
26
|
+
s.add_runtime_dependency 'mongo_rack' , '>= 0.0.1'
|
27
|
+
s.add_runtime_dependency 'main' , '>= 4.2.0'
|
28
|
+
s.add_runtime_dependency 'json' , '>= 1.2.0'
|
29
|
+
s.add_runtime_dependency 'sinatra' , '>= 1.3.0'
|
30
|
+
end
|
metadata
CHANGED
@@ -1,217 +1,130 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: mongo3
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
|
6
|
-
- 0
|
7
|
-
- 1
|
8
|
-
- 3
|
9
|
-
version: 0.1.3
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.4
|
5
|
+
prerelease:
|
10
6
|
platform: ruby
|
11
|
-
authors:
|
7
|
+
authors:
|
12
8
|
- Fernand Galiana
|
13
9
|
autorequire:
|
14
10
|
bindir: bin
|
15
11
|
cert_chain: []
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
dependencies:
|
20
|
-
- !ruby/object:Gem::Dependency
|
12
|
+
date: 2012-04-20 00:00:00.000000000Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
21
15
|
name: mongo
|
22
|
-
|
23
|
-
|
24
|
-
requirements:
|
25
|
-
- -
|
26
|
-
- !ruby/object:Gem::Version
|
27
|
-
|
28
|
-
- 1
|
29
|
-
- 0
|
30
|
-
- 1
|
31
|
-
version: 1.0.1
|
16
|
+
requirement: &70321140135180 !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: 1.5.0
|
32
22
|
type: :runtime
|
33
|
-
version_requirements: *id001
|
34
|
-
- !ruby/object:Gem::Dependency
|
35
|
-
name: bson
|
36
23
|
prerelease: false
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
version: 1.0
|
24
|
+
version_requirements: *70321140135180
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: bson
|
27
|
+
requirement: &70321140134360 !ruby/object:Gem::Requirement
|
28
|
+
none: false
|
29
|
+
requirements:
|
30
|
+
- - ! '>='
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: 1.6.0
|
46
33
|
type: :runtime
|
47
|
-
version_requirements: *id002
|
48
|
-
- !ruby/object:Gem::Dependency
|
49
|
-
name: bson_ext
|
50
34
|
prerelease: false
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
version: 1.0
|
35
|
+
version_requirements: *70321140134360
|
36
|
+
- !ruby/object:Gem::Dependency
|
37
|
+
name: bson_ext
|
38
|
+
requirement: &70321140133400 !ruby/object:Gem::Requirement
|
39
|
+
none: false
|
40
|
+
requirements:
|
41
|
+
- - ! '>='
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: 1.6.0
|
60
44
|
type: :runtime
|
61
|
-
version_requirements: *id003
|
62
|
-
- !ruby/object:Gem::Dependency
|
63
|
-
name: agnostic-will_paginate
|
64
45
|
prerelease: false
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
46
|
+
version_requirements: *70321140133400
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
name: agnostic-will_paginate
|
49
|
+
requirement: &70321140132020 !ruby/object:Gem::Requirement
|
50
|
+
none: false
|
51
|
+
requirements:
|
52
|
+
- - ! '>='
|
53
|
+
- !ruby/object:Gem::Version
|
73
54
|
version: 3.0.0
|
74
55
|
type: :runtime
|
75
|
-
version_requirements: *id004
|
76
|
-
- !ruby/object:Gem::Dependency
|
77
|
-
name: memcache-client
|
78
56
|
prerelease: false
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
57
|
+
version_requirements: *70321140132020
|
58
|
+
- !ruby/object:Gem::Dependency
|
59
|
+
name: memcache-client
|
60
|
+
requirement: &70321140131320 !ruby/object:Gem::Requirement
|
61
|
+
none: false
|
62
|
+
requirements:
|
63
|
+
- - ! '>='
|
64
|
+
- !ruby/object:Gem::Version
|
87
65
|
version: 1.5.0
|
88
66
|
type: :runtime
|
89
|
-
version_requirements: *id005
|
90
|
-
- !ruby/object:Gem::Dependency
|
91
|
-
name: mongo_rack
|
92
67
|
prerelease: false
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
68
|
+
version_requirements: *70321140131320
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: mongo_rack
|
71
|
+
requirement: &70321140130600 !ruby/object:Gem::Requirement
|
72
|
+
none: false
|
73
|
+
requirements:
|
74
|
+
- - ! '>='
|
75
|
+
- !ruby/object:Gem::Version
|
101
76
|
version: 0.0.1
|
102
77
|
type: :runtime
|
103
|
-
version_requirements: *id006
|
104
|
-
- !ruby/object:Gem::Dependency
|
105
|
-
name: main
|
106
78
|
prerelease: false
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
79
|
+
version_requirements: *70321140130600
|
80
|
+
- !ruby/object:Gem::Dependency
|
81
|
+
name: main
|
82
|
+
requirement: &70321140129660 !ruby/object:Gem::Requirement
|
83
|
+
none: false
|
84
|
+
requirements:
|
85
|
+
- - ! '>='
|
86
|
+
- !ruby/object:Gem::Version
|
115
87
|
version: 4.2.0
|
116
88
|
type: :runtime
|
117
|
-
version_requirements: *id007
|
118
|
-
- !ruby/object:Gem::Dependency
|
119
|
-
name: json
|
120
89
|
prerelease: false
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
90
|
+
version_requirements: *70321140129660
|
91
|
+
- !ruby/object:Gem::Dependency
|
92
|
+
name: json
|
93
|
+
requirement: &70321140128960 !ruby/object:Gem::Requirement
|
94
|
+
none: false
|
95
|
+
requirements:
|
96
|
+
- - ! '>='
|
97
|
+
- !ruby/object:Gem::Version
|
129
98
|
version: 1.2.0
|
130
99
|
type: :runtime
|
131
|
-
version_requirements: *id008
|
132
|
-
- !ruby/object:Gem::Dependency
|
133
|
-
name: sinatra
|
134
100
|
prerelease: false
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
version:
|
101
|
+
version_requirements: *70321140128960
|
102
|
+
- !ruby/object:Gem::Dependency
|
103
|
+
name: sinatra
|
104
|
+
requirement: &70321140117700 !ruby/object:Gem::Requirement
|
105
|
+
none: false
|
106
|
+
requirements:
|
107
|
+
- - ! '>='
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: 1.3.0
|
144
110
|
type: :runtime
|
145
|
-
version_requirements: *id009
|
146
|
-
- !ruby/object:Gem::Dependency
|
147
|
-
name: bones
|
148
111
|
prerelease: false
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
- 2
|
155
|
-
- 5
|
156
|
-
- 1
|
157
|
-
version: 2.5.1
|
158
|
-
type: :development
|
159
|
-
version_requirements: *id010
|
160
|
-
description: " Mongo3 allows you to manage your mongoDB clusters using a web based admin console.\n The console provides for getting an overview of your mongo landscape and drilldown to\n see various information about your databases. You will be able to manage your clusters\n by performing common database admin tasks directly from the web console.\n \n The initial release of Mongo3 will be a read only shallow mode. Further development\n still needs to take place to build up the functionality from the existing code base."
|
161
|
-
email: fernand.galiana@gmail.com
|
162
|
-
executables:
|
112
|
+
version_requirements: *70321140117700
|
113
|
+
description: Console to administer MongoDB
|
114
|
+
email:
|
115
|
+
- fernand.galiana@gmail.com
|
116
|
+
executables:
|
163
117
|
- mongo3
|
164
118
|
extensions: []
|
165
|
-
|
166
|
-
|
167
|
-
-
|
168
|
-
-
|
169
|
-
- lib/views/collections/_index_rows.erb
|
170
|
-
- lib/views/collections/_indexes.erb
|
171
|
-
- lib/views/collections/_nodes.erb
|
172
|
-
- lib/views/collections/_results.erb
|
173
|
-
- lib/views/collections/_rows_table.erb
|
174
|
-
- lib/views/collections/_rows_tree.erb
|
175
|
-
- lib/views/collections/_search_form.erb
|
176
|
-
- lib/views/collections/all_done.js.erb
|
177
|
-
- lib/views/collections/list.erb
|
178
|
-
- lib/views/collections/results.js.erb
|
179
|
-
- lib/views/collections/update.js.erb
|
180
|
-
- lib/views/collections/update_indexes.js.erb
|
181
|
-
- lib/views/databases/_results.erb
|
182
|
-
- lib/views/databases/list.erb
|
183
|
-
- lib/views/databases/results.js.erb
|
184
|
-
- lib/views/explore/_crumbs.erb
|
185
|
-
- lib/views/explore/_dump_array.erb
|
186
|
-
- lib/views/explore/_dump_hash.erb
|
187
|
-
- lib/views/explore/_info.erb
|
188
|
-
- lib/views/explore/_node_info.erb
|
189
|
-
- lib/views/explore/center_js.erb
|
190
|
-
- lib/views/explore/explore.erb
|
191
|
-
- lib/views/explore/load_collection.js.erb
|
192
|
-
- lib/views/explore/load_database.js.erb
|
193
|
-
- lib/views/explore/more_data_js.erb
|
194
|
-
- lib/views/explore/update.js.erb
|
195
|
-
- lib/views/explore/update_crumb_js.erb
|
196
|
-
- lib/views/landscape.erb
|
197
|
-
- lib/views/layout.erb
|
198
|
-
- lib/views/shared/_flash.erb
|
199
|
-
- lib/views/shared/flash.js.erb
|
200
|
-
- lib/views/users/_new.erb
|
201
|
-
- lib/views/users/_results.erb
|
202
|
-
- lib/views/users/list.erb
|
203
|
-
- lib/views/users/results.js.erb
|
204
|
-
files:
|
205
|
-
- .bnignore
|
206
|
-
- .bnsignore
|
207
|
-
- .gitignore
|
119
|
+
extra_rdoc_files: []
|
120
|
+
files:
|
121
|
+
- Gemfile
|
122
|
+
- Gemfile.lock
|
208
123
|
- HISTORY
|
209
124
|
- README.rdoc
|
210
125
|
- Rakefile
|
211
126
|
- bin/mongo3
|
212
127
|
- config.ru
|
213
|
-
- config/mongo3.yml
|
214
|
-
- data/populate
|
215
128
|
- lib/app.rb
|
216
129
|
- lib/controllers/collections.rb
|
217
130
|
- lib/controllers/databases.rb
|
@@ -229,7 +142,6 @@ files:
|
|
229
142
|
- lib/mongo3/node.rb
|
230
143
|
- lib/mongo3/user.rb
|
231
144
|
- lib/mongo3/zone.rb
|
232
|
-
- lib/public/.DS_Store
|
233
145
|
- lib/public/images/button.png
|
234
146
|
- lib/public/images/button_act.png
|
235
147
|
- lib/public/images/c292199_a.jpg
|
@@ -301,7 +213,6 @@ files:
|
|
301
213
|
- lib/public/images/tree/spacer.gif
|
302
214
|
- lib/public/images/tree/spinner.gif
|
303
215
|
- lib/public/images/tree/tree_line.gif
|
304
|
-
- lib/public/javascripts/.DS_Store
|
305
216
|
- lib/public/javascripts/application.js
|
306
217
|
- lib/public/javascripts/jit.js
|
307
218
|
- lib/public/javascripts/jit.min.js
|
@@ -357,6 +268,7 @@ files:
|
|
357
268
|
- lib/views/users/_results.erb
|
358
269
|
- lib/views/users/list.erb
|
359
270
|
- lib/views/users/results.js.erb
|
271
|
+
- mongo3.gemspec
|
360
272
|
- spec/configs/crap.yml
|
361
273
|
- spec/configs/hosed.yml
|
362
274
|
- spec/configs/landscape.yml
|
@@ -378,38 +290,28 @@ files:
|
|
378
290
|
- tasks/svn.rake
|
379
291
|
- tasks/test.rake
|
380
292
|
- tasks/zentest.rake
|
381
|
-
has_rdoc: true
|
382
293
|
homepage: http://www.mongo3.com
|
383
294
|
licenses: []
|
384
|
-
|
385
295
|
post_install_message:
|
386
|
-
rdoc_options:
|
387
|
-
|
388
|
-
- README.rdoc
|
389
|
-
require_paths:
|
296
|
+
rdoc_options: []
|
297
|
+
require_paths:
|
390
298
|
- lib
|
391
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
392
|
-
|
393
|
-
|
394
|
-
|
395
|
-
|
396
|
-
|
397
|
-
|
398
|
-
|
399
|
-
requirements:
|
400
|
-
- -
|
401
|
-
- !ruby/object:Gem::Version
|
402
|
-
|
403
|
-
- 0
|
404
|
-
version: "0"
|
299
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
300
|
+
none: false
|
301
|
+
requirements:
|
302
|
+
- - ! '>='
|
303
|
+
- !ruby/object:Gem::Version
|
304
|
+
version: 1.9.2
|
305
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
306
|
+
none: false
|
307
|
+
requirements:
|
308
|
+
- - ! '>='
|
309
|
+
- !ruby/object:Gem::Version
|
310
|
+
version: 1.3.7
|
405
311
|
requirements: []
|
406
|
-
|
407
|
-
|
408
|
-
AA==
|
409
|
-
|
410
|
-
rubygems_version: 1.3.6
|
312
|
+
rubyforge_project: mongo3
|
313
|
+
rubygems_version: 1.8.10
|
411
314
|
signing_key:
|
412
315
|
specification_version: 3
|
413
|
-
summary:
|
316
|
+
summary: Rule your mongoDB clusters
|
414
317
|
test_files: []
|
415
|
-
|
data/.bnignore
DELETED
data/.bnsignore
DELETED
@@ -1,16 +0,0 @@
|
|
1
|
-
# The list of files that should be ignored by Mr Bones.
|
2
|
-
# Lines that start with '#' are comments.
|
3
|
-
#
|
4
|
-
# A .gitignore file can be used instead by setting it as the ignore
|
5
|
-
# file in your Rakefile:
|
6
|
-
#
|
7
|
-
# PROJ.ignore_file = '.gitignore'
|
8
|
-
#
|
9
|
-
# For a project with a C extension, the following would be a good set of
|
10
|
-
# exclude patterns (uncomment them if you want to use them):
|
11
|
-
# *.[oa]
|
12
|
-
# *~
|
13
|
-
announcement.txt
|
14
|
-
coverage
|
15
|
-
doc
|
16
|
-
pkg
|
data/.gitignore
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
*.psd
|
data/config/mongo3.yml
DELETED
@@ -1,33 +0,0 @@
|
|
1
|
-
development:
|
2
|
-
host: localhost
|
3
|
-
port: 27017
|
4
|
-
|
5
|
-
beta:
|
6
|
-
host: dev8
|
7
|
-
port: 27018
|
8
|
-
user: "blee"
|
9
|
-
password: "fred"
|
10
|
-
|
11
|
-
# production:
|
12
|
-
# :host: dev8
|
13
|
-
# :port: 27018
|
14
|
-
# :user: "blee"
|
15
|
-
# :password: "fred"
|
16
|
-
#
|
17
|
-
# serv1:
|
18
|
-
# :host: dev8
|
19
|
-
# :port: 27018
|
20
|
-
# :user: "blee"
|
21
|
-
# :password: "fred"
|
22
|
-
#
|
23
|
-
# serv2:
|
24
|
-
# :host: dev8
|
25
|
-
# :port: 27018
|
26
|
-
# :user: "blee"
|
27
|
-
# :password: "fred"
|
28
|
-
#
|
29
|
-
# serv3:
|
30
|
-
# :host: dev8
|
31
|
-
# :port: 27018
|
32
|
-
# :user: "blee"
|
33
|
-
# :password: "fred"
|
data/data/populate
DELETED
@@ -1,37 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
require 'rubygems'
|
3
|
-
require 'mongo'
|
4
|
-
|
5
|
-
connection = Mongo::Connection.new( 'localhost', 27017 )
|
6
|
-
|
7
|
-
db_name = "fernand_mdb"
|
8
|
-
cltn_names = %w[blee bobo]
|
9
|
-
|
10
|
-
|
11
|
-
db = connection.db( db_name )
|
12
|
-
|
13
|
-
cltn_names.each do |cltn_name|
|
14
|
-
cltn = db.create_collection( cltn_name )
|
15
|
-
cltn.remove
|
16
|
-
|
17
|
-
20.times do |i|
|
18
|
-
row = {
|
19
|
-
:name => "#{cltn_name}_#{i}",
|
20
|
-
:last_name => "#{db_name}.#{cltn_name}_#{i}",
|
21
|
-
:array => 10.times.to_a,
|
22
|
-
:hash => {
|
23
|
-
:blee => 5.times.to_a,
|
24
|
-
:duh => "Hello",
|
25
|
-
:hash => {
|
26
|
-
:duh => 10
|
27
|
-
}
|
28
|
-
}
|
29
|
-
}
|
30
|
-
puts "Inserting row #{row.inspect}"
|
31
|
-
cltn.insert( row )
|
32
|
-
end
|
33
|
-
|
34
|
-
cltn = db[cltn_name]
|
35
|
-
puts ""
|
36
|
-
puts "Inserted `#{cltn.count} records in `#{cltn_name}"
|
37
|
-
end
|
data/lib/public/.DS_Store
DELETED
Binary file
|
Binary file
|