imyou 1.1.3 → 1.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.circleci/config.yml +183 -0
- data/.gitignore +7 -0
- data/README.md +3 -3
- data/gemfiles/{rails_5_0.gemfile → rails_5.0.gemfile} +0 -0
- data/gemfiles/{rails_5_1.gemfile → rails_5.1.gemfile} +0 -0
- data/gemfiles/{rails_5_2.gemfile → rails_5.2.gemfile} +0 -0
- data/gemfiles/{rails_4_2.gemfile → rails_6.0.gemfile} +2 -2
- data/imyou.gemspec +3 -2
- data/lib/imyou/models.rb +63 -19
- data/lib/imyou/nickname.rb +1 -3
- data/lib/imyou/version.rb +1 -1
- metadata +26 -14
- data/.travis.yml +0 -17
- data/Gemfile.lock +0 -156
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 21059c6cb4a6fe5c70f2791737d3e6185a49451a347eae8ff433d7d03b02433f
|
4
|
+
data.tar.gz: 7b48966624d49bd7869a5fee712826e4438fc4f5e2e7e1c1af83412ec52c8888
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e63922d83266f1c5f095486f7fe01c4e5b4dc824a28c06a14c9561b4970234016ebfd2b8387ca7da6e620d92327719912e1c5e0f297f921018b40c519472ba97
|
7
|
+
data.tar.gz: 6ade06e0df97fdb48b2da7df2c1ce7a2a68d5dd2f50786b2d0b555eecf64b27338d67d3954e3b0bb6b4cf88303584ce982db26d2cee166e8919c2e978420c586
|
@@ -0,0 +1,183 @@
|
|
1
|
+
version: 2.1
|
2
|
+
|
3
|
+
executors:
|
4
|
+
ruby:
|
5
|
+
parameters:
|
6
|
+
ruby_version:
|
7
|
+
default: '2.7.1'
|
8
|
+
type: enum
|
9
|
+
enum: ['2.5.8', '2.6.6', '2.7.1']
|
10
|
+
working_directory: ~/repo
|
11
|
+
docker:
|
12
|
+
- image: circleci/ruby:<< parameters.ruby_version >>-node-browsers
|
13
|
+
- image: circleci/postgres:11.2-alpine-postgis-ram
|
14
|
+
|
15
|
+
commands:
|
16
|
+
rspec:
|
17
|
+
steps:
|
18
|
+
- run:
|
19
|
+
name: run tests
|
20
|
+
command: |
|
21
|
+
mkdir /tmp/test-results
|
22
|
+
TEST_FILES="$(circleci tests glob "spec/**/*_spec.rb" | \
|
23
|
+
circleci tests split --split-by=timings)"
|
24
|
+
|
25
|
+
bundle exec rspec \
|
26
|
+
--format progress \
|
27
|
+
--format RspecJunitFormatter \
|
28
|
+
--out /tmp/test-results/rspec.xml \
|
29
|
+
--format progress \
|
30
|
+
$TEST_FILES
|
31
|
+
run_test:
|
32
|
+
parameters:
|
33
|
+
rails_version:
|
34
|
+
default: '6.0'
|
35
|
+
type: enum
|
36
|
+
enum: ['5.0', '5.1', '5.2', '6.0']
|
37
|
+
steps:
|
38
|
+
- checkout
|
39
|
+
- run: gem install bundler --version=2.1.4 -N
|
40
|
+
- run:
|
41
|
+
name: bundle install
|
42
|
+
command: |
|
43
|
+
export BUNDLE_GEMFILE=$PWD/gemfiles/rails_<< parameters.rails_version >>.gemfile
|
44
|
+
bundle check || bundle install --jobs=4 --retry=3
|
45
|
+
- rspec
|
46
|
+
# collect reports
|
47
|
+
- store_test_results:
|
48
|
+
path: /tmp/test-results
|
49
|
+
- store_artifacts:
|
50
|
+
path: /tmp/test-results
|
51
|
+
destination: test-results
|
52
|
+
|
53
|
+
jobs:
|
54
|
+
test:
|
55
|
+
parameters:
|
56
|
+
ruby_version:
|
57
|
+
type: enum
|
58
|
+
enum: ['2.5.8', '2.6.6', '2.7.1']
|
59
|
+
rails_version:
|
60
|
+
type: enum
|
61
|
+
enum: ['5.0', '5.1', '5.2', '6.0']
|
62
|
+
executor:
|
63
|
+
name: ruby
|
64
|
+
ruby_version: << parameters.ruby_version >>
|
65
|
+
parallelism: 1
|
66
|
+
steps:
|
67
|
+
- run_test:
|
68
|
+
rails_version: << parameters.rails_version >>
|
69
|
+
|
70
|
+
release:
|
71
|
+
executor:
|
72
|
+
name: ruby
|
73
|
+
parallelism: 1
|
74
|
+
steps:
|
75
|
+
- checkout
|
76
|
+
- add_ssh_keys:
|
77
|
+
fingerprints:
|
78
|
+
- "e7:e8:17:c5:03:05:fd:0c:0e:9b:3b:d3:90:53:c6:5c"
|
79
|
+
- run: gem install bundler --version=2.1.4 -N
|
80
|
+
- run:
|
81
|
+
name: bundle install
|
82
|
+
command: bundle check || bundle install --jobs=4 --retry=3
|
83
|
+
- run:
|
84
|
+
name: RubyGems.org | Set credential
|
85
|
+
command: |
|
86
|
+
mkdir -p ~/.gem
|
87
|
+
echo ":rubygems_api_key: $RUBYGEMS_API_KEY" > ~/.gem/credentials
|
88
|
+
chmod 0600 ~/.gem/credentials
|
89
|
+
- run:
|
90
|
+
name: Setup git
|
91
|
+
command: |
|
92
|
+
git config push.default current
|
93
|
+
git config user.email "chariderpato@gmail.com"
|
94
|
+
git config user.name "patorash"
|
95
|
+
- run:
|
96
|
+
name: rake release
|
97
|
+
command: |
|
98
|
+
set +e
|
99
|
+
filename=$(for n in *; do printf '%s\n' "$n"; done | grep gemspec)
|
100
|
+
gem_name=`ruby -e "require 'rubygems'; spec = Gem::Specification::load('${filename}'); puts spec.name"`
|
101
|
+
gem_version=`ruby -e "require 'rubygems'; spec = Gem::Specification::load('${filename}'); puts spec.version"`
|
102
|
+
gem list --prerelease --all --remote $gem_name \
|
103
|
+
| grep -E "^${gem_name}" \
|
104
|
+
| sed -e "s/^.*(\(.*\)).*\$/\1/" \
|
105
|
+
| grep -q -v $gem_version
|
106
|
+
result=$?
|
107
|
+
if [ $result = 0 ]; then
|
108
|
+
bundle exec rake build
|
109
|
+
bundle exec rake release
|
110
|
+
fi
|
111
|
+
- run:
|
112
|
+
name: Delete credentials
|
113
|
+
command: |
|
114
|
+
shred -u ~/.gem/credentials
|
115
|
+
|
116
|
+
workflows:
|
117
|
+
build:
|
118
|
+
jobs:
|
119
|
+
- test:
|
120
|
+
name: 'Ruby 2.5.8-Rails 5.0'
|
121
|
+
ruby_version: '2.5.8'
|
122
|
+
rails_version: '5.0'
|
123
|
+
- test:
|
124
|
+
name: 'Ruby 2.6.6-Rails 5.0'
|
125
|
+
ruby_version: '2.6.6'
|
126
|
+
rails_version: '5.0'
|
127
|
+
- test:
|
128
|
+
name: 'Ruby 2.7.1-Rails 5.0'
|
129
|
+
ruby_version: '2.7.1'
|
130
|
+
rails_version: '5.0'
|
131
|
+
- test:
|
132
|
+
name: 'Ruby 2.5.8-Rails 5.1'
|
133
|
+
ruby_version: '2.5.8'
|
134
|
+
rails_version: '5.1'
|
135
|
+
- test:
|
136
|
+
name: 'Ruby 2.6.6-Rails 5.1'
|
137
|
+
ruby_version: '2.6.6'
|
138
|
+
rails_version: '5.1'
|
139
|
+
- test:
|
140
|
+
name: 'Ruby 2.7.1-Rails 5.1'
|
141
|
+
ruby_version: '2.7.1'
|
142
|
+
rails_version: '5.1'
|
143
|
+
- test:
|
144
|
+
name: 'Ruby 2.5.8-Rails 5.2'
|
145
|
+
ruby_version: '2.5.8'
|
146
|
+
rails_version: '5.2'
|
147
|
+
- test:
|
148
|
+
name: 'Ruby 2.6.6-Rails 5.2'
|
149
|
+
ruby_version: '2.6.6'
|
150
|
+
rails_version: '5.2'
|
151
|
+
- test:
|
152
|
+
name: 'Ruby 2.7.1-Rails 5.2'
|
153
|
+
ruby_version: '2.7.1'
|
154
|
+
rails_version: '5.2'
|
155
|
+
- test:
|
156
|
+
name: 'Ruby 2.5.8-Rails 6.0'
|
157
|
+
ruby_version: '2.5.8'
|
158
|
+
rails_version: '6.0'
|
159
|
+
- test:
|
160
|
+
name: 'Ruby 2.6.6-Rails 6.0'
|
161
|
+
ruby_version: '2.6.6'
|
162
|
+
rails_version: '6.0'
|
163
|
+
- test:
|
164
|
+
name: 'Ruby 2.7.1-Rails 6.0'
|
165
|
+
ruby_version: '2.7.1'
|
166
|
+
rails_version: '6.0'
|
167
|
+
- release:
|
168
|
+
requires:
|
169
|
+
- 'Ruby 2.5.8-Rails 5.0'
|
170
|
+
- 'Ruby 2.6.6-Rails 5.0'
|
171
|
+
- 'Ruby 2.7.1-Rails 5.0'
|
172
|
+
- 'Ruby 2.5.8-Rails 5.1'
|
173
|
+
- 'Ruby 2.6.6-Rails 5.1'
|
174
|
+
- 'Ruby 2.7.1-Rails 5.1'
|
175
|
+
- 'Ruby 2.5.8-Rails 5.2'
|
176
|
+
- 'Ruby 2.6.6-Rails 5.2'
|
177
|
+
- 'Ruby 2.7.1-Rails 5.2'
|
178
|
+
- 'Ruby 2.5.8-Rails 6.0'
|
179
|
+
- 'Ruby 2.6.6-Rails 6.0'
|
180
|
+
- 'Ruby 2.7.1-Rails 6.0'
|
181
|
+
filters:
|
182
|
+
branches:
|
183
|
+
only: master
|
data/.gitignore
CHANGED
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Imyou
|
2
2
|
|
3
|
-
[![
|
3
|
+
[![CircleCI](https://circleci.com/gh/patorash/imyou.svg?style=svg)](https://circleci.com/gh/patorash/imyou)
|
4
4
|
|
5
5
|
Imyou has feature of attaching popular name to ActiveRecord model.
|
6
6
|
|
@@ -8,7 +8,7 @@ Imyou mean nickname in japanease.
|
|
8
8
|
|
9
9
|
## Installation
|
10
10
|
|
11
|
-
### Rails 4.x and
|
11
|
+
### Rails 4.x, 5.x and 6.x
|
12
12
|
|
13
13
|
Add this line to your application's Gemfile:
|
14
14
|
|
@@ -60,7 +60,7 @@ end
|
|
60
60
|
@book.nicknames = %w(red green blue)
|
61
61
|
@book.nicknames # => ['red', 'green', 'blue']
|
62
62
|
|
63
|
-
#
|
63
|
+
# preload
|
64
64
|
User.with_nicknames
|
65
65
|
|
66
66
|
# Search users by nickname.
|
File without changes
|
File without changes
|
File without changes
|
data/imyou.gemspec
CHANGED
@@ -24,10 +24,11 @@ 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_development_dependency "bundler", "~> 1
|
28
|
-
spec.add_development_dependency "rake", "~>
|
27
|
+
spec.add_development_dependency "bundler", "~> 2.1"
|
28
|
+
spec.add_development_dependency "rake", "~> 13.0"
|
29
29
|
spec.add_development_dependency "rspec", "~> 3.0"
|
30
30
|
spec.add_development_dependency 'pry', '~> 0'
|
31
31
|
spec.add_development_dependency 'database_cleaner', '~> 1.7'
|
32
32
|
spec.add_development_dependency 'combustion', '~> 1.0'
|
33
|
+
spec.add_development_dependency 'rspec_junit_formatter', '~> 0.4.1'
|
33
34
|
end
|
data/lib/imyou/models.rb
CHANGED
@@ -7,24 +7,37 @@ module Imyou
|
|
7
7
|
def has_imyou(name_column=nil)
|
8
8
|
class_eval do
|
9
9
|
|
10
|
-
has_many :imyou_nicknames, class_name: 'Imyou::Nickname', as: :model, dependent: :destroy
|
11
|
-
|
10
|
+
has_many :imyou_nicknames, -> { order(id: :asc) }, class_name: 'Imyou::Nickname', as: :model, dependent: :destroy
|
11
|
+
|
12
|
+
accepts_nested_attributes_for :imyou_nicknames,
|
13
|
+
allow_destroy: true,
|
14
|
+
reject_if: ->(attributes) { attributes['name'].blank? }
|
15
|
+
|
16
|
+
scope :with_nicknames, -> { preload(:imyou_nicknames) }
|
12
17
|
|
13
18
|
scope :match_by_nickname, ->(nickname, with_name_column: true) do
|
14
19
|
if Gem::Version.new(ActiveRecord.version) >= Gem::Version.new(5)
|
15
|
-
records = self.
|
20
|
+
records = self.left_outer_joins(:imyou_nicknames).where(Imyou::Nickname.arel_table[:name].eq(nickname))
|
16
21
|
unless name_column.nil? || with_name_column == false
|
17
|
-
records.or!(self.
|
22
|
+
records.or!(self.left_outer_joins(:imyou_nicknames).where(name_column => nickname))
|
18
23
|
end
|
19
24
|
else
|
25
|
+
joined_records = self.joins(<<~SQL
|
26
|
+
LEFT OUTER JOIN #{Imyou::Nickname.quoted_table_name}
|
27
|
+
ON
|
28
|
+
#{Imyou::Nickname.quoted_table_name}.#{connection.quote_column_name(:model_id)} = #{self.quoted_table_name}.#{connection.quote_column_name(:id)}
|
29
|
+
AND
|
30
|
+
#{Imyou::Nickname.quoted_table_name}.#{connection.quote_column_name(:model_type)} = #{connection.quote(self.name)}
|
31
|
+
SQL
|
32
|
+
)
|
20
33
|
arel_nickname_column = Imyou::Nickname.arel_table[:name]
|
21
34
|
records = if name_column.nil? || with_name_column == false
|
22
|
-
|
35
|
+
joined_records.where(
|
23
36
|
arel_nickname_column.eq(nickname)
|
24
37
|
)
|
25
38
|
else
|
26
39
|
arel_name_column = self.arel_table[name_column]
|
27
|
-
|
40
|
+
joined_records.where(
|
28
41
|
arel_nickname_column.eq(nickname).or(
|
29
42
|
arel_name_column.eq(nickname)
|
30
43
|
)
|
@@ -36,23 +49,31 @@ module Imyou
|
|
36
49
|
|
37
50
|
scope :partial_match_by_nickname, ->(nickname, with_name_column: true) do
|
38
51
|
if Gem::Version.new(ActiveRecord.version) >= Gem::Version.new(5)
|
39
|
-
records = self.
|
52
|
+
records = self.left_outer_joins(:imyou_nicknames).where(Imyou::Nickname.arel_table[:name].matches("%#{sanitize_sql_like(nickname)}%", '\\'))
|
40
53
|
unless name_column.nil? || with_name_column == false
|
41
|
-
records.or!(self.
|
42
|
-
self.arel_table[name_column].matches("%#{sanitize_sql_like(nickname)}%"))
|
54
|
+
records.or!(self.left_outer_joins(:imyou_nicknames).where(
|
55
|
+
self.arel_table[name_column].matches("%#{sanitize_sql_like(nickname)}%", '\\'))
|
43
56
|
)
|
44
57
|
end
|
45
58
|
else
|
59
|
+
joined_records = self.joins(<<~SQL
|
60
|
+
LEFT OUTER JOIN #{Imyou::Nickname.quoted_table_name}
|
61
|
+
ON
|
62
|
+
#{Imyou::Nickname.quoted_table_name}.#{connection.quote_column_name(:model_id)} = #{self.quoted_table_name}.#{connection.quote_column_name(:id)}
|
63
|
+
AND
|
64
|
+
#{Imyou::Nickname.quoted_table_name}.#{connection.quote_column_name(:model_type)} = #{connection.quote(self.name)}
|
65
|
+
SQL
|
66
|
+
)
|
46
67
|
arel_nickname_column = Imyou::Nickname.arel_table[:name]
|
47
68
|
records = if name_column.nil? || with_name_column == false
|
48
|
-
|
49
|
-
arel_nickname_column.matches("%#{sanitize_sql_like(nickname)}%")
|
69
|
+
joined_records.where(
|
70
|
+
arel_nickname_column.matches("%#{sanitize_sql_like(nickname)}%", '\\')
|
50
71
|
)
|
51
72
|
else
|
52
73
|
arel_name_column = self.arel_table[name_column]
|
53
|
-
|
54
|
-
arel_nickname_column.matches("%#{sanitize_sql_like(nickname)}%").or(
|
55
|
-
arel_name_column.matches("%#{sanitize_sql_like(nickname)}%")
|
74
|
+
joined_records.where(
|
75
|
+
arel_nickname_column.matches("%#{sanitize_sql_like(nickname)}%", '\\').or(
|
76
|
+
arel_name_column.matches("%#{sanitize_sql_like(nickname)}%", '\\')
|
56
77
|
)
|
57
78
|
)
|
58
79
|
end
|
@@ -60,12 +81,19 @@ module Imyou
|
|
60
81
|
records
|
61
82
|
end
|
62
83
|
|
84
|
+
alias_method :save_with_nicknames, :save
|
85
|
+
alias_method :save_with_nicknames!, :save!
|
86
|
+
|
63
87
|
def self.has_imyou?
|
64
88
|
true
|
65
89
|
end
|
66
90
|
|
67
91
|
def nicknames
|
68
|
-
|
92
|
+
if new_record?
|
93
|
+
self.imyou_nicknames.map(&:name)
|
94
|
+
else
|
95
|
+
self.imyou_nicknames.pluck(:name)
|
96
|
+
end
|
69
97
|
end
|
70
98
|
|
71
99
|
def remove_all_nicknames
|
@@ -73,16 +101,32 @@ module Imyou
|
|
73
101
|
end
|
74
102
|
|
75
103
|
def add_nickname(nickname)
|
76
|
-
|
104
|
+
if new_record?
|
105
|
+
self.imyou_nicknames.build(name: nickname)
|
106
|
+
else
|
107
|
+
self.imyou_nicknames.find_or_create_by(name: nickname)
|
108
|
+
end
|
77
109
|
end
|
78
110
|
|
79
111
|
def remove_nickname(nickname)
|
80
|
-
|
112
|
+
if new_record?
|
113
|
+
array = self.imyou_nicknames.to_a.delete_if do |imyou_nickname|
|
114
|
+
imyou_nickname.name == nickname
|
115
|
+
end
|
116
|
+
self.imyou_nicknames.replace(array)
|
117
|
+
true
|
118
|
+
else
|
119
|
+
self.imyou_nicknames.find_by(name: nickname)&.destroy!
|
120
|
+
end
|
81
121
|
end
|
82
122
|
|
83
123
|
def nicknames=(new_nicknames)
|
84
|
-
if
|
85
|
-
|
124
|
+
if new_record?
|
125
|
+
new_nicknames&.each do |new_nickname|
|
126
|
+
self.imyou_nicknames.build(name: new_nickname)
|
127
|
+
end
|
128
|
+
elsif new_nicknames.blank?
|
129
|
+
self.remove_all_nicknames
|
86
130
|
else
|
87
131
|
self.imyou_nicknames.where.not(name: new_nicknames).delete_all
|
88
132
|
new_nicknames.each do |new_nickname|
|
data/lib/imyou/nickname.rb
CHANGED
@@ -4,11 +4,9 @@ module Imyou
|
|
4
4
|
belongs_to :model, polymorphic: true
|
5
5
|
|
6
6
|
scope :by_type, -> (klass) { where(model_type: klass.name) }
|
7
|
-
scope :default_order, -> { order(
|
7
|
+
scope :default_order, -> { order(id: :asc) }
|
8
8
|
default_scope { default_order }
|
9
9
|
|
10
|
-
validates :model_id, presence: true
|
11
|
-
validates :model_type, presence: true
|
12
10
|
validates :name, presence: true
|
13
11
|
validates_uniqueness_of :name, scope: [ :model_id, :model_type ]
|
14
12
|
end
|
data/lib/imyou/version.rb
CHANGED
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.1
|
4
|
+
version: 1.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- patorash
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-04-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -16,28 +16,28 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '1
|
19
|
+
version: '2.1'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '1
|
26
|
+
version: '2.1'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '13.0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
40
|
+
version: '13.0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rspec
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -94,6 +94,20 @@ dependencies:
|
|
94
94
|
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: '1.0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: rspec_junit_formatter
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - "~>"
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: 0.4.1
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - "~>"
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: 0.4.1
|
97
111
|
description: Imyou has feature of attaching popular name to ActiveRecord model.
|
98
112
|
email:
|
99
113
|
- chariderpato@gmail.com
|
@@ -101,21 +115,20 @@ executables: []
|
|
101
115
|
extensions: []
|
102
116
|
extra_rdoc_files: []
|
103
117
|
files:
|
118
|
+
- ".circleci/config.yml"
|
104
119
|
- ".gitignore"
|
105
120
|
- ".rspec"
|
106
|
-
- ".travis.yml"
|
107
121
|
- CODE_OF_CONDUCT.md
|
108
122
|
- Gemfile
|
109
|
-
- Gemfile.lock
|
110
123
|
- LICENSE.txt
|
111
124
|
- README.md
|
112
125
|
- Rakefile
|
113
126
|
- bin/console
|
114
127
|
- bin/setup
|
115
|
-
- gemfiles/
|
116
|
-
- gemfiles/
|
117
|
-
- gemfiles/
|
118
|
-
- gemfiles/
|
128
|
+
- gemfiles/rails_5.0.gemfile
|
129
|
+
- gemfiles/rails_5.1.gemfile
|
130
|
+
- gemfiles/rails_5.2.gemfile
|
131
|
+
- gemfiles/rails_6.0.gemfile
|
119
132
|
- imyou.gemspec
|
120
133
|
- lib/generators/imyou/migration/migration_generator.rb
|
121
134
|
- lib/generators/imyou/migration/templates/active_record/migration.rb
|
@@ -142,8 +155,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
142
155
|
- !ruby/object:Gem::Version
|
143
156
|
version: '0'
|
144
157
|
requirements: []
|
145
|
-
|
146
|
-
rubygems_version: 2.7.6
|
158
|
+
rubygems_version: 3.1.2
|
147
159
|
signing_key:
|
148
160
|
specification_version: 4
|
149
161
|
summary: Imyou has feature of attaching popular name to ActiveRecord model.
|
data/.travis.yml
DELETED
@@ -1,17 +0,0 @@
|
|
1
|
-
sudo: false
|
2
|
-
language: ruby
|
3
|
-
rvm:
|
4
|
-
- 2.5.3
|
5
|
-
- 2.4.5
|
6
|
-
- 2.3.8
|
7
|
-
gemfile:
|
8
|
-
- gemfiles/rails_5_2.gemfile
|
9
|
-
- gemfiles/rails_5_1.gemfile
|
10
|
-
- gemfiles/rails_5_0.gemfile
|
11
|
-
- gemfiles/rails_4_2.gemfile
|
12
|
-
branches:
|
13
|
-
only:
|
14
|
-
- master
|
15
|
-
- travis
|
16
|
-
|
17
|
-
before_install: gem install bundler -v 1.16.2
|
data/Gemfile.lock
DELETED
@@ -1,156 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: .
|
3
|
-
specs:
|
4
|
-
imyou (1.1.3)
|
5
|
-
|
6
|
-
GEM
|
7
|
-
remote: https://rubygems.org/
|
8
|
-
specs:
|
9
|
-
actioncable (5.2.1)
|
10
|
-
actionpack (= 5.2.1)
|
11
|
-
nio4r (~> 2.0)
|
12
|
-
websocket-driver (>= 0.6.1)
|
13
|
-
actionmailer (5.2.1)
|
14
|
-
actionpack (= 5.2.1)
|
15
|
-
actionview (= 5.2.1)
|
16
|
-
activejob (= 5.2.1)
|
17
|
-
mail (~> 2.5, >= 2.5.4)
|
18
|
-
rails-dom-testing (~> 2.0)
|
19
|
-
actionpack (5.2.1)
|
20
|
-
actionview (= 5.2.1)
|
21
|
-
activesupport (= 5.2.1)
|
22
|
-
rack (~> 2.0)
|
23
|
-
rack-test (>= 0.6.3)
|
24
|
-
rails-dom-testing (~> 2.0)
|
25
|
-
rails-html-sanitizer (~> 1.0, >= 1.0.2)
|
26
|
-
actionview (5.2.1)
|
27
|
-
activesupport (= 5.2.1)
|
28
|
-
builder (~> 3.1)
|
29
|
-
erubi (~> 1.4)
|
30
|
-
rails-dom-testing (~> 2.0)
|
31
|
-
rails-html-sanitizer (~> 1.0, >= 1.0.3)
|
32
|
-
activejob (5.2.1)
|
33
|
-
activesupport (= 5.2.1)
|
34
|
-
globalid (>= 0.3.6)
|
35
|
-
activemodel (5.2.1)
|
36
|
-
activesupport (= 5.2.1)
|
37
|
-
activerecord (5.2.1)
|
38
|
-
activemodel (= 5.2.1)
|
39
|
-
activesupport (= 5.2.1)
|
40
|
-
arel (>= 9.0)
|
41
|
-
activestorage (5.2.1)
|
42
|
-
actionpack (= 5.2.1)
|
43
|
-
activerecord (= 5.2.1)
|
44
|
-
marcel (~> 0.3.1)
|
45
|
-
activesupport (5.2.1)
|
46
|
-
concurrent-ruby (~> 1.0, >= 1.0.2)
|
47
|
-
i18n (>= 0.7, < 2)
|
48
|
-
minitest (~> 5.1)
|
49
|
-
tzinfo (~> 1.1)
|
50
|
-
arel (9.0.0)
|
51
|
-
builder (3.2.3)
|
52
|
-
coderay (1.1.2)
|
53
|
-
combustion (1.0.0)
|
54
|
-
activesupport (>= 3.0.0)
|
55
|
-
railties (>= 3.0.0)
|
56
|
-
thor (>= 0.14.6)
|
57
|
-
concurrent-ruby (1.1.3)
|
58
|
-
crass (1.0.4)
|
59
|
-
database_cleaner (1.7.0)
|
60
|
-
diff-lcs (1.3)
|
61
|
-
erubi (1.7.1)
|
62
|
-
globalid (0.4.1)
|
63
|
-
activesupport (>= 4.2.0)
|
64
|
-
i18n (1.1.1)
|
65
|
-
concurrent-ruby (~> 1.0)
|
66
|
-
loofah (2.2.3)
|
67
|
-
crass (~> 1.0.2)
|
68
|
-
nokogiri (>= 1.5.9)
|
69
|
-
mail (2.7.1)
|
70
|
-
mini_mime (>= 0.1.1)
|
71
|
-
marcel (0.3.3)
|
72
|
-
mimemagic (~> 0.3.2)
|
73
|
-
method_source (0.9.2)
|
74
|
-
mimemagic (0.3.2)
|
75
|
-
mini_mime (1.0.1)
|
76
|
-
mini_portile2 (2.3.0)
|
77
|
-
minitest (5.11.3)
|
78
|
-
nio4r (2.3.1)
|
79
|
-
nokogiri (1.8.5)
|
80
|
-
mini_portile2 (~> 2.3.0)
|
81
|
-
pg (1.1.3)
|
82
|
-
pry (0.12.2)
|
83
|
-
coderay (~> 1.1.0)
|
84
|
-
method_source (~> 0.9.0)
|
85
|
-
rack (2.0.6)
|
86
|
-
rack-test (1.1.0)
|
87
|
-
rack (>= 1.0, < 3)
|
88
|
-
rails (5.2.1)
|
89
|
-
actioncable (= 5.2.1)
|
90
|
-
actionmailer (= 5.2.1)
|
91
|
-
actionpack (= 5.2.1)
|
92
|
-
actionview (= 5.2.1)
|
93
|
-
activejob (= 5.2.1)
|
94
|
-
activemodel (= 5.2.1)
|
95
|
-
activerecord (= 5.2.1)
|
96
|
-
activestorage (= 5.2.1)
|
97
|
-
activesupport (= 5.2.1)
|
98
|
-
bundler (>= 1.3.0)
|
99
|
-
railties (= 5.2.1)
|
100
|
-
sprockets-rails (>= 2.0.0)
|
101
|
-
rails-dom-testing (2.0.3)
|
102
|
-
activesupport (>= 4.2.0)
|
103
|
-
nokogiri (>= 1.6)
|
104
|
-
rails-html-sanitizer (1.0.4)
|
105
|
-
loofah (~> 2.2, >= 2.2.2)
|
106
|
-
railties (5.2.1)
|
107
|
-
actionpack (= 5.2.1)
|
108
|
-
activesupport (= 5.2.1)
|
109
|
-
method_source
|
110
|
-
rake (>= 0.8.7)
|
111
|
-
thor (>= 0.19.0, < 2.0)
|
112
|
-
rake (10.5.0)
|
113
|
-
rspec (3.8.0)
|
114
|
-
rspec-core (~> 3.8.0)
|
115
|
-
rspec-expectations (~> 3.8.0)
|
116
|
-
rspec-mocks (~> 3.8.0)
|
117
|
-
rspec-core (3.8.0)
|
118
|
-
rspec-support (~> 3.8.0)
|
119
|
-
rspec-expectations (3.8.2)
|
120
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
121
|
-
rspec-support (~> 3.8.0)
|
122
|
-
rspec-mocks (3.8.0)
|
123
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
124
|
-
rspec-support (~> 3.8.0)
|
125
|
-
rspec-support (3.8.0)
|
126
|
-
sprockets (3.7.2)
|
127
|
-
concurrent-ruby (~> 1.0)
|
128
|
-
rack (> 1, < 3)
|
129
|
-
sprockets-rails (3.2.1)
|
130
|
-
actionpack (>= 4.0)
|
131
|
-
activesupport (>= 4.0)
|
132
|
-
sprockets (>= 3.0.0)
|
133
|
-
thor (0.20.3)
|
134
|
-
thread_safe (0.3.6)
|
135
|
-
tzinfo (1.2.5)
|
136
|
-
thread_safe (~> 0.1)
|
137
|
-
websocket-driver (0.7.0)
|
138
|
-
websocket-extensions (>= 0.1.0)
|
139
|
-
websocket-extensions (0.1.3)
|
140
|
-
|
141
|
-
PLATFORMS
|
142
|
-
ruby
|
143
|
-
|
144
|
-
DEPENDENCIES
|
145
|
-
bundler (~> 1.16)
|
146
|
-
combustion (~> 1.0)
|
147
|
-
database_cleaner (~> 1.7)
|
148
|
-
imyou!
|
149
|
-
pg
|
150
|
-
pry (~> 0)
|
151
|
-
rails
|
152
|
-
rake (~> 10.0)
|
153
|
-
rspec (~> 3.0)
|
154
|
-
|
155
|
-
BUNDLED WITH
|
156
|
-
1.16.6
|