mongoid-minimal_tags 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 65a1888231645e34885a1f4082681d4c1cd96202
4
- data.tar.gz: 834fb1a17e0de8257cebb2abbd26e13e7c191e74
3
+ metadata.gz: 578a70803d21ce896154f0619f90ea49a94a5370
4
+ data.tar.gz: a9382b271cea64069a0eadfa662076258a0f93e8
5
5
  SHA512:
6
- metadata.gz: f2192f50bbbd799cc2b626a75d10527ffa9ec6d6838a2debdf171eb64ca2f2ac8723b5ba44142ba1321d7d347a78a6c22f311acfe239d0a00603f7c3723fcb2a
7
- data.tar.gz: e8807d5f6620ba81afef2e6af5eb313f73ef757cad2f01108082dc46269f035e9d1a0bb78799945421f52d88f000efee35a5888ec62a2a225e44a2d1b2a5b34a
6
+ metadata.gz: a42634cf51ad4a8c803f578725b8ce6bb215f269b20d28cc3fe6ff533e74017f9dcd50f3ad79a296e67411a3c4cfb25112c577c9c60e7326de2b1c3e09f9b8db
7
+ data.tar.gz: 44d4a7124f6007c6ad530a973428b751464b237d71306456e20b8fbe757b0680dcc2f76034ee9d4e8a61e546963849c7a1a6d95b2cd58ffbe122a11877cf2954
data/README.md CHANGED
@@ -1,58 +1 @@
1
- [![Build Status](https://travis-ci.org/harrisbaird/mongoid-minimal_tags.svg?branch=master)](https://travis-ci.org/harrisbaird/mongoid-minimal_tags)
2
- [![Code Climate](https://codeclimate.com/github/harrisbaird/mongoid-minimal_tags/badges/gpa.svg)](https://codeclimate.com/github/harrisbaird/mongoid-minimal_tags)
3
- [![Test Coverage](https://codeclimate.com/github/harrisbaird/mongoid-minimal_tags/badges/coverage.svg)](https://codeclimate.com/github/harrisbaird/mongoid-minimal_tags/coverage)
4
- [![Inline docs](http://inch-ci.org/github/harrisbaird/mongoid-minimal_tags.svg?branch=master)](http://inch-ci.org/github/harrisbaird/mongoid-minimal_tags)
5
-
6
- ---
7
-
8
- # Mongoid::MinimalTags
9
-
10
- Mongoid::MinimalTags is a tiny gem for adding tagging support to [Mongoid](https://github.com/mongodb/mongoid) documents.
11
-
12
- Multiple tag fields can be used, each with their own way of formatting.
13
-
14
- ## Installation
15
-
16
- Add to your Gemfile:
17
-
18
- ```ruby
19
- gem 'mongoid-minimal_tags'
20
- ```
21
-
22
- ## Usage
23
-
24
- Start by including the `Mongoid::MinimalTags` module and define your tag fields
25
- with the `tag_field` method.
26
-
27
- ```ruby
28
- class Document
29
- include Mongoid::Document
30
- include Mongoid::MinimalTags
31
-
32
- tag_field :tags
33
- tag_field :upcase_tags, formatter: UpcaseFormatter.new
34
- end
35
- ```
36
-
37
- You can define multiple tag fields, just ensure they have unique names.
38
- Formatters can be defined on each tag field if needed, otherwise the default be used.
39
-
40
- ## Searching
41
- The following scopes are also added for each tag field:
42
- `.any_*`, `.all_*`, `.without_any_*`
43
- All scopes return a `Mongoid::Criteria` and can be chained.
44
-
45
- ```ruby
46
- Document.any_tags(['a', 'b', 'c'])
47
- Document.all_tags(['a', 'b', 'c'])
48
- Document.without_any_tags(['a', 'b', 'c'])
49
- ```
50
-
51
- ## Contributing
52
-
53
- 1. Fork it
54
- 2. Create your feature branch (`git checkout -b my-new-feature`)
55
- 3. Write your tests
56
- 4. Commit your changes (`git commit -am 'Add some feature'`)
57
- 5. Push to the branch (`git push origin my-new-feature`)
58
- 6. Create new Pull Request
1
+ Moved to [harrisbaird/minimal_tags](https://github.com/harrisbaird/mongoid-minimal_tags)
data/Rakefile CHANGED
@@ -7,7 +7,7 @@ YARD::Rake::YardocTask.new(:doc)
7
7
  Rake::TestTask.new(:test) do |t|
8
8
  t.libs << 'test'
9
9
  t.libs << 'lib'
10
- t.test_files = FileList['test/**/*_test.rb']
10
+ t.test_files = FileList['test/**/test_*.rb']
11
11
  end
12
12
 
13
13
  task default: :test
@@ -23,3 +23,5 @@ module Mongoid
23
23
  end
24
24
  end
25
25
  end
26
+
27
+ warn "[DEPRECATION] mongoid-minimal_tags has been renamed to minimal_tags and will no longer be supported."
@@ -1,5 +1,5 @@
1
1
  module Mongoid
2
2
  module MinimalTags
3
- VERSION = '0.1.0'
3
+ VERSION = '0.1.1'
4
4
  end
5
5
  end
@@ -9,6 +9,12 @@ Gem::Specification.new do |spec|
9
9
  spec.authors = ['harrisbaird']
10
10
  spec.email = ['mydancake@gmail.com']
11
11
 
12
+ spec.post_install_message = <<-MESSAGE
13
+ ! The 'mongoid-minimal_tags'' gem has been deprecated and has been replaced by 'minimal_tags''.
14
+ ! See: https://rubygems.org/gems/minimal_tags'
15
+ ! And: https://github.com/harrisbaird/minimal_tags'
16
+ MESSAGE
17
+
12
18
  spec.summary = 'Simple tag fields for mongodb documents.'
13
19
  spec.description = 'Simple tag fields for mongodb documents.'
14
20
  spec.homepage = 'https://github.com/harrisbaird/mongoid-minimal_tags'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mongoid-minimal_tags
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - harrisbaird
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-11-07 00:00:00.000000000 Z
11
+ date: 2015-12-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mongoid
@@ -134,7 +134,10 @@ files:
134
134
  homepage: https://github.com/harrisbaird/mongoid-minimal_tags
135
135
  licenses: []
136
136
  metadata: {}
137
- post_install_message:
137
+ post_install_message: |2
138
+ ! The 'mongoid-minimal_tags'' gem has been deprecated and has been replaced by 'minimal_tags''.
139
+ ! See: https://rubygems.org/gems/minimal_tags'
140
+ ! And: https://github.com/harrisbaird/minimal_tags'
138
141
  rdoc_options: []
139
142
  require_paths:
140
143
  - lib
@@ -150,7 +153,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
150
153
  version: '0'
151
154
  requirements: []
152
155
  rubyforge_project:
153
- rubygems_version: 2.4.5.1
156
+ rubygems_version: 2.5.0
154
157
  signing_key:
155
158
  specification_version: 4
156
159
  summary: Simple tag fields for mongodb documents.