active_model_exporters 0.5.1 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +9 -18
- data/.travis.yml +9 -6
- data/Appraisals +4 -8
- data/CHANGELOG.md +24 -3
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile +0 -7
- data/LICENSE.txt +17 -18
- data/README.md +48 -12
- data/Rakefile +3 -5
- data/active_model_exporters.gemspec +21 -8
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/gemfiles/rails_6.1.gemfile +7 -0
- data/gemfiles/rails_6.1.gemfile.lock +174 -0
- data/gemfiles/rails_7.0.gemfile +7 -0
- data/gemfiles/rails_7.0.gemfile.lock +190 -0
- data/lib/active_model/array_exporter.rb +1 -1
- data/lib/active_model/exporter/version.rb +1 -1
- data/lib/active_model/exporter.rb +6 -7
- metadata +107 -38
- data/gemfiles/rails_4.gemfile +0 -11
- data/gemfiles/rails_4.gemfile.lock +0 -142
- data/gemfiles/rails_5.2.gemfile +0 -11
- data/gemfiles/rails_5.2.gemfile.lock +0 -157
- data/gemfiles/rails_5.gemfile +0 -11
- data/gemfiles/rails_5.gemfile.lock +0 -149
- data/test/fixtures/active_record/exporters.rb +0 -3
- data/test/fixtures/active_record/models.rb +0 -18
- data/test/fixtures/exporters.rb +0 -23
- data/test/fixtures/locale.rb +0 -20
- data/test/fixtures/models.rb +0 -6
- data/test/integration/action_controller/exportation/csv_test.rb +0 -162
- data/test/integration/action_controller/exportation/xls_test.rb +0 -162
- data/test/integration/active_record/exportation/csv_test.rb +0 -23
- data/test/test_helper.rb +0 -31
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e4a48c0d4a079fdc539290365e3aea2957686fd18df6d41e27fd03e8ee61d7cc
|
4
|
+
data.tar.gz: c52620894a6a89772b147b64d8b02040f6577c9f9a8c4ca75ce7c59f5c21c294
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3886a47851f83d5a540608b16e3f8b583bb0b0431c3be8ea961515f32668ea202f0a6717af2dd0ddd080ced36c5c62fcf83bc9f76c8454c35e5fb2cb0b0f7cd9
|
7
|
+
data.tar.gz: dcec447c370025cddc21a1c7c2e48d9b53b7f7b2aab5b31b8a6318632524befeaebd25ee9c3c8d7c07e08a609a0b711799d0b52ab93577cab64656e708fca054
|
data/.gitignore
CHANGED
@@ -1,20 +1,11 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
1
|
+
/.bundle/
|
2
|
+
/.yardoc
|
3
|
+
/_yardoc/
|
4
|
+
/coverage/
|
5
|
+
/doc/
|
6
|
+
/pkg/
|
7
|
+
/spec/reports/
|
8
|
+
/tmp/
|
9
9
|
coverage
|
10
|
-
doc/
|
11
|
-
lib/bundler/man
|
12
|
-
pkg
|
13
|
-
rdoc
|
14
|
-
spec/reports
|
15
|
-
test/tmp
|
16
|
-
test/version_tmp
|
17
|
-
tmp
|
18
|
-
.rvmrc
|
19
10
|
.ruby-version
|
20
|
-
.
|
11
|
+
Gemfile.lock
|
data/.travis.yml
CHANGED
@@ -1,11 +1,14 @@
|
|
1
|
+
cache: bundler
|
1
2
|
language: ruby
|
2
3
|
|
3
4
|
rvm:
|
4
|
-
- 2.
|
5
|
-
-
|
6
|
-
-
|
5
|
+
- 2.7.6
|
6
|
+
- 3.0.0
|
7
|
+
- 3.1.2
|
8
|
+
|
9
|
+
before_install:
|
10
|
+
- gem install bundler -v 2.3.20
|
7
11
|
|
8
12
|
gemfile:
|
9
|
-
- gemfiles/
|
10
|
-
- gemfiles/
|
11
|
-
- gemfiles/rails_5.2.gemfile
|
13
|
+
- gemfiles/rails_6.1.gemfile
|
14
|
+
- gemfiles/rails_7.0.gemfile
|
data/Appraisals
CHANGED
@@ -1,11 +1,7 @@
|
|
1
|
-
appraise 'rails-
|
2
|
-
gem 'rails', '~>
|
1
|
+
appraise 'rails-6.1' do
|
2
|
+
gem 'rails', '~> 6.1.0'
|
3
3
|
end
|
4
4
|
|
5
|
-
appraise 'rails-
|
6
|
-
gem 'rails', '~>
|
7
|
-
end
|
8
|
-
|
9
|
-
appraise 'rails-5.2' do
|
10
|
-
gem 'rails', '~> 5.2.0'
|
5
|
+
appraise 'rails-7.0' do
|
6
|
+
gem 'rails', '~> 7.0.0'
|
11
7
|
end
|
data/CHANGELOG.md
CHANGED
@@ -1,7 +1,28 @@
|
|
1
1
|
# CHANGELOG
|
2
2
|
|
3
|
+
### Version 0.7.0
|
4
|
+
* Add support for rails 7.0.
|
5
|
+
* Add support for ruby 3.1.
|
6
|
+
* Stop supporting rails 5.2.
|
7
|
+
* Stop supporting ruby 2.6.
|
8
|
+
|
9
|
+
### Version 0.6.0
|
10
|
+
* Add support for rails 6.1.
|
11
|
+
* Add support for ruby 3.0.
|
12
|
+
|
13
|
+
### Version 0.5.2
|
14
|
+
* Add support for rails 6.0.
|
15
|
+
* Minimum ruby version supported 2.6.X.
|
16
|
+
* Remove support for ruby 2.4.X.
|
17
|
+
* Avoid defining new methods in exporter.
|
18
|
+
* Update code base to use bundler 2.X.X.
|
19
|
+
|
20
|
+
### Version 0.5.1
|
21
|
+
* Add rails version supported 5.2.X.
|
22
|
+
* Minimum ruby version supported 2.5.0.
|
23
|
+
|
3
24
|
### Version 0.5.0
|
4
|
-
* Rails versions supported 4
|
25
|
+
* Rails versions supported 4.X.X and 5.X.X.
|
5
26
|
* Minimum ruby version supported 2.2.2.
|
6
27
|
|
7
28
|
### Version 0.4.1
|
@@ -15,10 +36,10 @@
|
|
15
36
|
* Adding support to export a single resource.
|
16
37
|
|
17
38
|
### Version 0.3.1
|
18
|
-
* Fixing errors with rails 4.2
|
39
|
+
* Fixing errors with rails 4.2.X.
|
19
40
|
|
20
41
|
### Version 0.3.0
|
21
|
-
* Adding support to rails 4.2
|
42
|
+
* Adding support to rails 4.2.X.
|
22
43
|
|
23
44
|
### Version 0.2.0
|
24
45
|
* Using I18n translations in file headers.
|
data/CODE_OF_CONDUCT.md
ADDED
@@ -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 alejandrodevs@gmail.com. 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/
|
data/Gemfile
CHANGED
data/LICENSE.txt
CHANGED
@@ -1,22 +1,21 @@
|
|
1
|
-
|
1
|
+
The MIT License (MIT)
|
2
2
|
|
3
|
-
|
3
|
+
Copyright (c) 2019 Alejandro Gutiérrez
|
4
4
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
the following conditions:
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
12
11
|
|
13
|
-
The above copyright notice and this permission notice shall be
|
14
|
-
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
15
14
|
|
16
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
OF
|
22
|
-
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
CHANGED
@@ -1,22 +1,28 @@
|
|
1
1
|
# ActiveModel::Exporters
|
2
|
-
[![Build Status](https://travis-ci.
|
2
|
+
[![Build Status](https://travis-ci.com/alejandrodevs/active_model_exporters.svg?branch=master)](https://travis-ci.org/alejandrodevs/active_model_exporters) [![Coverage Status](https://coveralls.io/repos/github/alejandrodevs/active_model_exporters/badge.svg?branch=master)](https://coveralls.io/github/alejandrodevs/active_model_exporters?branch=master)
|
3
3
|
|
4
|
-
`ActiveModel::Exporters` aims to provide an easy way to export
|
5
|
-
collections of `ActiveModel` or `ActiveRecord` objects.
|
6
|
-
It's based on object-oriented development and inspired on
|
7
|
-
[active_model_serializers](https://github.com/rails-api/active_model_serializers).
|
4
|
+
`ActiveModel::Exporters` aims to provide an easy way to export collections of `ActiveModel` or `ActiveRecord` objects. It's based on object-oriented development and inspired on [active_model_serializers](https://github.com/rails-api/active_model_serializers).
|
8
5
|
|
9
6
|
## Installation
|
10
7
|
|
11
|
-
Add this line to your Gemfile:
|
8
|
+
Add this line to your application's Gemfile:
|
9
|
+
|
12
10
|
```ruby
|
13
11
|
gem 'active_model_exporters'
|
14
12
|
```
|
15
|
-
Run the bundle command to install it.
|
16
13
|
|
17
|
-
|
14
|
+
And then execute:
|
15
|
+
|
16
|
+
$ bundle
|
17
|
+
|
18
|
+
Or install it yourself as:
|
19
|
+
|
20
|
+
$ gem install active_model_exporters
|
21
|
+
|
22
|
+
## Usage
|
18
23
|
|
19
24
|
Generate an exporter in `app/exporters/post_exporter.rb`:
|
25
|
+
|
20
26
|
```ruby
|
21
27
|
class PostExporter < ActiveModel::Exporter
|
22
28
|
attributes :id, :title, :content
|
@@ -24,6 +30,7 @@ end
|
|
24
30
|
```
|
25
31
|
|
26
32
|
In your controller:
|
33
|
+
|
27
34
|
```ruby
|
28
35
|
class PostsController < ApplicationController
|
29
36
|
def index
|
@@ -38,26 +45,34 @@ end
|
|
38
45
|
```
|
39
46
|
|
40
47
|
### Custom exporter
|
48
|
+
|
41
49
|
To specify a custom exporter for each object, you can do the next in your controller:
|
50
|
+
|
42
51
|
```ruby
|
43
52
|
render csv: @posts, exporter: OtherPostExporter
|
44
53
|
```
|
45
54
|
|
46
55
|
### Custom filename
|
56
|
+
|
47
57
|
By default filename is the pluralized collection type. Example: `posts.xls`.
|
48
58
|
To specify another, you can do the next:
|
59
|
+
|
49
60
|
```ruby
|
50
61
|
render xls: @posts, filename: 'super_posts.xls'
|
51
62
|
```
|
52
63
|
|
53
64
|
### Custom encode format
|
65
|
+
|
54
66
|
By default encode format is `iso-8859-1`. You can change it doing the next:
|
67
|
+
|
55
68
|
```ruby
|
56
69
|
render csv: @posts, encode: 'UTF-8'
|
57
70
|
```
|
58
71
|
|
59
72
|
### Computed properties
|
73
|
+
|
60
74
|
As `ActiveModel::Serializers` does, you can access the object being exported as `object`.
|
75
|
+
|
61
76
|
```ruby
|
62
77
|
class UserExporter < ActiveModel::Exporter
|
63
78
|
attributes :first_name, :last_name, :full_name
|
@@ -71,7 +86,9 @@ end
|
|
71
86
|
### Exporter scope
|
72
87
|
|
73
88
|
#### 1. Default scope
|
89
|
+
|
74
90
|
As `ActiveModel::Serializers` does, you can access to the current user via `scope`.
|
91
|
+
|
75
92
|
```ruby
|
76
93
|
class UserExporter < ActiveModel::Exporter
|
77
94
|
attributes :name, :email
|
@@ -83,13 +100,17 @@ end
|
|
83
100
|
```
|
84
101
|
|
85
102
|
#### 2. Explicit scope
|
103
|
+
|
86
104
|
In your controller, include the scope option:
|
105
|
+
|
87
106
|
```ruby
|
88
107
|
render csv: @posts, scope: current_admin
|
89
108
|
```
|
90
109
|
|
91
110
|
#### 3. Calling exportation_scope
|
111
|
+
|
92
112
|
In your controller, set the exportation scope:
|
113
|
+
|
93
114
|
```ruby
|
94
115
|
class PostsController < ApplicationController
|
95
116
|
exportation_scope :current_admin
|
@@ -101,8 +122,9 @@ end
|
|
101
122
|
```
|
102
123
|
|
103
124
|
### Filter attributes
|
104
|
-
|
105
|
-
according to your business rules:
|
125
|
+
|
126
|
+
As `ActiveModel::Serializers` does, you can reject some attributes according to your business rules:
|
127
|
+
|
106
128
|
```ruby
|
107
129
|
class UserExporter < ActiveModel::Exporter
|
108
130
|
attributes :name, :email, :address
|
@@ -116,13 +138,27 @@ class UserExporter < ActiveModel::Exporter
|
|
116
138
|
end
|
117
139
|
end
|
118
140
|
```
|
141
|
+
|
119
142
|
Rejected attributes will be blank in the downloaded file.
|
120
143
|
|
121
144
|
### Headers
|
145
|
+
|
122
146
|
`ActiveModel::Exporters` uses I18n translations in file headers.
|
123
147
|
|
148
|
+
## Development
|
149
|
+
|
150
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
151
|
+
|
152
|
+
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
153
|
+
|
124
154
|
## Contributing
|
125
155
|
|
126
|
-
|
156
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/alejandrodevs/active_model_exporters. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
157
|
+
|
158
|
+
## License
|
159
|
+
|
160
|
+
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
161
|
+
|
162
|
+
## Code of Conduct
|
127
163
|
|
128
|
-
|
164
|
+
Everyone interacting in the ActiveModel::Exporters project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/alejandrodevs/active_model_exporters/blob/master/CODE_OF_CONDUCT.md).
|
data/Rakefile
CHANGED
@@ -1,12 +1,10 @@
|
|
1
|
-
require 'rubygems'
|
2
|
-
require 'bundler/setup'
|
3
1
|
require 'bundler/gem_tasks'
|
4
2
|
require 'rake/testtask'
|
5
3
|
|
6
|
-
Rake::TestTask.new do |t|
|
4
|
+
Rake::TestTask.new(:test) do |t|
|
7
5
|
t.libs << 'test'
|
8
|
-
t.
|
9
|
-
t.
|
6
|
+
t.libs << 'lib'
|
7
|
+
t.test_files = FileList['test/**/*_test.rb']
|
10
8
|
end
|
11
9
|
|
12
10
|
task default: :test
|
@@ -1,6 +1,5 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
$:.unshift File.expand_path("../lib", __FILE__)
|
1
|
+
lib = File.expand_path('lib', __dir__)
|
2
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
3
|
require 'active_model/exporter/version'
|
5
4
|
|
6
5
|
Gem::Specification.new do |spec|
|
@@ -8,16 +7,30 @@ Gem::Specification.new do |spec|
|
|
8
7
|
spec.version = ActiveModel::Exporter::VERSION
|
9
8
|
spec.authors = ['Alejandro Gutiérrez']
|
10
9
|
spec.email = ['alejandrodevs@gmail.com']
|
11
|
-
spec.description = 'A simple way to export data in Rails.'
|
12
10
|
spec.summary = 'A simple way to export data in Rails.'
|
11
|
+
spec.description = 'A simple way to export data in Rails.'
|
13
12
|
spec.homepage = 'https://github.com/alejandrodevs/active_model_exporters'
|
14
13
|
spec.license = 'MIT'
|
15
14
|
|
16
|
-
spec.
|
17
|
-
spec.
|
15
|
+
spec.metadata['homepage_uri'] = spec.homepage
|
16
|
+
spec.metadata['source_code_uri'] = spec.homepage
|
17
|
+
spec.metadata['changelog_uri'] = "#{spec.homepage}/blob/master/LICENSE.txt"
|
18
|
+
|
19
|
+
# Specify which files should be added to the gem when it is released.
|
20
|
+
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
21
|
+
spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
|
22
|
+
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
23
|
+
end
|
24
|
+
spec.bindir = 'exe'
|
25
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
18
26
|
spec.require_paths = ['lib']
|
19
27
|
|
20
|
-
spec.
|
28
|
+
spec.add_development_dependency 'rake', '~> 13.0'
|
29
|
+
spec.add_development_dependency 'bundler', '~> 2.2'
|
30
|
+
spec.add_development_dependency 'sqlite3', '~> 1.4'
|
31
|
+
spec.add_development_dependency 'minitest', '~> 5.14'
|
32
|
+
spec.add_development_dependency 'appraisal', '~> 2.4'
|
33
|
+
spec.add_development_dependency 'coveralls', '~> 0.8'
|
21
34
|
|
22
|
-
spec.add_dependency '
|
35
|
+
spec.add_dependency 'rails', '>= 6.0'
|
23
36
|
end
|
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "active_model_exporters"
|
5
|
+
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
8
|
+
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
+
# require "pry"
|
11
|
+
# Pry.start
|
12
|
+
|
13
|
+
require "irb"
|
14
|
+
IRB.start(__FILE__)
|
data/bin/setup
ADDED
@@ -0,0 +1,174 @@
|
|
1
|
+
PATH
|
2
|
+
remote: ..
|
3
|
+
specs:
|
4
|
+
active_model_exporters (0.7.0)
|
5
|
+
rails (>= 6.0)
|
6
|
+
|
7
|
+
GEM
|
8
|
+
remote: https://rubygems.org/
|
9
|
+
specs:
|
10
|
+
actioncable (6.1.3.1)
|
11
|
+
actionpack (= 6.1.3.1)
|
12
|
+
activesupport (= 6.1.3.1)
|
13
|
+
nio4r (~> 2.0)
|
14
|
+
websocket-driver (>= 0.6.1)
|
15
|
+
actionmailbox (6.1.3.1)
|
16
|
+
actionpack (= 6.1.3.1)
|
17
|
+
activejob (= 6.1.3.1)
|
18
|
+
activerecord (= 6.1.3.1)
|
19
|
+
activestorage (= 6.1.3.1)
|
20
|
+
activesupport (= 6.1.3.1)
|
21
|
+
mail (>= 2.7.1)
|
22
|
+
actionmailer (6.1.3.1)
|
23
|
+
actionpack (= 6.1.3.1)
|
24
|
+
actionview (= 6.1.3.1)
|
25
|
+
activejob (= 6.1.3.1)
|
26
|
+
activesupport (= 6.1.3.1)
|
27
|
+
mail (~> 2.5, >= 2.5.4)
|
28
|
+
rails-dom-testing (~> 2.0)
|
29
|
+
actionpack (6.1.3.1)
|
30
|
+
actionview (= 6.1.3.1)
|
31
|
+
activesupport (= 6.1.3.1)
|
32
|
+
rack (~> 2.0, >= 2.0.9)
|
33
|
+
rack-test (>= 0.6.3)
|
34
|
+
rails-dom-testing (~> 2.0)
|
35
|
+
rails-html-sanitizer (~> 1.0, >= 1.2.0)
|
36
|
+
actiontext (6.1.3.1)
|
37
|
+
actionpack (= 6.1.3.1)
|
38
|
+
activerecord (= 6.1.3.1)
|
39
|
+
activestorage (= 6.1.3.1)
|
40
|
+
activesupport (= 6.1.3.1)
|
41
|
+
nokogiri (>= 1.8.5)
|
42
|
+
actionview (6.1.3.1)
|
43
|
+
activesupport (= 6.1.3.1)
|
44
|
+
builder (~> 3.1)
|
45
|
+
erubi (~> 1.4)
|
46
|
+
rails-dom-testing (~> 2.0)
|
47
|
+
rails-html-sanitizer (~> 1.1, >= 1.2.0)
|
48
|
+
activejob (6.1.3.1)
|
49
|
+
activesupport (= 6.1.3.1)
|
50
|
+
globalid (>= 0.3.6)
|
51
|
+
activemodel (6.1.3.1)
|
52
|
+
activesupport (= 6.1.3.1)
|
53
|
+
activerecord (6.1.3.1)
|
54
|
+
activemodel (= 6.1.3.1)
|
55
|
+
activesupport (= 6.1.3.1)
|
56
|
+
activestorage (6.1.3.1)
|
57
|
+
actionpack (= 6.1.3.1)
|
58
|
+
activejob (= 6.1.3.1)
|
59
|
+
activerecord (= 6.1.3.1)
|
60
|
+
activesupport (= 6.1.3.1)
|
61
|
+
marcel (~> 1.0.0)
|
62
|
+
mini_mime (~> 1.0.2)
|
63
|
+
activesupport (6.1.3.1)
|
64
|
+
concurrent-ruby (~> 1.0, >= 1.0.2)
|
65
|
+
i18n (>= 1.6, < 2)
|
66
|
+
minitest (>= 5.1)
|
67
|
+
tzinfo (~> 2.0)
|
68
|
+
zeitwerk (~> 2.3)
|
69
|
+
appraisal (2.4.1)
|
70
|
+
bundler
|
71
|
+
rake
|
72
|
+
thor (>= 0.14.0)
|
73
|
+
builder (3.2.4)
|
74
|
+
concurrent-ruby (1.1.10)
|
75
|
+
coveralls (0.8.23)
|
76
|
+
json (>= 1.8, < 3)
|
77
|
+
simplecov (~> 0.16.1)
|
78
|
+
term-ansicolor (~> 1.3)
|
79
|
+
thor (>= 0.19.4, < 2.0)
|
80
|
+
tins (~> 1.6)
|
81
|
+
crass (1.0.6)
|
82
|
+
docile (1.4.0)
|
83
|
+
erubi (1.11.0)
|
84
|
+
globalid (1.0.0)
|
85
|
+
activesupport (>= 5.0)
|
86
|
+
i18n (1.12.0)
|
87
|
+
concurrent-ruby (~> 1.0)
|
88
|
+
json (2.6.2)
|
89
|
+
loofah (2.18.0)
|
90
|
+
crass (~> 1.0.2)
|
91
|
+
nokogiri (>= 1.5.9)
|
92
|
+
mail (2.7.1)
|
93
|
+
mini_mime (>= 0.1.1)
|
94
|
+
marcel (1.0.2)
|
95
|
+
method_source (1.0.0)
|
96
|
+
mini_mime (1.0.3)
|
97
|
+
mini_portile2 (2.8.0)
|
98
|
+
minitest (5.16.2)
|
99
|
+
nio4r (2.5.8)
|
100
|
+
nokogiri (1.13.8)
|
101
|
+
mini_portile2 (~> 2.8.0)
|
102
|
+
racc (~> 1.4)
|
103
|
+
racc (1.6.0)
|
104
|
+
rack (2.2.4)
|
105
|
+
rack-test (2.0.2)
|
106
|
+
rack (>= 1.3)
|
107
|
+
rails (6.1.3.1)
|
108
|
+
actioncable (= 6.1.3.1)
|
109
|
+
actionmailbox (= 6.1.3.1)
|
110
|
+
actionmailer (= 6.1.3.1)
|
111
|
+
actionpack (= 6.1.3.1)
|
112
|
+
actiontext (= 6.1.3.1)
|
113
|
+
actionview (= 6.1.3.1)
|
114
|
+
activejob (= 6.1.3.1)
|
115
|
+
activemodel (= 6.1.3.1)
|
116
|
+
activerecord (= 6.1.3.1)
|
117
|
+
activestorage (= 6.1.3.1)
|
118
|
+
activesupport (= 6.1.3.1)
|
119
|
+
bundler (>= 1.15.0)
|
120
|
+
railties (= 6.1.3.1)
|
121
|
+
sprockets-rails (>= 2.0.0)
|
122
|
+
rails-dom-testing (2.0.3)
|
123
|
+
activesupport (>= 4.2.0)
|
124
|
+
nokogiri (>= 1.6)
|
125
|
+
rails-html-sanitizer (1.4.3)
|
126
|
+
loofah (~> 2.3)
|
127
|
+
railties (6.1.3.1)
|
128
|
+
actionpack (= 6.1.3.1)
|
129
|
+
activesupport (= 6.1.3.1)
|
130
|
+
method_source
|
131
|
+
rake (>= 0.8.7)
|
132
|
+
thor (~> 1.0)
|
133
|
+
rake (13.0.6)
|
134
|
+
simplecov (0.16.1)
|
135
|
+
docile (~> 1.1)
|
136
|
+
json (>= 1.8, < 3)
|
137
|
+
simplecov-html (~> 0.10.0)
|
138
|
+
simplecov-html (0.10.2)
|
139
|
+
sprockets (4.0.3)
|
140
|
+
concurrent-ruby (~> 1.0)
|
141
|
+
rack (> 1, < 3)
|
142
|
+
sprockets-rails (3.4.2)
|
143
|
+
actionpack (>= 5.2)
|
144
|
+
activesupport (>= 5.2)
|
145
|
+
sprockets (>= 3.0.0)
|
146
|
+
sqlite3 (1.4.4)
|
147
|
+
sync (0.5.0)
|
148
|
+
term-ansicolor (1.7.1)
|
149
|
+
tins (~> 1.0)
|
150
|
+
thor (1.2.1)
|
151
|
+
tins (1.31.1)
|
152
|
+
sync
|
153
|
+
tzinfo (2.0.5)
|
154
|
+
concurrent-ruby (~> 1.0)
|
155
|
+
websocket-driver (0.7.5)
|
156
|
+
websocket-extensions (>= 0.1.0)
|
157
|
+
websocket-extensions (0.1.5)
|
158
|
+
zeitwerk (2.6.0)
|
159
|
+
|
160
|
+
PLATFORMS
|
161
|
+
ruby
|
162
|
+
|
163
|
+
DEPENDENCIES
|
164
|
+
active_model_exporters!
|
165
|
+
appraisal (~> 2.4)
|
166
|
+
bundler (~> 2.2)
|
167
|
+
coveralls (~> 0.8)
|
168
|
+
minitest (~> 5.14)
|
169
|
+
rails (~> 6.1.0)
|
170
|
+
rake (~> 13.0)
|
171
|
+
sqlite3 (~> 1.4)
|
172
|
+
|
173
|
+
BUNDLED WITH
|
174
|
+
2.3.20
|