activerecord-virtual_attributes 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +17 -0
- data/.rspec +3 -0
- data/.travis.yml +27 -0
- data/Appraisals +18 -0
- data/CHANGELOG.md +20 -0
- data/Gemfile +10 -0
- data/LICENSE.txt +202 -0
- data/README.md +46 -0
- data/Rakefile +8 -0
- data/activerecord-virtual_attributes.gemspec +33 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/gemfiles/virtual_attributes_50.gemfile +10 -0
- data/gemfiles/virtual_attributes_51.gemfile +10 -0
- data/gemfiles/virtual_attributes_52.gemfile +10 -0
- data/init.rb +1 -0
- data/lib/active_record-virtual_attributes.rb +1 -0
- data/lib/active_record/virtual_attributes.rb +143 -0
- data/lib/active_record/virtual_attributes/arel_groups.rb +14 -0
- data/lib/active_record/virtual_attributes/rspec.rb +1 -0
- data/lib/active_record/virtual_attributes/rspec/have_virtual_attribute.rb +44 -0
- data/lib/active_record/virtual_attributes/version.rb +5 -0
- data/lib/active_record/virtual_attributes/virtual_arel.rb +48 -0
- data/lib/active_record/virtual_attributes/virtual_delegates.rb +276 -0
- data/lib/active_record/virtual_attributes/virtual_fields.rb +234 -0
- data/lib/active_record/virtual_attributes/virtual_includes.rb +33 -0
- data/lib/active_record/virtual_attributes/virtual_reflections.rb +114 -0
- data/lib/active_record/virtual_attributes/virtual_total.rb +134 -0
- data/lib/activerecord-virtual_attributes.rb +1 -0
- metadata +132 -0
@@ -0,0 +1 @@
|
|
1
|
+
require "active_record/virtual_attributes"
|
metadata
ADDED
@@ -0,0 +1,132 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: activerecord-virtual_attributes
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Keenan Brock
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2019-03-05 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: activerecord
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '5.0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '5.0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: appraisal
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
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'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rake
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '10.0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '10.0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rspec
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '3.0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '3.0'
|
69
|
+
description: Define attributes in arel
|
70
|
+
email:
|
71
|
+
- keenan@thebrocks.net
|
72
|
+
executables: []
|
73
|
+
extensions: []
|
74
|
+
extra_rdoc_files: []
|
75
|
+
files:
|
76
|
+
- ".gitignore"
|
77
|
+
- ".rspec"
|
78
|
+
- ".travis.yml"
|
79
|
+
- Appraisals
|
80
|
+
- CHANGELOG.md
|
81
|
+
- Gemfile
|
82
|
+
- LICENSE.txt
|
83
|
+
- README.md
|
84
|
+
- Rakefile
|
85
|
+
- activerecord-virtual_attributes.gemspec
|
86
|
+
- bin/console
|
87
|
+
- bin/setup
|
88
|
+
- gemfiles/virtual_attributes_50.gemfile
|
89
|
+
- gemfiles/virtual_attributes_51.gemfile
|
90
|
+
- gemfiles/virtual_attributes_52.gemfile
|
91
|
+
- init.rb
|
92
|
+
- lib/active_record-virtual_attributes.rb
|
93
|
+
- lib/active_record/virtual_attributes.rb
|
94
|
+
- lib/active_record/virtual_attributes/arel_groups.rb
|
95
|
+
- lib/active_record/virtual_attributes/rspec.rb
|
96
|
+
- lib/active_record/virtual_attributes/rspec/have_virtual_attribute.rb
|
97
|
+
- lib/active_record/virtual_attributes/version.rb
|
98
|
+
- lib/active_record/virtual_attributes/virtual_arel.rb
|
99
|
+
- lib/active_record/virtual_attributes/virtual_delegates.rb
|
100
|
+
- lib/active_record/virtual_attributes/virtual_fields.rb
|
101
|
+
- lib/active_record/virtual_attributes/virtual_includes.rb
|
102
|
+
- lib/active_record/virtual_attributes/virtual_reflections.rb
|
103
|
+
- lib/active_record/virtual_attributes/virtual_total.rb
|
104
|
+
- lib/activerecord-virtual_attributes.rb
|
105
|
+
homepage: https://github.com/ManageIQ/activerecord-virtual_attributes
|
106
|
+
licenses:
|
107
|
+
- Apache 2.0
|
108
|
+
metadata:
|
109
|
+
homepage_uri: https://github.com/ManageIQ/activerecord-virtual_attributes
|
110
|
+
source_code_uri: https://github.com/ManageIQ/activerecord-virtual_attributes
|
111
|
+
changelog_uri: https://github.com/ManageIQ/activerecord-virtual_attributes/blob/master/CHANGELOG.md
|
112
|
+
post_install_message:
|
113
|
+
rdoc_options: []
|
114
|
+
require_paths:
|
115
|
+
- lib
|
116
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
117
|
+
requirements:
|
118
|
+
- - ">="
|
119
|
+
- !ruby/object:Gem::Version
|
120
|
+
version: '0'
|
121
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
122
|
+
requirements:
|
123
|
+
- - ">="
|
124
|
+
- !ruby/object:Gem::Version
|
125
|
+
version: '0'
|
126
|
+
requirements: []
|
127
|
+
rubyforge_project:
|
128
|
+
rubygems_version: 2.7.6
|
129
|
+
signing_key:
|
130
|
+
specification_version: 4
|
131
|
+
summary: Access non-sql attributes from sql
|
132
|
+
test_files: []
|