autocomplete_for 1.0.7 → 1.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
2
  SHA256:
3
- metadata.gz: 89ab72a9819ed1ce0ec641611c0abb69caf2cb5093527905993c072509d7ba93
4
- data.tar.gz: dbffb53ee1bd470598ea13027f81c0048b58f71e4d80c99374601b9d8825cf79
3
+ metadata.gz: 0f2d8bc6a37381635eeb26a7b8a154136b9ff07e44c056e6ad191287f8971278
4
+ data.tar.gz: e9973f4862e0b067f4319437de7fb554dbb3465be0ad040865d09b7a155226cc
5
5
  SHA512:
6
- metadata.gz: 8b9348d4096755787c8bed7a476aaef0ebe775dcb4bc92a1971b07813e1d21bdccb74aca93c1da57baf1bc293eb7f46edd28908e282c5eaeb8b0907103f56ac8
7
- data.tar.gz: e21e312b715ca0003b43235d88ff62d2bfdf971d84c8532702483da2f964068753944f6a2e7506a65584ac5084639fb097e0f708e3399c9a71f7a5f9aa5a21b2
6
+ metadata.gz: c25f187dac5529ab52f8b7fb7901230c47a43597dc779b887b12eec274becd44d466c2a8b21362a80943a41a9f805a89eedc395bace1af49c05a18e5f3919e74
7
+ data.tar.gz: 7c06ef0adc93b3e34ecb98d18d3dc2eea4976a3d64669476239ebd9198cfd6f3204c1ffbb6c41f601053a6c78abec927ebd3c6b0af70976ec32a1b38f9a307a7
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'autocomplete_for/autocomplete_for.rb'
4
- require 'autocomplete_for/version.rb'
3
+ require "autocomplete_for/autocomplete_for.rb"
4
+ require "autocomplete_for/version.rb"
5
5
 
6
6
  module AutocompleteFor
7
7
  end
@@ -39,7 +39,7 @@ module AutocompleteFor
39
39
  define_method(:"validate_#{association}_by_#{field}") do
40
40
  return unless instance_variable_get(:"@#{association}_#{field}")
41
41
  return if send(association.to_sym)
42
- return if self.class.instance_variable_get(:"@#{association}_#{field}_allow_nil") && instance_variable_get(:"@#{association}_#{field}") == ''
42
+ return if self.class.instance_variable_get(:"@#{association}_#{field}_allow_nil") && instance_variable_get(:"@#{association}_#{field}") == ""
43
43
 
44
44
  errors.add(:"#{association}_#{field}", :does_not_exist)
45
45
  end
@@ -65,7 +65,7 @@ module AutocompleteFor
65
65
  define_method(:"associate_#{association}_by_#{field}") do
66
66
  return unless instance_variable_get(:"@#{association}_#{field}")
67
67
 
68
- if instance_variable_get(:"@#{association}_#{field}") == ''
68
+ if instance_variable_get(:"@#{association}_#{field}") == ""
69
69
  send(:"#{association}=", nil)
70
70
  return
71
71
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module AutocompleteFor
4
- VERSION = '1.0.7'
4
+ VERSION = "1.1"
5
5
  end
metadata CHANGED
@@ -1,14 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: autocomplete_for
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.7
4
+ version: '1.1'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sean Kirby
8
+ - Alistair McKinnell
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2019-12-09 00:00:00.000000000 Z
12
+ date: 2020-11-05 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: activerecord
@@ -19,7 +20,7 @@ dependencies:
19
20
  version: '5.1'
20
21
  - - "<"
21
22
  - !ruby/object:Gem::Version
22
- version: '6.0'
23
+ version: '6.1'
23
24
  type: :runtime
24
25
  prerelease: false
25
26
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +30,21 @@ dependencies:
29
30
  version: '5.1'
30
31
  - - "<"
31
32
  - !ruby/object:Gem::Version
32
- version: '6.0'
33
+ version: '6.1'
34
+ - !ruby/object:Gem::Dependency
35
+ name: appraisal
36
+ requirement: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '2.3'
41
+ type: :development
42
+ prerelease: false
43
+ version_requirements: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '2.3'
33
48
  - !ruby/object:Gem::Dependency
34
49
  name: rails
35
50
  requirement: !ruby/object:Gem::Requirement
@@ -70,28 +85,28 @@ dependencies:
70
85
  requirements:
71
86
  - - "~>"
72
87
  - !ruby/object:Gem::Version
73
- version: '3.8'
88
+ version: '4.0'
74
89
  type: :development
75
90
  prerelease: false
76
91
  version_requirements: !ruby/object:Gem::Requirement
77
92
  requirements:
78
93
  - - "~>"
79
94
  - !ruby/object:Gem::Version
80
- version: '3.8'
95
+ version: '4.0'
81
96
  - !ruby/object:Gem::Dependency
82
97
  name: rubocop
83
98
  requirement: !ruby/object:Gem::Requirement
84
99
  requirements:
85
100
  - - "~>"
86
101
  - !ruby/object:Gem::Version
87
- version: '0.70'
102
+ version: '1.2'
88
103
  type: :development
89
104
  prerelease: false
90
105
  version_requirements: !ruby/object:Gem::Requirement
91
106
  requirements:
92
107
  - - "~>"
93
108
  - !ruby/object:Gem::Version
94
- version: '0.70'
109
+ version: '1.2'
95
110
  - !ruby/object:Gem::Dependency
96
111
  name: sqlite3
97
112
  requirement: !ruby/object:Gem::Requirement
@@ -134,14 +149,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
134
149
  requirements:
135
150
  - - ">="
136
151
  - !ruby/object:Gem::Version
137
- version: '2.5'
152
+ version: '2.6'
138
153
  required_rubygems_version: !ruby/object:Gem::Requirement
139
154
  requirements:
140
155
  - - ">="
141
156
  - !ruby/object:Gem::Version
142
157
  version: '0'
143
158
  requirements: []
144
- rubygems_version: 3.0.6
159
+ rubygems_version: 3.1.4
145
160
  signing_key:
146
161
  specification_version: 4
147
162
  summary: Autocomplete for models