adapter-mongo 0.5.1 → 0.5.2

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -1,15 +1,15 @@
1
1
  source "http://rubygems.org"
2
-
3
- # Specify your gem's dependencies in adapter-mongo.gemspec
4
2
  gemspec
5
3
 
6
4
  group(:development) do
5
+ gem 'rake'
7
6
  gem 'rspec', '~> 2.3'
8
7
  gem 'log_buddy', '~> 0.5.0'
9
8
  gem 'timecop', '~> 0.3.5'
10
9
  gem 'i18n', '0.5.0'
11
10
  gem 'activesupport', '~> 3', :require => 'active_support'
12
- gem 'bson_ext', '~> 1.2.0'
11
+ gem 'bson_ext', '~> 1.3.0'
12
+ gem 'SystemTimer'
13
13
 
14
14
  gem 'ruby-debug', :platform => :ruby_18
15
15
  gem 'ruby-debug19', :platform => :ruby_19, :require => 'ruby-debug'
data/Gemfile.lock CHANGED
@@ -3,16 +3,17 @@ PATH
3
3
  specs:
4
4
  adapter-mongo (0.5.1)
5
5
  adapter (~> 0.5.1)
6
- mongo (~> 1.2.0)
6
+ mongo (~> 1.3.0)
7
7
 
8
8
  GEM
9
9
  remote: http://rubygems.org/
10
10
  specs:
11
+ SystemTimer (1.2.1)
11
12
  activesupport (3.0.3)
12
13
  adapter (0.5.2)
13
14
  archive-tar-minitar (0.5.2)
14
- bson (1.2.0)
15
- bson_ext (1.2.0)
15
+ bson (1.3.0.rc0)
16
+ bson_ext (1.3.0.rc0)
16
17
  columnize (0.3.2)
17
18
  diff-lcs (1.1.2)
18
19
  i18n (0.5.0)
@@ -20,8 +21,9 @@ GEM
20
21
  linecache19 (0.5.11)
21
22
  ruby_core_source (>= 0.1.4)
22
23
  log_buddy (0.5.0)
23
- mongo (1.2.0)
24
- bson (>= 1.2.0)
24
+ mongo (1.3.0.rc0)
25
+ bson (>= 1.3.0.rc0)
26
+ rake (0.8.7)
25
27
  rspec (2.4.0)
26
28
  rspec-core (~> 2.4.0)
27
29
  rspec-expectations (~> 2.4.0)
@@ -51,13 +53,15 @@ PLATFORMS
51
53
  ruby
52
54
 
53
55
  DEPENDENCIES
56
+ SystemTimer
54
57
  activesupport (~> 3)
55
58
  adapter (~> 0.5.1)
56
59
  adapter-mongo!
57
- bson_ext (~> 1.2.0)
60
+ bson_ext (~> 1.3.0)
58
61
  i18n (= 0.5.0)
59
62
  log_buddy (~> 0.5.0)
60
- mongo (~> 1.2.0)
63
+ mongo (~> 1.3.0)
64
+ rake
61
65
  rspec (~> 2.3)
62
66
  ruby-debug
63
67
  ruby-debug19
@@ -18,5 +18,5 @@ Gem::Specification.new do |s|
18
18
  s.require_paths = ["lib"]
19
19
 
20
20
  s.add_dependency 'adapter', '~> 0.5.1'
21
- s.add_dependency 'mongo', '~> 1.2.0'
21
+ s.add_dependency 'mongo', '~> 1.3.0'
22
22
  end
@@ -0,0 +1 @@
1
+ require 'adapter/mongo'
@@ -1,5 +1,5 @@
1
1
  module Adapter
2
2
  module Mongo
3
- VERSION = "0.5.1"
3
+ VERSION = "0.5.2"
4
4
  end
5
5
  end
data/spec/helper.rb CHANGED
@@ -16,6 +16,8 @@ log_path.mkpath
16
16
  require 'adapter/spec/an_adapter'
17
17
  require 'adapter/spec/types'
18
18
 
19
+ require 'adapter-mongo'
20
+
19
21
  shared_examples_for "a mongo adapter" do
20
22
  it_should_behave_like 'an adapter'
21
23
 
data/spec/mongo_spec.rb CHANGED
@@ -1,9 +1,8 @@
1
1
  require 'helper'
2
- require 'adapter/mongo'
3
2
 
4
3
  describe "Mongo adapter" do
5
4
  before do
6
- @client = Mongo::Connection.new.db('adapter')['testing']
5
+ @client = Mongo::Connection.new.db('test')['test']
7
6
  @adapter = Adapter[:mongo].new(@client)
8
7
  @adapter.clear
9
8
  end
metadata CHANGED
@@ -1,12 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: adapter-mongo
3
3
  version: !ruby/object:Gem::Version
4
+ hash: 15
4
5
  prerelease: false
5
6
  segments:
6
7
  - 0
7
8
  - 5
8
- - 1
9
- version: 0.5.1
9
+ - 2
10
+ version: 0.5.2
10
11
  platform: ruby
11
12
  authors:
12
13
  - John Nunemaker
@@ -14,7 +15,7 @@ autorequire:
14
15
  bindir: bin
15
16
  cert_chain: []
16
17
 
17
- date: 2011-02-03 00:00:00 -05:00
18
+ date: 2011-04-15 00:00:00 -04:00
18
19
  default_executable:
19
20
  dependencies:
20
21
  - !ruby/object:Gem::Dependency
@@ -25,6 +26,7 @@ dependencies:
25
26
  requirements:
26
27
  - - ~>
27
28
  - !ruby/object:Gem::Version
29
+ hash: 9
28
30
  segments:
29
31
  - 0
30
32
  - 5
@@ -40,11 +42,12 @@ dependencies:
40
42
  requirements:
41
43
  - - ~>
42
44
  - !ruby/object:Gem::Version
45
+ hash: 27
43
46
  segments:
44
47
  - 1
45
- - 2
48
+ - 3
46
49
  - 0
47
- version: 1.2.0
50
+ version: 1.3.0
48
51
  type: :runtime
49
52
  version_requirements: *id002
50
53
  description: Adapter for mongo
@@ -65,6 +68,7 @@ files:
65
68
  - Rakefile
66
69
  - adapter-mongo.gemspec
67
70
  - examples/mongo.rb
71
+ - lib/adapter-mongo.rb
68
72
  - lib/adapter/mongo.rb
69
73
  - lib/adapter/mongo/version.rb
70
74
  - log/test.log
@@ -84,6 +88,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
84
88
  requirements:
85
89
  - - ">="
86
90
  - !ruby/object:Gem::Version
91
+ hash: 3
87
92
  segments:
88
93
  - 0
89
94
  version: "0"
@@ -92,6 +97,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
92
97
  requirements:
93
98
  - - ">="
94
99
  - !ruby/object:Gem::Version
100
+ hash: 3
95
101
  segments:
96
102
  - 0
97
103
  version: "0"