super-smart-hub 0.0.1
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 +7 -0
- data/paranoia-3.1.0/CHANGELOG.md +234 -0
- data/paranoia-3.1.0/CODE_OF_CONDUCT.md +74 -0
- data/paranoia-3.1.0/CONTRIBUTING.md +34 -0
- data/paranoia-3.1.0/Gemfile +33 -0
- data/paranoia-3.1.0/LICENSE +17 -0
- data/paranoia-3.1.0/README.md +413 -0
- data/paranoia-3.1.0/Rakefile +10 -0
- data/paranoia-3.1.0/lib/paranoia/active_record_5_2.rb +41 -0
- data/paranoia-3.1.0/lib/paranoia/rspec.rb +26 -0
- data/paranoia-3.1.0/lib/paranoia/version.rb +3 -0
- data/paranoia-3.1.0/lib/paranoia.rb +423 -0
- data/paranoia-3.1.0/paranoia.gemspec +40 -0
- data/super-smart-hub.gemspec +12 -0
- metadata +54 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: 19e0511cf785345c3508a5a24f93185c98a004090fd4390cab576dbd74fe84e7
|
|
4
|
+
data.tar.gz: 254263cc552440e27b49ea921550448f5f0f27196c35b2d0ec259a7fd27bfa87
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: 2a600b0b2fe57c4ddb3d4b982380d32ba0dff21df50841a2fe0c102529b18210ff8473f2d3373295d3e35010bd0f3f46891e56d820140669fbd15d08cd8e1132
|
|
7
|
+
data.tar.gz: 854a08bacab0451c34557117d3781d9fa9b41e83734980e3e0d5224808793a2a2723d90a697d9bda29fd797140ef31a5c697abbe7bbc1b503f109a0d61bfeb11
|
|
@@ -0,0 +1,234 @@
|
|
|
1
|
+
# paranoia Changelog
|
|
2
|
+
|
|
3
|
+
## 3.1.0 - November 7, 2025
|
|
4
|
+
|
|
5
|
+
- [#580](https://github.com/rubysherpas/paranoia/issues/580) Support Rails 8.0 and 8.1
|
|
6
|
+
- Update activerecord dependency to `'>= 7', '< 8.2'`
|
|
7
|
+
- Update minimum Ruby version to 3.1
|
|
8
|
+
- Drop support for Rails 6.x
|
|
9
|
+
- Drop support for Ruby 2.7 and 3.0
|
|
10
|
+
- Add Rails 8.0 and 8.1 to CI test matrix
|
|
11
|
+
|
|
12
|
+
## 3.0.1 - January 19, 2025
|
|
13
|
+
|
|
14
|
+
- [#566](https://github.com/rubysherpas/paranoia/pull/566) Handle #delete_all
|
|
15
|
+
- [#559](https://github.com/rubysherpas/paranoia/pull/559) Trigger an after_commit callback when restoring a record
|
|
16
|
+
- [#567](https://github.com/rubysherpas/paranoia/pull/567) Fix typo in newly added readme
|
|
17
|
+
|
|
18
|
+
## 3.0.0 - August 13, 2024
|
|
19
|
+
|
|
20
|
+
_Tagged as 3.0 as Ruby + Rails version constraints have been modernised._
|
|
21
|
+
|
|
22
|
+
- [#564](https://github.com/rubysherpas/paranoia/pull/564) Support Rails edge
|
|
23
|
+
- [#563](https://github.com/rubysherpas/paranoia/pull/563) Support Rails 7.2
|
|
24
|
+
|
|
25
|
+
## 2.6.4 - July 20, 2024
|
|
26
|
+
|
|
27
|
+
* [#554](https://github.com/rubysherpas/paranoia/pull/554) Support prebuilt counter cache association list (#554)
|
|
28
|
+
[Joé Dupuis](https://github.com/JoeDupuis)
|
|
29
|
+
* [#551](https://github.com/rubysherpas/paranoia/pull/551) Fix: restore has_one with scope (#551)
|
|
30
|
+
[Paweł Charyło](https://github.com/zygzagZ)
|
|
31
|
+
* [#555](https://github.com/rubysherpas/paranoia/pull/555) 📝 Add Yard documentation for Paranoia::Query (#555)
|
|
32
|
+
[Clément Prod'homme](https://github.com/cprodhomme)
|
|
33
|
+
|
|
34
|
+
## 2.6.3 - Oct 12, 2023
|
|
35
|
+
|
|
36
|
+
* [#548](https://github.com/rubysherpas/paranoia/pull/548) Add support for [Rails 7.1](https://github.com/rails/rails/releases/tag/v7.1.0) (#548)
|
|
37
|
+
[Indyarocks](https://github.com/indyarocks)
|
|
38
|
+
|
|
39
|
+
## 2.6.2 - Jun 6, 2023
|
|
40
|
+
|
|
41
|
+
* [#441](https://github.com/rubysherpas/paranoia/pull/441) Recursive restore with has_many/one through assocs (#441)
|
|
42
|
+
[Emil Ong](https://github.com/emilong)
|
|
43
|
+
|
|
44
|
+
## 2.6.1 - Nov 16, 2022
|
|
45
|
+
|
|
46
|
+
* [#535](https://github.com/rubysherpas/paranoia/pull/535) Allow to skip updating paranoia_destroy_attributes for records while really_destroy!
|
|
47
|
+
[Anton Bogdanov](https://github.com/kortirso)
|
|
48
|
+
|
|
49
|
+
## 2.6.0 - Mar 23, 2022
|
|
50
|
+
|
|
51
|
+
* [#512](https://github.com/rubysherpas/paranoia/pull/512) Quote table names; Mysql 8 has keywords that might match table names which cause an exception.
|
|
52
|
+
* [#476](https://github.com/rubysherpas/paranoia/pull/476) Fix syntax error in documentation.
|
|
53
|
+
* [#485](https://github.com/rubysherpas/paranoia/pull/485) Rollback transaction if destroy aborted.
|
|
54
|
+
* [#522](https://github.com/rubysherpas/paranoia/pull/522) Add failing tests for association with abort on destroy.
|
|
55
|
+
* [#513](https://github.com/rubysherpas/paranoia/pull/513) Fix create callback called on destroy.
|
|
56
|
+
|
|
57
|
+
## 2.5.3
|
|
58
|
+
|
|
59
|
+
* [#532](https://github.com/rubysherpas/paranoia/pull/532) Fix: correct bug when sentinel_value is not a timestamp
|
|
60
|
+
[Hassanin Ahmed](https://github.com/sas1ni69)
|
|
61
|
+
* [#531](https://github.com/rubysherpas/paranoia/pull/531) Added test case to reproduce bug introduce in v2.5.1
|
|
62
|
+
[Sherif Elkassaby](https://github.com/sherif-nedap)
|
|
63
|
+
* [#529](https://github.com/rubysherpas/paranoia/pull/529) Fix: Do not define a RSpec matcher when RSpec isn't present
|
|
64
|
+
[Sebastian Welther](https://github.com/swelther)
|
|
65
|
+
|
|
66
|
+
## 2.5.2
|
|
67
|
+
|
|
68
|
+
* [#526](https://github.com/rubysherpas/paranoia/pull/526) Do not include tests files in packaged gem
|
|
69
|
+
|
|
70
|
+
[Jason Fleetwood-Boldt](https://github.com/jasonfb)
|
|
71
|
+
* [#492](https://github.com/rubysherpas/paranoia/pull/492) Warn if acts_as_paranoid is called more than once on the same model
|
|
72
|
+
|
|
73
|
+
[Ignatius Reza](https://github.com/ignatiusreza)
|
|
74
|
+
|
|
75
|
+
## 2.5.1
|
|
76
|
+
|
|
77
|
+
* [#481](https://github.com/rubysherpas/paranoia/pull/481) Replaces hard coded `deleted_at` with `paranoia_column`.
|
|
78
|
+
|
|
79
|
+
[Hassanin Ahmed](https://github.com/sas1ni69)
|
|
80
|
+
|
|
81
|
+
## 2.5.0
|
|
82
|
+
|
|
83
|
+
* [#516](https://github.com/rubysherpas/paranoia/pull/516) Add support for ActiveRecord 7.0, drop support for EOL Ruby < 2.5 and Rails < 5.1
|
|
84
|
+
adding support for Rails 7
|
|
85
|
+
|
|
86
|
+
[Mathieu Jobin](https://github.com/mathieujobin)
|
|
87
|
+
* [#515](https://github.com/rubysherpas/paranoia/pull/515) Switch from Travis CI to GitHub Actions
|
|
88
|
+
|
|
89
|
+
[Shinichi Maeshima](https://github.com/willnet)
|
|
90
|
+
|
|
91
|
+
## 2.4.3
|
|
92
|
+
|
|
93
|
+
* [#503](https://github.com/rubysherpas/paranoia/pull/503) Bump activerecord dependency for Rails 6.1
|
|
94
|
+
|
|
95
|
+
[Jörg Schiller](https://github.com/joergschiller)
|
|
96
|
+
|
|
97
|
+
* [#483](https://github.com/rubysherpas/paranoia/pull/483) Update JRuby version to 9.2.8.0 + remove EOL Ruby 2.2
|
|
98
|
+
|
|
99
|
+
[Uwe Kubosch](https://github.com/donv)
|
|
100
|
+
|
|
101
|
+
* [#482](https://github.com/rubysherpas/paranoia/pull/482) Fix after_commit for Rails 6
|
|
102
|
+
|
|
103
|
+
[Ashwin Hegde](https://github.com/hashwin)
|
|
104
|
+
|
|
105
|
+
## 2.4.2
|
|
106
|
+
|
|
107
|
+
* [#470](https://github.com/rubysherpas/paranoia/pull/470) Add support for ActiveRecord 6.0
|
|
108
|
+
|
|
109
|
+
[Anton Kolodii](https://github.com/iggant), [Jared Norman](https://github.com/jarednorman)
|
|
110
|
+
|
|
111
|
+
## 2.4.1
|
|
112
|
+
|
|
113
|
+
* [#435](https://github.com/rubysherpas/paranoia/pull/435) Monkeypatch activerecord relations to work with rails 5.2.0
|
|
114
|
+
|
|
115
|
+
[Bartosz Bonisławski (@bbonislawski)](https://github.com/bbonislawski)
|
|
116
|
+
|
|
117
|
+
## 2.4.0
|
|
118
|
+
|
|
119
|
+
* [#423](https://github.com/rubysherpas/paranoia/pull/423) Add `paranoia_destroy` and `paranoia_delete` aliases
|
|
120
|
+
|
|
121
|
+
[John Hawthorn (@jhawthorn)](https://github.com/jhawthorn)
|
|
122
|
+
|
|
123
|
+
* [#408](https://github.com/rubysherpas/paranoia/pull/408) Fix instance variable `@_disable_counter_cache` not initialized warning.
|
|
124
|
+
|
|
125
|
+
[Akira Matsuda (@amatsuda)](https://github.com/amatsuda)
|
|
126
|
+
|
|
127
|
+
* [#412](https://github.com/rubysherpas/paranoia/pull/412) Fix `really_destroy!` behavior with `sentinel_value`
|
|
128
|
+
|
|
129
|
+
[Steve Rice (@steverice)](https://github.com/steverice)
|
|
130
|
+
|
|
131
|
+
## 2.3.1
|
|
132
|
+
|
|
133
|
+
* [#397](https://github.com/rubysherpas/paranoia/pull/397) Bump active record max version to support 5.1 final
|
|
134
|
+
|
|
135
|
+
## 2.3.0 (2017-04-14)
|
|
136
|
+
|
|
137
|
+
* [#393](https://github.com/rubysherpas/paranoia/pull/393) Drop support for Rails 4.1 and begin supporting Rails 5.1.
|
|
138
|
+
|
|
139
|
+
[Miklós Fazekas (@mfazekas)](https://github.com/mfazekas)
|
|
140
|
+
|
|
141
|
+
* [#391](https://github.com/rubysherpas/paranoia/pull/391) Use Contributor Covenant Version 1.4
|
|
142
|
+
|
|
143
|
+
[Ben A. Morgan (@BenMorganIO)](https://github.com/BenMorganIO)
|
|
144
|
+
|
|
145
|
+
* [#390](https://github.com/rubysherpas/paranoia/pull/390) Fix counter cache with double destroy, really_destroy, and restore
|
|
146
|
+
|
|
147
|
+
[Chris Oliver (@excid3)](https://github.com/excid3)
|
|
148
|
+
|
|
149
|
+
* [#389](https://github.com/rubysherpas/paranoia/pull/389) Added association not soft destroyed validator
|
|
150
|
+
|
|
151
|
+
_Fixes [#380](https://github.com/rubysherpas/paranoia/issues/380)_
|
|
152
|
+
|
|
153
|
+
[Edward Poot (@edwardmp)](https://github.com/edwardmp)
|
|
154
|
+
|
|
155
|
+
* [#383](https://github.com/rubysherpas/paranoia/pull/383) Add recovery window feature
|
|
156
|
+
|
|
157
|
+
_Fixes [#359](https://github.com/rubysherpas/paranoia/issues/359)_
|
|
158
|
+
|
|
159
|
+
[Andrzej Piątyszek (@konto-andrzeja)](https://github.com/konto-andrzeja)
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
## 2.2.1 (2017-02-15)
|
|
163
|
+
|
|
164
|
+
* [#371](https://github.com/rubysherpas/paranoia/pull/371) Use ActiveSupport.on_load to correctly re-open ActiveRecord::Base
|
|
165
|
+
|
|
166
|
+
_Fixes [#335](https://github.com/rubysherpas/paranoia/issues/335) and [#381](https://github.com/rubysherpas/paranoia/issues/381)._
|
|
167
|
+
|
|
168
|
+
[Iaan Krynauw (@iaankrynauw)](https://github.com/iaankrynauw)
|
|
169
|
+
|
|
170
|
+
* [#377](https://github.com/rubysherpas/paranoia/pull/377) Touch record on paranoia-destroy.
|
|
171
|
+
|
|
172
|
+
_Fixes [#296](https://github.com/rubysherpas/paranoia/issues/296)._
|
|
173
|
+
|
|
174
|
+
[René (@rbr)](https://github.com/rbr)
|
|
175
|
+
|
|
176
|
+
* [#379](https://github.com/rubysherpas/paranoia/pull/379) Fixes a problem of ambiguous table names when using only_deleted method.
|
|
177
|
+
|
|
178
|
+
_Fixes [#26](https://github.com/rubysherpas/paranoia/issues/26) and [#27](https://github.com/rubysherpas/paranoia/pull/27)._
|
|
179
|
+
|
|
180
|
+
[Thomas Romera (@Erowlin)](https://github.com/Erowlin)
|
|
181
|
+
|
|
182
|
+
## 2.2.0 (2016-10-21)
|
|
183
|
+
|
|
184
|
+
* Ruby 2.0 or greater is required
|
|
185
|
+
* Rails 5.0.0.beta1.1 support [@pigeonworks](https://github.com/pigeonworks) [@halostatue](https://github.com/halostatue) and [@gagalago](https://github.com/gagalago)
|
|
186
|
+
* Previously `#really_destroyed?` may have been defined on non-paranoid models, it is now only available on paranoid models, use regular `#destroyed?` instead.
|
|
187
|
+
|
|
188
|
+
## 2.1.5 (2016-01-06)
|
|
189
|
+
|
|
190
|
+
* Ruby 2.3 support
|
|
191
|
+
|
|
192
|
+
## 2.1.4
|
|
193
|
+
|
|
194
|
+
## 2.1.3
|
|
195
|
+
|
|
196
|
+
## 2.1.2
|
|
197
|
+
|
|
198
|
+
## 2.1.1
|
|
199
|
+
|
|
200
|
+
## 2.1.0 (2015-01-23)
|
|
201
|
+
|
|
202
|
+
### Major changes
|
|
203
|
+
|
|
204
|
+
* `#destroyed?` is no longer overridden. Use `#paranoia_destroyed?` for the existing behaviour. [Washington Luiz](https://github.com/huoxito)
|
|
205
|
+
* `#persisted?` is no longer overridden.
|
|
206
|
+
* ActiveRecord 4.0 no longer has `#destroy!` as an alias for `#really_destroy!`.
|
|
207
|
+
* `#destroy` will now raise an exception if called on a readonly record.
|
|
208
|
+
* `#destroy` on a hard deleted record is now a successful noop.
|
|
209
|
+
* `#destroy` on a new record will set deleted_at (previously this raised an error)
|
|
210
|
+
* `#destroy` and `#delete` always return self when successful.
|
|
211
|
+
|
|
212
|
+
### Bug Fixes
|
|
213
|
+
|
|
214
|
+
* Calling `#destroy` twice will not hard-delete records. Use `#really_destroy!` if this is desired.
|
|
215
|
+
* Fix errors on non-paranoid has_one dependent associations
|
|
216
|
+
|
|
217
|
+
## 2.0.5 (2015-01-22)
|
|
218
|
+
|
|
219
|
+
### Bug fixes
|
|
220
|
+
|
|
221
|
+
* Fix restoring polymorphic has_one relationships [#189](https://github.com/radar/paranoia/pull/189) [#174](https://github.com/radar/paranoia/issues/174) [Patrick Koperwas](https://github.com/PatKoperwas)
|
|
222
|
+
* Fix errors when restoring a model with a has_one against a non-paranoid model. [#168](https://github.com/radar/paranoia/pull/168) [Shreyas Agarwal](https://github.com/shreyas123)
|
|
223
|
+
* Fix rspec 2 compatibility [#197](https://github.com/radar/paranoia/pull/197) [Emil Sågfors](https://github.com/lime)
|
|
224
|
+
* Fix some deprecation warnings on rails 4.2 [Sergey Alekseev](https://github.com/sergey-alekseev)
|
|
225
|
+
|
|
226
|
+
## 2.0.4 (2014-12-02)
|
|
227
|
+
|
|
228
|
+
### Features
|
|
229
|
+
* Add paranoia_scope as named version of default_scope [#184](https://github.com/radar/paranoia/pull/184) [Jozsef Nyitrai](https://github.com/nyjt)
|
|
230
|
+
|
|
231
|
+
|
|
232
|
+
### Bug Fixes
|
|
233
|
+
* Fix initialization problems when missing table or no database connection [#186](https://github.com/radar/paranoia/issues/186)
|
|
234
|
+
* Fix broken restore of has_one associations [#185](https://github.com/radar/paranoia/issues/185) [#171](https://github.com/radar/paranoia/pull/171) [Martin Sereinig](https://github.com/srecnig)
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
# Contributor Covenant Code of Conduct
|
|
2
|
+
|
|
3
|
+
## Our Pledge
|
|
4
|
+
|
|
5
|
+
In the interest of fostering an open and welcoming environment, we as
|
|
6
|
+
contributors and maintainers pledge to making participation in our project and
|
|
7
|
+
our community a harassment-free experience for everyone, regardless of age, body
|
|
8
|
+
size, disability, ethnicity, gender identity and expression, level of experience,
|
|
9
|
+
nationality, personal appearance, race, religion, or sexual identity and
|
|
10
|
+
orientation.
|
|
11
|
+
|
|
12
|
+
## Our Standards
|
|
13
|
+
|
|
14
|
+
Examples of behavior that contributes to creating a positive environment
|
|
15
|
+
include:
|
|
16
|
+
|
|
17
|
+
* Using welcoming and inclusive language
|
|
18
|
+
* Being respectful of differing viewpoints and experiences
|
|
19
|
+
* Gracefully accepting constructive criticism
|
|
20
|
+
* Focusing on what is best for the community
|
|
21
|
+
* Showing empathy towards other community members
|
|
22
|
+
|
|
23
|
+
Examples of unacceptable behavior by participants include:
|
|
24
|
+
|
|
25
|
+
* The use of sexualized language or imagery and unwelcome sexual attention or
|
|
26
|
+
advances
|
|
27
|
+
* Trolling, insulting/derogatory comments, and personal or political attacks
|
|
28
|
+
* Public or private harassment
|
|
29
|
+
* Publishing others' private information, such as a physical or electronic
|
|
30
|
+
address, without explicit permission
|
|
31
|
+
* Other conduct which could reasonably be considered inappropriate in a
|
|
32
|
+
professional setting
|
|
33
|
+
|
|
34
|
+
## Our Responsibilities
|
|
35
|
+
|
|
36
|
+
Project maintainers are responsible for clarifying the standards of acceptable
|
|
37
|
+
behavior and are expected to take appropriate and fair corrective action in
|
|
38
|
+
response to any instances of unacceptable behavior.
|
|
39
|
+
|
|
40
|
+
Project maintainers have the right and responsibility to remove, edit, or
|
|
41
|
+
reject comments, commits, code, wiki edits, issues, and other contributions
|
|
42
|
+
that are not aligned to this Code of Conduct, or to ban temporarily or
|
|
43
|
+
permanently any contributor for other behaviors that they deem inappropriate,
|
|
44
|
+
threatening, offensive, or harmful.
|
|
45
|
+
|
|
46
|
+
## Scope
|
|
47
|
+
|
|
48
|
+
This Code of Conduct applies both within project spaces and in public spaces
|
|
49
|
+
when an individual is representing the project or its community. Examples of
|
|
50
|
+
representing a project or community include using an official project e-mail
|
|
51
|
+
address, posting via an official social media account, or acting as an appointed
|
|
52
|
+
representative at an online or offline event. Representation of a project may be
|
|
53
|
+
further defined and clarified by project maintainers.
|
|
54
|
+
|
|
55
|
+
## Enforcement
|
|
56
|
+
|
|
57
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
|
58
|
+
reported by contacting the project team at ben@benmorgan.io. All
|
|
59
|
+
complaints will be reviewed and investigated and will result in a response that
|
|
60
|
+
is deemed necessary and appropriate to the circumstances. The project team is
|
|
61
|
+
obligated to maintain confidentiality with regard to the reporter of an incident.
|
|
62
|
+
Further details of specific enforcement policies may be posted separately.
|
|
63
|
+
|
|
64
|
+
Project maintainers who do not follow or enforce the Code of Conduct in good
|
|
65
|
+
faith may face temporary or permanent repercussions as determined by other
|
|
66
|
+
members of the project's leadership.
|
|
67
|
+
|
|
68
|
+
## Attribution
|
|
69
|
+
|
|
70
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
|
|
71
|
+
available at [http://contributor-covenant.org/version/1/4][version]
|
|
72
|
+
|
|
73
|
+
[homepage]: http://contributor-covenant.org
|
|
74
|
+
[version]: http://contributor-covenant.org/version/1/4/
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
Paranoia is an open source project and we encourage contributions.
|
|
2
|
+
|
|
3
|
+
## Filing an issue
|
|
4
|
+
|
|
5
|
+
When filing an issue on the Paranoia project, please provide these details:
|
|
6
|
+
|
|
7
|
+
* A comprehensive list of steps to reproduce the issue.
|
|
8
|
+
* What you're *expecting* to happen compared with what's *actually* happening.
|
|
9
|
+
* Your application's complete `Gemfile.lock`, and `Gemfile.lock` as text in a [Gist](https://gist.github.com) (*not as an image*)
|
|
10
|
+
* Any relevant stack traces ("Full trace" preferred)
|
|
11
|
+
|
|
12
|
+
In 99% of cases, this information is enough to determine the cause and solution
|
|
13
|
+
to the problem that is being described.
|
|
14
|
+
|
|
15
|
+
Please remember to format code using triple backticks (\`) so that it is neatly
|
|
16
|
+
formatted when the issue is posted.
|
|
17
|
+
|
|
18
|
+
## Pull requests
|
|
19
|
+
|
|
20
|
+
We gladly accept pull requests to add documentation, fix bugs and, in some circumstances,
|
|
21
|
+
add new features to Paranoia.
|
|
22
|
+
|
|
23
|
+
Here's a quick guide:
|
|
24
|
+
|
|
25
|
+
1. Fork the repo.
|
|
26
|
+
|
|
27
|
+
2. Run the tests. We only take pull requests with passing tests, and it's great
|
|
28
|
+
to know that you have a clean slate.
|
|
29
|
+
|
|
30
|
+
3. Create new branch then make changes and add tests for your changes. Only
|
|
31
|
+
refactoring and documentation changes require no new tests. If you are adding
|
|
32
|
+
functionality or fixing a bug, we need tests!
|
|
33
|
+
|
|
34
|
+
4. Push to your fork and submit a pull request.
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
source 'https://rubygems.org'
|
|
2
|
+
|
|
3
|
+
rails = ENV['RAILS'] || '~> 7.0.0'
|
|
4
|
+
sqlite = ENV['SQLITE_VERSION']
|
|
5
|
+
|
|
6
|
+
if sqlite
|
|
7
|
+
gem 'sqlite3', sqlite, platforms: [:ruby]
|
|
8
|
+
elsif rails.start_with?('~> 8')
|
|
9
|
+
gem 'sqlite3', '~> 2.1', platforms: [:ruby]
|
|
10
|
+
else
|
|
11
|
+
gem 'sqlite3', '~> 1.4', platforms: [:ruby]
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
platforms :jruby do
|
|
15
|
+
gem 'activerecord-jdbcsqlite3-adapter'
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
if RUBY_ENGINE == 'rbx'
|
|
19
|
+
platforms :rbx do
|
|
20
|
+
gem 'rubinius-developer_tools'
|
|
21
|
+
gem 'rubysl', '~> 2.0'
|
|
22
|
+
gem 'rubysl-test-unit'
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
if rails == 'edge'
|
|
27
|
+
gem 'rails', github: 'rails/rails'
|
|
28
|
+
else
|
|
29
|
+
gem 'rails', rails
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
# Specify your gem's dependencies in paranoia.gemspec
|
|
33
|
+
gemspec
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
Permission is hereby granted, without written agreement and without
|
|
2
|
+
license or royalty fees, to use, copy, modify, and distribute this
|
|
3
|
+
software and its documentation for any purpose, provided that the
|
|
4
|
+
above copyright notice and the following two paragraphs appear in
|
|
5
|
+
all copies of this software.
|
|
6
|
+
|
|
7
|
+
IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
|
|
8
|
+
DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
|
|
9
|
+
ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
|
|
10
|
+
IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
|
|
11
|
+
DAMAGE.
|
|
12
|
+
|
|
13
|
+
THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
|
|
14
|
+
BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
|
|
15
|
+
FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS
|
|
16
|
+
ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
|
|
17
|
+
PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
|