active_model_exporters 0.5.2 → 0.6.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e3a6fc80c64e00ff107593eaa023150d1ddbd0cb30f10da7d0dc14bc97657f89
4
- data.tar.gz: afe1171f8b6e765a173774d4e951fed11738bcd267ca07ca3dda23cce6cbc2aa
3
+ metadata.gz: a2668e81feb94e20b496c164c3685971953f0144819230cb81b0d42e00b6d3ab
4
+ data.tar.gz: 3dd86e1588cd35816828a6657c14d118cfceede16bb47c462e5e40f6902a8ec0
5
5
  SHA512:
6
- metadata.gz: 1292910384366b09f86cfa67027ca92a8d8d5624d0ea99fd1b7d47c35b086ed6cb436923d1c8fae8b1793f56eb194246e99adbf7aa6cbe661881e6d73fcfe25e
7
- data.tar.gz: 7f04a6f215299b781aec1a50e007cec9ae8b53e44b9172182a1f2548cbdc84e29eb9ecf3d589b9f298761a4cb8dbeb94912231d8eb203bb0217e1ab293c5c0d6
6
+ metadata.gz: 9e608871ec7e7170ba105ffd70e54f55d543cee670d4fa744f1b0b64f185a995d6fa394ebd79c91de4a30889b906156f54d6d163e16370f8e02094fb6f540730
7
+ data.tar.gz: 40652890a32acdbb4f25fe434b531d406ad356f32917066e2ca068e22878b35e35f8039dd3cdbec5863ac7b91f5024ac15d1adaafaadc5eb421f2f72a0c0a94e
data/.travis.yml CHANGED
@@ -1,10 +1,10 @@
1
- sudo: false
2
1
  cache: bundler
3
2
  language: ruby
4
3
 
5
4
  rvm:
6
- - 2.5.5
7
- - 2.6.3
5
+ - 2.6.6
6
+ - 2.7.2
7
+ - 3.0.0
8
8
 
9
9
  before_install:
10
10
  - gem install bundler -v 2.0.2
@@ -12,3 +12,9 @@ before_install:
12
12
  gemfile:
13
13
  - gemfiles/rails_5.2.gemfile
14
14
  - gemfiles/rails_6.0.gemfile
15
+ - gemfiles/rails_6.1.gemfile
16
+
17
+ matrix:
18
+ allow_failures:
19
+ - gemfile: gemfiles/rails_5.2.gemfile
20
+ rvm: 3.0.0
data/Appraisals CHANGED
@@ -1,7 +1,11 @@
1
1
  appraise 'rails-5.2' do
2
- gem 'rails', '~> 5.2'
2
+ gem 'rails', '~> 5.2.0'
3
3
  end
4
4
 
5
5
  appraise 'rails-6.0' do
6
- gem 'rails', '~> 6.0'
6
+ gem 'rails', '~> 6.0.0'
7
+ end
8
+
9
+ appraise 'rails-6.1' do
10
+ gem 'rails', '~> 6.1.0'
7
11
  end
@@ -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/
@@ -25,12 +25,12 @@ Gem::Specification.new do |spec|
25
25
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
26
26
  spec.require_paths = ['lib']
27
27
 
28
- spec.add_development_dependency 'rake', '~> 12.0'
29
- spec.add_development_dependency 'bundler', '~> 2.0'
28
+ spec.add_development_dependency 'rake', '~> 13.0'
29
+ spec.add_development_dependency 'bundler', '~> 2.2'
30
30
  spec.add_development_dependency 'sqlite3', '~> 1.4'
31
- spec.add_development_dependency 'minitest', '~> 5.0'
32
- spec.add_development_dependency 'appraisal', '~> 2.2'
31
+ spec.add_development_dependency 'minitest', '~> 5.14'
32
+ spec.add_development_dependency 'appraisal', '~> 2.4'
33
33
  spec.add_development_dependency 'coveralls', '~> 0.8'
34
34
 
35
- spec.add_dependency 'rails', '>= 4.2'
35
+ spec.add_dependency 'rails', '>= 5.2'
36
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,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -2,6 +2,6 @@
2
2
 
3
3
  source "https://rubygems.org"
4
4
 
5
- gem "rails", "~> 5.2"
5
+ gem "rails", "~> 5.2.0"
6
6
 
7
7
  gemspec path: "../"
@@ -1,153 +1,155 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- active_model_exporters (0.5.2)
5
- rails (>= 4.2)
4
+ active_model_exporters (0.6.0)
5
+ rails (>= 5.2)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
9
9
  specs:
10
- actioncable (5.2.3)
11
- actionpack (= 5.2.3)
10
+ actioncable (5.2.5)
11
+ actionpack (= 5.2.5)
12
12
  nio4r (~> 2.0)
13
13
  websocket-driver (>= 0.6.1)
14
- actionmailer (5.2.3)
15
- actionpack (= 5.2.3)
16
- actionview (= 5.2.3)
17
- activejob (= 5.2.3)
14
+ actionmailer (5.2.5)
15
+ actionpack (= 5.2.5)
16
+ actionview (= 5.2.5)
17
+ activejob (= 5.2.5)
18
18
  mail (~> 2.5, >= 2.5.4)
19
19
  rails-dom-testing (~> 2.0)
20
- actionpack (5.2.3)
21
- actionview (= 5.2.3)
22
- activesupport (= 5.2.3)
23
- rack (~> 2.0)
20
+ actionpack (5.2.5)
21
+ actionview (= 5.2.5)
22
+ activesupport (= 5.2.5)
23
+ rack (~> 2.0, >= 2.0.8)
24
24
  rack-test (>= 0.6.3)
25
25
  rails-dom-testing (~> 2.0)
26
26
  rails-html-sanitizer (~> 1.0, >= 1.0.2)
27
- actionview (5.2.3)
28
- activesupport (= 5.2.3)
27
+ actionview (5.2.5)
28
+ activesupport (= 5.2.5)
29
29
  builder (~> 3.1)
30
30
  erubi (~> 1.4)
31
31
  rails-dom-testing (~> 2.0)
32
32
  rails-html-sanitizer (~> 1.0, >= 1.0.3)
33
- activejob (5.2.3)
34
- activesupport (= 5.2.3)
33
+ activejob (5.2.5)
34
+ activesupport (= 5.2.5)
35
35
  globalid (>= 0.3.6)
36
- activemodel (5.2.3)
37
- activesupport (= 5.2.3)
38
- activerecord (5.2.3)
39
- activemodel (= 5.2.3)
40
- activesupport (= 5.2.3)
36
+ activemodel (5.2.5)
37
+ activesupport (= 5.2.5)
38
+ activerecord (5.2.5)
39
+ activemodel (= 5.2.5)
40
+ activesupport (= 5.2.5)
41
41
  arel (>= 9.0)
42
- activestorage (5.2.3)
43
- actionpack (= 5.2.3)
44
- activerecord (= 5.2.3)
45
- marcel (~> 0.3.1)
46
- activesupport (5.2.3)
42
+ activestorage (5.2.5)
43
+ actionpack (= 5.2.5)
44
+ activerecord (= 5.2.5)
45
+ marcel (~> 1.0.0)
46
+ activesupport (5.2.5)
47
47
  concurrent-ruby (~> 1.0, >= 1.0.2)
48
48
  i18n (>= 0.7, < 2)
49
49
  minitest (~> 5.1)
50
50
  tzinfo (~> 1.1)
51
- appraisal (2.2.0)
51
+ appraisal (2.4.0)
52
52
  bundler
53
53
  rake
54
54
  thor (>= 0.14.0)
55
55
  arel (9.0.0)
56
- builder (3.2.3)
57
- concurrent-ruby (1.1.5)
56
+ builder (3.2.4)
57
+ concurrent-ruby (1.1.8)
58
58
  coveralls (0.8.23)
59
59
  json (>= 1.8, < 3)
60
60
  simplecov (~> 0.16.1)
61
61
  term-ansicolor (~> 1.3)
62
62
  thor (>= 0.19.4, < 2.0)
63
63
  tins (~> 1.6)
64
- crass (1.0.4)
65
- docile (1.3.2)
66
- erubi (1.8.0)
64
+ crass (1.0.6)
65
+ docile (1.3.5)
66
+ erubi (1.10.0)
67
67
  globalid (0.4.2)
68
68
  activesupport (>= 4.2.0)
69
- i18n (1.6.0)
69
+ i18n (1.8.10)
70
70
  concurrent-ruby (~> 1.0)
71
- json (2.2.0)
72
- loofah (2.2.3)
71
+ json (2.5.1)
72
+ loofah (2.9.0)
73
73
  crass (~> 1.0.2)
74
74
  nokogiri (>= 1.5.9)
75
75
  mail (2.7.1)
76
76
  mini_mime (>= 0.1.1)
77
- marcel (0.3.3)
78
- mimemagic (~> 0.3.2)
79
- method_source (0.9.2)
80
- mimemagic (0.3.3)
81
- mini_mime (1.0.2)
82
- mini_portile2 (2.4.0)
83
- minitest (5.11.3)
84
- nio4r (2.4.0)
85
- nokogiri (1.10.4)
86
- mini_portile2 (~> 2.4.0)
87
- rack (2.0.7)
77
+ marcel (1.0.1)
78
+ method_source (1.0.0)
79
+ mini_mime (1.1.0)
80
+ mini_portile2 (2.5.0)
81
+ minitest (5.14.4)
82
+ nio4r (2.5.7)
83
+ nokogiri (1.11.2)
84
+ mini_portile2 (~> 2.5.0)
85
+ racc (~> 1.4)
86
+ racc (1.5.2)
87
+ rack (2.2.3)
88
88
  rack-test (1.1.0)
89
89
  rack (>= 1.0, < 3)
90
- rails (5.2.3)
91
- actioncable (= 5.2.3)
92
- actionmailer (= 5.2.3)
93
- actionpack (= 5.2.3)
94
- actionview (= 5.2.3)
95
- activejob (= 5.2.3)
96
- activemodel (= 5.2.3)
97
- activerecord (= 5.2.3)
98
- activestorage (= 5.2.3)
99
- activesupport (= 5.2.3)
90
+ rails (5.2.5)
91
+ actioncable (= 5.2.5)
92
+ actionmailer (= 5.2.5)
93
+ actionpack (= 5.2.5)
94
+ actionview (= 5.2.5)
95
+ activejob (= 5.2.5)
96
+ activemodel (= 5.2.5)
97
+ activerecord (= 5.2.5)
98
+ activestorage (= 5.2.5)
99
+ activesupport (= 5.2.5)
100
100
  bundler (>= 1.3.0)
101
- railties (= 5.2.3)
101
+ railties (= 5.2.5)
102
102
  sprockets-rails (>= 2.0.0)
103
103
  rails-dom-testing (2.0.3)
104
104
  activesupport (>= 4.2.0)
105
105
  nokogiri (>= 1.6)
106
- rails-html-sanitizer (1.2.0)
107
- loofah (~> 2.2, >= 2.2.2)
108
- railties (5.2.3)
109
- actionpack (= 5.2.3)
110
- activesupport (= 5.2.3)
106
+ rails-html-sanitizer (1.3.0)
107
+ loofah (~> 2.3)
108
+ railties (5.2.5)
109
+ actionpack (= 5.2.5)
110
+ activesupport (= 5.2.5)
111
111
  method_source
112
112
  rake (>= 0.8.7)
113
113
  thor (>= 0.19.0, < 2.0)
114
- rake (12.3.3)
114
+ rake (13.0.3)
115
115
  simplecov (0.16.1)
116
116
  docile (~> 1.1)
117
117
  json (>= 1.8, < 3)
118
118
  simplecov-html (~> 0.10.0)
119
119
  simplecov-html (0.10.2)
120
- sprockets (3.7.2)
120
+ sprockets (4.0.2)
121
121
  concurrent-ruby (~> 1.0)
122
122
  rack (> 1, < 3)
123
- sprockets-rails (3.2.1)
123
+ sprockets-rails (3.2.2)
124
124
  actionpack (>= 4.0)
125
125
  activesupport (>= 4.0)
126
126
  sprockets (>= 3.0.0)
127
- sqlite3 (1.4.1)
127
+ sqlite3 (1.4.2)
128
+ sync (0.5.0)
128
129
  term-ansicolor (1.7.1)
129
130
  tins (~> 1.0)
130
- thor (0.20.3)
131
+ thor (1.1.0)
131
132
  thread_safe (0.3.6)
132
- tins (1.21.1)
133
- tzinfo (1.2.5)
133
+ tins (1.28.0)
134
+ sync
135
+ tzinfo (1.2.9)
134
136
  thread_safe (~> 0.1)
135
- websocket-driver (0.7.1)
137
+ websocket-driver (0.7.3)
136
138
  websocket-extensions (>= 0.1.0)
137
- websocket-extensions (0.1.4)
139
+ websocket-extensions (0.1.5)
138
140
 
139
141
  PLATFORMS
140
142
  ruby
141
143
 
142
144
  DEPENDENCIES
143
145
  active_model_exporters!
144
- appraisal (~> 2.2)
145
- bundler (~> 2.0)
146
+ appraisal (~> 2.4)
147
+ bundler (~> 2.2)
146
148
  coveralls (~> 0.8)
147
- minitest (~> 5.0)
148
- rails (~> 5.2)
149
- rake (~> 12.0)
149
+ minitest (~> 5.14)
150
+ rails (~> 5.2.0)
151
+ rake (~> 13.0)
150
152
  sqlite3 (~> 1.4)
151
153
 
152
154
  BUNDLED WITH
153
- 2.0.2
155
+ 2.2.15
@@ -2,6 +2,6 @@
2
2
 
3
3
  source "https://rubygems.org"
4
4
 
5
- gem "rails", "~> 6.0"
5
+ gem "rails", "~> 6.0.0"
6
6
 
7
7
  gemspec path: "../"
@@ -1,169 +1,171 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- active_model_exporters (0.5.2)
5
- rails (>= 4.2)
4
+ active_model_exporters (0.6.0)
5
+ rails (>= 5.2)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
9
9
  specs:
10
- actioncable (6.0.0)
11
- actionpack (= 6.0.0)
10
+ actioncable (6.0.3.6)
11
+ actionpack (= 6.0.3.6)
12
12
  nio4r (~> 2.0)
13
13
  websocket-driver (>= 0.6.1)
14
- actionmailbox (6.0.0)
15
- actionpack (= 6.0.0)
16
- activejob (= 6.0.0)
17
- activerecord (= 6.0.0)
18
- activestorage (= 6.0.0)
19
- activesupport (= 6.0.0)
14
+ actionmailbox (6.0.3.6)
15
+ actionpack (= 6.0.3.6)
16
+ activejob (= 6.0.3.6)
17
+ activerecord (= 6.0.3.6)
18
+ activestorage (= 6.0.3.6)
19
+ activesupport (= 6.0.3.6)
20
20
  mail (>= 2.7.1)
21
- actionmailer (6.0.0)
22
- actionpack (= 6.0.0)
23
- actionview (= 6.0.0)
24
- activejob (= 6.0.0)
21
+ actionmailer (6.0.3.6)
22
+ actionpack (= 6.0.3.6)
23
+ actionview (= 6.0.3.6)
24
+ activejob (= 6.0.3.6)
25
25
  mail (~> 2.5, >= 2.5.4)
26
26
  rails-dom-testing (~> 2.0)
27
- actionpack (6.0.0)
28
- actionview (= 6.0.0)
29
- activesupport (= 6.0.0)
30
- rack (~> 2.0)
27
+ actionpack (6.0.3.6)
28
+ actionview (= 6.0.3.6)
29
+ activesupport (= 6.0.3.6)
30
+ rack (~> 2.0, >= 2.0.8)
31
31
  rack-test (>= 0.6.3)
32
32
  rails-dom-testing (~> 2.0)
33
33
  rails-html-sanitizer (~> 1.0, >= 1.2.0)
34
- actiontext (6.0.0)
35
- actionpack (= 6.0.0)
36
- activerecord (= 6.0.0)
37
- activestorage (= 6.0.0)
38
- activesupport (= 6.0.0)
34
+ actiontext (6.0.3.6)
35
+ actionpack (= 6.0.3.6)
36
+ activerecord (= 6.0.3.6)
37
+ activestorage (= 6.0.3.6)
38
+ activesupport (= 6.0.3.6)
39
39
  nokogiri (>= 1.8.5)
40
- actionview (6.0.0)
41
- activesupport (= 6.0.0)
40
+ actionview (6.0.3.6)
41
+ activesupport (= 6.0.3.6)
42
42
  builder (~> 3.1)
43
43
  erubi (~> 1.4)
44
44
  rails-dom-testing (~> 2.0)
45
45
  rails-html-sanitizer (~> 1.1, >= 1.2.0)
46
- activejob (6.0.0)
47
- activesupport (= 6.0.0)
46
+ activejob (6.0.3.6)
47
+ activesupport (= 6.0.3.6)
48
48
  globalid (>= 0.3.6)
49
- activemodel (6.0.0)
50
- activesupport (= 6.0.0)
51
- activerecord (6.0.0)
52
- activemodel (= 6.0.0)
53
- activesupport (= 6.0.0)
54
- activestorage (6.0.0)
55
- actionpack (= 6.0.0)
56
- activejob (= 6.0.0)
57
- activerecord (= 6.0.0)
58
- marcel (~> 0.3.1)
59
- activesupport (6.0.0)
49
+ activemodel (6.0.3.6)
50
+ activesupport (= 6.0.3.6)
51
+ activerecord (6.0.3.6)
52
+ activemodel (= 6.0.3.6)
53
+ activesupport (= 6.0.3.6)
54
+ activestorage (6.0.3.6)
55
+ actionpack (= 6.0.3.6)
56
+ activejob (= 6.0.3.6)
57
+ activerecord (= 6.0.3.6)
58
+ marcel (~> 1.0.0)
59
+ activesupport (6.0.3.6)
60
60
  concurrent-ruby (~> 1.0, >= 1.0.2)
61
61
  i18n (>= 0.7, < 2)
62
62
  minitest (~> 5.1)
63
63
  tzinfo (~> 1.1)
64
- zeitwerk (~> 2.1, >= 2.1.8)
65
- appraisal (2.2.0)
64
+ zeitwerk (~> 2.2, >= 2.2.2)
65
+ appraisal (2.4.0)
66
66
  bundler
67
67
  rake
68
68
  thor (>= 0.14.0)
69
- builder (3.2.3)
70
- concurrent-ruby (1.1.5)
69
+ builder (3.2.4)
70
+ concurrent-ruby (1.1.8)
71
71
  coveralls (0.8.23)
72
72
  json (>= 1.8, < 3)
73
73
  simplecov (~> 0.16.1)
74
74
  term-ansicolor (~> 1.3)
75
75
  thor (>= 0.19.4, < 2.0)
76
76
  tins (~> 1.6)
77
- crass (1.0.4)
78
- docile (1.3.2)
79
- erubi (1.8.0)
77
+ crass (1.0.6)
78
+ docile (1.3.5)
79
+ erubi (1.10.0)
80
80
  globalid (0.4.2)
81
81
  activesupport (>= 4.2.0)
82
- i18n (1.6.0)
82
+ i18n (1.8.10)
83
83
  concurrent-ruby (~> 1.0)
84
- json (2.2.0)
85
- loofah (2.2.3)
84
+ json (2.5.1)
85
+ loofah (2.9.0)
86
86
  crass (~> 1.0.2)
87
87
  nokogiri (>= 1.5.9)
88
88
  mail (2.7.1)
89
89
  mini_mime (>= 0.1.1)
90
- marcel (0.3.3)
91
- mimemagic (~> 0.3.2)
92
- method_source (0.9.2)
93
- mimemagic (0.3.3)
94
- mini_mime (1.0.2)
95
- mini_portile2 (2.4.0)
96
- minitest (5.11.3)
97
- nio4r (2.4.0)
98
- nokogiri (1.10.4)
99
- mini_portile2 (~> 2.4.0)
100
- rack (2.0.7)
90
+ marcel (1.0.1)
91
+ method_source (1.0.0)
92
+ mini_mime (1.1.0)
93
+ mini_portile2 (2.5.0)
94
+ minitest (5.14.4)
95
+ nio4r (2.5.7)
96
+ nokogiri (1.11.2)
97
+ mini_portile2 (~> 2.5.0)
98
+ racc (~> 1.4)
99
+ racc (1.5.2)
100
+ rack (2.2.3)
101
101
  rack-test (1.1.0)
102
102
  rack (>= 1.0, < 3)
103
- rails (6.0.0)
104
- actioncable (= 6.0.0)
105
- actionmailbox (= 6.0.0)
106
- actionmailer (= 6.0.0)
107
- actionpack (= 6.0.0)
108
- actiontext (= 6.0.0)
109
- actionview (= 6.0.0)
110
- activejob (= 6.0.0)
111
- activemodel (= 6.0.0)
112
- activerecord (= 6.0.0)
113
- activestorage (= 6.0.0)
114
- activesupport (= 6.0.0)
103
+ rails (6.0.3.6)
104
+ actioncable (= 6.0.3.6)
105
+ actionmailbox (= 6.0.3.6)
106
+ actionmailer (= 6.0.3.6)
107
+ actionpack (= 6.0.3.6)
108
+ actiontext (= 6.0.3.6)
109
+ actionview (= 6.0.3.6)
110
+ activejob (= 6.0.3.6)
111
+ activemodel (= 6.0.3.6)
112
+ activerecord (= 6.0.3.6)
113
+ activestorage (= 6.0.3.6)
114
+ activesupport (= 6.0.3.6)
115
115
  bundler (>= 1.3.0)
116
- railties (= 6.0.0)
116
+ railties (= 6.0.3.6)
117
117
  sprockets-rails (>= 2.0.0)
118
118
  rails-dom-testing (2.0.3)
119
119
  activesupport (>= 4.2.0)
120
120
  nokogiri (>= 1.6)
121
- rails-html-sanitizer (1.2.0)
122
- loofah (~> 2.2, >= 2.2.2)
123
- railties (6.0.0)
124
- actionpack (= 6.0.0)
125
- activesupport (= 6.0.0)
121
+ rails-html-sanitizer (1.3.0)
122
+ loofah (~> 2.3)
123
+ railties (6.0.3.6)
124
+ actionpack (= 6.0.3.6)
125
+ activesupport (= 6.0.3.6)
126
126
  method_source
127
127
  rake (>= 0.8.7)
128
128
  thor (>= 0.20.3, < 2.0)
129
- rake (12.3.3)
129
+ rake (13.0.3)
130
130
  simplecov (0.16.1)
131
131
  docile (~> 1.1)
132
132
  json (>= 1.8, < 3)
133
133
  simplecov-html (~> 0.10.0)
134
134
  simplecov-html (0.10.2)
135
- sprockets (3.7.2)
135
+ sprockets (4.0.2)
136
136
  concurrent-ruby (~> 1.0)
137
137
  rack (> 1, < 3)
138
- sprockets-rails (3.2.1)
138
+ sprockets-rails (3.2.2)
139
139
  actionpack (>= 4.0)
140
140
  activesupport (>= 4.0)
141
141
  sprockets (>= 3.0.0)
142
- sqlite3 (1.4.1)
142
+ sqlite3 (1.4.2)
143
+ sync (0.5.0)
143
144
  term-ansicolor (1.7.1)
144
145
  tins (~> 1.0)
145
- thor (0.20.3)
146
+ thor (1.1.0)
146
147
  thread_safe (0.3.6)
147
- tins (1.21.1)
148
- tzinfo (1.2.5)
148
+ tins (1.28.0)
149
+ sync
150
+ tzinfo (1.2.9)
149
151
  thread_safe (~> 0.1)
150
- websocket-driver (0.7.1)
152
+ websocket-driver (0.7.3)
151
153
  websocket-extensions (>= 0.1.0)
152
- websocket-extensions (0.1.4)
153
- zeitwerk (2.1.9)
154
+ websocket-extensions (0.1.5)
155
+ zeitwerk (2.4.2)
154
156
 
155
157
  PLATFORMS
156
158
  ruby
157
159
 
158
160
  DEPENDENCIES
159
161
  active_model_exporters!
160
- appraisal (~> 2.2)
161
- bundler (~> 2.0)
162
+ appraisal (~> 2.4)
163
+ bundler (~> 2.2)
162
164
  coveralls (~> 0.8)
163
- minitest (~> 5.0)
164
- rails (~> 6.0)
165
- rake (~> 12.0)
165
+ minitest (~> 5.14)
166
+ rails (~> 6.0.0)
167
+ rake (~> 13.0)
166
168
  sqlite3 (~> 1.4)
167
169
 
168
170
  BUNDLED WITH
169
- 2.0.2
171
+ 2.2.15
@@ -0,0 +1,7 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "rails", "~> 6.1.0"
6
+
7
+ gemspec path: "../"
@@ -0,0 +1,174 @@
1
+ PATH
2
+ remote: ..
3
+ specs:
4
+ active_model_exporters (0.6.0)
5
+ rails (>= 5.2)
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.0)
70
+ bundler
71
+ rake
72
+ thor (>= 0.14.0)
73
+ builder (3.2.4)
74
+ concurrent-ruby (1.1.8)
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.3.5)
83
+ erubi (1.10.0)
84
+ globalid (0.4.2)
85
+ activesupport (>= 4.2.0)
86
+ i18n (1.8.10)
87
+ concurrent-ruby (~> 1.0)
88
+ json (2.5.1)
89
+ loofah (2.9.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.1)
95
+ method_source (1.0.0)
96
+ mini_mime (1.0.3)
97
+ mini_portile2 (2.5.0)
98
+ minitest (5.14.4)
99
+ nio4r (2.5.7)
100
+ nokogiri (1.11.2)
101
+ mini_portile2 (~> 2.5.0)
102
+ racc (~> 1.4)
103
+ racc (1.5.2)
104
+ rack (2.2.3)
105
+ rack-test (1.1.0)
106
+ rack (>= 1.0, < 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.3.0)
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.3)
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.2)
140
+ concurrent-ruby (~> 1.0)
141
+ rack (> 1, < 3)
142
+ sprockets-rails (3.2.2)
143
+ actionpack (>= 4.0)
144
+ activesupport (>= 4.0)
145
+ sprockets (>= 3.0.0)
146
+ sqlite3 (1.4.2)
147
+ sync (0.5.0)
148
+ term-ansicolor (1.7.1)
149
+ tins (~> 1.0)
150
+ thor (1.1.0)
151
+ tins (1.28.0)
152
+ sync
153
+ tzinfo (2.0.4)
154
+ concurrent-ruby (~> 1.0)
155
+ websocket-driver (0.7.3)
156
+ websocket-extensions (>= 0.1.0)
157
+ websocket-extensions (0.1.5)
158
+ zeitwerk (2.4.2)
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.2.15
@@ -19,7 +19,7 @@ module ActiveModel
19
19
  private
20
20
 
21
21
  def generate_file(options = {})
22
- CSV.generate(options) do |file|
22
+ CSV.generate(**options) do |file|
23
23
  file << headers
24
24
  collection.each do |object|
25
25
  file << exporter_for(object).values
@@ -1,5 +1,5 @@
1
1
  module ActiveModel
2
2
  class Exporter
3
- VERSION = '0.5.2'
3
+ VERSION = '0.6.0'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_model_exporters
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.2
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alejandro Gutiérrez
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-08-20 00:00:00.000000000 Z
11
+ date: 2021-04-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -16,28 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '12.0'
19
+ version: '13.0'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '12.0'
26
+ version: '13.0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '2.0'
33
+ version: '2.2'
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: '2.0'
40
+ version: '2.2'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: sqlite3
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -58,28 +58,28 @@ dependencies:
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '5.0'
61
+ version: '5.14'
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: '5.0'
68
+ version: '5.14'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: appraisal
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: '2.2'
75
+ version: '2.4'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: '2.2'
82
+ version: '2.4'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: coveralls
85
85
  requirement: !ruby/object:Gem::Requirement
@@ -100,14 +100,14 @@ dependencies:
100
100
  requirements:
101
101
  - - ">="
102
102
  - !ruby/object:Gem::Version
103
- version: '4.2'
103
+ version: '5.2'
104
104
  type: :runtime
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - ">="
109
109
  - !ruby/object:Gem::Version
110
- version: '4.2'
110
+ version: '5.2'
111
111
  description: A simple way to export data in Rails.
112
112
  email:
113
113
  - alejandrodevs@gmail.com
@@ -119,15 +119,20 @@ files:
119
119
  - ".travis.yml"
120
120
  - Appraisals
121
121
  - CHANGELOG.md
122
+ - CODE_OF_CONDUCT.md
122
123
  - Gemfile
123
124
  - LICENSE.txt
124
125
  - README.md
125
126
  - Rakefile
126
127
  - active_model_exporters.gemspec
128
+ - bin/console
129
+ - bin/setup
127
130
  - gemfiles/rails_5.2.gemfile
128
131
  - gemfiles/rails_5.2.gemfile.lock
129
132
  - gemfiles/rails_6.0.gemfile
130
133
  - gemfiles/rails_6.0.gemfile.lock
134
+ - gemfiles/rails_6.1.gemfile
135
+ - gemfiles/rails_6.1.gemfile.lock
131
136
  - lib/action_controller/exportation.rb
132
137
  - lib/action_controller/exportation/mime_types.rb
133
138
  - lib/action_controller/exportation/renderers.rb
@@ -143,7 +148,7 @@ metadata:
143
148
  homepage_uri: https://github.com/alejandrodevs/active_model_exporters
144
149
  source_code_uri: https://github.com/alejandrodevs/active_model_exporters
145
150
  changelog_uri: https://github.com/alejandrodevs/active_model_exporters/blob/master/LICENSE.txt
146
- post_install_message:
151
+ post_install_message:
147
152
  rdoc_options: []
148
153
  require_paths:
149
154
  - lib
@@ -158,8 +163,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
158
163
  - !ruby/object:Gem::Version
159
164
  version: '0'
160
165
  requirements: []
161
- rubygems_version: 3.0.3
162
- signing_key:
166
+ rubygems_version: 3.2.3
167
+ signing_key:
163
168
  specification_version: 4
164
169
  summary: A simple way to export data in Rails.
165
170
  test_files: []