activerecord-virtual_attributes 2.0.0 → 6.1.1

Sign up to get free protection for your applications and to get access to all the features.
metadata CHANGED
@@ -1,31 +1,45 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activerecord-virtual_attributes
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 6.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Keenan Brock
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-05-22 00:00:00.000000000 Z
11
+ date: 2022-08-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '5.0'
19
+ version: 6.1.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: 6.1.0
27
+ - !ruby/object:Gem::Dependency
28
+ name: byebug
29
+ requirement: !ruby/object:Gem::Requirement
23
30
  requirements:
24
31
  - - ">="
25
32
  - !ruby/object:Gem::Version
26
- version: '5.0'
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
27
41
  - !ruby/object:Gem::Dependency
28
- name: appraisal
42
+ name: db-query-matchers
29
43
  requirement: !ruby/object:Gem::Requirement
30
44
  requirements:
31
45
  - - ">="
@@ -39,7 +53,7 @@ dependencies:
39
53
  - !ruby/object:Gem::Version
40
54
  version: '0'
41
55
  - !ruby/object:Gem::Dependency
42
- name: byebug
56
+ name: manageiq-style
43
57
  requirement: !ruby/object:Gem::Requirement
44
58
  requirements:
45
59
  - - ">="
@@ -58,14 +72,14 @@ dependencies:
58
72
  requirements:
59
73
  - - "~>"
60
74
  - !ruby/object:Gem::Version
61
- version: '10.0'
75
+ version: '13.0'
62
76
  type: :development
63
77
  prerelease: false
64
78
  version_requirements: !ruby/object:Gem::Requirement
65
79
  requirements:
66
80
  - - "~>"
67
81
  - !ruby/object:Gem::Version
68
- version: '10.0'
82
+ version: '13.0'
69
83
  - !ruby/object:Gem::Dependency
70
84
  name: rspec
71
85
  requirement: !ruby/object:Gem::Requirement
@@ -86,14 +100,14 @@ dependencies:
86
100
  requirements:
87
101
  - - ">="
88
102
  - !ruby/object:Gem::Version
89
- version: '0'
103
+ version: 0.21.2
90
104
  type: :development
91
105
  prerelease: false
92
106
  version_requirements: !ruby/object:Gem::Requirement
93
107
  requirements:
94
108
  - - ">="
95
109
  - !ruby/object:Gem::Version
96
- version: '0'
110
+ version: 0.21.2
97
111
  description: Define attributes in arel
98
112
  email:
99
113
  - keenan@thebrocks.net
@@ -102,14 +116,14 @@ extensions: []
102
116
  extra_rdoc_files: []
103
117
  files:
104
118
  - ".codeclimate.yml"
119
+ - ".github/workflows/ci.yaml"
105
120
  - ".gitignore"
106
121
  - ".rspec"
107
122
  - ".rubocop.yml"
108
123
  - ".rubocop_cc.yml"
109
124
  - ".rubocop_local.yml"
110
- - ".travis.yml"
125
+ - ".whitesource"
111
126
  - ".yamllint"
112
- - Appraisals
113
127
  - CHANGELOG.md
114
128
  - Gemfile
115
129
  - LICENSE.txt
@@ -118,14 +132,9 @@ files:
118
132
  - activerecord-virtual_attributes.gemspec
119
133
  - bin/console
120
134
  - bin/setup
121
- - gemfiles/gemfile_50.gemfile
122
- - gemfiles/gemfile_51.gemfile
123
- - gemfiles/gemfile_52.gemfile
124
- - gemfiles/gemfile_60.gemfile
125
135
  - init.rb
126
136
  - lib/active_record-virtual_attributes.rb
127
137
  - lib/active_record/virtual_attributes.rb
128
- - lib/active_record/virtual_attributes/arel_groups.rb
129
138
  - lib/active_record/virtual_attributes/rspec.rb
130
139
  - lib/active_record/virtual_attributes/rspec/have_virtual_attribute.rb
131
140
  - lib/active_record/virtual_attributes/version.rb
@@ -143,7 +152,7 @@ metadata:
143
152
  homepage_uri: https://github.com/ManageIQ/activerecord-virtual_attributes
144
153
  source_code_uri: https://github.com/ManageIQ/activerecord-virtual_attributes
145
154
  changelog_uri: https://github.com/ManageIQ/activerecord-virtual_attributes/blob/master/CHANGELOG.md
146
- post_install_message:
155
+ post_install_message:
147
156
  rdoc_options: []
148
157
  require_paths:
149
158
  - lib
@@ -158,9 +167,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
158
167
  - !ruby/object:Gem::Version
159
168
  version: '0'
160
169
  requirements: []
161
- rubyforge_project:
162
- rubygems_version: 2.7.6.2
163
- signing_key:
170
+ rubygems_version: 3.1.6
171
+ signing_key:
164
172
  specification_version: 4
165
173
  summary: Access non-sql attributes from sql
166
174
  test_files: []
data/.travis.yml DELETED
@@ -1,30 +0,0 @@
1
- ---
2
- sudo: false
3
- language: ruby
4
- cache: bundler
5
- rvm:
6
- - 2.5.6
7
- - 2.6.4
8
- services:
9
- - mysql
10
- - postgresql
11
- env:
12
- - DB=mysql2
13
- - DB=pg
14
- - DB=sqlite3
15
- gemfile:
16
- - gemfiles/gemfile_50.gemfile
17
- - gemfiles/gemfile_51.gemfile
18
- - gemfiles/gemfile_52.gemfile
19
- - gemfiles/gemfile_60.gemfile
20
- before_install:
21
- - 'echo ''gem: --no-ri --no-rdoc --no-document'' > ~/.gemrc'
22
- before_script:
23
- - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64
24
- > ./cc-test-reporter
25
- - chmod +x ./cc-test-reporter
26
- - "./cc-test-reporter before-build"
27
- - sh -c "if [ '$DB' = 'pg' ]; then psql -c 'DROP DATABASE IF EXISTS virtual_attributes;' ; psql -c ' CREATE DATABASE virtual_attributes;' ; fi"
28
- - sh -c "if [ '$DB' = 'mysql2' ]; then mysql -e 'DROP DATABASE IF EXISTS virtual_attributes; CREATE DATABASE virtual_attributes;'; fi"
29
- after_script:
30
- - "./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT"
data/Appraisals DELETED
@@ -1,23 +0,0 @@
1
- %w(5.0.7 5.1.7 5.2.3 6.0.0).each do |ar_version|
2
- appraise "gemfile-#{ar_version.split('.').first(2).join}" do
3
- gem "activerecord", "~> #{ar_version}"
4
-
5
- if ar_version >= "5.0"
6
- gem "mysql2"
7
- elsif ar_version >= "4.2"
8
- gem "mysql2", "~> 0.4.0"
9
- end
10
-
11
- if ar_version >= "5.0"
12
- gem "pg"
13
- else
14
- gem "pg", "0.18.4"
15
- end
16
-
17
- if ar_version >= "5.2"
18
- gem "sqlite3"
19
- else
20
- gem "sqlite3", "~> 1.3.13"
21
- end
22
- end
23
- end
@@ -1,10 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "https://rubygems.org"
4
-
5
- gem "activerecord", "~> 5.0.7"
6
- gem "mysql2"
7
- gem "pg"
8
- gem "sqlite3", "~> 1.3.13"
9
-
10
- gemspec path: "../"
@@ -1,10 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "https://rubygems.org"
4
-
5
- gem "activerecord", "~> 5.1.7"
6
- gem "mysql2"
7
- gem "pg"
8
- gem "sqlite3", "~> 1.3.13"
9
-
10
- gemspec path: "../"
@@ -1,10 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "https://rubygems.org"
4
-
5
- gem "activerecord", "~> 5.2.3"
6
- gem "mysql2"
7
- gem "pg"
8
- gem "sqlite3"
9
-
10
- gemspec path: "../"
@@ -1,10 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "https://rubygems.org"
4
-
5
- gem "activerecord", "~> 6.0.0"
6
- gem "mysql2"
7
- gem "pg"
8
- gem "sqlite3"
9
-
10
- gemspec path: "../"
@@ -1,15 +0,0 @@
1
- # this is from https://github.com/rails/arel/pull/435
2
- # this allows sorting and where clauses to work with virtual_attribute columns
3
- # no longer needed for rails 6.0 and up (change was merged)
4
- if ActiveRecord.version.to_s < "6.0" && defined?(Arel::Nodes::Grouping)
5
- module Arel
6
- module Nodes
7
- class Grouping
8
- include Arel::Expressions
9
- include Arel::AliasPredication
10
- include Arel::OrderPredications
11
- include Arel::Math
12
- end
13
- end
14
- end
15
- end