metka 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (6) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +13 -13
  3. data/README.md +22 -4
  4. data/lib/metka/version.rb +1 -1
  5. data/metka.gemspec +13 -12
  6. metadata +28 -29
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 960a0b262fa5e1dc7a4a08baf844f4f12063696133527f0ef201a4414ee498c0
4
- data.tar.gz: 2792d8b84d0ebf6c9aa197c3bbbe8d6b257f522493a2b770887105cd0d6b539d
3
+ metadata.gz: 7ec15f83e345a5b29f191fc56a4362f248b0e09d24c6145c4420bb057888ebe8
4
+ data.tar.gz: d2580715d9fb96319c5fbeed60767ab552c0009fc02d749a0a488f62297cb95f
5
5
  SHA512:
6
- metadata.gz: 4b47eb9c9b7e64609b0933b02e5704aa8e5dd5cca5ca1a9c796625942fed6b67551574cb6fe3c45190954ce8bfb56ae40bb125659751d55b5ef8f780a35beb0d
7
- data.tar.gz: fe1b4c69679173d7f8c639f3c060722c617f39f537dba1253ff1f9cd70e26a44028e8ae6676d440c2b9165691162f907a0cf4e546510c8e37194db13c59adb44
6
+ metadata.gz: 822c1cf2a01b53c6ced44b6831d8de4caa173371fd02e7a03ad656458667c12fb93836538599313d0471b7d4718870357defc59ec5ae68c5ca81d54ef827e3a4
7
+ data.tar.gz: 8a07ed56ce6d9efff2bfbc962f17fada5d5a4d4e5aee3d731b326dd1d0082c2f9126dba00ba1f807b3b38e0c496eedb4ea4cce97b2848b3d6051bdbb33c4d4d4
@@ -1,9 +1,9 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- metka (1.0.0)
5
- dry-configurable
6
- rails (~> 5.1)
4
+ metka (1.0.1)
5
+ dry-configurable (>= 0.8)
6
+ rails (>= 5.1)
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
@@ -182,18 +182,18 @@ PLATFORMS
182
182
 
183
183
  DEPENDENCIES
184
184
  activerecord (~> 5.1.1)
185
- ammeter
186
- bundler
187
- database_cleaner
188
- faker
185
+ ammeter (>= 1.1)
186
+ bundler (>= 1.3)
187
+ database_cleaner (>= 1.7)
188
+ faker (>= 2.8)
189
189
  jetrockets-standard (~> 1.0.1)
190
190
  metka!
191
- pg
192
- pry (~> 0.12.2)
193
- rake
194
- rspec (~> 3.9)
195
- rspec-rails (~> 3.9)
196
- timecop
191
+ pg (>= 1.1)
192
+ pry (>= 0.12.2)
193
+ rake (>= 0.8.7)
194
+ rspec (>= 3.9)
195
+ rspec-rails (>= 3.9)
196
+ timecop (>= 0.9)
197
197
 
198
198
  BUNDLED WITH
199
199
  2.0.2
data/README.md CHANGED
@@ -1,3 +1,4 @@
1
+ [![Gem Version](https://badge.fury.io/rb/metka.svg)](https://badge.fury.io/rb/metka)
1
2
  [![Build Status](https://travis-ci.org/jetrockets/metka.svg?branch=master)](https://travis-ci.org/jetrockets/metka)
2
3
  [![Open Source Helpers](https://www.codetriage.com/jetrockets/metka/badges/users.svg)](https://www.codetriage.com/jetrockets/metka)
3
4
 
@@ -23,16 +24,33 @@ Or install it yourself as:
23
24
 
24
25
  ## Tag objects
25
26
 
27
+ ```bash
28
+ rails g migration CreateSongs
29
+ ```
30
+
31
+ ```ruby
32
+ class CreateSongs < ActiveRecord::Migration[5.0]
33
+ def change
34
+ create_table :songs do |t|
35
+ t.string :title
36
+ t.string :tags, array: true
37
+ t.string :genres, array: true
38
+ t.timestamps
39
+ end
40
+ end
41
+ end
42
+ ```
43
+
26
44
  ```ruby
27
45
  class Song < ActiveRecord::Base
28
46
  include Metka::Model(column: 'tags')
29
47
  include Metka::Model(column: 'genres')
30
48
  end
31
49
 
32
- @Song = Song.new(title: 'Migrate tags in Rails to SonggreSQL')
33
- @Song.tag_list = 'top, chill'
34
- @Song.genre_list = 'rock, jazz, pop'
35
- @Song.save
50
+ @song = Song.new(title: 'Migrate tags in Rails to SonggreSQL')
51
+ @song.tag_list = 'top, chill'
52
+ @song.genre_list = 'rock, jazz, pop'
53
+ @song.save
36
54
  ```
37
55
 
38
56
  ## Find tagged objects
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Metka
4
- VERSION = '1.0.0'
4
+ VERSION = '1.0.1'
5
5
  end
@@ -24,18 +24,19 @@ Gem::Specification.new do |spec|
24
24
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
25
25
  spec.require_paths = ['lib']
26
26
 
27
- spec.add_dependency 'dry-configurable'
28
- spec.add_dependency 'rails', '~> 5.1'
27
+ spec.add_dependency 'dry-configurable', '>= 0.8'
28
+ spec.add_dependency 'rails', '>= 5.1'
29
29
 
30
- spec.add_development_dependency 'ammeter'
31
- spec.add_development_dependency 'pry', '~> 0.12.2'
32
- spec.add_development_dependency 'bundler'
33
- spec.add_development_dependency 'faker'
30
+ spec.add_development_dependency 'ammeter', '>= 1.1'
31
+ spec.add_development_dependency 'pry', '>= 0.12.2'
32
+ spec.add_development_dependency 'bundler', '>= 1.3'
33
+ spec.add_development_dependency 'faker', '>= 2.8'
34
34
  spec.add_development_dependency 'jetrockets-standard', '~> 1.0.1'
35
- spec.add_development_dependency 'pg'
36
- spec.add_development_dependency 'rake'
37
- spec.add_development_dependency 'rspec', '~> 3.9'
38
- spec.add_development_dependency 'rspec-rails', '~> 3.9'
39
- spec.add_development_dependency 'timecop'
40
- spec.add_development_dependency 'database_cleaner'
35
+ spec.add_development_dependency 'pg', '>= 1.1'
36
+ spec.add_development_dependency 'rake', '>= 0.8.7'
37
+ spec.add_development_dependency 'rspec', '>= 3.9'
38
+ spec.add_development_dependency 'rspec-rails', '>= 3.9'
39
+ spec.add_development_dependency 'timecop', '>= 0.9'
40
+ spec.add_development_dependency 'database_cleaner', '>= 1.7'
41
+ spec.required_ruby_version = '>= 2.5'
41
42
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metka
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Igor Alexandrov
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2019-12-13 00:00:00.000000000 Z
12
+ date: 2019-12-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: dry-configurable
@@ -17,26 +17,26 @@ dependencies:
17
17
  requirements:
18
18
  - - ">="
19
19
  - !ruby/object:Gem::Version
20
- version: '0'
20
+ version: '0.8'
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
25
  - - ">="
26
26
  - !ruby/object:Gem::Version
27
- version: '0'
27
+ version: '0.8'
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: rails
30
30
  requirement: !ruby/object:Gem::Requirement
31
31
  requirements:
32
- - - "~>"
32
+ - - ">="
33
33
  - !ruby/object:Gem::Version
34
34
  version: '5.1'
35
35
  type: :runtime
36
36
  prerelease: false
37
37
  version_requirements: !ruby/object:Gem::Requirement
38
38
  requirements:
39
- - - "~>"
39
+ - - ">="
40
40
  - !ruby/object:Gem::Version
41
41
  version: '5.1'
42
42
  - !ruby/object:Gem::Dependency
@@ -45,26 +45,26 @@ dependencies:
45
45
  requirements:
46
46
  - - ">="
47
47
  - !ruby/object:Gem::Version
48
- version: '0'
48
+ version: '1.1'
49
49
  type: :development
50
50
  prerelease: false
51
51
  version_requirements: !ruby/object:Gem::Requirement
52
52
  requirements:
53
53
  - - ">="
54
54
  - !ruby/object:Gem::Version
55
- version: '0'
55
+ version: '1.1'
56
56
  - !ruby/object:Gem::Dependency
57
57
  name: pry
58
58
  requirement: !ruby/object:Gem::Requirement
59
59
  requirements:
60
- - - "~>"
60
+ - - ">="
61
61
  - !ruby/object:Gem::Version
62
62
  version: 0.12.2
63
63
  type: :development
64
64
  prerelease: false
65
65
  version_requirements: !ruby/object:Gem::Requirement
66
66
  requirements:
67
- - - "~>"
67
+ - - ">="
68
68
  - !ruby/object:Gem::Version
69
69
  version: 0.12.2
70
70
  - !ruby/object:Gem::Dependency
@@ -73,28 +73,28 @@ dependencies:
73
73
  requirements:
74
74
  - - ">="
75
75
  - !ruby/object:Gem::Version
76
- version: '0'
76
+ version: '1.3'
77
77
  type: :development
78
78
  prerelease: false
79
79
  version_requirements: !ruby/object:Gem::Requirement
80
80
  requirements:
81
81
  - - ">="
82
82
  - !ruby/object:Gem::Version
83
- version: '0'
83
+ version: '1.3'
84
84
  - !ruby/object:Gem::Dependency
85
85
  name: faker
86
86
  requirement: !ruby/object:Gem::Requirement
87
87
  requirements:
88
88
  - - ">="
89
89
  - !ruby/object:Gem::Version
90
- version: '0'
90
+ version: '2.8'
91
91
  type: :development
92
92
  prerelease: false
93
93
  version_requirements: !ruby/object:Gem::Requirement
94
94
  requirements:
95
95
  - - ">="
96
96
  - !ruby/object:Gem::Version
97
- version: '0'
97
+ version: '2.8'
98
98
  - !ruby/object:Gem::Dependency
99
99
  name: jetrockets-standard
100
100
  requirement: !ruby/object:Gem::Requirement
@@ -115,54 +115,54 @@ dependencies:
115
115
  requirements:
116
116
  - - ">="
117
117
  - !ruby/object:Gem::Version
118
- version: '0'
118
+ version: '1.1'
119
119
  type: :development
120
120
  prerelease: false
121
121
  version_requirements: !ruby/object:Gem::Requirement
122
122
  requirements:
123
123
  - - ">="
124
124
  - !ruby/object:Gem::Version
125
- version: '0'
125
+ version: '1.1'
126
126
  - !ruby/object:Gem::Dependency
127
127
  name: rake
128
128
  requirement: !ruby/object:Gem::Requirement
129
129
  requirements:
130
130
  - - ">="
131
131
  - !ruby/object:Gem::Version
132
- version: '0'
132
+ version: 0.8.7
133
133
  type: :development
134
134
  prerelease: false
135
135
  version_requirements: !ruby/object:Gem::Requirement
136
136
  requirements:
137
137
  - - ">="
138
138
  - !ruby/object:Gem::Version
139
- version: '0'
139
+ version: 0.8.7
140
140
  - !ruby/object:Gem::Dependency
141
141
  name: rspec
142
142
  requirement: !ruby/object:Gem::Requirement
143
143
  requirements:
144
- - - "~>"
144
+ - - ">="
145
145
  - !ruby/object:Gem::Version
146
146
  version: '3.9'
147
147
  type: :development
148
148
  prerelease: false
149
149
  version_requirements: !ruby/object:Gem::Requirement
150
150
  requirements:
151
- - - "~>"
151
+ - - ">="
152
152
  - !ruby/object:Gem::Version
153
153
  version: '3.9'
154
154
  - !ruby/object:Gem::Dependency
155
155
  name: rspec-rails
156
156
  requirement: !ruby/object:Gem::Requirement
157
157
  requirements:
158
- - - "~>"
158
+ - - ">="
159
159
  - !ruby/object:Gem::Version
160
160
  version: '3.9'
161
161
  type: :development
162
162
  prerelease: false
163
163
  version_requirements: !ruby/object:Gem::Requirement
164
164
  requirements:
165
- - - "~>"
165
+ - - ">="
166
166
  - !ruby/object:Gem::Version
167
167
  version: '3.9'
168
168
  - !ruby/object:Gem::Dependency
@@ -171,28 +171,28 @@ dependencies:
171
171
  requirements:
172
172
  - - ">="
173
173
  - !ruby/object:Gem::Version
174
- version: '0'
174
+ version: '0.9'
175
175
  type: :development
176
176
  prerelease: false
177
177
  version_requirements: !ruby/object:Gem::Requirement
178
178
  requirements:
179
179
  - - ">="
180
180
  - !ruby/object:Gem::Version
181
- version: '0'
181
+ version: '0.9'
182
182
  - !ruby/object:Gem::Dependency
183
183
  name: database_cleaner
184
184
  requirement: !ruby/object:Gem::Requirement
185
185
  requirements:
186
186
  - - ">="
187
187
  - !ruby/object:Gem::Version
188
- version: '0'
188
+ version: '1.7'
189
189
  type: :development
190
190
  prerelease: false
191
191
  version_requirements: !ruby/object:Gem::Requirement
192
192
  requirements:
193
193
  - - ">="
194
194
  - !ruby/object:Gem::Version
195
- version: '0'
195
+ version: '1.7'
196
196
  description: Rails tagging system based on PostgreSQL arrays
197
197
  email:
198
198
  - igor.alexandrov@gmail.com
@@ -245,15 +245,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
245
245
  requirements:
246
246
  - - ">="
247
247
  - !ruby/object:Gem::Version
248
- version: '0'
248
+ version: '2.5'
249
249
  required_rubygems_version: !ruby/object:Gem::Requirement
250
250
  requirements:
251
251
  - - ">="
252
252
  - !ruby/object:Gem::Version
253
253
  version: '0'
254
254
  requirements: []
255
- rubyforge_project:
256
- rubygems_version: 2.7.6
255
+ rubygems_version: 3.0.6
257
256
  signing_key:
258
257
  specification_version: 4
259
258
  summary: Rails tagging system based on PostgreSQL arrays