relation_to_struct 1.5.0 → 1.5.1

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
- SHA1:
3
- metadata.gz: b36da83b17102b8a6f19d1bd7b55ba8486d2bd9b
4
- data.tar.gz: 3693bc1c95c15877d4e58a66b5700210e4861ff6
2
+ SHA256:
3
+ metadata.gz: 7c0ecf02a9aab05f81adc8704ad9fcf8b71ec339859ba9ef491e0a2ea9eb75e9
4
+ data.tar.gz: 2cd15cd6e481026b2b9294d621db0ea7d257168a5288e4316cc9735d09b3bcfd
5
5
  SHA512:
6
- metadata.gz: a1a43b34975434afd52f51ddd8ab1f3ba135e976248865a67ffc4ddc7fcfb6d9423c25168f4228c538b6c617d9d5a85559ebeebc99ff460f3a3df368cf973c8b
7
- data.tar.gz: 7ea17f61be34643cadeaa7377b0ca481ef574d32c2327a8986bf915a4b6d5e0bdae260477547d51f0ee49c197032f1471d8f28d5e25a386fea0906ffa7f27081
6
+ metadata.gz: b38fe58cf3b14d889789526b85dab4afa03e29c7d3825d39c92ae5dcac23eeea2dab7cdacf95a320438996d8cd8e4b434ea4b0d40198f5eab3539d157b76a54c
7
+ data.tar.gz: f3c565ca306f0120c9081626c4a9ee07569f68a75382b2409d0714fb603ae9010f4903789a50568482469a97bf96fb64e16044252bd6fb249261fab2baf4f4bc
data/Appraisals CHANGED
@@ -1,5 +1,10 @@
1
- %w(5.0 5.1 5.2).each do |version|
1
+ %w(5.0 5.1 5.2 6.0).each do |version|
2
2
  appraise "rails-#{version.gsub(/\./, "-")}" do
3
3
  gem "rails", "~> #{version}.0"
4
+ if version[0] == '6'
5
+ gem "sqlite3", "~> 1.4.0"
6
+ else
7
+ gem "sqlite3", "~> 1.3.0"
8
+ end
4
9
  end
5
10
  end
data/README.md CHANGED
@@ -99,7 +99,13 @@ For this reason, **all methods added to `ActiveRecord::Base` explicitly disable
99
99
 
100
100
  1. Fork it ( https://github.com/jcoleman/relation_to_struct/fork )
101
101
  2. Create your feature branch (`git checkout -b my-new-feature`)
102
- 3. Test your changes (`bundle install && appraisal install && rake`)
102
+ 3. Test your changes (`bundle install && bundle exec appraisal install && bundle exec rake`)
103
103
  4. Commit your changes (`git commit -am 'Add some feature'`)
104
104
  5. Push to the branch (`git push origin my-new-feature`)
105
105
  6. Create a new Pull Request
106
+
107
+ ## Releasing
108
+
109
+ 1. Bump version in `lib/relation_to_struct/version.rb` and commit.
110
+ 2. Run `rake build` to build the `*.gem` file.
111
+ 3. Run `rake release` to publish the gem to Rubygems.
@@ -2,6 +2,7 @@
2
2
 
3
3
  source "https://rubygems.org"
4
4
 
5
- gem "rails", "~> 5.0"
5
+ gem "rails", "~> 5.0.0"
6
+ gem "sqlite3", "~> 1.3.0"
6
7
 
7
8
  gemspec path: "../"
@@ -2,6 +2,7 @@
2
2
 
3
3
  source "https://rubygems.org"
4
4
 
5
- gem "rails", "~> 5.1"
5
+ gem "rails", "~> 5.1.0"
6
+ gem "sqlite3", "~> 1.3.0"
6
7
 
7
8
  gemspec path: "../"
@@ -2,6 +2,7 @@
2
2
 
3
3
  source "https://rubygems.org"
4
4
 
5
- gem "rails", "~> 5.2"
5
+ gem "rails", "~> 5.2.0"
6
+ gem "sqlite3", "~> 1.3.0"
6
7
 
7
8
  gemspec path: "../"
@@ -0,0 +1,8 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "rails", "~> 6.0.0"
6
+ gem "sqlite3", "~> 1.4.0"
7
+
8
+ gemspec path: "../"
@@ -1,3 +1,3 @@
1
1
  module RelationToStruct
2
- VERSION = "1.5.0"
2
+ VERSION = "1.5.1"
3
3
  end
@@ -18,14 +18,14 @@ Gem::Specification.new do |spec|
18
18
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
19
  spec.require_paths = ["lib"]
20
20
 
21
- spec.add_development_dependency "appraisal", "~> 2.1"
22
- spec.add_development_dependency "bundler", "~> 1.7"
23
- spec.add_development_dependency "rake", "~> 10.0"
24
- spec.add_development_dependency "sqlite3", "~> 1.3"
25
- spec.add_development_dependency "rspec", "~> 3.2"
21
+ spec.add_development_dependency "appraisal", ">= 2.1"
22
+ spec.add_development_dependency "bundler", ">= 1.7"
23
+ spec.add_development_dependency "rake", ">= 10.0"
24
+ spec.add_development_dependency "sqlite3", ">= 1.3"
25
+ spec.add_development_dependency "rspec", ">= 3.2"
26
26
  spec.add_development_dependency "pry-byebug"
27
27
  spec.add_development_dependency "pg"
28
28
 
29
- spec.add_dependency "activerecord", ">= 5.0", "< 5.3"
30
- spec.add_dependency "activesupport", ">= 5.0", "< 5.3"
29
+ spec.add_dependency "activerecord", ">= 5.0", "< 7"
30
+ spec.add_dependency "activesupport", ">= 5.0", "< 7"
31
31
  end
metadata CHANGED
@@ -1,83 +1,83 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: relation_to_struct
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.0
4
+ version: 1.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Coleman
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-02-01 00:00:00.000000000 Z
11
+ date: 2019-11-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: appraisal
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '2.1'
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
26
  version: '2.1'
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
33
  version: '1.7'
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
40
  version: '1.7'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rake
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - "~>"
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
47
  version: '10.0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - "~>"
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '10.0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: sqlite3
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - "~>"
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
61
  version: '1.3'
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
68
  version: '1.3'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rspec
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - "~>"
73
+ - - ">="
74
74
  - !ruby/object:Gem::Version
75
75
  version: '3.2'
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
82
  version: '3.2'
83
83
  - !ruby/object:Gem::Dependency
@@ -117,7 +117,7 @@ dependencies:
117
117
  version: '5.0'
118
118
  - - "<"
119
119
  - !ruby/object:Gem::Version
120
- version: '5.3'
120
+ version: '7'
121
121
  type: :runtime
122
122
  prerelease: false
123
123
  version_requirements: !ruby/object:Gem::Requirement
@@ -127,7 +127,7 @@ dependencies:
127
127
  version: '5.0'
128
128
  - - "<"
129
129
  - !ruby/object:Gem::Version
130
- version: '5.3'
130
+ version: '7'
131
131
  - !ruby/object:Gem::Dependency
132
132
  name: activesupport
133
133
  requirement: !ruby/object:Gem::Requirement
@@ -137,7 +137,7 @@ dependencies:
137
137
  version: '5.0'
138
138
  - - "<"
139
139
  - !ruby/object:Gem::Version
140
- version: '5.3'
140
+ version: '7'
141
141
  type: :runtime
142
142
  prerelease: false
143
143
  version_requirements: !ruby/object:Gem::Requirement
@@ -147,7 +147,7 @@ dependencies:
147
147
  version: '5.0'
148
148
  - - "<"
149
149
  - !ruby/object:Gem::Version
150
- version: '5.3'
150
+ version: '7'
151
151
  description: ''
152
152
  email:
153
153
  - jtc331@gmail.com
@@ -165,6 +165,7 @@ files:
165
165
  - gemfiles/rails_5_0.gemfile
166
166
  - gemfiles/rails_5_1.gemfile
167
167
  - gemfiles/rails_5_2.gemfile
168
+ - gemfiles/rails_6_0.gemfile
168
169
  - lib/relation_to_struct.rb
169
170
  - lib/relation_to_struct/active_record_base_extension.rb
170
171
  - lib/relation_to_struct/active_record_relation_extension.rb
@@ -197,8 +198,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
197
198
  - !ruby/object:Gem::Version
198
199
  version: '0'
199
200
  requirements: []
200
- rubyforge_project:
201
- rubygems_version: 2.6.14
201
+ rubygems_version: 3.0.6
202
202
  signing_key:
203
203
  specification_version: 4
204
204
  summary: Return struct results from ActiveRecord relation queries