mongoid-tags 1.1.0 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 20edc410641cf609150b1c719a786077ddb81f46
4
- data.tar.gz: 76e8f279f834314d93d2d910ff6ab9919fb2378a
3
+ metadata.gz: 1f1e45c0d3ca5125a0082025b5fde15b94fade03
4
+ data.tar.gz: 20a9950e4f571a802b09ecce4885ca704035e037
5
5
  SHA512:
6
- metadata.gz: 2565b3d743c735affb26b306d722582bd60bb33161bfc7d33d2029cdaa0cc4a7fed0dbe78fb5812ec4b2ae935b468afec99cb403081cc88be6b40230767d6ca0
7
- data.tar.gz: faca6df0ef2e88397f7fd9f21b7db43f2de93e5a942df91c389da24181bf9c3457e565bd041f9829448de974a1a884c39f730d1ad2138630f15d09789db51545
6
+ metadata.gz: b8b02c1e87f5d5afd86a975a9a4119e2750a8dda3d8b4041ed82f48f153eedae84bc5bab135775486f2402902bfd8fb98a53107c3529cfa156ace5ab3f9747bf
7
+ data.tar.gz: c85f16b3d72ffac5cfc813e430c537c66263dccafd5518c83299ba2fefaaee8b82d04c91af5e79d3464d848d2a676157c2e7613d46766b0457b0e52d98fba3e6
data/.rubocop.yml ADDED
@@ -0,0 +1,30 @@
1
+ AllCops:
2
+ TargetRubyVersion: 2.3
3
+
4
+ Documentation:
5
+ Enabled: false
6
+
7
+ Rails:
8
+ Enabled: true
9
+
10
+ Style/AlignParameters:
11
+ EnforcedStyle: with_first_parameter
12
+
13
+ Style/Alias:
14
+ EnforcedStyle: prefer_alias_method
15
+
16
+ Style/IndentArray:
17
+ EnforcedStyle: consistent
18
+
19
+ Style/IndentHash:
20
+ EnforcedStyle: consistent
21
+
22
+ Style/MultilineMethodCallIndentation:
23
+ EnforcedStyle: indented
24
+
25
+ Style/AccessModifierIndentation:
26
+ EnforcedStyle: outdent
27
+
28
+ Style/AlignHash:
29
+ EnforcedHashRocketStyle: table
30
+ EnforcedColonStyle: table
data/.travis.yml CHANGED
@@ -5,9 +5,22 @@ rvm:
5
5
  - 1.9.3
6
6
  - 2.0.0
7
7
  - 2.1.0
8
- - 2.2.0
8
+ - 2.2.2
9
9
 
10
10
  gemfile:
11
11
  - Gemfile
12
12
  - gemfiles/mongoid_4.Gemfile
13
13
  - gemfiles/mongoid_5.Gemfile
14
+ - gemfiles/mongoid_6.Gemfile
15
+
16
+ matrix:
17
+ exclude:
18
+ - rvm: 1.9.3
19
+ gemfile: gemfiles/mongoid_6.Gemfile
20
+ - rvm: 2.0.0
21
+ gemfile: gemfiles/mongoid_6.Gemfile
22
+ - rvm: 2.1.0
23
+ gemfile: gemfiles/mongoid_6.Gemfile
24
+
25
+ before_install:
26
+ - gem update bundler
data/Gemfile CHANGED
@@ -1,2 +1,3 @@
1
+ # frozen_string_literal: true
1
2
  source 'https://rubygems.org'
2
3
  gemspec
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # mongoid-tags [![Build Status](https://travis-ci.org/haihappen/mongoid-tags.svg?branch=master)](https://travis-ci.org/haihappen/mongoid-tags)
1
+ # mongoid-tags [![Build Status](https://travis-ci.org/ream88/mongoid-tags.svg?branch=master)](https://travis-ci.org/ream88/mongoid-tags)
2
2
 
3
3
  Mongoid::Tags adds a simple tagging system to your Mongoid documents,
4
4
  and allows you to query them using a boolean search syntax.
@@ -12,6 +12,7 @@ In your Gemfile:
12
12
  gem 'mongoid-tags'
13
13
  ```
14
14
 
15
+
15
16
  ## Usage
16
17
 
17
18
  ```ruby
@@ -39,7 +40,8 @@ Document.tagged('(+foo +bar)(+foo +baz)')
39
40
  Document.where(published: true).tagged('foo').desc(:created_at)
40
41
  ```
41
42
 
42
- Be sure to checkout test/integration_test.rb for more examples.
43
+ Be sure to checkout [test/integration_test.rb](test/integration_test.rb) for more examples.
44
+
43
45
 
44
46
  ## Contributing
45
47
 
@@ -49,10 +51,11 @@ Be sure to checkout test/integration_test.rb for more examples.
49
51
  4. Push to the branch (`git push origin my-new-feature`)
50
52
  5. Create new Pull Request
51
53
 
54
+
52
55
  ## Copyright
53
56
 
54
57
  (The MIT license)
55
58
 
56
- Copyright (c) 2012-2015 Mario Uher
59
+ Copyright (c) 2012-2016 Mario Uher
57
60
 
58
61
  See LICENSE.md.
data/Rakefile CHANGED
@@ -1,4 +1,5 @@
1
1
  #!/usr/bin/env rake
2
+ # frozen_string_literal: true
2
3
  begin
3
4
  require 'bundler/setup'
4
5
  Bundler.require
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  source 'https://rubygems.org'
2
3
  gemspec path: '../'
3
4
 
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  source 'https://rubygems.org'
2
3
  gemspec path: '../'
3
4
 
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+ source 'https://rubygems.org'
3
+ gemspec path: '../'
4
+
5
+ gem 'mongoid', github: 'mongodb/mongoid', ref: '7c2ff52a0c5292b8e6bf3a9a29bbb19abae3dd5f'
data/lib/mongoid/tags.rb CHANGED
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  require 'active_support'
2
3
  require 'mongoid'
3
4
  require 'treetop'
@@ -8,7 +9,7 @@ module Mongoid
8
9
 
9
10
  # @!attribute tags
10
11
  # @return [Array] all tags of the current document
11
- included do |base|
12
+ included do
12
13
  field :tags, type: Array, default: []
13
14
  index tags: 1
14
15
  end
@@ -48,6 +49,7 @@ module Mongoid
48
49
  end
49
50
 
50
51
  private
52
+
51
53
  def parser
52
54
  @parser ||= Treetop.load(File.expand_path('../tags.tt', __FILE__)).new
53
55
  end
@@ -1,5 +1,6 @@
1
+ # frozen_string_literal: true
1
2
  module Mongoid
2
3
  module Tags
3
- VERSION = '1.1.0'
4
+ VERSION = '1.2.0'
4
5
  end
5
6
  end
data/mongoid-tags.gemspec CHANGED
@@ -1,27 +1,29 @@
1
1
  # coding: utf-8
2
+ # frozen_string_literal: true
2
3
  lib = File.expand_path('../lib', __FILE__)
3
4
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
5
  require 'mongoid/tags/version'
5
6
 
6
7
  Gem::Specification.new do |spec|
7
- spec.name = "mongoid-tags"
8
+ spec.name = 'mongoid-tags'
8
9
  spec.version = Mongoid::Tags::VERSION
9
- spec.authors = "Mario Uher"
10
- spec.email = "uher.mario@gmail.com"
11
- spec.homepage = "https://github.com/haihappen/mongoid-tags"
12
- spec.summary = "Simple tagging system with boolean search."
13
- spec.description = "Mongoid::Tags adds a simple tagging system to your Mongoid documents, and allows you to query them using a boolean search syntax."
14
- spec.license = "MIT"
10
+ spec.authors = 'Mario Uher'
11
+ spec.email = 'uher.mario@gmail.com'
12
+ spec.homepage = 'https://github.com/ream88/mongoid-tags'
13
+ spec.summary = 'Simple tagging system with boolean search.'
14
+ spec.description = 'Mongoid::Tags adds a simple tagging system to your Mongoid documents, and allows you to query them using a boolean search syntax.'
15
+ spec.license = 'MIT'
15
16
 
16
17
  spec.files = `git ls-files -z`.split("\x0")
17
18
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
18
- spec.require_paths = ["lib"]
19
+ spec.require_paths = ['lib']
19
20
 
20
- spec.add_dependency 'activesupport', '~> 4.0'
21
- spec.add_dependency 'mongoid', '>= 4.0.0', '<= 6.0.0'
21
+ spec.add_dependency 'activesupport', '>= 4.0', '< 6.0.0'
22
+ spec.add_dependency 'mongoid', '>= 4.0.0', '< 7.0.0'
22
23
  spec.add_dependency 'treetop', '~> 1.5'
23
24
 
24
25
  spec.add_development_dependency 'minitest', '~> 5.0'
25
26
  spec.add_development_dependency 'rake', '~> 10.0'
27
+ spec.add_development_dependency 'rubocop', '~> 0.40'
26
28
  spec.add_development_dependency 'yard', '~> 0.8'
27
29
  end
@@ -1,8 +1,9 @@
1
+ # frozen_string_literal: true
1
2
  require_relative 'test_helper'
2
3
 
3
4
  # Create all possible combinations of tags.
4
5
  4.times do |i|
5
- %w[foo bar baz qux].combination(i + 1).each do |tags|
6
+ %w(foo bar baz qux).combination(i + 1).each do |tags|
6
7
  Document.create tags: tags
7
8
  end
8
9
  end
@@ -24,132 +25,118 @@ def include_all?(*tags)
24
25
  end
25
26
  end
26
27
 
27
-
28
28
  class IntegrationTest < Minitest::Test
29
29
  def test_documents_including_foo
30
- assert Document.tagged('foo').all? &include?('foo')
30
+ assert Document.tagged('foo').all?(&include?('foo'))
31
31
  end
32
32
 
33
-
34
33
  def test_documents_including_at_least_foo
35
- assert Document.tagged('+foo').all? &include?('foo')
34
+ assert Document.tagged('+foo').all?(&include?('foo'))
36
35
  end
37
36
 
38
-
39
37
  def test_documents_not_including_foo
40
- assert Document.tagged('-foo').none? &include?('foo')
38
+ assert Document.tagged('-foo').none?(&include?('foo'))
41
39
  end
42
40
 
43
-
44
41
  def test_documents_including_foo_or_bar
45
- assert Document.tagged('foo bar').all? &include?('foo', 'bar')
42
+ assert Document.tagged('foo bar').all?(&include?('foo', 'bar'))
46
43
  end
47
44
 
48
-
49
45
  def test_documents_including_foo_and_bar
50
46
  documents = Document.tagged('+foo bar')
51
47
 
52
- assert documents.all? &include?('foo')
53
- assert documents.all? &include?('bar')
48
+ assert documents.all?(&include?('foo'))
49
+ assert documents.all?(&include?('bar'))
54
50
  end
55
51
 
56
-
57
52
  def test_documents_not_including_foo_but_bar
58
53
  documents = Document.tagged('-foo bar')
59
54
 
60
- assert documents.none? &include?('foo')
61
- assert documents.all? &include?('bar')
55
+ assert documents.none?(&include?('foo'))
56
+ assert documents.all?(&include?('bar'))
62
57
  end
63
58
 
64
-
65
59
  def test_documents_not_including_foo_and_bar
66
60
  documents = Document.tagged('-foo -bar')
67
61
 
68
- assert documents.none? &include?('foo')
69
- assert documents.none? &include?('bar')
62
+ assert documents.none?(&include?('foo'))
63
+ assert documents.none?(&include?('bar'))
70
64
  end
71
65
 
72
-
73
66
  def test_documents_including_foo_or_bar_or_baz
74
- assert Document.tagged('foo bar baz').all? &include?('foo', 'bar', 'baz')
67
+ assert Document.tagged('foo bar baz').all?(&include?('foo', 'bar', 'baz'))
75
68
  end
76
69
 
77
-
78
70
  def test_documents_including_at_foo_and_maybe_bar_or_baz
79
71
  documents = Document.tagged('+foo bar baz')
80
72
 
81
- assert documents.all? &include?('foo')
82
- assert documents.all? &include?('bar', 'baz')
73
+ assert documents.all?(&include?('foo'))
74
+ assert documents.all?(&include?('bar', 'baz'))
83
75
  end
84
76
 
85
-
86
77
  def test_documents_including_at_least_foo_and_bar_maybe_baz
87
78
  documents = Document.tagged('+foo +bar baz')
88
79
 
89
- assert documents.all? &include?('foo')
90
- assert documents.all? &include?('bar')
91
- assert documents.all? &include?('baz')
80
+ assert documents.all?(&include?('foo'))
81
+ assert documents.all?(&include?('bar'))
82
+ assert documents.all?(&include?('baz'))
92
83
  end
93
84
 
94
-
95
85
  def test_documents_not_including_foo_but_bar_or_baz
96
86
  documents = Document.tagged('-foo bar baz')
97
87
 
98
- assert documents.none? &include?('foo')
99
- assert documents.all? &include?('bar', 'baz')
88
+ assert documents.none?(&include?('foo'))
89
+ assert documents.all?(&include?('bar', 'baz'))
100
90
  end
101
91
 
102
-
103
92
  def test_documents_not_including_foo_but_bar_and_maybe_baz
104
93
  documents = Document.tagged('-foo +bar baz')
105
94
 
106
- assert documents.none? &include?('foo')
107
- assert documents.all? &include?('bar')
108
- assert documents.any? &include?('baz')
95
+ assert documents.none?(&include?('foo'))
96
+ assert documents.all?(&include?('bar'))
97
+ assert documents.any?(&include?('baz'))
109
98
  end
110
99
 
111
-
112
100
  def test_documents_not_including_foo_and_bar_but_baz
113
101
  documents = Document.tagged('-foo -bar baz')
114
102
 
115
- assert documents.none? &include?('foo')
116
- assert documents.none? &include?('bar')
117
- assert documents.all? &include?('baz')
103
+ assert documents.none?(&include?('foo'))
104
+ assert documents.none?(&include?('bar'))
105
+ assert documents.all?(&include?('baz'))
118
106
  end
119
107
 
120
-
121
108
  def test_documents_not_including_foo_and_bar_and_baz
122
109
  documents = Document.tagged('-foo -bar -baz')
123
110
 
124
- assert documents.none? &include?('foo')
125
- assert documents.none? &include?('bar')
126
- assert documents.none? &include?('baz')
111
+ assert documents.none?(&include?('foo'))
112
+ assert documents.none?(&include?('bar'))
113
+ assert documents.none?(&include?('baz'))
127
114
  end
128
115
 
129
-
130
116
  def test_documents_including_both_foo_and_bar_and_or_baz
131
117
  documents = Document.tagged('(+foo +bar) baz').to_a
132
118
 
133
- assert documents.any? &include_all?('foo', 'bar')
134
- documents.delete_if &include_all?('foo', 'bar')
135
- assert documents.all? &include?('baz')
136
- end
119
+ assert documents.any?(&include_all?('foo', 'bar'))
120
+ documents.delete_if(&include_all?('foo', 'bar'))
137
121
 
122
+ assert documents.all?(&include?('baz'))
123
+ end
138
124
 
139
125
  def test_documents_including_both_foo_and_bar_and_or_baz_or_qux
140
126
  documents = Document.tagged('(+foo +bar) baz qux').to_a
141
127
 
142
- assert documents.any? &include_all?('foo', 'bar')
143
- documents.delete_if &include_all?('foo', 'bar')
144
- assert documents.any? &include?('baz', 'qux')
145
- end
128
+ assert documents.any?(&include_all?('foo', 'bar'))
129
+ documents.delete_if(&include_all?('foo', 'bar'))
146
130
 
131
+ assert documents.any?(&include?('baz', 'qux'))
132
+ end
147
133
 
148
134
  def test_documents_including_foo_and_bar_or_baz_and_qux
149
135
  documents = Document.tagged('(+foo +bar)(+baz +qux)').to_a
150
136
 
151
- assert documents.any? &include_all?('foo', 'bar')
152
- documents.delete_if &include_all?('foo', 'bar')
153
- assert documents.any? &include_all?('baz', 'qux')
137
+ assert documents.any?(&include_all?('foo', 'bar'))
138
+ documents.delete_if(&include_all?('foo', 'bar'))
139
+
140
+ assert documents.any?(&include_all?('baz', 'qux'))
154
141
  end
155
142
  end
data/test/tags_test.rb CHANGED
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  require_relative 'test_helper'
2
3
 
3
4
  class TagsTest < Minitest::Test
@@ -6,28 +7,28 @@ class TagsTest < Minitest::Test
6
7
  end
7
8
 
8
9
  def test_valid_queries
9
- assert_selector 'foo', { 'tags' => { '$in' => %w[foo] }}
10
- assert_selector '+foo', { 'tags' => { '$all' => %w[foo] }}
11
- assert_selector '-foo', { 'tags' => { '$nin' => %w[foo] }}
12
- assert_selector 'foo bar', { 'tags' => { '$in' => %w[foo bar] }}
13
- assert_selector 'foo +bar', { 'tags' => { '$in' => %w[foo], '$all' => %w[bar] }}
14
- assert_selector 'foo +bar +baz', { 'tags' => { '$in' => %w[foo], '$all' => %w[bar baz] }}
15
- assert_selector 'foo +bar baz', { 'tags' => { '$in' => %w[foo baz], '$all' => %w[bar] }}
16
- assert_selector 'foo +bar -baz', { 'tags' => { '$in' => %w[foo], '$all' => %w[bar], '$nin' => %w[baz] }}
17
-
18
- assert_selector '(foo)', { '$or' => [{ 'tags' => { '$in' => %w[foo] } }] }
19
- assert_selector '(foo bar)', { '$or' => [{ 'tags' => { '$in' => %w[foo bar] } }] }
20
- assert_selector '( foo bar )', { '$or' => [{ 'tags' => { '$in' => %w[foo bar] } }] }
21
- assert_selector '(foo)(bar)', { '$or' => [{ 'tags' => { '$in' => %w[foo] } }, { 'tags' => { '$in' => %w[bar] } }] }
22
- assert_selector '(foo)(bar)(baz)', { '$or' => [{ 'tags' => { '$in' => %w[foo] } }, { 'tags' => { '$in' => %w[bar] } }, { 'tags' => { '$in' => %w[baz] } }] }
23
- assert_selector '(+foo)(-bar)', { '$or' => [{ 'tags' => { '$all' => %w[foo] } }, { 'tags' => { '$nin' => %w[bar] } }] }
24
-
25
- assert_selector '(+foo +bar)(+foo +baz)', { '$or' => [{ 'tags' => { '$all' => %w[foo bar] } }, { 'tags' => { '$all' => %w[foo baz] } }] }
26
- assert_selector '(+foo +bar)(+foo +baz)(+foo +qux)', { '$or' => [{ 'tags' => { '$all' => %w[foo bar] } }, { 'tags' => { '$all' => %w[foo baz] } }, { 'tags' => { '$all' => %w[foo qux] } }] }
27
-
28
- assert_selector '(+foo +bar) baz qux', { '$or' => [{ 'tags' => { '$all' => %w[foo bar] } }, { 'tags' => { '$in' => %w[baz qux] } } ]}
29
-
30
- assert_selector '_foo _bar', { 'tags' => { '$in' => %w[_foo _bar] }}
10
+ assert_selector 'foo', 'tags' => { '$in' => %w(foo) }
11
+ assert_selector '+foo', 'tags' => { '$all' => %w(foo) }
12
+ assert_selector '-foo', 'tags' => { '$nin' => %w(foo) }
13
+ assert_selector 'foo bar', 'tags' => { '$in' => %w(foo bar) }
14
+ assert_selector 'foo +bar', 'tags' => { '$in' => %w(foo), '$all' => %w(bar) }
15
+ assert_selector 'foo +bar +baz', 'tags' => { '$in' => %w(foo), '$all' => %w(bar baz) }
16
+ assert_selector 'foo +bar baz', 'tags' => { '$in' => %w(foo baz), '$all' => %w(bar) }
17
+ assert_selector 'foo +bar -baz', 'tags' => { '$in' => %w(foo), '$all' => %w(bar), '$nin' => %w(baz) }
18
+
19
+ assert_selector '(foo)', '$or' => [{ 'tags' => { '$in' => %w(foo) } }]
20
+ assert_selector '(foo bar)', '$or' => [{ 'tags' => { '$in' => %w(foo bar) } }]
21
+ assert_selector '( foo bar )', '$or' => [{ 'tags' => { '$in' => %w(foo bar) } }]
22
+ assert_selector '(foo)(bar)', '$or' => [{ 'tags' => { '$in' => %w(foo) } }, { 'tags' => { '$in' => %w(bar) } }]
23
+ assert_selector '(foo)(bar)(baz)', '$or' => [{ 'tags' => { '$in' => %w(foo) } }, { 'tags' => { '$in' => %w(bar) } }, { 'tags' => { '$in' => %w(baz) } }]
24
+ assert_selector '(+foo)(-bar)', '$or' => [{ 'tags' => { '$all' => %w(foo) } }, { 'tags' => { '$nin' => %w(bar) } }]
25
+
26
+ assert_selector '(+foo +bar)(+foo +baz)', '$or' => [{ 'tags' => { '$all' => %w(foo bar) } }, { 'tags' => { '$all' => %w(foo baz) } }]
27
+ assert_selector '(+foo +bar)(+foo +baz)(+foo +qux)', '$or' => [{ 'tags' => { '$all' => %w(foo bar) } }, { 'tags' => { '$all' => %w(foo baz) } }, { 'tags' => { '$all' => %w(foo qux) } }]
28
+
29
+ assert_selector '(+foo +bar) baz qux', '$or' => [{ 'tags' => { '$all' => %w(foo bar) } }, { 'tags' => { '$in' => %w(baz qux) } }]
30
+
31
+ assert_selector '_foo _bar', 'tags' => { '$in' => %w(_foo _bar) }
31
32
  end
32
33
 
33
34
  def test_invalid_queries
data/test/test_helper.rb CHANGED
@@ -1,4 +1,5 @@
1
- $: << File.expand_path('../../lib', __FILE__)
1
+ # frozen_string_literal: true
2
+ $LOAD_PATH << File.expand_path('../../lib', __FILE__)
2
3
 
3
4
  require 'minitest/autorun'
4
5
  require 'minitest/pride'
@@ -6,9 +7,7 @@ require 'minitest/spec'
6
7
 
7
8
  require 'mongoid/tags'
8
9
 
9
- if defined?(Mongo)
10
- Mongo::Logger.logger.level = Logger::INFO
11
- end
10
+ Mongo::Logger.logger.level = Logger::INFO if defined?(Mongo)
12
11
 
13
12
  class Document
14
13
  include Mongoid::Document
metadata CHANGED
@@ -1,29 +1,35 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mongoid-tags
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mario Uher
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-11-05 00:00:00.000000000 Z
11
+ date: 2016-05-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '4.0'
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: 6.0.0
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
24
- - - "~>"
27
+ - - ">="
25
28
  - !ruby/object:Gem::Version
26
29
  version: '4.0'
30
+ - - "<"
31
+ - !ruby/object:Gem::Version
32
+ version: 6.0.0
27
33
  - !ruby/object:Gem::Dependency
28
34
  name: mongoid
29
35
  requirement: !ruby/object:Gem::Requirement
@@ -31,9 +37,9 @@ dependencies:
31
37
  - - ">="
32
38
  - !ruby/object:Gem::Version
33
39
  version: 4.0.0
34
- - - "<="
40
+ - - "<"
35
41
  - !ruby/object:Gem::Version
36
- version: 6.0.0
42
+ version: 7.0.0
37
43
  type: :runtime
38
44
  prerelease: false
39
45
  version_requirements: !ruby/object:Gem::Requirement
@@ -41,9 +47,9 @@ dependencies:
41
47
  - - ">="
42
48
  - !ruby/object:Gem::Version
43
49
  version: 4.0.0
44
- - - "<="
50
+ - - "<"
45
51
  - !ruby/object:Gem::Version
46
- version: 6.0.0
52
+ version: 7.0.0
47
53
  - !ruby/object:Gem::Dependency
48
54
  name: treetop
49
55
  requirement: !ruby/object:Gem::Requirement
@@ -86,6 +92,20 @@ dependencies:
86
92
  - - "~>"
87
93
  - !ruby/object:Gem::Version
88
94
  version: '10.0'
95
+ - !ruby/object:Gem::Dependency
96
+ name: rubocop
97
+ requirement: !ruby/object:Gem::Requirement
98
+ requirements:
99
+ - - "~>"
100
+ - !ruby/object:Gem::Version
101
+ version: '0.40'
102
+ type: :development
103
+ prerelease: false
104
+ version_requirements: !ruby/object:Gem::Requirement
105
+ requirements:
106
+ - - "~>"
107
+ - !ruby/object:Gem::Version
108
+ version: '0.40'
89
109
  - !ruby/object:Gem::Dependency
90
110
  name: yard
91
111
  requirement: !ruby/object:Gem::Requirement
@@ -108,6 +128,7 @@ extensions: []
108
128
  extra_rdoc_files: []
109
129
  files:
110
130
  - ".gitignore"
131
+ - ".rubocop.yml"
111
132
  - ".travis.yml"
112
133
  - ".yardopts"
113
134
  - Gemfile
@@ -116,6 +137,7 @@ files:
116
137
  - Rakefile
117
138
  - gemfiles/mongoid_4.Gemfile
118
139
  - gemfiles/mongoid_5.Gemfile
140
+ - gemfiles/mongoid_6.Gemfile
119
141
  - lib/mongoid/tags.rb
120
142
  - lib/mongoid/tags.tt
121
143
  - lib/mongoid/tags/version.rb
@@ -124,7 +146,7 @@ files:
124
146
  - test/mongoid.yml
125
147
  - test/tags_test.rb
126
148
  - test/test_helper.rb
127
- homepage: https://github.com/haihappen/mongoid-tags
149
+ homepage: https://github.com/ream88/mongoid-tags
128
150
  licenses:
129
151
  - MIT
130
152
  metadata: {}
@@ -144,7 +166,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
144
166
  version: '0'
145
167
  requirements: []
146
168
  rubyforge_project:
147
- rubygems_version: 2.5.0
169
+ rubygems_version: 2.4.5.1
148
170
  signing_key:
149
171
  specification_version: 4
150
172
  summary: Simple tagging system with boolean search.