easy_tags 0.1.0 → 0.2.0
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 +4 -4
- data/CHANGELOG.md +18 -0
- data/README.md +7 -6
- data/easy_tags.gemspec +8 -0
- data/lib/easy_tags/taggable_context_methods.rb +4 -0
- data/lib/easy_tags/version.rb +1 -1
- metadata +8 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 312d2148fbdb21f7a654cc811c25fefe5aad46befa9af7f6334b2cd5be127287
|
4
|
+
data.tar.gz: 72f837865e19dfd7ea73f0db1a11f42c81f5c78e3db7608b5196ca152baf53d4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fd12957155fe36706edeb580f3a97d1603fc5729ee9db7062f786cc430d1404d899793476a4f35643987b3e06d54188c4d538db86fd8a11e9603a043a692007d
|
7
|
+
data.tar.gz: 5ccfa9bac407e740fe5b74e4c1c03d1bb2dedcc1d2207fccf14e1ae72714d639fca343805d6029241d81e5b50d539b5176b9b86912ae9825958549e6e44dab51
|
data/CHANGELOG.md
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
# Changelog
|
2
|
+
All notable changes to this project will be documented in this file.
|
3
|
+
|
4
|
+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
5
|
+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
6
|
+
|
7
|
+
## [Unreleased]
|
8
|
+
|
9
|
+
## [0.2.0] - 2019-09-12
|
10
|
+
### Added
|
11
|
+
- `[context]_list_persisted` interface method for accessing persisted/previous tag list string
|
12
|
+
|
13
|
+
## [0.1.0] - 2019-07-15
|
14
|
+
Initial release
|
15
|
+
|
16
|
+
[Unreleased]: https://github.com/iiwo/easy_tagscompare/v0.2.0...HEAD
|
17
|
+
[0.2.0]: https://github.com/iiwo/easy_tags/compare/v0.1.0...v0.2.0
|
18
|
+
[0.1.0]: https://github.com/iiwo/easy_tags/releases/tag/v0.1.0
|
data/README.md
CHANGED
@@ -90,12 +90,13 @@ easy_tags_on :highlights
|
|
90
90
|
|
91
91
|
the following methods will be auto-generated and made available for your model instance (`highlights` being an example context name):
|
92
92
|
|
93
|
-
| description | method
|
94
|
-
|
95
|
-
| set tags using string of tag names | `highlights_list=(value)`
|
96
|
-
| get string of tag names | `highlights_list`
|
97
|
-
|
|
98
|
-
|
|
93
|
+
| description | method |
|
94
|
+
|------------------------------------|----------------------------------|
|
95
|
+
| set tags using string of tag names | `highlights_list=(value)` |
|
96
|
+
| get string of tag names | `highlights_list` |
|
97
|
+
| get string of persisted tag names | `highlights_list_persisted` |
|
98
|
+
| set tags with array of tag names | `highlights=(value)` |
|
99
|
+
| get array of tag names | `highlights` |
|
99
100
|
|
100
101
|
- the String accessor is helpful when working with client side tagging UI solutions such as ie. [select2](https://select2.org/tagging)
|
101
102
|
- the Array accessor gives you convenient array item manipulation
|
data/easy_tags.gemspec
CHANGED
@@ -2,6 +2,7 @@ lib = File.expand_path('lib', __dir__)
|
|
2
2
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
3
3
|
require 'easy_tags/version'
|
4
4
|
|
5
|
+
# rubocop:disable Metrics/BlockLength
|
5
6
|
Gem::Specification.new do |spec|
|
6
7
|
spec.name = 'easy_tags'
|
7
8
|
spec.version = EasyTags::VERSION
|
@@ -12,6 +13,12 @@ Gem::Specification.new do |spec|
|
|
12
13
|
spec.description = 'Easy tagging for Rails'
|
13
14
|
spec.homepage = 'https://github.com/iiwo/easy_tags'
|
14
15
|
spec.license = 'MIT'
|
16
|
+
spec.metadata = {
|
17
|
+
'homepage_uri' => 'https://github.com/iiwo/easy_tags',
|
18
|
+
'changelog_uri' => 'https://github.com/iiwo/easy_tags/blob/master/CHANGELOG.md',
|
19
|
+
'source_code_uri' => 'https://github.com/iiwo/easy_tags',
|
20
|
+
'bug_tracker_uri' => 'https://github.com/iiwo/easy_tags/issues'
|
21
|
+
}
|
15
22
|
|
16
23
|
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
17
24
|
f.match(%r{^(test|spec|features)/})
|
@@ -31,3 +38,4 @@ Gem::Specification.new do |spec|
|
|
31
38
|
spec.add_development_dependency 'simplecov-console'
|
32
39
|
spec.add_development_dependency 'sqlite3', '~> 1.3.6'
|
33
40
|
end
|
41
|
+
# rubocop:enable Metrics/BlockLength
|
data/lib/easy_tags/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: easy_tags
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Iwo Dziechciarow
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-09-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
@@ -150,6 +150,7 @@ files:
|
|
150
150
|
- ".travis.yml"
|
151
151
|
- ".yardopts"
|
152
152
|
- Appraisals
|
153
|
+
- CHANGELOG.md
|
153
154
|
- Gemfile
|
154
155
|
- LICENSE.txt
|
155
156
|
- MIGRATING_FROM_AATO.MD
|
@@ -180,7 +181,11 @@ files:
|
|
180
181
|
homepage: https://github.com/iiwo/easy_tags
|
181
182
|
licenses:
|
182
183
|
- MIT
|
183
|
-
metadata:
|
184
|
+
metadata:
|
185
|
+
homepage_uri: https://github.com/iiwo/easy_tags
|
186
|
+
changelog_uri: https://github.com/iiwo/easy_tags/blob/master/CHANGELOG.md
|
187
|
+
source_code_uri: https://github.com/iiwo/easy_tags
|
188
|
+
bug_tracker_uri: https://github.com/iiwo/easy_tags/issues
|
184
189
|
post_install_message:
|
185
190
|
rdoc_options: []
|
186
191
|
require_paths:
|