para 0.7.3.p6 → 0.7.3

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
  SHA1:
3
- metadata.gz: 3a7e0d8dab52d3042d08d4d280c5513c00b5f21f
4
- data.tar.gz: d00586a06d3b90486cc26c1181f506ffbaa90384
3
+ metadata.gz: a4695189116a23dad447169ffd9b2a47dc56bc48
4
+ data.tar.gz: 884deba7d7d9e4d60a199bddc1919b29220d6241
5
5
  SHA512:
6
- metadata.gz: 05030c72f2b6aea1ef5afc25fff88cc0fc344e346af41132d54d10d5004595f5481ef758621c7cac232926e3f4f22f4ce559bf99378b498407a0730af424fdbe
7
- data.tar.gz: 1bb39a8165bfba880996f185eec46d2cf65543aad1e333f5f752aa0b79ac9857afcbc4e59ebd791e0b1f256a9f0c3bc778ae69fbcb0cd3e72c8b76ed65a064b2
6
+ metadata.gz: 6e5f3d54ba71c70fb64f3c411d94464c961ed765ec6c9c173785ed32c487d80a2eda3aaafbe2b0394e937dede7022273ff0f742ed80a144adcc24ba67dee9f19
7
+ data.tar.gz: b09c174d2eef7bde8cc151323eefae7a6b9abd3227ca9a2d4d36173ce501c014c3db1d5d97aaf645a1d8d41084fe43946c526ab3bce0698d93df4c1ca6785769
@@ -3,7 +3,7 @@
3
3
  %span.handle
4
4
  %i.sort-dots
5
5
  %span.node-name
6
- = resource_name(root)
6
+ = root.name
7
7
 
8
8
  .pull-right
9
9
  = link_to @component.relation_path(root, action: :edit, return_to: request.fullpath), class: "btn btn-icon-primary btn-shadow btn-sm hint--left", :'aria-label' => ::I18n.t('para.shared.edit') do
@@ -39,7 +39,7 @@ module Para
39
39
  if through_reflection && through_reflection.klass.orderable?
40
40
  assign_ordered_through_reflection_ids(through_reflection, resource, ids)
41
41
  else
42
- resource.send(:"#{plural_foreign_key}=", ids)
42
+ resource.assign_attributes(plural_foreign_key => ids)
43
43
  end
44
44
  end
45
45
 
@@ -13,7 +13,7 @@ module Para
13
13
  end
14
14
 
15
15
  def parse_input(params, resource)
16
- params[name] = params[name].presence if resource.respond_to?(:"#{name}=")
16
+ params[name] = params[name].presence
17
17
  end
18
18
  end
19
19
  end
@@ -15,7 +15,7 @@ module Para
15
15
  def orderable_assign_position
16
16
  return if attribute_present?(:position)
17
17
 
18
- last_resource = orderable_scope
18
+ last_resource = orderabe_scope
19
19
  .where.not(position: nil)
20
20
  .select(:position)
21
21
  .first
@@ -37,7 +37,7 @@ module Para
37
37
 
38
38
  def orderable_scope
39
39
  if (parent = _orderable_options[:parent]) && (as = _orderable_options[:as])
40
- try(parent).try(as).try(:ordered) || self.class.none
40
+ try(parent).try(as).try(:ordered) || []
41
41
  else
42
42
  self.class.unscoped.ordered
43
43
  end
data/lib/para/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Para
2
- VERSION = '0.7.3.p6'
2
+ VERSION = '0.7.3'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: para
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.3.p6
4
+ version: 0.7.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Valentin Ballestrino
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-02-21 00:00:00.000000000 Z
11
+ date: 2018-12-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -390,22 +390,16 @@ dependencies:
390
390
  name: font-awesome-sass
391
391
  requirement: !ruby/object:Gem::Requirement
392
392
  requirements:
393
- - - ">="
393
+ - - "~>"
394
394
  - !ruby/object:Gem::Version
395
395
  version: 4.7.0
396
- - - "<="
397
- - !ruby/object:Gem::Version
398
- version: 6.0.0
399
396
  type: :runtime
400
397
  prerelease: false
401
398
  version_requirements: !ruby/object:Gem::Requirement
402
399
  requirements:
403
- - - ">="
400
+ - - "~>"
404
401
  - !ruby/object:Gem::Version
405
402
  version: 4.7.0
406
- - - "<="
407
- - !ruby/object:Gem::Version
408
- version: 6.0.0
409
403
  - !ruby/object:Gem::Dependency
410
404
  name: compass-rails
411
405
  requirement: !ruby/object:Gem::Requirement
@@ -839,9 +833,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
839
833
  version: '0'
840
834
  required_rubygems_version: !ruby/object:Gem::Requirement
841
835
  requirements:
842
- - - ">"
836
+ - - ">="
843
837
  - !ruby/object:Gem::Version
844
- version: 1.3.1
838
+ version: '0'
845
839
  requirements: []
846
840
  rubyforge_project:
847
841
  rubygems_version: 2.6.11