decisive 0.8.3 → 0.8.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0b38c58e34d219f9261afb9e253086ac9b6119c5b99ee402c940190e366f77c9
4
- data.tar.gz: 681cc003a82807f8a2ab9993f009a1791a14ed3eab7737d9b4547daeb2c03d1a
3
+ metadata.gz: 4406c3623002cfd318991173f86e55aa7db0aba0f4567ee1eca1d283426a95bd
4
+ data.tar.gz: f1fcb3deaee37fb14bdd9ada95f7b9cbedad5561697dcd716204c49eb0506ba8
5
5
  SHA512:
6
- metadata.gz: c019470bf1cb254b454849a58063fcfd66ca758e246cd352df3b200dc209b649221ce93bd028fb74455b77fcc42b7d597abadd2bf6c537d9fb7eb8e9abdf8cc6
7
- data.tar.gz: 88d114b63a742e467cf3c07b13fe69be4f3d8c7a1abb59433c91f0b00b6f7332e4e9e81869b7432f2b2c8069eaa39db49355a896525043720890ef1ebdce2f3a
6
+ metadata.gz: 75ba5797b6eca24b9ac0926dcaa866ada4791996b3b5eb00bd9fc678974f20c75ab93eb2c91dadc40862176049f5497f868c2bcd07a39a15d1ad35c732334026
7
+ data.tar.gz: 4e1eb876fa5246d381e0abad296972457c176497235c2bf0c28607e49ce92cead4b9d7d815372214e4a7964e1a796d5c113fd80ed133660f0893dcf6bcf39f76
@@ -5,15 +5,8 @@ jobs:
5
5
  strategy:
6
6
  fail-fast: false
7
7
  matrix:
8
- gemfile: [ rails_5.1, rails_5.2, rails_6.0, rails_6.1, rails_7.0 ]
9
- ruby: [ 2.6, 2.7, '3.0' ]
10
- exclude:
11
- - gemfile: rails_5.1
12
- ruby: 3.0
13
- - gemfile: rails_5.2
14
- ruby: 3.0
15
- - gemfile: rails_7.0
16
- ruby: 2.6
8
+ gemfile: [ rails_6.0, rails_6.1, rails_7.0 ]
9
+ ruby: [ 2.7, '3.0', 3.1 ]
17
10
 
18
11
  runs-on: ubuntu-latest
19
12
  env: # $BUNDLE_GEMFILE must be set at the job level, so it is set for all steps
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- ruby-2.7.3
1
+ ruby-3.1.3
data/Appraisals CHANGED
@@ -1,20 +1,12 @@
1
- appraise "rails-5.1" do
2
- gem "actionview", "5.1"
3
- end
4
-
5
- appraise "rails-5.2" do
6
- gem "actionview", "5.2"
7
- end
8
-
9
1
  appraise "rails-6.0" do
10
- gem "actionview", "6.0"
2
+ gem "actionview", "~>6.0.0"
11
3
  end
12
4
 
13
5
  appraise "rails-6.1" do
14
- gem "actionview", "6.1"
6
+ gem "actionview", "~>6.1.0"
15
7
  end
16
8
 
17
9
  appraise "rails-7.0" do
18
- gem "actionview", "7.0"
10
+ gem "actionview", "~>7.0.0"
19
11
  end
20
12
 
@@ -3,6 +3,6 @@
3
3
  source "https://rubygems.org"
4
4
 
5
5
  gem "byebug"
6
- gem "actionview", "6.0"
6
+ gem "actionview", "~>6.0.0"
7
7
 
8
8
  gemspec path: "../"
@@ -3,6 +3,6 @@
3
3
  source "https://rubygems.org"
4
4
 
5
5
  gem "byebug"
6
- gem "actionview", "6.1"
6
+ gem "actionview", "~>6.1.0"
7
7
 
8
8
  gemspec path: "../"
@@ -3,6 +3,6 @@
3
3
  source "https://rubygems.org"
4
4
 
5
5
  gem "byebug"
6
- gem "actionview", "7.0"
6
+ gem "actionview", "~>7.0.0"
7
7
 
8
8
  gemspec path: "../"
@@ -23,11 +23,8 @@ module Decisive
23
23
  end
24
24
 
25
25
  def hashes
26
- @hashes ||= begin
27
- method = records.respond_to?(:find_each) ? :find_each : :each
28
- records.send(method).map do |record|
29
- Row.new(record, block).to_hash
30
- end
26
+ @hashes ||= records.map do |record|
27
+ Row.new(record, block).to_hash
31
28
  end
32
29
  end
33
30
 
@@ -22,8 +22,7 @@ module Decisive
22
22
  def each
23
23
  yield header
24
24
 
25
- method = records.respond_to?(:find_each) ? :find_each : :each
26
- records.send(method) do |record|
25
+ records.map do |record|
27
26
  row = columns.map do |column|
28
27
  column.block.call(record).to_s
29
28
  end
@@ -1,3 +1,3 @@
1
1
  module Decisive
2
- VERSION = "0.8.3"
2
+ VERSION = "0.8.4"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: decisive
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.3
4
+ version: 0.8.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Micah Geisel
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-04-15 00:00:00.000000000 Z
11
+ date: 2023-03-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: actionview
@@ -115,8 +115,6 @@ files:
115
115
  - bin/setup
116
116
  - decisive.gemspec
117
117
  - gemfiles/.bundle/config
118
- - gemfiles/rails_5.1.gemfile
119
- - gemfiles/rails_5.2.gemfile
120
118
  - gemfiles/rails_6.0.gemfile
121
119
  - gemfiles/rails_6.1.gemfile
122
120
  - gemfiles/rails_7.0.gemfile
@@ -147,7 +145,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
147
145
  - !ruby/object:Gem::Version
148
146
  version: '0'
149
147
  requirements: []
150
- rubygems_version: 3.1.6
148
+ rubygems_version: 3.3.26
151
149
  signing_key:
152
150
  specification_version: 4
153
151
  summary: DSL for rendering CSVs
@@ -1,8 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "https://rubygems.org"
4
-
5
- gem "byebug"
6
- gem "actionview", "5.1"
7
-
8
- gemspec path: "../"
@@ -1,8 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "https://rubygems.org"
4
-
5
- gem "byebug"
6
- gem "actionview", "5.2"
7
-
8
- gemspec path: "../"