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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d9d001007c468197af668ff53d0cd2606b627e854c375b3661ef873f31679ecd
4
- data.tar.gz: 8e961637ec99daa3b300816fae2b6e4fbcf0df9228f8374f55f404075a547187
3
+ metadata.gz: 312d2148fbdb21f7a654cc811c25fefe5aad46befa9af7f6334b2cd5be127287
4
+ data.tar.gz: 72f837865e19dfd7ea73f0db1a11f42c81f5c78e3db7608b5196ca152baf53d4
5
5
  SHA512:
6
- metadata.gz: 3dfe8cc27d54a09bb33a30d05b9f666d7083af4489cc4e142e1cad79d6d5134911148eb67bcab5ffa8c996478dab2cc527073dd4d7ff53f6487447a8070cf26e
7
- data.tar.gz: f5ded6f869d9a5f5388ca3c380d2c9513fbc281219a5efb025aa95a0131c9b858e6714c7d6cd5b3f12cf22ac6ba2ccde2154bbeda129340ef8b71a533d43a9fa
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
- | set tags with array of tag names | `highlights=(value)` |
98
- | get array of tag names | `highlights` |
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
@@ -49,6 +49,10 @@ module EasyTags
49
49
  _taggable_context(:#{context}).update(value)
50
50
  #{context}_list
51
51
  end
52
+
53
+ def #{context}_list_persisted
54
+ _taggable_context(:#{context}).persisted_tags.to_s
55
+ end
52
56
  RUBY
53
57
  end
54
58
  end
@@ -1,3 +1,3 @@
1
1
  module EasyTags
2
- VERSION = '0.1.0'.freeze
2
+ VERSION = '0.2.0'.freeze
3
3
  end
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.1.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-07-15 00:00:00.000000000 Z
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: