imyou 1.3.1 → 1.4.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: 63cd7ff87187396d3cee1b7e6238813fcd7e99c8415a9eac77e9559bc160335e
4
- data.tar.gz: caa9b83a15fd401d0100926941fcf6637149696851482a10242dfb2682f6a552
3
+ metadata.gz: 4adecb189f55f9b5367a1f4dd4a892d0c1e012f7378afb5a62ba6d672428f430
4
+ data.tar.gz: fb70e4b0c91015dbe1579331e17c46de46a69d94aed9d4cd520bf893ab70257b
5
5
  SHA512:
6
- metadata.gz: 9c25df47e6481e7d96fb5e5ffb00c42a5eb495b3cad6141504825fe63728b2e54cd908679951d22d22c27080022abc3a13c90507b18c317e3ceac26316e5df50
7
- data.tar.gz: ddae12be73597ee8eb59e0f784fc3eee833b629076f7173624596a6c9ce978e8b43126470594e7cc1ba24d2b2a7213a406ebc17e45645d7e60b2f42f71d33dc1
6
+ metadata.gz: 3dca92d69be5a902255ab00fbacaeeee914bc0c357f94efcfca0ee7d21228ed13ae4ea4425a28202a29a9c907700f472133a15cab2f9e37e69e7f15216fbd8e6
7
+ data.tar.gz: 8daa0dbabcce62e125d416aff60c3e7cd347f109b7ef1727e9b4cdf8f2149019f221881c1bd99aceb9988b13aa899e0b910ab15c8432211fbf6a20c6949b612e
@@ -4,9 +4,9 @@ executors:
4
4
  ruby:
5
5
  parameters:
6
6
  ruby_version:
7
- default: '2.6.2'
7
+ default: '2.6.3'
8
8
  type: enum
9
- enum: ['2.4.5', '2.5.5', '2.6.2']
9
+ enum: ['2.4.6', '2.5.5', '2.6.3']
10
10
  working_directory: ~/repo
11
11
  docker:
12
12
  - image: circleci/ruby:<< parameters.ruby_version >>-node-browsers
@@ -33,7 +33,7 @@ commands:
33
33
  rails_version:
34
34
  default: '5.2'
35
35
  type: enum
36
- enum: ['4.2', '5.0', '5.1', '5.2']
36
+ enum: ['4.2', '5.0', '5.1', '5.2', '6.0']
37
37
  steps:
38
38
  - checkout
39
39
  - run:
@@ -54,10 +54,10 @@ jobs:
54
54
  parameters:
55
55
  ruby_version:
56
56
  type: enum
57
- enum: ['2.4.5', '2.5.5', '2.6.2']
57
+ enum: ['2.4.6', '2.5.5', '2.6.3']
58
58
  rails_version:
59
59
  type: enum
60
- enum: ['4.2', '5.0', '5.1', '5.2']
60
+ enum: ['4.2', '5.0', '5.1', '5.2', '6.0']
61
61
  executor:
62
62
  name: ruby
63
63
  ruby_version: << parameters.ruby_version >>
@@ -93,10 +93,14 @@ jobs:
93
93
  - run:
94
94
  name: rake release
95
95
  command: |
96
- gem list --prerelease --all --remote imyou \
97
- | grep -E "^imyou" \
96
+ set +e
97
+ filename=$(for n in *; do printf '%s\n' "$n"; done | grep gemspec)
98
+ gem_name=`ruby -e "require 'rubygems'; spec = Gem::Specification::load('${filename}'); puts spec.name"`
99
+ gem_version=`ruby -e "require 'rubygems'; spec = Gem::Specification::load('${filename}'); puts spec.version"`
100
+ gem list --prerelease --all --remote $gem_name \
101
+ | grep -E "^${gem_name}" \
98
102
  | sed -e "s/^.*(\(.*\)).*\$/\1/" \
99
- | grep -q -v "`bundle exec ruby -e "print Imyou::VERSION"`"
103
+ | grep -q -v $gem_version
100
104
  result=$?
101
105
  if [ $result = 0 ]; then
102
106
  bundle exec rake build
@@ -111,67 +115,77 @@ workflows:
111
115
  build:
112
116
  jobs:
113
117
  - test:
114
- name: 'Ruby 2.4.5-Rails 4.2'
115
- ruby_version: '2.4.5'
118
+ name: 'Ruby 2.4.6-Rails 4.2'
119
+ ruby_version: '2.4.6'
116
120
  rails_version: '4.2'
117
121
  - test:
118
122
  name: 'Ruby 2.5.5-Rails 4.2'
119
123
  ruby_version: '2.5.5'
120
124
  rails_version: '4.2'
121
125
  - test:
122
- name: 'Ruby 2.6.2-Rails 4.2'
123
- ruby_version: '2.6.2'
126
+ name: 'Ruby 2.6.3-Rails 4.2'
127
+ ruby_version: '2.6.3'
124
128
  rails_version: '4.2'
125
129
  - test:
126
- name: 'Ruby 2.4.5-Rails 5.0'
127
- ruby_version: '2.4.5'
130
+ name: 'Ruby 2.4.6-Rails 5.0'
131
+ ruby_version: '2.4.6'
128
132
  rails_version: '5.0'
129
133
  - test:
130
134
  name: 'Ruby 2.5.5-Rails 5.0'
131
135
  ruby_version: '2.5.5'
132
136
  rails_version: '5.0'
133
137
  - test:
134
- name: 'Ruby 2.6.2-Rails 5.0'
135
- ruby_version: '2.6.2'
138
+ name: 'Ruby 2.6.3-Rails 5.0'
139
+ ruby_version: '2.6.3'
136
140
  rails_version: '5.0'
137
141
  - test:
138
- name: 'Ruby 2.4.5-Rails 5.1'
139
- ruby_version: '2.4.5'
142
+ name: 'Ruby 2.4.6-Rails 5.1'
143
+ ruby_version: '2.4.6'
140
144
  rails_version: '5.1'
141
145
  - test:
142
146
  name: 'Ruby 2.5.5-Rails 5.1'
143
147
  ruby_version: '2.5.5'
144
148
  rails_version: '5.1'
145
149
  - test:
146
- name: 'Ruby 2.6.2-Rails 5.1'
147
- ruby_version: '2.6.2'
150
+ name: 'Ruby 2.6.3-Rails 5.1'
151
+ ruby_version: '2.6.3'
148
152
  rails_version: '5.1'
149
153
  - test:
150
- name: 'Ruby 2.4.5-Rails 5.2'
151
- ruby_version: '2.4.5'
154
+ name: 'Ruby 2.4.6-Rails 5.2'
155
+ ruby_version: '2.4.6'
152
156
  rails_version: '5.2'
153
157
  - test:
154
158
  name: 'Ruby 2.5.5-Rails 5.2'
155
159
  ruby_version: '2.5.5'
156
160
  rails_version: '5.2'
157
161
  - test:
158
- name: 'Ruby 2.6.2-Rails 5.2'
159
- ruby_version: '2.6.2'
162
+ name: 'Ruby 2.6.3-Rails 5.2'
163
+ ruby_version: '2.6.3'
160
164
  rails_version: '5.2'
165
+ - test:
166
+ name: 'Ruby 2.5.5-Rails 6.0'
167
+ ruby_version: '2.5.5'
168
+ rails_version: '6.0'
169
+ - test:
170
+ name: 'Ruby 2.6.3-Rails 6.0'
171
+ ruby_version: '2.6.3'
172
+ rails_version: '6.0'
161
173
  - release:
162
174
  requires:
163
- - 'Ruby 2.4.5-Rails 4.2'
175
+ - 'Ruby 2.4.6-Rails 4.2'
164
176
  - 'Ruby 2.5.5-Rails 4.2'
165
- - 'Ruby 2.6.2-Rails 4.2'
166
- - 'Ruby 2.4.5-Rails 5.0'
177
+ - 'Ruby 2.6.3-Rails 4.2'
178
+ - 'Ruby 2.4.6-Rails 5.0'
167
179
  - 'Ruby 2.5.5-Rails 5.0'
168
- - 'Ruby 2.6.2-Rails 5.0'
169
- - 'Ruby 2.4.5-Rails 5.1'
180
+ - 'Ruby 2.6.3-Rails 5.0'
181
+ - 'Ruby 2.4.6-Rails 5.1'
170
182
  - 'Ruby 2.5.5-Rails 5.1'
171
- - 'Ruby 2.6.2-Rails 5.1'
172
- - 'Ruby 2.4.5-Rails 5.2'
183
+ - 'Ruby 2.6.3-Rails 5.1'
184
+ - 'Ruby 2.4.6-Rails 5.2'
173
185
  - 'Ruby 2.5.5-Rails 5.2'
174
- - 'Ruby 2.6.2-Rails 5.2'
186
+ - 'Ruby 2.6.3-Rails 5.2'
187
+ - 'Ruby 2.5.5-Rails 6.0'
188
+ - 'Ruby 2.6.3-Rails 6.0'
175
189
  filters:
176
190
  branches:
177
191
  only: master
data/README.md CHANGED
@@ -8,7 +8,7 @@ Imyou mean nickname in japanease.
8
8
 
9
9
  ## Installation
10
10
 
11
- ### Rails 4.x and 5.x
11
+ ### Rails 4.x, 5.x and 6.x
12
12
 
13
13
  Add this line to your application's Gemfile:
14
14
 
@@ -0,0 +1,6 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gem 'pg', '~> 1.1.3'
4
+ gem 'rails', '~> 6.0.0'
5
+
6
+ gemspec path: '../'
@@ -81,6 +81,9 @@ module Imyou
81
81
  records
82
82
  end
83
83
 
84
+ alias_method :save_with_nicknames, :save
85
+ alias_method :save_with_nicknames!, :save!
86
+
84
87
  def self.has_imyou?
85
88
  true
86
89
  end
@@ -1,3 +1,3 @@
1
1
  module Imyou
2
- VERSION = "1.3.1"
2
+ VERSION = "1.4.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: imyou
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.1
4
+ version: 1.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - patorash
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-03-27 00:00:00.000000000 Z
11
+ date: 2019-08-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -129,6 +129,7 @@ files:
129
129
  - gemfiles/rails_5.0.gemfile
130
130
  - gemfiles/rails_5.1.gemfile
131
131
  - gemfiles/rails_5.2.gemfile
132
+ - gemfiles/rails_6.0.gemfile
132
133
  - imyou.gemspec
133
134
  - lib/generators/imyou/migration/migration_generator.rb
134
135
  - lib/generators/imyou/migration/templates/active_record/migration.rb