mongodb_logger 0.2.5 → 0.2.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -3,10 +3,12 @@ before_script:
3
3
  script: "sh -c 'export DISPLAY=:99.0 && test/test.sh'"
4
4
  rvm:
5
5
  - 1.8.7
6
- - ree
6
+ # - ree
7
7
  - 1.9.2
8
8
  - 1.9.3
9
9
  - ruby-head
10
+ # - jruby-18mode
11
+ # - jruby-19mode
10
12
  notifications:
11
13
  email: false
12
14
  branches:
@@ -1,3 +1,8 @@
1
+ ## v0.2.6
2
+
3
+ * Replica Set set in config by key 'hosts'
4
+ * Adding jruby support
5
+
1
6
  ## v0.2.5
2
7
 
3
8
  * Build graphs for analytics page
data/Gemfile CHANGED
@@ -1,4 +1,10 @@
1
1
  source 'http://rubygems.org'
2
2
 
3
3
  # Specify your gem's dependencies in mongodb_logger.gemspec
4
- gemspec
4
+ platforms :ruby do
5
+ gemspec(:name => "mongodb_logger")
6
+ end
7
+
8
+ platforms :jruby do
9
+ gemspec(:name => "mongodb_logger.java")
10
+ end
data/README.md CHANGED
@@ -27,31 +27,46 @@ It:
27
27
  look for a separate mongodb\_logger.yml or mongoid.yml (if you are using mongoid) before looking in database.yml.
28
28
  In the mongodb\_logger.yml and mongoid.yml case, the settings should be defined without the 'mongodb\_logger' subkey.
29
29
 
30
- File: database.yml:
31
-
32
- development:
33
- adapter: postgresql
34
- database: my_app_development
35
- username: postgres
36
- mongodb_logger:
37
- database: my_app # required (the only required setting)
38
- capsize: <%= 10.megabytes %> # default: 250MB
39
- host: localhost # default: localhost
40
- port: 27017 # default: 27017
41
- replica_set: true # default: false - Adds retries for ConnectionFailure during voting for replica set master
42
- safe_insert: false # default: false - Enable/Disable safe inserts (wait for insert to propagate to all nodes)
43
- application_name: my_app # default: Rails.application
44
- disable_file_logging: false # default: false - disable logging into filesystem (only in MongoDB)
45
- collection: some_name # default: Rails.env + "_log" - name of MongoDB collection
46
-
47
- File: mongodb\_logger.yml:
48
-
49
- development:
50
- database: my_app
51
- capsize: <%= 10.megabytes %>
52
- host: localhost
53
- port: 27017
54
- replica_set: true
30
+ database.yml:
31
+
32
+ development:
33
+ adapter: postgresql
34
+ database: my_app_development
35
+ username: postgres
36
+ mongodb_logger:
37
+ database: my_app # required (the only required setting)
38
+ capsize: <%= 10.megabytes %> # default: 250MB
39
+ host: localhost # default: localhost
40
+ port: 27017 # default: 27017
41
+ replica_set: true # default: false - Adds retries for ConnectionFailure during voting for replica set master
42
+ safe_insert: false # default: false - Enable/Disable safe inserts (wait for insert to propagate to all nodes)
43
+ application_name: my_app # default: Rails.application
44
+ disable_file_logging: false # default: false - disable logging into filesystem (only in MongoDB)
45
+ collection: some_name # default: Rails.env + "_log" - name of MongoDB collection
46
+
47
+ mongodb\_logger.yml:
48
+
49
+ development:
50
+ database: my_app
51
+ capsize: <%= 10.megabytes %>
52
+ host: localhost
53
+ port: 27017
54
+ replica_set: true
55
+
56
+
57
+
58
+ 1. For using with MongoDB Replica Set (more info you can read by this link [http://www.mongodb.org/display/DOCS/Replica+Sets](http://www.mongodb.org/display/DOCS/Replica+Sets)). In config set list of [host, port] in key "hosts":
59
+
60
+ development:
61
+ database: my_app
62
+ capsize: <%= 10.megabytes %>
63
+ host: localhost
64
+ port: 27017
65
+ hosts:
66
+ - - 127.0.0.1
67
+ - 27018
68
+ - - 127.0.0.1
69
+ - 27019
55
70
 
56
71
 
57
72
  ## Usage
data/Rakefile CHANGED
@@ -8,7 +8,10 @@ rescue LoadError
8
8
  exit 1
9
9
  end
10
10
 
11
- require "bundler/gem_tasks"
11
+ #require "bundler/gem_tasks"
12
+ require 'bundler/gem_helper'
13
+ Bundler::GemHelper.install_tasks(:name => 'mongodb_logger.java')
14
+ Bundler::GemHelper.install_tasks(:name => 'mongodb_logger')
12
15
 
13
16
 
14
17
  #########################################
@@ -74,7 +77,7 @@ LOCAL_GEM_ROOT = File.join(GEM_ROOT, 'tmp', 'local_gems').freeze
74
77
 
75
78
  if ENV['CI']
76
79
  # for ci testing only major rails versions
77
- RAILS_VERSIONS = ['3.0.11', '3.1.3']
80
+ RAILS_VERSIONS = ['3.0.11', '3.1.3', '3.2.0']
78
81
  else
79
82
  RAILS_VERSIONS = IO.read('SUPPORTED_RAILS_VERSIONS').strip.split("\n")
80
83
  end
@@ -13,4 +13,5 @@
13
13
  3.1.0
14
14
  3.1.1
15
15
  3.1.2
16
- 3.1.3
16
+ 3.1.3
17
+ 3.2.0
@@ -8,10 +8,12 @@ When /^I generate a new Rails application$/ do
8
8
  @terminal.cd(TEMP_DIR)
9
9
  version_string = ENV['RAILS_VERSION']
10
10
  rails_create_command = 'new'
11
-
11
+
12
+ rails_dir_search = (version_string =~ /^3.(0|1)/) ? "rails" : "railties"
13
+
12
14
  load_rails = <<-RUBY
13
15
  gem "rails", "#{version_string}"; \
14
- load Gem.bin_path("rails", "rails", "#{version_string}")
16
+ load Gem.bin_path("#{rails_dir_search}", "rails", "#{version_string}")
15
17
  RUBY
16
18
 
17
19
  @terminal.run(%{ruby -rrubygems -rthread -e "#{load_rails.gsub("\"", "\\\"").strip!}" #{rails_create_command} rails_root})
@@ -14,7 +14,7 @@ module MongodbLogger
14
14
  CONFIGURATION_FILES = ["mongodb_logger.yml", "mongoid.yml", "database.yml"]
15
15
  LOG_LEVEL_SYM = [:debug, :info, :warn, :error, :fatal, :unknown]
16
16
 
17
- attr_reader :db_configuration, :mongo_connection, :mongo_collection_name, :mongo_collection
17
+ attr_reader :db_configuration, :mongo_connection, :mongo_collection_name, :mongo_collection, :mongo_connection_type
18
18
 
19
19
  def initialize(options={})
20
20
  path = options[:path] || File.join(Rails.root, "log/#{Rails.env}.log")
@@ -147,12 +147,23 @@ module MongodbLogger
147
147
  config
148
148
  end
149
149
 
150
- def connect
151
- @mongo_connection ||= Mongo::Connection.new(@db_configuration['host'],
152
- @db_configuration['port'],
153
- :auto_reconnect => true,
154
- :pool_timeout => 6).db(@db_configuration['database'])
150
+ def mongo_connection_object
151
+ if @db_configuration['hosts']
152
+ conn = Mongo::ReplSetConnection.new(*(@db_configuration['hosts'] <<
153
+ {:auto_reconnect => true, :pool_timeout => 6}))
154
+ @db_configuration['replica_set'] = true
155
+ else
156
+ conn = Mongo::Connection.new(@db_configuration['host'],
157
+ @db_configuration['port'],
158
+ :auto_reconnect => true,
159
+ :pool_timeout => 6)
160
+ end
161
+ @mongo_connection_type = conn.class
162
+ conn
163
+ end
155
164
 
165
+ def connect
166
+ @mongo_connection ||= mongo_connection_object.db(@db_configuration['database'])
156
167
  if @db_configuration['username'] && @db_configuration['password']
157
168
  # the driver stores credentials in case reconnection is required
158
169
  @authenticated = @mongo_connection.authenticate(@db_configuration['username'],
@@ -1,3 +1,3 @@
1
1
  module MongodbLogger
2
- VERSION = "0.2.5"
2
+ VERSION = "0.2.6"
3
3
  end
@@ -12,7 +12,7 @@ Gem::Specification.new do |gem|
12
12
  gem.rdoc_options = ["--charset=UTF-8"]
13
13
 
14
14
  gem.add_development_dependency "jasmine", ">= 1.0.0"
15
- gem.add_development_dependency "rspec", ">= 2.7.0"
15
+ gem.add_development_dependency "rspec", ">= 2.8.0"
16
16
  gem.add_development_dependency "shoulda", ">= 2.0.0"
17
17
  gem.add_development_dependency "mocha", ">= 0.10.0"
18
18
  gem.add_development_dependency "cucumber", "~> 1.1.2"
@@ -0,0 +1,42 @@
1
+ # -*- encoding: utf-8 -*-
2
+ require File.expand_path('../lib/mongodb_logger/version', __FILE__)
3
+
4
+ Gem::Specification.new do |gem|
5
+ gem.authors = ["Alexey Vasiliev"]
6
+ gem.email = ["leopard.not.a@gmail.com"]
7
+ gem.description = %q{MongoDB logger for Rails 3}
8
+ gem.summary = %q{MongoDB logger for Rails 3}
9
+ gem.homepage = "http://mongodb-logger.catware.org"
10
+
11
+ gem.extra_rdoc_files = [ "LICENSE", "README.md" ]
12
+ gem.rdoc_options = ["--charset=UTF-8"]
13
+
14
+ gem.add_development_dependency "jasmine", ">= 1.0.0"
15
+ gem.add_development_dependency "rspec", ">= 2.8.0"
16
+ gem.add_development_dependency "shoulda", ">= 2.0.0"
17
+ gem.add_development_dependency "mocha", ">= 0.10.0"
18
+ gem.add_development_dependency "cucumber", "~> 1.1.2"
19
+ gem.add_development_dependency "capybara", "~> 1.1.2"
20
+ gem.add_development_dependency "coffee-script", "~> 2.2.0"
21
+ gem.add_development_dependency "uglifier", ">= 1.2.0"
22
+
23
+ gem.add_runtime_dependency "rake", "~> 0.9.0"
24
+ gem.add_runtime_dependency "mongo", "~> 1.5.2"
25
+ gem.add_runtime_dependency "i18n", ">= 0.4.1"
26
+ gem.add_runtime_dependency "json", "~> 1.6.1"
27
+ gem.add_runtime_dependency "activesupport", ">= 3.0.0"
28
+ gem.add_runtime_dependency "actionpack", ">= 3.0.0"
29
+ gem.add_runtime_dependency "sinatra", ">= 1.2.0"
30
+ gem.add_runtime_dependency "erubis", ">= 2.6.6"
31
+ gem.add_runtime_dependency "vegas", "~> 0.1.2"
32
+
33
+ gem.rubyforge_project = "mongodb_logger"
34
+
35
+ gem.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
36
+ gem.files = `git ls-files`.split("\n")
37
+ gem.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
38
+ gem.name = "mongodb_logger"
39
+ gem.require_paths = ["lib"]
40
+ gem.version = MongodbLogger::VERSION
41
+ gem.platform = "jruby"
42
+ end
@@ -1,8 +1,12 @@
1
1
  test:
2
- adapter: sqlite3
3
- database: db/test.sqlite3
4
- pool: 5
5
- timeout: 5000
2
+ adapter: mysql
3
+ username: user
4
+ database: database
6
5
  mongodb_logger:
7
6
  database: system_log
8
- replica_set: true
7
+ replica_set: true
8
+ hosts:
9
+ - - 127.0.0.1
10
+ - 27018
11
+ - - 127.0.0.1
12
+ - 27019
@@ -11,10 +11,6 @@ class OrderControllerTest < ActionController::TestCase
11
11
  assert_equal ActiveSupport::BufferedLogger.const_get(Rails.configuration.log_level.to_s.upcase), Rails.logger.level
12
12
  end
13
13
 
14
- test "should have auto flushing set in development" do
15
- assert @mongodb_logger.auto_flushing
16
- end
17
-
18
14
  test "should log a single record" do
19
15
  get :index
20
16
  assert_response :success
@@ -1,40 +1,51 @@
1
1
  require 'test_helper'
2
2
  require 'mongodb_logger/logger'
3
3
 
4
- # test the basic stuff
4
+ # HOWTO run this test:
5
+ # before start this test, do this in console:
6
+ # mkdir -p /tmp/data1
7
+ # mkdir -p /tmp/data2
8
+ # mkdir -p /tmp/data3
9
+ # mongod --replSet foo --port 27018 --dbpath /tmp/data1
10
+ # mongod --replSet foo --port 27019 --dbpath /tmp/data2
11
+ # mongod --replSet foo --port 27020 --dbpath /tmp/data3
12
+ # mongo localhost:27018
13
+ # In mongo console:
14
+ # config = {_id: 'foo', members: [
15
+ # {_id: 0, host: 'localhost:27018'},
16
+ # {_id: 1, host: 'localhost:27019'},
17
+ # {_id: 2, host: 'localhost:27020', arbiterOnly: true}]
18
+ # }
19
+ #
20
+ # rs.initiate(config);
21
+ # You should see such output:
22
+ # {
23
+ # "info" : "Config now saved locally. Should come online in about a minute.",
24
+ # "ok" : 1
25
+ # }
26
+
27
+
5
28
  class MongodbLogger::MongodbLoggerReplicaTest < Test::Unit::TestCase
6
29
  extend LogMacros
7
30
 
8
- context "A MongodbLogger::MongoLogger" do
31
+ context "A MongodbLogger::MongoLogger connecting to a replica set" do
9
32
  setup do
10
- # Can use different configs, but most tests use database.yml
11
- cp_config(REPLICA_SET_CONFIG, DEFAULT_CONFIG)
33
+ FileUtils.cp(File.join(SAMPLE_CONFIG_DIR, REPLICA_SET_CONFIG), File.join(CONFIG_DIR, DEFAULT_CONFIG))
34
+ MongodbLogger::Logger.any_instance.stubs(:internal_initialize).returns(nil)
35
+ MongodbLogger::Logger.any_instance.stubs(:disable_file_logging?).returns(false)
12
36
  @mongodb_logger = MongodbLogger::Logger.new
13
- @mongodb_logger.reset_collection
37
+ @mongodb_logger.send(:configure)
38
+ @mongodb_logger.send(:connect)
39
+ common_setup
40
+ @collection.drop
14
41
  end
15
42
 
16
- context "upon trying to insert into a replica set voting on a new master" do
17
- setup do
18
- puts "Please disconnect the current master and hit ENTER"
19
- STDIN.gets
20
- end
21
-
22
- should "insert a record successfully" do
23
- assert_nothing_raised{ log("Test") }
24
- @mongodb_logger.rescue_connection_failure do
25
- assert_equal 1, @mongodb_logger.mongo_collection.count
26
- end
27
- end
28
-
29
- teardown do
30
- puts "Please reconnect the current master, wait for the vote to complete, then hit ENTER"
31
- STDIN.gets
32
- end
43
+ should "derive from Mongo::ReplSetConnection" do
44
+ assert_equal Mongo::ReplSetConnection, @mongodb_logger.mongo_connection_type
33
45
  end
34
46
 
35
- should "insert a record successfully" do
36
- assert_nothing_raised{ log("Test") }
37
- assert_equal 1, @mongodb_logger.mongo_collection.count
47
+ should "force replica_set parameter to be true" do
48
+ assert @mongodb_logger.db_configuration['replica_set']
38
49
  end
39
50
 
40
51
  teardown do
@@ -102,6 +102,10 @@ class MongodbLogger::LoggerTest < Test::Unit::TestCase
102
102
  assert_instance_of Mongo::DB, @mongodb_logger.mongo_connection
103
103
  end
104
104
 
105
+ should "derive from Mongo::Connection for single host" do
106
+ assert_equal Mongo::Connection, @mongodb_logger.mongo_connection_type
107
+ end
108
+
105
109
  should "not authenticate" do
106
110
  assert !@mongodb_logger.authenticated?
107
111
  end
@@ -213,17 +217,9 @@ class MongodbLogger::LoggerTest < Test::Unit::TestCase
213
217
  MongodbLogger::Logger.new
214
218
  end
215
219
 
216
- should "set level" do
217
- level = stub('level')
218
- logger = MongodbLogger::Logger.new(:level => level)
219
- assert_equal level, logger.level
220
- end
221
220
  should "set buffer" do
222
221
  assert_equal({}, MongodbLogger::Logger.new.instance_variable_get(:@buffer))
223
222
  end
224
- should "set auto flushing" do
225
- assert_equal 1, MongodbLogger::Logger.new.instance_variable_get(:@auto_flushing)
226
- end
227
223
  should "set guard" do
228
224
  assert MongodbLogger::Logger.new.instance_variable_get(:@guard).is_a?(Mutex)
229
225
  end
@@ -270,5 +266,5 @@ class MongodbLogger::LoggerTest < Test::Unit::TestCase
270
266
  File.delete(file) if File.exist?(file)
271
267
  end
272
268
  end
273
-
269
+
274
270
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mongodb_logger
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.5
4
+ version: 0.2.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-01-05 00:00:00.000000000 Z
12
+ date: 2012-01-24 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: jasmine
16
- requirement: &70323454612280 !ruby/object:Gem::Requirement
16
+ requirement: &70356472743000 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,21 +21,21 @@ dependencies:
21
21
  version: 1.0.0
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: *70323454612280
24
+ version_requirements: *70356472743000
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: rspec
27
- requirement: &70323454611780 !ruby/object:Gem::Requirement
27
+ requirement: &70356472742500 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
31
31
  - !ruby/object:Gem::Version
32
- version: 2.7.0
32
+ version: 2.8.0
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *70323454611780
35
+ version_requirements: *70356472742500
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: shoulda
38
- requirement: &70323454611320 !ruby/object:Gem::Requirement
38
+ requirement: &70356472739980 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: 2.0.0
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *70323454611320
46
+ version_requirements: *70356472739980
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: mocha
49
- requirement: &70323454610860 !ruby/object:Gem::Requirement
49
+ requirement: &70356472739500 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: 0.10.0
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *70323454610860
57
+ version_requirements: *70356472739500
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: cucumber
60
- requirement: &70323450561220 !ruby/object:Gem::Requirement
60
+ requirement: &70356472739040 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ~>
@@ -65,10 +65,10 @@ dependencies:
65
65
  version: 1.1.2
66
66
  type: :development
67
67
  prerelease: false
68
- version_requirements: *70323450561220
68
+ version_requirements: *70356472739040
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: capybara
71
- requirement: &70323450559940 !ruby/object:Gem::Requirement
71
+ requirement: &70356472738580 !ruby/object:Gem::Requirement
72
72
  none: false
73
73
  requirements:
74
74
  - - ~>
@@ -76,10 +76,10 @@ dependencies:
76
76
  version: 1.1.2
77
77
  type: :development
78
78
  prerelease: false
79
- version_requirements: *70323450559940
79
+ version_requirements: *70356472738580
80
80
  - !ruby/object:Gem::Dependency
81
81
  name: coffee-script
82
- requirement: &70323454647460 !ruby/object:Gem::Requirement
82
+ requirement: &70356472738120 !ruby/object:Gem::Requirement
83
83
  none: false
84
84
  requirements:
85
85
  - - ~>
@@ -87,10 +87,10 @@ dependencies:
87
87
  version: 2.2.0
88
88
  type: :development
89
89
  prerelease: false
90
- version_requirements: *70323454647460
90
+ version_requirements: *70356472738120
91
91
  - !ruby/object:Gem::Dependency
92
92
  name: uglifier
93
- requirement: &70323454647000 !ruby/object:Gem::Requirement
93
+ requirement: &70356472737660 !ruby/object:Gem::Requirement
94
94
  none: false
95
95
  requirements:
96
96
  - - ! '>='
@@ -98,10 +98,10 @@ dependencies:
98
98
  version: 1.2.0
99
99
  type: :development
100
100
  prerelease: false
101
- version_requirements: *70323454647000
101
+ version_requirements: *70356472737660
102
102
  - !ruby/object:Gem::Dependency
103
103
  name: therubyracer
104
- requirement: &70323454646540 !ruby/object:Gem::Requirement
104
+ requirement: &70356472737200 !ruby/object:Gem::Requirement
105
105
  none: false
106
106
  requirements:
107
107
  - - ! '>='
@@ -109,10 +109,10 @@ dependencies:
109
109
  version: 0.9.9
110
110
  type: :development
111
111
  prerelease: false
112
- version_requirements: *70323454646540
112
+ version_requirements: *70356472737200
113
113
  - !ruby/object:Gem::Dependency
114
114
  name: rake
115
- requirement: &70323454646080 !ruby/object:Gem::Requirement
115
+ requirement: &70356472736740 !ruby/object:Gem::Requirement
116
116
  none: false
117
117
  requirements:
118
118
  - - ~>
@@ -120,10 +120,10 @@ dependencies:
120
120
  version: 0.9.0
121
121
  type: :runtime
122
122
  prerelease: false
123
- version_requirements: *70323454646080
123
+ version_requirements: *70356472736740
124
124
  - !ruby/object:Gem::Dependency
125
125
  name: mongo
126
- requirement: &70323454645620 !ruby/object:Gem::Requirement
126
+ requirement: &70356472736280 !ruby/object:Gem::Requirement
127
127
  none: false
128
128
  requirements:
129
129
  - - ~>
@@ -131,10 +131,10 @@ dependencies:
131
131
  version: 1.5.2
132
132
  type: :runtime
133
133
  prerelease: false
134
- version_requirements: *70323454645620
134
+ version_requirements: *70356472736280
135
135
  - !ruby/object:Gem::Dependency
136
136
  name: bson_ext
137
- requirement: &70323454645160 !ruby/object:Gem::Requirement
137
+ requirement: &70356472735820 !ruby/object:Gem::Requirement
138
138
  none: false
139
139
  requirements:
140
140
  - - ~>
@@ -142,10 +142,10 @@ dependencies:
142
142
  version: 1.5.2
143
143
  type: :runtime
144
144
  prerelease: false
145
- version_requirements: *70323454645160
145
+ version_requirements: *70356472735820
146
146
  - !ruby/object:Gem::Dependency
147
147
  name: i18n
148
- requirement: &70323454644700 !ruby/object:Gem::Requirement
148
+ requirement: &70356472735320 !ruby/object:Gem::Requirement
149
149
  none: false
150
150
  requirements:
151
151
  - - ! '>='
@@ -153,10 +153,10 @@ dependencies:
153
153
  version: 0.4.1
154
154
  type: :runtime
155
155
  prerelease: false
156
- version_requirements: *70323454644700
156
+ version_requirements: *70356472735320
157
157
  - !ruby/object:Gem::Dependency
158
158
  name: json
159
- requirement: &70323454644240 !ruby/object:Gem::Requirement
159
+ requirement: &70356472734840 !ruby/object:Gem::Requirement
160
160
  none: false
161
161
  requirements:
162
162
  - - ~>
@@ -164,10 +164,10 @@ dependencies:
164
164
  version: 1.6.1
165
165
  type: :runtime
166
166
  prerelease: false
167
- version_requirements: *70323454644240
167
+ version_requirements: *70356472734840
168
168
  - !ruby/object:Gem::Dependency
169
169
  name: activesupport
170
- requirement: &70323454643780 !ruby/object:Gem::Requirement
170
+ requirement: &70356472734280 !ruby/object:Gem::Requirement
171
171
  none: false
172
172
  requirements:
173
173
  - - ! '>='
@@ -175,10 +175,10 @@ dependencies:
175
175
  version: 3.0.0
176
176
  type: :runtime
177
177
  prerelease: false
178
- version_requirements: *70323454643780
178
+ version_requirements: *70356472734280
179
179
  - !ruby/object:Gem::Dependency
180
180
  name: actionpack
181
- requirement: &70323454643320 !ruby/object:Gem::Requirement
181
+ requirement: &70356472733760 !ruby/object:Gem::Requirement
182
182
  none: false
183
183
  requirements:
184
184
  - - ! '>='
@@ -186,10 +186,10 @@ dependencies:
186
186
  version: 3.0.0
187
187
  type: :runtime
188
188
  prerelease: false
189
- version_requirements: *70323454643320
189
+ version_requirements: *70356472733760
190
190
  - !ruby/object:Gem::Dependency
191
191
  name: sinatra
192
- requirement: &70323454642860 !ruby/object:Gem::Requirement
192
+ requirement: &70356472733040 !ruby/object:Gem::Requirement
193
193
  none: false
194
194
  requirements:
195
195
  - - ! '>='
@@ -197,10 +197,10 @@ dependencies:
197
197
  version: 1.2.0
198
198
  type: :runtime
199
199
  prerelease: false
200
- version_requirements: *70323454642860
200
+ version_requirements: *70356472733040
201
201
  - !ruby/object:Gem::Dependency
202
202
  name: erubis
203
- requirement: &70323454642400 !ruby/object:Gem::Requirement
203
+ requirement: &70356472732240 !ruby/object:Gem::Requirement
204
204
  none: false
205
205
  requirements:
206
206
  - - ! '>='
@@ -208,10 +208,10 @@ dependencies:
208
208
  version: 2.6.6
209
209
  type: :runtime
210
210
  prerelease: false
211
- version_requirements: *70323454642400
211
+ version_requirements: *70356472732240
212
212
  - !ruby/object:Gem::Dependency
213
213
  name: vegas
214
- requirement: &70323454641940 !ruby/object:Gem::Requirement
214
+ requirement: &70356472712320 !ruby/object:Gem::Requirement
215
215
  none: false
216
216
  requirements:
217
217
  - - ~>
@@ -219,7 +219,7 @@ dependencies:
219
219
  version: 0.1.2
220
220
  type: :runtime
221
221
  prerelease: false
222
- version_requirements: *70323454641940
222
+ version_requirements: *70356472712320
223
223
  description: MongoDB logger for Rails 3
224
224
  email:
225
225
  - leopard.not.a@gmail.com
@@ -323,6 +323,7 @@ files:
323
323
  - lib/mongodb_logger/server_config.rb
324
324
  - lib/mongodb_logger/version.rb
325
325
  - mongodb_logger.gemspec
326
+ - mongodb_logger.java.gemspec
326
327
  - spec/javascripts/MongodbLoggerMainSpec.js
327
328
  - spec/javascripts/helpers/SpecHelper.js
328
329
  - spec/javascripts/support/jasmine.yml