mongoid_nested_set 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,44 @@
1
+ Gemfile.lock
2
+ # rcov generated
3
+ coverage
4
+
5
+ # rdoc generated
6
+ rdoc
7
+
8
+ # yard generated
9
+ doc
10
+ .yardoc
11
+
12
+ # bundler
13
+ .bundle
14
+
15
+ # jeweler generated
16
+ pkg
17
+
18
+ # Have editor/IDE/OS specific files you need to ignore? Consider using a global gitignore:
19
+ #
20
+ # * Create a file at ~/.gitignore
21
+ # * Include files you want ignored
22
+ # * Run: git config --global core.excludesfile ~/.gitignore
23
+ #
24
+ # After doing this, these files will be ignored in all your git projects,
25
+ # saving you from having to 'pollute' every project you touch with them
26
+ #
27
+ # Not sure what to needs to be ignored for particular editors/OSes? Here's some ideas to get you started. (Remember, remove the leading # of the line)
28
+ #
29
+ # For MacOS:
30
+ #
31
+ #.DS_Store
32
+ #
33
+ # For TextMate
34
+ #*.tmproj
35
+ #tmtags
36
+ #
37
+ # For emacs:
38
+ #*~
39
+ #\#*
40
+ #.\#*
41
+ #
42
+ # For vim:
43
+ #*.swp
44
+ .rvmrc
data/Gemfile CHANGED
@@ -1,17 +1,7 @@
1
1
  source "http://rubygems.org"
2
2
 
3
- gem "mongoid", ">= 3.0.0"
4
-
5
- # Add dependencies to develop your gem here.
6
- # Include everything needed to run rake, tests, features, etc.
7
- group :development do
8
- gem "bundler", "~> 1.0"
9
- gem "jeweler", "~> 1.5"
10
- gem "simplecov"
11
- gem "simplecov-rcov"
12
- gem 'rspec-core', "~> 2.0"
13
- gem 'rdoc'
14
- end
3
+ # Specify your gem's dependencies in mongoid_nested_set.gemspec
4
+ gemspec
15
5
 
16
6
  group :test do
17
7
  gem 'rspec-expectations', "~> 2.0"
data/Rakefile CHANGED
@@ -1,45 +1 @@
1
- require 'rubygems'
2
- require 'bundler'
3
- begin
4
- Bundler.setup(:default, :development)
5
- rescue Bundler::BundlerError => e
6
- $stderr.puts e.message
7
- $stderr.puts "Run `bundle install` to install missing gems"
8
- exit e.status_code
9
- end
10
- require 'rake'
11
-
12
- require 'jeweler'
13
- Jeweler::Tasks.new do |gem|
14
- # gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
15
- gem.name = "mongoid_nested_set"
16
- gem.homepage = "http://github.com/thinkwell/mongoid_nested_set"
17
- gem.license = "MIT"
18
- gem.summary = %Q{Nested set based tree implementation for Mongoid}
19
- gem.description = %Q{Fully featured tree implementation for Mongoid using the nested set model}
20
- gem.email = "bturner@bltweb.net"
21
- gem.authors = ["Brandon Turner"]
22
- end
23
- Jeweler::RubygemsDotOrgTasks.new
24
-
25
- require 'rspec/core/rake_task'
26
- RSpec::Core::RakeTask.new(:spec) do |spec|
27
- spec.pattern = FileList['spec/**/*_spec.rb']
28
- end
29
-
30
- task :rcov do
31
- ENV['COVERAGE'] = 'yes'
32
- Rake::Task["spec"].execute
33
- end
34
-
35
- task :default => :spec
36
-
37
- require 'rdoc/task'
38
- RDoc::Task.new do |rdoc|
39
- version = File.exist?('VERSION') ? File.read('VERSION') : ""
40
-
41
- rdoc.rdoc_dir = 'rdoc'
42
- rdoc.title = "mongoid_nested_set #{version}"
43
- rdoc.rdoc_files.include('README*')
44
- rdoc.rdoc_files.include('lib/**/*.rb')
45
- end
1
+ require 'bundler/gem_tasks'
@@ -105,32 +105,53 @@ module Mongoid::Acts::NestedSet
105
105
  else raise Mongoid::Errors::MongoidError, "Position should be :child, :left, :right or :root ('#{position}' received)."
106
106
  end
107
107
 
108
- if bound > self[right_field_name]
109
- bound = bound - 1
110
- other_bound = self[right_field_name] + 1
111
- else
112
- other_bound = self[left_field_name] - 1
113
- end
114
-
115
- # there would be no change
116
- return self if bound == self[right_field_name] || bound == self[left_field_name]
117
-
118
- # we have defined the boundaries of two non-overlapping intervals,
119
- # so sorting puts both the intervals and their boundaries in order
120
- a, b, c, d = [self[left_field_name], self[right_field_name], bound, other_bound].sort
121
-
122
108
  old_parent = self[parent_field_name]
123
109
  new_parent = case position
124
110
  when :child; target.id
125
111
  when :root; nil
126
112
  else target[parent_field_name]
127
113
  end
114
+
115
+ left, right = [self[left_field_name], self[right_field_name]]
116
+ width, distance = [right - left + 1, bound - left]
117
+ edge = bound > right ? bound - 1 : bound
118
+
119
+ # there would be no change
120
+ return self if left == edge || right == edge
128
121
 
129
- nested_set_scope.remove_order_by.or(left_field_name => a..b).or(right_field_name => a..b).set(:depth, -1)
130
- nested_set_scope.remove_order_by.between(left_field_name => c..d).inc(left_field_name, a - c)
131
- nested_set_scope.remove_order_by.between(right_field_name => c..d).inc(right_field_name, a - c)
132
- nested_set_scope.remove_order_by.where(:depth => -1).between(left_field_name => a..b).inc(left_field_name, d - b)
133
- nested_set_scope.remove_order_by.where(:depth => -1).between(right_field_name => a..b).inc(right_field_name, d - b)
122
+ # moving backwards
123
+ if distance < 0
124
+ distance -= width
125
+ left += width
126
+ end
127
+
128
+ scope_class.mongo_session.with(:safe => true) do |session|
129
+ collection = session[scope_class.collection_name]
130
+ scope = nested_set_scope.remove_order_by
131
+
132
+ # allocate space for new move
133
+ collection.find(
134
+ scope.gte(left_field_name => bound).selector
135
+ ).update_all("$inc" => { left_field_name => width })
136
+
137
+ collection.find(
138
+ scope.gte(right_field_name => bound).selector
139
+ ).update_all("$inc" => { right_field_name => width })
140
+
141
+ # move the nodes
142
+ collection.find(
143
+ scope.and(left_field_name => {"$gte" => left}, right_field_name => {"$lt" => left + width}).selector
144
+ ).update_all("$inc" => { left_field_name => distance, right_field_name => distance })
145
+
146
+ # remove the hole
147
+ collection.find(
148
+ scope.gt(left_field_name => right).selector
149
+ ).update_all("$inc" => { left_field_name => -width })
150
+
151
+ collection.find(
152
+ scope.gt(right_field_name => right).selector
153
+ ).update_all("$inc" => { right_field_name => -width })
154
+ end
134
155
 
135
156
  self.set(parent_field_name, new_parent)
136
157
  self.reload_nested_set
@@ -0,0 +1,3 @@
1
+ module MongoidNestedSet
2
+ VERSION = "0.2.1"
3
+ end
@@ -1,88 +1,31 @@
1
- # Generated by jeweler
2
- # DO NOT EDIT THIS FILE DIRECTLY
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
1
  # -*- encoding: utf-8 -*-
2
+ $:.push File.expand_path("../lib", __FILE__)
3
+ require "mongoid_nested_set/version"
5
4
 
6
5
  Gem::Specification.new do |s|
7
- s.name = "mongoid_nested_set"
8
- s.version = "0.2.0"
6
+ s.name = "mongoid_nested_set"
7
+ s.version = MongoidNestedSet::VERSION
8
+ s.authors = ["Brandon Turner"]
9
+ s.email = ["bt@brandonturner.net"]
10
+ s.homepage = "http://github.com/thinkwell/mongoid_nested_set"
11
+ s.summary = %q{Nested set based tree implementation for Mongoid}
12
+ s.description = %q{Fully featured tree implementation for Mongoid using the nested set model}
13
+ s.licenses = ["MIT"]
9
14
 
10
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
- s.authors = ["Brandon Turner"]
12
- s.date = "2012-07-15"
13
- s.description = "Fully featured tree implementation for Mongoid using the nested set model"
14
- s.email = "bturner@bltweb.net"
15
- s.extra_rdoc_files = [
16
- "LICENSE.txt",
17
- "README.markdown"
18
- ]
19
- s.files = [
20
- ".document",
21
- ".rspec",
22
- "Gemfile",
23
- "Gemfile.lock",
24
- "LICENSE.txt",
25
- "README.markdown",
26
- "Rakefile",
27
- "VERSION",
28
- "lib/mongoid_nested_set.rb",
29
- "lib/mongoid_nested_set/base.rb",
30
- "lib/mongoid_nested_set/document.rb",
31
- "lib/mongoid_nested_set/fields.rb",
32
- "lib/mongoid_nested_set/outline_number.rb",
33
- "lib/mongoid_nested_set/rebuild.rb",
34
- "lib/mongoid_nested_set/relations.rb",
35
- "lib/mongoid_nested_set/remove_order_by.rb",
36
- "lib/mongoid_nested_set/update.rb",
37
- "lib/mongoid_nested_set/validation.rb",
38
- "mongoid_nested_set.gemspec",
39
- "spec/matchers/nestedset_pos.rb",
40
- "spec/models/circle_node.rb",
41
- "spec/models/node.rb",
42
- "spec/models/node_without_nested_set.rb",
43
- "spec/models/numbering_node.rb",
44
- "spec/models/renamed_fields.rb",
45
- "spec/models/shape_node.rb",
46
- "spec/models/square_node.rb",
47
- "spec/models/test_document.rb",
48
- "spec/models/unscoped_node.rb",
49
- "spec/mongoid_nested_set_spec.rb",
50
- "spec/spec_helper.rb"
51
- ]
52
- s.homepage = "http://github.com/thinkwell/mongoid_nested_set"
53
- s.licenses = ["MIT"]
15
+ s.rubyforge_project = "mongoid_nested_set"
16
+
17
+ s.files = `git ls-files`.split("\n")
18
+ s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
19
+ s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
54
20
  s.require_paths = ["lib"]
55
- s.rubygems_version = "1.8.11"
56
- s.summary = "Nested set based tree implementation for Mongoid"
57
21
 
58
- if s.respond_to? :specification_version then
59
- s.specification_version = 3
22
+ # specifiy any dependencies here; for example:
23
+ # s.add_development_dependency "rspec"
24
+ s.add_runtime_dependency(%q<mongoid>, [">= 3.0.0"])
60
25
 
61
- if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
62
- s.add_runtime_dependency(%q<mongoid>, [">= 3.0.0"])
63
- s.add_development_dependency(%q<bundler>, ["~> 1.0"])
64
- s.add_development_dependency(%q<jeweler>, ["~> 1.5"])
65
- s.add_development_dependency(%q<simplecov>, [">= 0"])
66
- s.add_development_dependency(%q<simplecov-rcov>, [">= 0"])
67
- s.add_development_dependency(%q<rspec-core>, ["~> 2.0"])
68
- s.add_development_dependency(%q<rdoc>, [">= 0"])
69
- else
70
- s.add_dependency(%q<mongoid>, [">= 3.0.0"])
71
- s.add_dependency(%q<bundler>, ["~> 1.0"])
72
- s.add_dependency(%q<jeweler>, ["~> 1.5"])
73
- s.add_dependency(%q<simplecov>, [">= 0"])
74
- s.add_dependency(%q<simplecov-rcov>, [">= 0"])
75
- s.add_dependency(%q<rspec-core>, ["~> 2.0"])
76
- s.add_dependency(%q<rdoc>, [">= 0"])
77
- end
78
- else
79
- s.add_dependency(%q<mongoid>, [">= 3.0.0"])
80
- s.add_dependency(%q<bundler>, ["~> 1.0"])
81
- s.add_dependency(%q<jeweler>, ["~> 1.5"])
82
- s.add_dependency(%q<simplecov>, [">= 0"])
83
- s.add_dependency(%q<simplecov-rcov>, [">= 0"])
84
- s.add_dependency(%q<rspec-core>, ["~> 2.0"])
85
- s.add_dependency(%q<rdoc>, [">= 0"])
86
- end
26
+ s.add_development_dependency(%q<rspec>, [">= 2.7.0"])
27
+ s.add_development_dependency(%q<bundler>, [">= 1.0.21"])
28
+ s.add_development_dependency(%q<simplecov>)
29
+ s.add_development_dependency(%q<simplecov-rcov>)
87
30
  end
88
31
 
@@ -273,6 +273,7 @@ describe "A Mongoid::Document" do
273
273
  child.parent_id.should == root.id
274
274
  child.depth.should == 1
275
275
  root.reload.should have_nestedset_pos(1, 4)
276
+ root.depth.should == 0
276
277
  end
277
278
 
278
279
  it "can create a child node via children<<" do
@@ -283,6 +284,23 @@ describe "A Mongoid::Document" do
283
284
  child.should have_nestedset_pos(2, 3)
284
285
  child.depth.should == 1
285
286
  root.reload.should have_nestedset_pos(1, 4)
287
+ root.depth.should == 0
288
+ end
289
+
290
+ it "can create 2 level child nodes via children<<" do
291
+ root = Node.create(:name => 'Root Category', :root_id => 10)
292
+ child = Node.create(:name => 'Child Category', :root_id => 10)
293
+ grandchild = Node.create(:name => 'Grandchild Category', :root_id => 10)
294
+ root.children << child
295
+ child.children << grandchild
296
+ grandchild.parent_id.should == child.id
297
+ grandchild.reload.should have_nestedset_pos(3, 4)
298
+ grandchild.depth.should == 2
299
+ child.parent_id.should == root.id
300
+ child.reload.should have_nestedset_pos(2, 5)
301
+ child.depth.should == 1
302
+ root.reload.should have_nestedset_pos(1, 6)
303
+ root.depth.should == 0
286
304
  end
287
305
 
288
306
  it "can create a child node with parent pre-assigned" do
@@ -292,6 +310,7 @@ describe "A Mongoid::Document" do
292
310
  child.parent_id.should == root.id
293
311
  child.depth.should == 1
294
312
  root.reload.should have_nestedset_pos(1, 4)
313
+ root.depth.should == 0
295
314
  end
296
315
 
297
316
  it "can create a child node with parent id pre-assigned" do
@@ -301,6 +320,7 @@ describe "A Mongoid::Document" do
301
320
  child.parent_id.should == root.id
302
321
  child.depth.should == 1
303
322
  root.reload.should have_nestedset_pos(1, 4)
323
+ root.depth.should == 0
304
324
  end
305
325
 
306
326
  it "can change a new node's parent before saving" do
@@ -312,6 +332,7 @@ describe "A Mongoid::Document" do
312
332
  child.parent_id.should == root.id
313
333
  child.depth.should == 1
314
334
  root.reload.should have_nestedset_pos(1, 4)
335
+ root.depth.should == 0
315
336
  end
316
337
 
317
338
  it "can change a new node's parent id before saving" do
@@ -323,6 +344,7 @@ describe "A Mongoid::Document" do
323
344
  child.parent_id.should == root.id
324
345
  child.depth.should == 1
325
346
  root.reload.should have_nestedset_pos(1, 4)
347
+ root.depth.should == 0
326
348
  end
327
349
 
328
350
  end
@@ -476,6 +498,8 @@ describe "A Mongoid::Document" do
476
498
  @nodes[:slacks].reload.should have_nestedset_pos( 6, 7)
477
499
  @nodes[:suits] .reload.should have_nestedset_pos( 3, 8)
478
500
  @nodes[:jackets].depth.should == 3
501
+ @nodes[:slacks].depth.should == 3
502
+ @nodes[:suits].depth.should == 2
479
503
  end
480
504
 
481
505
  it "can move right" do
@@ -484,6 +508,8 @@ describe "A Mongoid::Document" do
484
508
  @nodes[:jackets].reload.should have_nestedset_pos( 4, 5)
485
509
  @nodes[:suits] .reload.should have_nestedset_pos( 3, 8)
486
510
  @nodes[:slacks].depth.should == 3
511
+ @nodes[:jackets].depth.should == 3
512
+ @nodes[:suits].depth.should == 2
487
513
  end
488
514
 
489
515
  it "can move left of another node" do
@@ -29,7 +29,7 @@ Dir["#{File.dirname(__FILE__)}/models/*.rb"].each {|file| require file }
29
29
  Dir["#{File.dirname(__FILE__)}/matchers/*.rb"].each {|file| require file }
30
30
 
31
31
  Mongoid.configure do |config|
32
- config.connect_to("dmongoid_nested_set_test")
32
+ config.connect_to("mongoid_nested_set_test")
33
33
  config.allow_dynamic_fields = false
34
34
  end
35
35
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mongoid_nested_set
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
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-07-15 00:00:00.000000000 Z
12
+ date: 2012-10-15 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: mongoid
@@ -28,45 +28,29 @@ dependencies:
28
28
  - !ruby/object:Gem::Version
29
29
  version: 3.0.0
30
30
  - !ruby/object:Gem::Dependency
31
- name: bundler
32
- requirement: !ruby/object:Gem::Requirement
33
- none: false
34
- requirements:
35
- - - ~>
36
- - !ruby/object:Gem::Version
37
- version: '1.0'
38
- type: :development
39
- prerelease: false
40
- version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
- requirements:
43
- - - ~>
44
- - !ruby/object:Gem::Version
45
- version: '1.0'
46
- - !ruby/object:Gem::Dependency
47
- name: jeweler
31
+ name: rspec
48
32
  requirement: !ruby/object:Gem::Requirement
49
33
  none: false
50
34
  requirements:
51
- - - ~>
35
+ - - ! '>='
52
36
  - !ruby/object:Gem::Version
53
- version: '1.5'
37
+ version: 2.7.0
54
38
  type: :development
55
39
  prerelease: false
56
40
  version_requirements: !ruby/object:Gem::Requirement
57
41
  none: false
58
42
  requirements:
59
- - - ~>
43
+ - - ! '>='
60
44
  - !ruby/object:Gem::Version
61
- version: '1.5'
45
+ version: 2.7.0
62
46
  - !ruby/object:Gem::Dependency
63
- name: simplecov
47
+ name: bundler
64
48
  requirement: !ruby/object:Gem::Requirement
65
49
  none: false
66
50
  requirements:
67
51
  - - ! '>='
68
52
  - !ruby/object:Gem::Version
69
- version: '0'
53
+ version: 1.0.21
70
54
  type: :development
71
55
  prerelease: false
72
56
  version_requirements: !ruby/object:Gem::Requirement
@@ -74,9 +58,9 @@ dependencies:
74
58
  requirements:
75
59
  - - ! '>='
76
60
  - !ruby/object:Gem::Version
77
- version: '0'
61
+ version: 1.0.21
78
62
  - !ruby/object:Gem::Dependency
79
- name: simplecov-rcov
63
+ name: simplecov
80
64
  requirement: !ruby/object:Gem::Requirement
81
65
  none: false
82
66
  requirements:
@@ -92,23 +76,7 @@ dependencies:
92
76
  - !ruby/object:Gem::Version
93
77
  version: '0'
94
78
  - !ruby/object:Gem::Dependency
95
- name: rspec-core
96
- requirement: !ruby/object:Gem::Requirement
97
- none: false
98
- requirements:
99
- - - ~>
100
- - !ruby/object:Gem::Version
101
- version: '2.0'
102
- type: :development
103
- prerelease: false
104
- version_requirements: !ruby/object:Gem::Requirement
105
- none: false
106
- requirements:
107
- - - ~>
108
- - !ruby/object:Gem::Version
109
- version: '2.0'
110
- - !ruby/object:Gem::Dependency
111
- name: rdoc
79
+ name: simplecov-rcov
112
80
  requirement: !ruby/object:Gem::Requirement
113
81
  none: false
114
82
  requirements:
@@ -124,21 +92,19 @@ dependencies:
124
92
  - !ruby/object:Gem::Version
125
93
  version: '0'
126
94
  description: Fully featured tree implementation for Mongoid using the nested set model
127
- email: bturner@bltweb.net
95
+ email:
96
+ - bt@brandonturner.net
128
97
  executables: []
129
98
  extensions: []
130
- extra_rdoc_files:
131
- - LICENSE.txt
132
- - README.markdown
99
+ extra_rdoc_files: []
133
100
  files:
134
101
  - .document
102
+ - .gitignore
135
103
  - .rspec
136
104
  - Gemfile
137
- - Gemfile.lock
138
105
  - LICENSE.txt
139
106
  - README.markdown
140
107
  - Rakefile
141
- - VERSION
142
108
  - lib/mongoid_nested_set.rb
143
109
  - lib/mongoid_nested_set/base.rb
144
110
  - lib/mongoid_nested_set/document.rb
@@ -149,6 +115,7 @@ files:
149
115
  - lib/mongoid_nested_set/remove_order_by.rb
150
116
  - lib/mongoid_nested_set/update.rb
151
117
  - lib/mongoid_nested_set/validation.rb
118
+ - lib/mongoid_nested_set/version.rb
152
119
  - mongoid_nested_set.gemspec
153
120
  - spec/matchers/nestedset_pos.rb
154
121
  - spec/models/circle_node.rb
@@ -175,9 +142,6 @@ required_ruby_version: !ruby/object:Gem::Requirement
175
142
  - - ! '>='
176
143
  - !ruby/object:Gem::Version
177
144
  version: '0'
178
- segments:
179
- - 0
180
- hash: -1942426900078281337
181
145
  required_rubygems_version: !ruby/object:Gem::Requirement
182
146
  none: false
183
147
  requirements:
@@ -185,9 +149,21 @@ required_rubygems_version: !ruby/object:Gem::Requirement
185
149
  - !ruby/object:Gem::Version
186
150
  version: '0'
187
151
  requirements: []
188
- rubyforge_project:
152
+ rubyforge_project: mongoid_nested_set
189
153
  rubygems_version: 1.8.24
190
154
  signing_key:
191
155
  specification_version: 3
192
156
  summary: Nested set based tree implementation for Mongoid
193
- test_files: []
157
+ test_files:
158
+ - spec/matchers/nestedset_pos.rb
159
+ - spec/models/circle_node.rb
160
+ - spec/models/node.rb
161
+ - spec/models/node_without_nested_set.rb
162
+ - spec/models/numbering_node.rb
163
+ - spec/models/renamed_fields.rb
164
+ - spec/models/shape_node.rb
165
+ - spec/models/square_node.rb
166
+ - spec/models/test_document.rb
167
+ - spec/models/unscoped_node.rb
168
+ - spec/mongoid_nested_set_spec.rb
169
+ - spec/spec_helper.rb
@@ -1,68 +0,0 @@
1
- GEM
2
- remote: http://rubygems.org/
3
- specs:
4
- activemodel (3.2.6)
5
- activesupport (= 3.2.6)
6
- builder (~> 3.0.0)
7
- activesupport (3.2.6)
8
- i18n (~> 0.6)
9
- multi_json (~> 1.0)
10
- builder (3.0.0)
11
- diff-lcs (1.1.3)
12
- git (1.2.5)
13
- i18n (0.6.0)
14
- jeweler (1.8.4)
15
- bundler (~> 1.0)
16
- git (>= 1.2.5)
17
- rake
18
- rdoc
19
- json (1.7.3)
20
- mongoid (3.0.1)
21
- activemodel (~> 3.1)
22
- moped (~> 1.1.1)
23
- origin (~> 1.0.3)
24
- tzinfo (~> 0.3.22)
25
- moped (1.1.1)
26
- multi_json (1.3.6)
27
- origin (1.0.4)
28
- rake (0.9.2.2)
29
- rdoc (3.12)
30
- json (~> 1.4)
31
- remarkable (4.0.0.alpha4)
32
- rspec (>= 2.0.0.alpha11)
33
- remarkable_activemodel (4.0.0.alpha4)
34
- remarkable (~> 4.0.0.alpha4)
35
- rspec (>= 2.0.0.alpha11)
36
- remarkable_mongoid (0.6.0)
37
- remarkable_activemodel (~> 4.0.0.alpha4)
38
- rr (1.0.4)
39
- rspec (2.11.0)
40
- rspec-core (~> 2.11.0)
41
- rspec-expectations (~> 2.11.0)
42
- rspec-mocks (~> 2.11.0)
43
- rspec-core (2.11.0)
44
- rspec-expectations (2.11.1)
45
- diff-lcs (~> 1.1.3)
46
- rspec-mocks (2.11.1)
47
- simplecov (0.6.4)
48
- multi_json (~> 1.0)
49
- simplecov-html (~> 0.5.3)
50
- simplecov-html (0.5.3)
51
- simplecov-rcov (0.2.3)
52
- simplecov (>= 0.4.1)
53
- tzinfo (0.3.33)
54
-
55
- PLATFORMS
56
- ruby
57
-
58
- DEPENDENCIES
59
- bundler (~> 1.0)
60
- jeweler (~> 1.5)
61
- mongoid (>= 3.0.0)
62
- rdoc
63
- remarkable_mongoid
64
- rr
65
- rspec-core (~> 2.0)
66
- rspec-expectations (~> 2.0)
67
- simplecov
68
- simplecov-rcov
data/VERSION DELETED
@@ -1 +0,0 @@
1
- 0.2.0