bhf 1.0.0.beta12 → 1.0.0.beta13

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: 0e968b63885e346dfd386dd19461dd351514b2c0e846fe96a5b594a97109d101
4
- data.tar.gz: 0e0ef9cf6d583f605d4768cb6327d77f21536d94da34e5f8698805da595089a2
3
+ metadata.gz: '0299a01e605ea27b2d8d18c66f4a3777b3c3c49d00fe25d9b144d6b12939085e'
4
+ data.tar.gz: 4c73e93c7866ed81e04372459bb155b1c1a15a6e392b0462d0acc3c02491d68e
5
5
  SHA512:
6
- metadata.gz: 2f6f84348ee9e9eb77f81c356abe03c2fe6de24f56c3dd66768ce23cef3e3d98eaebdb9cec608783422355aeab2fcbc175405377cc024216ce647ee8bfc5667a
7
- data.tar.gz: fa906b8237814c1ad3afa1c0409c2fc0d8fbcef9778cd0b0b9ef333a33015d695059258576cced5c241e74b0be349ed7c71348d1067d3dfd42df2d0e875ff72f
6
+ metadata.gz: c958e66dde651b74f2d2b7cb6c4b8aad2934e49c551442645be298fadcbd75d79794303a225179b03ac6641041932374805e40a8b04e486f9f35487e5c82bef4
7
+ data.tar.gz: 0dc40e56b3f326275afd315d92ce3df1fb7f898396f4a45a6716771dfe3017877b9cda5aaa8a9e3906a7f575d73f90ce65e72924e52d431c0d0f5837f702d7d7
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.0.beta12
1
+ 1.0.0.beta13
@@ -168,7 +168,7 @@ class Bhf::EntriesController < Bhf::ApplicationController
168
168
  def manage_many_to_many
169
169
  return unless params[:has_and_belongs_to_many]
170
170
  params[:has_and_belongs_to_many].each_pair do |relation, ids|
171
- next unless ids.empty?
171
+ next if ids.nil? || ids.empty?
172
172
  reflection = @model.reflections[relation]
173
173
  relation_array = @object.send(relation)
174
174
  reflection.klass.unscoped.find(ids.keys).each do |relation_obj|
@@ -208,7 +208,7 @@ class Bhf::EntriesController < Bhf::ApplicationController
208
208
  return unless params[:has_many]
209
209
  object_id = @object.send(@model.bhf_primary_key)
210
210
  params[:has_many].each_pair do |relation, ids|
211
- next unless ids.empty?
211
+ next if ids.nil? || ids.empty?
212
212
  reflection = @model.reflections[relation]
213
213
  preset_ids = @object.send(relation).collect do |object|
214
214
  object.send(object.class.bhf_primary_key).to_s
@@ -2,16 +2,16 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: bhf 1.0.0.beta12 ruby lib
5
+ # stub: bhf 1.0.0.beta13 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "bhf".freeze
9
- s.version = "1.0.0.beta12"
9
+ s.version = "1.0.0.beta13"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new("> 1.3.1".freeze) if s.respond_to? :required_rubygems_version=
12
12
  s.require_paths = ["lib".freeze]
13
13
  s.authors = ["Anton Pawlik".freeze]
14
- s.date = "2020-03-07"
14
+ s.date = "2020-07-16"
15
15
  s.description = "A simple to use Rails-Engine-Gem that offers an admin interface for trusted user. Easy integratable and highly configurable and agnostic. Works with ActiveRecord and Mongoid.".freeze
16
16
  s.email = "anton.pawlik@gmail.com".freeze
17
17
  s.extra_rdoc_files = [
@@ -174,24 +174,35 @@ Gem::Specification.new do |s|
174
174
  ]
175
175
  s.homepage = "http://antpaw.github.io/bhf".freeze
176
176
  s.licenses = ["MIT".freeze]
177
- s.rubygems_version = "3.1.2".freeze
177
+ s.rubygems_version = "3.0.8".freeze
178
178
  s.summary = "A simple to use Rails-Engine-Gem that offers an admin interface for trusted user.".freeze
179
179
 
180
180
  if s.respond_to? :specification_version then
181
181
  s.specification_version = 4
182
- end
183
182
 
184
- if s.respond_to? :add_runtime_dependency then
185
- s.add_runtime_dependency(%q<rails>.freeze, [">= 5.2.2.1"])
186
- s.add_runtime_dependency(%q<sass-rails>.freeze, [">= 6"])
187
- s.add_runtime_dependency(%q<turbolinks>.freeze, [">= 2"])
188
- s.add_runtime_dependency(%q<kaminari>.freeze, [">= 0"])
189
- s.add_runtime_dependency(%q<haml-rails>.freeze, [">= 0"])
190
- s.add_development_dependency(%q<shoulda>.freeze, [">= 3"])
191
- s.add_development_dependency(%q<rdoc>.freeze, [">= 3"])
192
- s.add_development_dependency(%q<bundler>.freeze, [">= 1"])
193
- s.add_development_dependency(%q<jeweler>.freeze, [">= 2"])
194
- s.add_development_dependency(%q<simplecov>.freeze, [">= 0"])
183
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
184
+ s.add_runtime_dependency(%q<rails>.freeze, [">= 5.2.2.1"])
185
+ s.add_runtime_dependency(%q<sass-rails>.freeze, [">= 6"])
186
+ s.add_runtime_dependency(%q<turbolinks>.freeze, [">= 2"])
187
+ s.add_runtime_dependency(%q<kaminari>.freeze, [">= 0"])
188
+ s.add_runtime_dependency(%q<haml-rails>.freeze, [">= 0"])
189
+ s.add_development_dependency(%q<shoulda>.freeze, [">= 3"])
190
+ s.add_development_dependency(%q<rdoc>.freeze, [">= 3"])
191
+ s.add_development_dependency(%q<bundler>.freeze, [">= 1"])
192
+ s.add_development_dependency(%q<jeweler>.freeze, [">= 2"])
193
+ s.add_development_dependency(%q<simplecov>.freeze, [">= 0"])
194
+ else
195
+ s.add_dependency(%q<rails>.freeze, [">= 5.2.2.1"])
196
+ s.add_dependency(%q<sass-rails>.freeze, [">= 6"])
197
+ s.add_dependency(%q<turbolinks>.freeze, [">= 2"])
198
+ s.add_dependency(%q<kaminari>.freeze, [">= 0"])
199
+ s.add_dependency(%q<haml-rails>.freeze, [">= 0"])
200
+ s.add_dependency(%q<shoulda>.freeze, [">= 3"])
201
+ s.add_dependency(%q<rdoc>.freeze, [">= 3"])
202
+ s.add_dependency(%q<bundler>.freeze, [">= 1"])
203
+ s.add_dependency(%q<jeweler>.freeze, [">= 2"])
204
+ s.add_dependency(%q<simplecov>.freeze, [">= 0"])
205
+ end
195
206
  else
196
207
  s.add_dependency(%q<rails>.freeze, [">= 5.2.2.1"])
197
208
  s.add_dependency(%q<sass-rails>.freeze, [">= 6"])
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bhf
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.beta12
4
+ version: 1.0.0.beta13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Anton Pawlik
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-03-07 00:00:00.000000000 Z
11
+ date: 2020-07-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -331,7 +331,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
331
331
  - !ruby/object:Gem::Version
332
332
  version: 1.3.1
333
333
  requirements: []
334
- rubygems_version: 3.1.2
334
+ rubygems_version: 3.0.8
335
335
  signing_key:
336
336
  specification_version: 4
337
337
  summary: A simple to use Rails-Engine-Gem that offers an admin interface for trusted