anonymous_active_record 0.1.0 β 0.1.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 +5 -5
- data/.travis.yml +30 -3
- data/Gemfile +9 -0
- data/README.md +21 -0
- data/anonymous_active_record.gemspec +2 -2
- data/lib/anonymous_active_record/version.rb +1 -1
- metadata +7 -7
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: fa15844570da514a5c2a30e69b63307af6f8231b3286df0a72e10c182545ee8a
|
|
4
|
+
data.tar.gz: 9862a7f30fda32682d5c2fd0444ab2e039e73e2d258eafa468fcedeafdeb2a1c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 18ae46be36c5bd034197b5f995ff4b68eb952e70786632062e47c975845928f77d6636497a2ae76383bc08f2f58df36d0aed2e4d4532edb19d5f616a1cc22148
|
|
7
|
+
data.tar.gz: 970454d5c98920e1a7f70faa050fe5818bda679c696af251ff42e4d532d9a51fbca5255676bcf9a3fa2501f3a9698d5a6d69c3afb77b9b25490c387e1bb13678
|
data/.travis.yml
CHANGED
|
@@ -1,5 +1,32 @@
|
|
|
1
|
-
|
|
1
|
+
env:
|
|
2
|
+
global:
|
|
3
|
+
- JRUBY_OPTS="-Xcli.debug=true --debug"
|
|
4
|
+
- CC_TEST_REPORTER_ID=79a38e2ae5a4a583152ef08b7a89eb7550f9554244f1309775332fc0ec81389e
|
|
5
|
+
|
|
6
|
+
before_script:
|
|
7
|
+
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
|
|
8
|
+
- chmod +x ./cc-test-reporter
|
|
9
|
+
- ./cc-test-reporter before-build
|
|
10
|
+
|
|
11
|
+
script:
|
|
12
|
+
- bundle exec rspec
|
|
13
|
+
|
|
14
|
+
after_script:
|
|
15
|
+
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
|
|
16
|
+
|
|
17
|
+
before_install:
|
|
18
|
+
- gem update --system
|
|
19
|
+
- gem install bundler
|
|
20
|
+
|
|
21
|
+
install:
|
|
22
|
+
- bundle install
|
|
23
|
+
|
|
24
|
+
bundler_args: --no-deployment --jobs 3 --retry 3
|
|
25
|
+
|
|
26
|
+
cache: bundler
|
|
27
|
+
|
|
2
28
|
language: ruby
|
|
29
|
+
sudo: false
|
|
3
30
|
rvm:
|
|
4
|
-
- 2.4.
|
|
5
|
-
|
|
31
|
+
- 2.4.4
|
|
32
|
+
- 2.5.1
|
data/Gemfile
CHANGED
|
@@ -2,5 +2,14 @@ source 'https://rubygems.org'
|
|
|
2
2
|
|
|
3
3
|
git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }
|
|
4
4
|
|
|
5
|
+
group :test do
|
|
6
|
+
ruby_version = Gem::Version.new(RUBY_VERSION)
|
|
7
|
+
if ruby_version >= Gem::Version.new('2.1')
|
|
8
|
+
gem 'rubocop', '~> 0.53.0'
|
|
9
|
+
gem 'rubocop-rspec', '~> 1.24.0'
|
|
10
|
+
end
|
|
11
|
+
gem 'pry', '~> 0.11' if ruby_version >= Gem::Version.new('2.0')
|
|
12
|
+
end
|
|
13
|
+
|
|
5
14
|
# Specify your gem's dependencies in anonymous_active_record.gemspec
|
|
6
15
|
gemspec
|
data/README.md
CHANGED
|
@@ -1,9 +1,26 @@
|
|
|
1
1
|
# AnonymousActiveRecord
|
|
2
|
+
[](https://app.fossa.io/projects/git%2Bgithub.com%2Fpboling%2Fanonymous_active_record?ref=badge_shield)
|
|
3
|
+
|
|
2
4
|
|
|
3
5
|
This library was π© inspired by π©, the [Wolverine project](https://github.com/mcary/wolverine), which [implemented a clever workaround](https://github.com/mcary/wolverine/commit/fa27fa2cc485b2fa83d71b2045ba5a0a069dba75) to the official non-support of [anonymous classes by ActiveRecord](https://github.com/rails/rails/issues/8934).
|
|
4
6
|
|
|
5
7
|
Warning: Use of this gem is a **security risk**, due to the use of Ruby's `eval`. It is intended for use in a test suite, or other non-critical environment.
|
|
6
8
|
|
|
9
|
+
| Project | AnonymousActiveRecord |
|
|
10
|
+
|------------------------ | ----------------------- |
|
|
11
|
+
| gem name | [anonymous_active_record](https://rubygems.org/gems/anonymous_active_record) |
|
|
12
|
+
| license | [](https://opensource.org/licenses/MIT) |
|
|
13
|
+
| download rank | [](https://github.com/pboling/anonymous_active_record) |
|
|
14
|
+
| version | [](https://rubygems.org/gems/anonymous_active_record) |
|
|
15
|
+
| dependencies | [](https://depfu.com/github/pboling/activerecord-tablefree?project_id=5613) |
|
|
16
|
+
| continuous integration | [](https://travis-ci.org/pboling/anonymous_active_record) |
|
|
17
|
+
| test coverage | [](https://codeclimate.com/github/pboling/anonymous_active_record/test_coverage) |
|
|
18
|
+
| maintainability | [](https://codeclimate.com/github/pboling/anonymous_active_record/maintainability) |
|
|
19
|
+
| code triage | [](https://www.codetriage.com/pboling/anonymous_active_record) |
|
|
20
|
+
| homepage | [http://www.railsbling.com/tags/anonymous_active_record/][homepage] |
|
|
21
|
+
| documentation | [http://rdoc.info/github/pboling/anonymous_active_record/frames][documentation] |
|
|
22
|
+
| Spread ~β‘βββ₯ββ‘~ | [π π π](https://about.me/peter.boling), [π](https://www.crowdrise.com/helprefugeeswithhopefortomorrowliberia/fundraiser/peterboling), [β](https://plus.google.com/+PeterBoling/posts), [πΌ](https://angel.co/peter-boling), [π](https://www.topcoder.com/members/pboling/), [:shipit:](http://coderwall.com/pboling), [](http://twitter.com/galtzo) |
|
|
23
|
+
|
|
7
24
|
## Installation
|
|
8
25
|
|
|
9
26
|
Add this line to your application's Gemfile:
|
|
@@ -124,3 +141,7 @@ Bug reports and pull requests are welcome on GitHub at https://github.com/pbolin
|
|
|
124
141
|
## Code of Conduct
|
|
125
142
|
|
|
126
143
|
Everyone interacting in the AnonymousActiveRecord projectβs codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/pboling/anonymous_active_record/blob/master/CODE_OF_CONDUCT.md).
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
## License
|
|
147
|
+
[](https://app.fossa.io/projects/git%2Bgithub.com%2Fpboling%2Fanonymous_active_record?ref=badge_large)
|
|
@@ -24,9 +24,9 @@ Gem::Specification.new do |spec|
|
|
|
24
24
|
spec.required_ruby_version = '>= 2.4' # Requirement for Ruby String#capitalize
|
|
25
25
|
|
|
26
26
|
spec.add_development_dependency 'bundler', '~> 1.16'
|
|
27
|
-
spec.add_development_dependency 'rake', '~>
|
|
27
|
+
spec.add_development_dependency 'rake', '~> 12.3'
|
|
28
28
|
spec.add_development_dependency 'rspec', '~> 3.0'
|
|
29
|
-
spec.add_development_dependency 'byebug', '~>
|
|
29
|
+
spec.add_development_dependency 'byebug', '~> 10.0'
|
|
30
30
|
spec.add_development_dependency 'sqlite3', '~> 1.3'
|
|
31
31
|
spec.add_dependency 'activerecord', '~> 5.0'
|
|
32
32
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: anonymous_active_record
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Peter Boling
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2018-
|
|
11
|
+
date: 2018-09-09 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -30,14 +30,14 @@ dependencies:
|
|
|
30
30
|
requirements:
|
|
31
31
|
- - "~>"
|
|
32
32
|
- !ruby/object:Gem::Version
|
|
33
|
-
version: '
|
|
33
|
+
version: '12.3'
|
|
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: '12.3'
|
|
41
41
|
- !ruby/object:Gem::Dependency
|
|
42
42
|
name: rspec
|
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -58,14 +58,14 @@ dependencies:
|
|
|
58
58
|
requirements:
|
|
59
59
|
- - "~>"
|
|
60
60
|
- !ruby/object:Gem::Version
|
|
61
|
-
version: '
|
|
61
|
+
version: '10.0'
|
|
62
62
|
type: :development
|
|
63
63
|
prerelease: false
|
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
|
65
65
|
requirements:
|
|
66
66
|
- - "~>"
|
|
67
67
|
- !ruby/object:Gem::Version
|
|
68
|
-
version: '
|
|
68
|
+
version: '10.0'
|
|
69
69
|
- !ruby/object:Gem::Dependency
|
|
70
70
|
name: sqlite3
|
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -136,7 +136,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
136
136
|
version: '0'
|
|
137
137
|
requirements: []
|
|
138
138
|
rubyforge_project:
|
|
139
|
-
rubygems_version: 2.
|
|
139
|
+
rubygems_version: 2.7.7
|
|
140
140
|
signing_key:
|
|
141
141
|
specification_version: 4
|
|
142
142
|
summary: Almost Anonymous ActiveRecord classes
|