mongoid_find_by 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/.rbenv-version +1 -0
- data/.travis.yml +7 -1
- data/Gemfile +4 -4
- data/Gemfile.lock +13 -5
- data/LICENSE.md +1 -1
- data/README.md +2 -2
- data/Rakefile +11 -2
- data/lib/mongoid/find_by/version.rb +1 -1
- data/mongoid_find_by.gemspec +19 -18
- data/spec/spec_helper.rb +26 -0
- metadata +40 -20
- data/.rvmrc +0 -1
data/.rbenv-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
1.9.3-p194
|
data/.travis.yml
CHANGED
data/Gemfile
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
source 'http://rubygems.org'
|
2
2
|
|
3
|
-
gem 'mongoid', '
|
3
|
+
gem 'mongoid', '>= 2.4.7'
|
4
4
|
|
5
5
|
group :development do
|
6
|
-
gem '
|
7
|
-
gem 'yard', '
|
8
|
-
gem 'jeweler', '
|
6
|
+
gem 'rspec', '>= 2.13.0'
|
7
|
+
gem 'yard', '>= 0.7.5'
|
8
|
+
gem 'jeweler', '>= 1.8.3'
|
9
9
|
end
|
10
10
|
|
data/Gemfile.lock
CHANGED
@@ -9,6 +9,7 @@ GEM
|
|
9
9
|
multi_json (~> 1.0)
|
10
10
|
bson (1.6.1)
|
11
11
|
builder (3.0.0)
|
12
|
+
diff-lcs (1.2.1)
|
12
13
|
git (1.2.5)
|
13
14
|
i18n (0.6.0)
|
14
15
|
jeweler (1.8.3)
|
@@ -27,7 +28,14 @@ GEM
|
|
27
28
|
rake (0.9.2.2)
|
28
29
|
rdoc (3.12)
|
29
30
|
json (~> 1.4)
|
30
|
-
|
31
|
+
rspec (2.13.0)
|
32
|
+
rspec-core (~> 2.13.0)
|
33
|
+
rspec-expectations (~> 2.13.0)
|
34
|
+
rspec-mocks (~> 2.13.0)
|
35
|
+
rspec-core (2.13.1)
|
36
|
+
rspec-expectations (2.13.0)
|
37
|
+
diff-lcs (>= 1.1.3, < 2.0)
|
38
|
+
rspec-mocks (2.13.0)
|
31
39
|
tzinfo (0.3.32)
|
32
40
|
yard (0.7.5)
|
33
41
|
|
@@ -35,7 +43,7 @@ PLATFORMS
|
|
35
43
|
ruby
|
36
44
|
|
37
45
|
DEPENDENCIES
|
38
|
-
jeweler (
|
39
|
-
mongoid (
|
40
|
-
|
41
|
-
yard (
|
46
|
+
jeweler (>= 1.8.3)
|
47
|
+
mongoid (>= 2.4.7)
|
48
|
+
rspec (>= 2.13.0)
|
49
|
+
yard (>= 0.7.5)
|
data/LICENSE.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
Copyright (c) 2012
|
1
|
+
Copyright (c) 2012 Thomas Boerger Programmierung <http://www.tbpro.de>
|
2
2
|
|
3
3
|
Permission is hereby granted, free of charge, to any person obtaining
|
4
4
|
a copy of this software and associated documentation files (the
|
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# MongoidFindBy [![Build Status](https://secure.travis-ci.org/
|
1
|
+
# MongoidFindBy [![Build Status](https://secure.travis-ci.org/tbpro/mongoid_find_by.png)](https://travis-ci.org/tbpro/mongoid_find_by) [![Code Climate](https://codeclimate.com/github/tbpro/mongoid_find_by.png)](https://codeclimate.com/github/tbpro/mongoid_find_by)
|
2
2
|
|
3
3
|
MongoidFindBy adds simple functions to mongoid documents to find documents
|
4
4
|
by dynamic fields.
|
@@ -36,4 +36,4 @@ by dynamic fields.
|
|
36
36
|
|
37
37
|
## Credits
|
38
38
|
|
39
|
-
Copyright (c) 2012
|
39
|
+
Copyright (c) 2012-2013 Thomas Boerger Programmierung <http://www.tbpro.de>
|
data/Rakefile
CHANGED
@@ -6,6 +6,7 @@ begin
|
|
6
6
|
rescue Bundler::BundlerError => e
|
7
7
|
$stderr.puts e.message
|
8
8
|
$stderr.puts 'Run `bundle install` to install missing gems'
|
9
|
+
|
9
10
|
exit e.status_code
|
10
11
|
end
|
11
12
|
|
@@ -23,10 +24,18 @@ Jeweler::Tasks.new do |gem|
|
|
23
24
|
gem.license = 'MIT'
|
24
25
|
gem.summary = %Q{Finder function for dynamic columns within mongoid}
|
25
26
|
gem.email = 'thomas.boerger@langwhich.com'
|
26
|
-
gem.authors = ['Thomas Boerger'
|
27
|
+
gem.authors = ['Thomas Boerger']
|
27
28
|
end
|
28
29
|
|
29
30
|
Jeweler::RubygemsDotOrgTasks.new
|
30
31
|
YARD::Rake::YardocTask.new
|
31
32
|
|
32
|
-
|
33
|
+
require 'rspec/core'
|
34
|
+
require 'rspec/core/rake_task'
|
35
|
+
|
36
|
+
RSpec::Core::RakeTask.new(:spec) do |spec|
|
37
|
+
spec.pattern = FileList['spec/**/*_spec.rb']
|
38
|
+
spec.rspec_opts = '--color --format progress'
|
39
|
+
end
|
40
|
+
|
41
|
+
task default: :spec
|
data/mongoid_find_by.gemspec
CHANGED
@@ -5,18 +5,18 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "mongoid_find_by"
|
8
|
-
s.version = "0.1.
|
8
|
+
s.version = "0.1.2"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
-
s.authors = ["Thomas Boerger"
|
12
|
-
s.date = "
|
11
|
+
s.authors = ["Thomas Boerger"]
|
12
|
+
s.date = "2013-04-22"
|
13
13
|
s.email = "thomas.boerger@langwhich.com"
|
14
14
|
s.extra_rdoc_files = [
|
15
15
|
"LICENSE.md",
|
16
16
|
"README.md"
|
17
17
|
]
|
18
18
|
s.files = [
|
19
|
-
".
|
19
|
+
".rbenv-version",
|
20
20
|
".travis.yml",
|
21
21
|
"Gemfile",
|
22
22
|
"Gemfile.lock",
|
@@ -27,33 +27,34 @@ Gem::Specification.new do |s|
|
|
27
27
|
"lib/mongoid/find_by.rb",
|
28
28
|
"lib/mongoid/find_by/version.rb",
|
29
29
|
"lib/mongoid_find_by.rb",
|
30
|
-
"mongoid_find_by.gemspec"
|
30
|
+
"mongoid_find_by.gemspec",
|
31
|
+
"spec/spec_helper.rb"
|
31
32
|
]
|
32
33
|
s.homepage = "https://github.com/Langwhich/mongoid_find_by"
|
33
34
|
s.licenses = ["MIT"]
|
34
35
|
s.require_paths = ["lib"]
|
35
|
-
s.rubygems_version = "1.8.
|
36
|
+
s.rubygems_version = "1.8.24"
|
36
37
|
s.summary = "Finder function for dynamic columns within mongoid"
|
37
38
|
|
38
39
|
if s.respond_to? :specification_version then
|
39
40
|
s.specification_version = 3
|
40
41
|
|
41
42
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
42
|
-
s.add_runtime_dependency(%q<mongoid>, ["
|
43
|
-
s.add_development_dependency(%q<
|
44
|
-
s.add_development_dependency(%q<yard>, ["
|
45
|
-
s.add_development_dependency(%q<jeweler>, ["
|
43
|
+
s.add_runtime_dependency(%q<mongoid>, [">= 2.4.7"])
|
44
|
+
s.add_development_dependency(%q<rspec>, [">= 2.13.0"])
|
45
|
+
s.add_development_dependency(%q<yard>, [">= 0.7.5"])
|
46
|
+
s.add_development_dependency(%q<jeweler>, [">= 1.8.3"])
|
46
47
|
else
|
47
|
-
s.add_dependency(%q<mongoid>, ["
|
48
|
-
s.add_dependency(%q<
|
49
|
-
s.add_dependency(%q<yard>, ["
|
50
|
-
s.add_dependency(%q<jeweler>, ["
|
48
|
+
s.add_dependency(%q<mongoid>, [">= 2.4.7"])
|
49
|
+
s.add_dependency(%q<rspec>, [">= 2.13.0"])
|
50
|
+
s.add_dependency(%q<yard>, [">= 0.7.5"])
|
51
|
+
s.add_dependency(%q<jeweler>, [">= 1.8.3"])
|
51
52
|
end
|
52
53
|
else
|
53
|
-
s.add_dependency(%q<mongoid>, ["
|
54
|
-
s.add_dependency(%q<
|
55
|
-
s.add_dependency(%q<yard>, ["
|
56
|
-
s.add_dependency(%q<jeweler>, ["
|
54
|
+
s.add_dependency(%q<mongoid>, [">= 2.4.7"])
|
55
|
+
s.add_dependency(%q<rspec>, [">= 2.13.0"])
|
56
|
+
s.add_dependency(%q<yard>, [">= 0.7.5"])
|
57
|
+
s.add_dependency(%q<jeweler>, [">= 1.8.3"])
|
57
58
|
end
|
58
59
|
end
|
59
60
|
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,26 @@
|
|
1
|
+
# -*- encoding : utf-8 -*-
|
2
|
+
require 'rubygems'
|
3
|
+
|
4
|
+
$:.push File.expand_path('../../lib', __FILE__)
|
5
|
+
|
6
|
+
require 'active_support/all'
|
7
|
+
require 'mongoid'
|
8
|
+
require 'mongoid_find_by'
|
9
|
+
|
10
|
+
Mongoid.configure do |config|
|
11
|
+
config.connect_to(
|
12
|
+
'mongoid_find_by_test'
|
13
|
+
)
|
14
|
+
end
|
15
|
+
|
16
|
+
Dir[File.expand_path('../support/**/*.rb', __FILE__)].each do |f|
|
17
|
+
require f
|
18
|
+
end
|
19
|
+
|
20
|
+
RSpec.configure do |config|
|
21
|
+
config.mock_with :rspec
|
22
|
+
|
23
|
+
config.after :suite do
|
24
|
+
Mongoid.purge!
|
25
|
+
end
|
26
|
+
end
|
metadata
CHANGED
@@ -1,61 +1,80 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mongoid_find_by
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Thomas Boerger
|
9
|
-
- Tim Rudat
|
10
9
|
autorequire:
|
11
10
|
bindir: bin
|
12
11
|
cert_chain: []
|
13
|
-
date:
|
12
|
+
date: 2013-04-22 00:00:00.000000000 Z
|
14
13
|
dependencies:
|
15
14
|
- !ruby/object:Gem::Dependency
|
16
15
|
name: mongoid
|
17
|
-
requirement:
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
18
17
|
none: false
|
19
18
|
requirements:
|
20
|
-
- -
|
19
|
+
- - ! '>='
|
21
20
|
- !ruby/object:Gem::Version
|
22
21
|
version: 2.4.7
|
23
22
|
type: :runtime
|
24
23
|
prerelease: false
|
25
|
-
version_requirements:
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ! '>='
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: 2.4.7
|
26
30
|
- !ruby/object:Gem::Dependency
|
27
|
-
name:
|
28
|
-
requirement:
|
31
|
+
name: rspec
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
29
33
|
none: false
|
30
34
|
requirements:
|
31
|
-
- -
|
35
|
+
- - ! '>='
|
32
36
|
- !ruby/object:Gem::Version
|
33
|
-
version: 2.
|
37
|
+
version: 2.13.0
|
34
38
|
type: :development
|
35
39
|
prerelease: false
|
36
|
-
version_requirements:
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ! '>='
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: 2.13.0
|
37
46
|
- !ruby/object:Gem::Dependency
|
38
47
|
name: yard
|
39
|
-
requirement:
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
40
49
|
none: false
|
41
50
|
requirements:
|
42
|
-
- -
|
51
|
+
- - ! '>='
|
43
52
|
- !ruby/object:Gem::Version
|
44
53
|
version: 0.7.5
|
45
54
|
type: :development
|
46
55
|
prerelease: false
|
47
|
-
version_requirements:
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
58
|
+
requirements:
|
59
|
+
- - ! '>='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 0.7.5
|
48
62
|
- !ruby/object:Gem::Dependency
|
49
63
|
name: jeweler
|
50
|
-
requirement:
|
64
|
+
requirement: !ruby/object:Gem::Requirement
|
51
65
|
none: false
|
52
66
|
requirements:
|
53
|
-
- -
|
67
|
+
- - ! '>='
|
54
68
|
- !ruby/object:Gem::Version
|
55
69
|
version: 1.8.3
|
56
70
|
type: :development
|
57
71
|
prerelease: false
|
58
|
-
version_requirements:
|
72
|
+
version_requirements: !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
74
|
+
requirements:
|
75
|
+
- - ! '>='
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: 1.8.3
|
59
78
|
description:
|
60
79
|
email: thomas.boerger@langwhich.com
|
61
80
|
executables: []
|
@@ -64,7 +83,7 @@ extra_rdoc_files:
|
|
64
83
|
- LICENSE.md
|
65
84
|
- README.md
|
66
85
|
files:
|
67
|
-
- .
|
86
|
+
- .rbenv-version
|
68
87
|
- .travis.yml
|
69
88
|
- Gemfile
|
70
89
|
- Gemfile.lock
|
@@ -76,6 +95,7 @@ files:
|
|
76
95
|
- lib/mongoid/find_by/version.rb
|
77
96
|
- lib/mongoid_find_by.rb
|
78
97
|
- mongoid_find_by.gemspec
|
98
|
+
- spec/spec_helper.rb
|
79
99
|
homepage: https://github.com/Langwhich/mongoid_find_by
|
80
100
|
licenses:
|
81
101
|
- MIT
|
@@ -91,7 +111,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
91
111
|
version: '0'
|
92
112
|
segments:
|
93
113
|
- 0
|
94
|
-
hash: -
|
114
|
+
hash: -2692675275544393314
|
95
115
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
96
116
|
none: false
|
97
117
|
requirements:
|
@@ -100,7 +120,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
100
120
|
version: '0'
|
101
121
|
requirements: []
|
102
122
|
rubyforge_project:
|
103
|
-
rubygems_version: 1.8.
|
123
|
+
rubygems_version: 1.8.24
|
104
124
|
signing_key:
|
105
125
|
specification_version: 3
|
106
126
|
summary: Finder function for dynamic columns within mongoid
|
data/.rvmrc
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
rvm use ruby-1.9.3-head@mongoid_find_by --create
|