simply_mongo 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.
Files changed (58) hide show
  1. data/lib/generators/simply_mongo/install/templates/mongo.rb +1 -1
  2. data/lib/generators/simply_mongo/install/templates/mongo.yml +3 -3
  3. data/lib/simply_mongo/version.rb +1 -1
  4. data/test/cmd_line_client/Enterprise.json +30 -0
  5. data/test/cmd_line_client/client.rb +128 -0
  6. data/test/enterprise/Gemfile +45 -0
  7. data/test/enterprise/Gemfile.lock +122 -0
  8. data/test/{dummy → enterprise}/README.rdoc +4 -0
  9. data/test/{dummy → enterprise}/Rakefile +1 -1
  10. data/test/enterprise/app/assets/images/rails.png +0 -0
  11. data/test/{dummy → enterprise}/app/assets/javascripts/application.js +0 -0
  12. data/test/enterprise/app/assets/javascripts/enterprises.js.coffee +3 -0
  13. data/test/{dummy → enterprise}/app/assets/stylesheets/application.css +1 -1
  14. data/test/enterprise/app/assets/stylesheets/enterprises.css.scss +3 -0
  15. data/test/{dummy → enterprise}/app/controllers/application_controller.rb +0 -0
  16. data/test/enterprise/app/controllers/enterprises_controller.rb +62 -0
  17. data/test/{dummy → enterprise}/app/helpers/application_helper.rb +0 -0
  18. data/test/enterprise/app/helpers/enterprises_helper.rb +2 -0
  19. data/test/enterprise/app/views/enterprises/create.html.erb +2 -0
  20. data/test/enterprise/app/views/enterprises/new.html.erb +2 -0
  21. data/test/{dummy → enterprise}/app/views/layouts/application.html.erb +1 -1
  22. data/test/{dummy → enterprise}/config/application.rb +16 -10
  23. data/test/enterprise/config/boot.rb +6 -0
  24. data/test/{dummy → enterprise}/config/environment.rb +1 -1
  25. data/test/{dummy → enterprise}/config/environments/development.rb +1 -7
  26. data/test/{dummy → enterprise}/config/environments/production.rb +2 -5
  27. data/test/{dummy → enterprise}/config/environments/test.rb +1 -3
  28. data/test/{dummy → enterprise}/config/initializers/backtrace_silencers.rb +0 -0
  29. data/test/{dummy/db/test.sqlite3 → enterprise/config/initializers/databases.rb} +0 -0
  30. data/test/{dummy → enterprise}/config/initializers/inflections.rb +0 -0
  31. data/test/{dummy → enterprise}/config/initializers/mime_types.rb +0 -0
  32. data/test/enterprise/config/initializers/mongo.rb +47 -0
  33. data/test/{dummy → enterprise}/config/initializers/secret_token.rb +1 -1
  34. data/test/{dummy → enterprise}/config/initializers/session_store.rb +2 -2
  35. data/test/{dummy → enterprise}/config/initializers/wrap_parameters.rb +2 -5
  36. data/test/{dummy → enterprise}/config/locales/en.yml +0 -0
  37. data/test/enterprise/config/mongo.yml +45 -0
  38. data/test/{dummy → enterprise}/config/routes.rb +10 -1
  39. data/test/{dummy → enterprise}/config.ru +1 -1
  40. data/test/enterprise/db/seeds.rb +7 -0
  41. data/test/enterprise/doc/README_FOR_APP +2 -0
  42. data/test/enterprise/log/development.log +968 -0
  43. data/test/{dummy → enterprise}/public/404.html +0 -0
  44. data/test/{dummy → enterprise}/public/422.html +0 -0
  45. data/test/{dummy → enterprise}/public/500.html +0 -0
  46. data/test/{dummy → enterprise}/public/favicon.ico +0 -0
  47. data/test/enterprise/public/index.html +241 -0
  48. data/test/enterprise/public/robots.txt +5 -0
  49. data/test/{dummy → enterprise}/script/rails +0 -0
  50. data/test/enterprise/tmp/cache/assets/CF0/DA0/sprockets%2Fd7d5b37686831d37c4dd75e645f5e016 +0 -0
  51. data/test/enterprise/tmp/cache/assets/E25/4C0/sprockets%2Fde2fd9fd11c04a582cdbbe3d84a35ae6 +0 -0
  52. data/test/enterprise/tmp/pids/server.pid +1 -0
  53. metadata +100 -67
  54. data/test/dummy/config/boot.rb +0 -10
  55. data/test/dummy/config/database.yml +0 -25
  56. data/test/dummy/log/test.log +0 -3
  57. data/test/simply_mongo_test.rb +0 -7
  58. data/test/test_helper.rb +0 -15
File without changes
File without changes
File without changes
File without changes
@@ -0,0 +1,241 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>Ruby on Rails: Welcome aboard</title>
5
+ <style type="text/css" media="screen">
6
+ body {
7
+ margin: 0;
8
+ margin-bottom: 25px;
9
+ padding: 0;
10
+ background-color: #f0f0f0;
11
+ font-family: "Lucida Grande", "Bitstream Vera Sans", "Verdana";
12
+ font-size: 13px;
13
+ color: #333;
14
+ }
15
+
16
+ h1 {
17
+ font-size: 28px;
18
+ color: #000;
19
+ }
20
+
21
+ a {color: #03c}
22
+ a:hover {
23
+ background-color: #03c;
24
+ color: white;
25
+ text-decoration: none;
26
+ }
27
+
28
+
29
+ #page {
30
+ background-color: #f0f0f0;
31
+ width: 750px;
32
+ margin: 0;
33
+ margin-left: auto;
34
+ margin-right: auto;
35
+ }
36
+
37
+ #content {
38
+ float: left;
39
+ background-color: white;
40
+ border: 3px solid #aaa;
41
+ border-top: none;
42
+ padding: 25px;
43
+ width: 500px;
44
+ }
45
+
46
+ #sidebar {
47
+ float: right;
48
+ width: 175px;
49
+ }
50
+
51
+ #footer {
52
+ clear: both;
53
+ }
54
+
55
+ #header, #about, #getting-started {
56
+ padding-left: 75px;
57
+ padding-right: 30px;
58
+ }
59
+
60
+
61
+ #header {
62
+ background-image: url("assets/rails.png");
63
+ background-repeat: no-repeat;
64
+ background-position: top left;
65
+ height: 64px;
66
+ }
67
+ #header h1, #header h2 {margin: 0}
68
+ #header h2 {
69
+ color: #888;
70
+ font-weight: normal;
71
+ font-size: 16px;
72
+ }
73
+
74
+
75
+ #about h3 {
76
+ margin: 0;
77
+ margin-bottom: 10px;
78
+ font-size: 14px;
79
+ }
80
+
81
+ #about-content {
82
+ background-color: #ffd;
83
+ border: 1px solid #fc0;
84
+ margin-left: -55px;
85
+ margin-right: -10px;
86
+ }
87
+ #about-content table {
88
+ margin-top: 10px;
89
+ margin-bottom: 10px;
90
+ font-size: 11px;
91
+ border-collapse: collapse;
92
+ }
93
+ #about-content td {
94
+ padding: 10px;
95
+ padding-top: 3px;
96
+ padding-bottom: 3px;
97
+ }
98
+ #about-content td.name {color: #555}
99
+ #about-content td.value {color: #000}
100
+
101
+ #about-content ul {
102
+ padding: 0;
103
+ list-style-type: none;
104
+ }
105
+
106
+ #about-content.failure {
107
+ background-color: #fcc;
108
+ border: 1px solid #f00;
109
+ }
110
+ #about-content.failure p {
111
+ margin: 0;
112
+ padding: 10px;
113
+ }
114
+
115
+
116
+ #getting-started {
117
+ border-top: 1px solid #ccc;
118
+ margin-top: 25px;
119
+ padding-top: 15px;
120
+ }
121
+ #getting-started h1 {
122
+ margin: 0;
123
+ font-size: 20px;
124
+ }
125
+ #getting-started h2 {
126
+ margin: 0;
127
+ font-size: 14px;
128
+ font-weight: normal;
129
+ color: #333;
130
+ margin-bottom: 25px;
131
+ }
132
+ #getting-started ol {
133
+ margin-left: 0;
134
+ padding-left: 0;
135
+ }
136
+ #getting-started li {
137
+ font-size: 18px;
138
+ color: #888;
139
+ margin-bottom: 25px;
140
+ }
141
+ #getting-started li h2 {
142
+ margin: 0;
143
+ font-weight: normal;
144
+ font-size: 18px;
145
+ color: #333;
146
+ }
147
+ #getting-started li p {
148
+ color: #555;
149
+ font-size: 13px;
150
+ }
151
+
152
+
153
+ #sidebar ul {
154
+ margin-left: 0;
155
+ padding-left: 0;
156
+ }
157
+ #sidebar ul h3 {
158
+ margin-top: 25px;
159
+ font-size: 16px;
160
+ padding-bottom: 10px;
161
+ border-bottom: 1px solid #ccc;
162
+ }
163
+ #sidebar li {
164
+ list-style-type: none;
165
+ }
166
+ #sidebar ul.links li {
167
+ margin-bottom: 5px;
168
+ }
169
+
170
+ .filename {
171
+ font-style: italic;
172
+ }
173
+ </style>
174
+ <script type="text/javascript">
175
+ function about() {
176
+ info = document.getElementById('about-content');
177
+ if (window.XMLHttpRequest)
178
+ { xhr = new XMLHttpRequest(); }
179
+ else
180
+ { xhr = new ActiveXObject("Microsoft.XMLHTTP"); }
181
+ xhr.open("GET","rails/info/properties",false);
182
+ xhr.send("");
183
+ info.innerHTML = xhr.responseText;
184
+ info.style.display = 'block'
185
+ }
186
+ </script>
187
+ </head>
188
+ <body>
189
+ <div id="page">
190
+ <div id="sidebar">
191
+ <ul id="sidebar-items">
192
+ <li>
193
+ <h3>Browse the documentation</h3>
194
+ <ul class="links">
195
+ <li><a href="http://guides.rubyonrails.org/">Rails Guides</a></li>
196
+ <li><a href="http://api.rubyonrails.org/">Rails API</a></li>
197
+ <li><a href="http://www.ruby-doc.org/core/">Ruby core</a></li>
198
+ <li><a href="http://www.ruby-doc.org/stdlib/">Ruby standard library</a></li>
199
+ </ul>
200
+ </li>
201
+ </ul>
202
+ </div>
203
+
204
+ <div id="content">
205
+ <div id="header">
206
+ <h1>Welcome aboard</h1>
207
+ <h2>You&rsquo;re riding Ruby on Rails!</h2>
208
+ </div>
209
+
210
+ <div id="about">
211
+ <h3><a href="rails/info/properties" onclick="about(); return false">About your application&rsquo;s environment</a></h3>
212
+ <div id="about-content" style="display: none"></div>
213
+ </div>
214
+
215
+ <div id="getting-started">
216
+ <h1>Getting started</h1>
217
+ <h2>Here&rsquo;s how to get rolling:</h2>
218
+
219
+ <ol>
220
+ <li>
221
+ <h2>Use <code>rails generate</code> to create your models and controllers</h2>
222
+ <p>To see all available options, run it without parameters.</p>
223
+ </li>
224
+
225
+ <li>
226
+ <h2>Set up a default route and remove <span class="filename">public/index.html</span></h2>
227
+ <p>Routes are set up in <span class="filename">config/routes.rb</span>.</p>
228
+ </li>
229
+
230
+ <li>
231
+ <h2>Create your database</h2>
232
+ <p>Run <code>rake db:create</code> to create your database. If you're not using SQLite (the default), edit <span class="filename">config/database.yml</span> with your username and password.</p>
233
+ </li>
234
+ </ol>
235
+ </div>
236
+ </div>
237
+
238
+ <div id="footer">&nbsp;</div>
239
+ </div>
240
+ </body>
241
+ </html>
@@ -0,0 +1,5 @@
1
+ # See http://www.robotstxt.org/wc/norobots.html for documentation on how to use the robots.txt file
2
+ #
3
+ # To ban all spiders from the entire site uncomment the next two lines:
4
+ # User-Agent: *
5
+ # Disallow: /
File without changes
@@ -0,0 +1 @@
1
+ 16637
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simply_mongo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
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: 2012-11-09 00:00:00.000000000 Z
12
+ date: 2012-11-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -92,38 +92,55 @@ files:
92
92
  - MIT-LICENSE
93
93
  - Rakefile
94
94
  - README.rdoc
95
- - test/dummy/app/assets/javascripts/application.js
96
- - test/dummy/app/assets/stylesheets/application.css
97
- - test/dummy/app/controllers/application_controller.rb
98
- - test/dummy/app/helpers/application_helper.rb
99
- - test/dummy/app/views/layouts/application.html.erb
100
- - test/dummy/config/application.rb
101
- - test/dummy/config/boot.rb
102
- - test/dummy/config/database.yml
103
- - test/dummy/config/environment.rb
104
- - test/dummy/config/environments/development.rb
105
- - test/dummy/config/environments/production.rb
106
- - test/dummy/config/environments/test.rb
107
- - test/dummy/config/initializers/backtrace_silencers.rb
108
- - test/dummy/config/initializers/inflections.rb
109
- - test/dummy/config/initializers/mime_types.rb
110
- - test/dummy/config/initializers/secret_token.rb
111
- - test/dummy/config/initializers/session_store.rb
112
- - test/dummy/config/initializers/wrap_parameters.rb
113
- - test/dummy/config/locales/en.yml
114
- - test/dummy/config/routes.rb
115
- - test/dummy/config.ru
116
- - test/dummy/db/test.sqlite3
117
- - test/dummy/log/test.log
118
- - test/dummy/public/404.html
119
- - test/dummy/public/422.html
120
- - test/dummy/public/500.html
121
- - test/dummy/public/favicon.ico
122
- - test/dummy/Rakefile
123
- - test/dummy/README.rdoc
124
- - test/dummy/script/rails
125
- - test/simply_mongo_test.rb
126
- - test/test_helper.rb
95
+ - test/cmd_line_client/client.rb
96
+ - test/cmd_line_client/Enterprise.json
97
+ - test/enterprise/app/assets/images/rails.png
98
+ - test/enterprise/app/assets/javascripts/application.js
99
+ - test/enterprise/app/assets/javascripts/enterprises.js.coffee
100
+ - test/enterprise/app/assets/stylesheets/application.css
101
+ - test/enterprise/app/assets/stylesheets/enterprises.css.scss
102
+ - test/enterprise/app/controllers/application_controller.rb
103
+ - test/enterprise/app/controllers/enterprises_controller.rb
104
+ - test/enterprise/app/helpers/application_helper.rb
105
+ - test/enterprise/app/helpers/enterprises_helper.rb
106
+ - test/enterprise/app/views/enterprises/create.html.erb
107
+ - test/enterprise/app/views/enterprises/new.html.erb
108
+ - test/enterprise/app/views/layouts/application.html.erb
109
+ - test/enterprise/config/application.rb
110
+ - test/enterprise/config/boot.rb
111
+ - test/enterprise/config/environment.rb
112
+ - test/enterprise/config/environments/development.rb
113
+ - test/enterprise/config/environments/production.rb
114
+ - test/enterprise/config/environments/test.rb
115
+ - test/enterprise/config/initializers/backtrace_silencers.rb
116
+ - test/enterprise/config/initializers/databases.rb
117
+ - test/enterprise/config/initializers/inflections.rb
118
+ - test/enterprise/config/initializers/mime_types.rb
119
+ - test/enterprise/config/initializers/mongo.rb
120
+ - test/enterprise/config/initializers/secret_token.rb
121
+ - test/enterprise/config/initializers/session_store.rb
122
+ - test/enterprise/config/initializers/wrap_parameters.rb
123
+ - test/enterprise/config/locales/en.yml
124
+ - test/enterprise/config/mongo.yml
125
+ - test/enterprise/config/routes.rb
126
+ - test/enterprise/config.ru
127
+ - test/enterprise/db/seeds.rb
128
+ - test/enterprise/doc/README_FOR_APP
129
+ - test/enterprise/Gemfile
130
+ - test/enterprise/Gemfile.lock
131
+ - test/enterprise/log/development.log
132
+ - test/enterprise/public/404.html
133
+ - test/enterprise/public/422.html
134
+ - test/enterprise/public/500.html
135
+ - test/enterprise/public/favicon.ico
136
+ - test/enterprise/public/index.html
137
+ - test/enterprise/public/robots.txt
138
+ - test/enterprise/Rakefile
139
+ - test/enterprise/README.rdoc
140
+ - test/enterprise/script/rails
141
+ - test/enterprise/tmp/cache/assets/CF0/DA0/sprockets%2Fd7d5b37686831d37c4dd75e645f5e016
142
+ - test/enterprise/tmp/cache/assets/E25/4C0/sprockets%2Fde2fd9fd11c04a582cdbbe3d84a35ae6
143
+ - test/enterprise/tmp/pids/server.pid
127
144
  homepage: http://www.dyntechconsulting.com
128
145
  licenses: []
129
146
  post_install_message:
@@ -149,36 +166,52 @@ signing_key:
149
166
  specification_version: 3
150
167
  summary: Simple Driver to access Mongo from Rails
151
168
  test_files:
152
- - test/dummy/app/assets/javascripts/application.js
153
- - test/dummy/app/assets/stylesheets/application.css
154
- - test/dummy/app/controllers/application_controller.rb
155
- - test/dummy/app/helpers/application_helper.rb
156
- - test/dummy/app/views/layouts/application.html.erb
157
- - test/dummy/config/application.rb
158
- - test/dummy/config/boot.rb
159
- - test/dummy/config/database.yml
160
- - test/dummy/config/environment.rb
161
- - test/dummy/config/environments/development.rb
162
- - test/dummy/config/environments/production.rb
163
- - test/dummy/config/environments/test.rb
164
- - test/dummy/config/initializers/backtrace_silencers.rb
165
- - test/dummy/config/initializers/inflections.rb
166
- - test/dummy/config/initializers/mime_types.rb
167
- - test/dummy/config/initializers/secret_token.rb
168
- - test/dummy/config/initializers/session_store.rb
169
- - test/dummy/config/initializers/wrap_parameters.rb
170
- - test/dummy/config/locales/en.yml
171
- - test/dummy/config/routes.rb
172
- - test/dummy/config.ru
173
- - test/dummy/db/test.sqlite3
174
- - test/dummy/log/test.log
175
- - test/dummy/public/404.html
176
- - test/dummy/public/422.html
177
- - test/dummy/public/500.html
178
- - test/dummy/public/favicon.ico
179
- - test/dummy/Rakefile
180
- - test/dummy/README.rdoc
181
- - test/dummy/script/rails
182
- - test/simply_mongo_test.rb
183
- - test/test_helper.rb
184
- has_rdoc:
169
+ - test/cmd_line_client/client.rb
170
+ - test/cmd_line_client/Enterprise.json
171
+ - test/enterprise/app/assets/images/rails.png
172
+ - test/enterprise/app/assets/javascripts/application.js
173
+ - test/enterprise/app/assets/javascripts/enterprises.js.coffee
174
+ - test/enterprise/app/assets/stylesheets/application.css
175
+ - test/enterprise/app/assets/stylesheets/enterprises.css.scss
176
+ - test/enterprise/app/controllers/application_controller.rb
177
+ - test/enterprise/app/controllers/enterprises_controller.rb
178
+ - test/enterprise/app/helpers/application_helper.rb
179
+ - test/enterprise/app/helpers/enterprises_helper.rb
180
+ - test/enterprise/app/views/enterprises/create.html.erb
181
+ - test/enterprise/app/views/enterprises/new.html.erb
182
+ - test/enterprise/app/views/layouts/application.html.erb
183
+ - test/enterprise/config/application.rb
184
+ - test/enterprise/config/boot.rb
185
+ - test/enterprise/config/environment.rb
186
+ - test/enterprise/config/environments/development.rb
187
+ - test/enterprise/config/environments/production.rb
188
+ - test/enterprise/config/environments/test.rb
189
+ - test/enterprise/config/initializers/backtrace_silencers.rb
190
+ - test/enterprise/config/initializers/databases.rb
191
+ - test/enterprise/config/initializers/inflections.rb
192
+ - test/enterprise/config/initializers/mime_types.rb
193
+ - test/enterprise/config/initializers/mongo.rb
194
+ - test/enterprise/config/initializers/secret_token.rb
195
+ - test/enterprise/config/initializers/session_store.rb
196
+ - test/enterprise/config/initializers/wrap_parameters.rb
197
+ - test/enterprise/config/locales/en.yml
198
+ - test/enterprise/config/mongo.yml
199
+ - test/enterprise/config/routes.rb
200
+ - test/enterprise/config.ru
201
+ - test/enterprise/db/seeds.rb
202
+ - test/enterprise/doc/README_FOR_APP
203
+ - test/enterprise/Gemfile
204
+ - test/enterprise/Gemfile.lock
205
+ - test/enterprise/log/development.log
206
+ - test/enterprise/public/404.html
207
+ - test/enterprise/public/422.html
208
+ - test/enterprise/public/500.html
209
+ - test/enterprise/public/favicon.ico
210
+ - test/enterprise/public/index.html
211
+ - test/enterprise/public/robots.txt
212
+ - test/enterprise/Rakefile
213
+ - test/enterprise/README.rdoc
214
+ - test/enterprise/script/rails
215
+ - test/enterprise/tmp/cache/assets/CF0/DA0/sprockets%2Fd7d5b37686831d37c4dd75e645f5e016
216
+ - test/enterprise/tmp/cache/assets/E25/4C0/sprockets%2Fde2fd9fd11c04a582cdbbe3d84a35ae6
217
+ - test/enterprise/tmp/pids/server.pid
@@ -1,10 +0,0 @@
1
- require 'rubygems'
2
- gemfile = File.expand_path('../../../../Gemfile', __FILE__)
3
-
4
- if File.exist?(gemfile)
5
- ENV['BUNDLE_GEMFILE'] = gemfile
6
- require 'bundler'
7
- Bundler.setup
8
- end
9
-
10
- $:.unshift File.expand_path('../../../../lib', __FILE__)
@@ -1,25 +0,0 @@
1
- # SQLite version 3.x
2
- # gem install sqlite3
3
- #
4
- # Ensure the SQLite 3 gem is defined in your Gemfile
5
- # gem 'sqlite3'
6
- development:
7
- adapter: sqlite3
8
- database: db/development.sqlite3
9
- pool: 5
10
- timeout: 5000
11
-
12
- # Warning: The database defined as "test" will be erased and
13
- # re-generated from your development database when you run "rake".
14
- # Do not set this db to the same as development or production.
15
- test:
16
- adapter: sqlite3
17
- database: db/test.sqlite3
18
- pool: 5
19
- timeout: 5000
20
-
21
- production:
22
- adapter: sqlite3
23
- database: db/production.sqlite3
24
- pool: 5
25
- timeout: 5000
@@ -1,3 +0,0 @@
1
- Connecting to database specified by database.yml
2
-  (0.2ms) begin transaction
3
-  (0.0ms) rollback transaction
@@ -1,7 +0,0 @@
1
- require 'test_helper'
2
-
3
- class SimplyMongoTest < ActiveSupport::TestCase
4
- test "truth" do
5
- assert_kind_of Module, SimplyMongo
6
- end
7
- end
data/test/test_helper.rb DELETED
@@ -1,15 +0,0 @@
1
- # Configure Rails Environment
2
- ENV["RAILS_ENV"] = "test"
3
-
4
- require File.expand_path("../dummy/config/environment.rb", __FILE__)
5
- require "rails/test_help"
6
-
7
- Rails.backtrace_cleaner.remove_silencers!
8
-
9
- # Load support files
10
- Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
11
-
12
- # Load fixtures from the engine
13
- if ActiveSupport::TestCase.method_defined?(:fixture_path=)
14
- ActiveSupport::TestCase.fixture_path = File.expand_path("../fixtures", __FILE__)
15
- end