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 ADDED
@@ -0,0 +1 @@
1
+ 1.9.3-p194
data/.travis.yml CHANGED
@@ -1,2 +1,8 @@
1
- rvm:
1
+ language: ruby
2
+ rvm:
3
+ - 2.0.0
2
4
  - 1.9.3
5
+ - jruby-19mode
6
+ - rbx-19mode
7
+
8
+ services: mongodb
data/Gemfile CHANGED
@@ -1,10 +1,10 @@
1
1
  source 'http://rubygems.org'
2
2
 
3
- gem 'mongoid', '~> 2.4.7'
3
+ gem 'mongoid', '>= 2.4.7'
4
4
 
5
5
  group :development do
6
- gem 'redcarpet', '~> 2.1.0'
7
- gem 'yard', '~> 0.7.5'
8
- gem 'jeweler', '~> 1.8.3'
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
- redcarpet (2.1.1)
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 (~> 1.8.3)
39
- mongoid (~> 2.4.7)
40
- redcarpet (~> 2.1.0)
41
- yard (~> 0.7.5)
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 Langwhich GmbH <http://www.langwhich.com>
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/Langwhich/mongoid_find_by.png)](https://secure.travis-ci.org/Langwhich/mongoid_find_by)
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 Langwhich GmbH <http://www.langwhich.com>
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', 'Tim Rudat']
27
+ gem.authors = ['Thomas Boerger']
27
28
  end
28
29
 
29
30
  Jeweler::RubygemsDotOrgTasks.new
30
31
  YARD::Rake::YardocTask.new
31
32
 
32
- task :default => :version
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
@@ -4,7 +4,7 @@ module Mongoid
4
4
  module Version
5
5
  MAJOR = 0
6
6
  MINOR = 1
7
- PATCH = 1
7
+ PATCH = 2
8
8
  BUILD = nil
9
9
 
10
10
  STRING = [MAJOR, MINOR, PATCH, BUILD].compact.join('.')
@@ -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.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", "Tim Rudat"]
12
- s.date = "2012-04-03"
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
- ".rvmrc",
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.10"
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>, ["~> 2.4.7"])
43
- s.add_development_dependency(%q<redcarpet>, ["~> 2.1.0"])
44
- s.add_development_dependency(%q<yard>, ["~> 0.7.5"])
45
- s.add_development_dependency(%q<jeweler>, ["~> 1.8.3"])
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>, ["~> 2.4.7"])
48
- s.add_dependency(%q<redcarpet>, ["~> 2.1.0"])
49
- s.add_dependency(%q<yard>, ["~> 0.7.5"])
50
- s.add_dependency(%q<jeweler>, ["~> 1.8.3"])
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>, ["~> 2.4.7"])
54
- s.add_dependency(%q<redcarpet>, ["~> 2.1.0"])
55
- s.add_dependency(%q<yard>, ["~> 0.7.5"])
56
- s.add_dependency(%q<jeweler>, ["~> 1.8.3"])
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
 
@@ -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.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: 2012-04-03 00:00:00.000000000 Z
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: &70333005652520 !ruby/object:Gem::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: *70333005652520
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: redcarpet
28
- requirement: &70333005668200 !ruby/object:Gem::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.1.0
37
+ version: 2.13.0
34
38
  type: :development
35
39
  prerelease: false
36
- version_requirements: *70333005668200
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: &70333005667580 !ruby/object:Gem::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: *70333005667580
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: &70333005667000 !ruby/object:Gem::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: *70333005667000
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
- - .rvmrc
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: -969285181685119902
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.10
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