curlybars 1.14.0 → 1.15.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2bf7afea132372069b140438296f8686ec486b2759c7fc89552b332ff1aed7ed
4
- data.tar.gz: e03465297fef9e3c18c817bac1f0daae10d01d9cc051ac295049b7df9ae70158
3
+ metadata.gz: ceff8a95cec7c183aa997401411044bcaf297b09b2793bc27163b8e39f703202
4
+ data.tar.gz: 4cd7908efca8ecd3e152e78a1f746529bf3d26e0959ea9a3889b3c405c58f5e7
5
5
  SHA512:
6
- metadata.gz: 139398b59fdf16fd1b287a9a6968a304ea99b52bff79592a262ca695942d17e02a5c0a84fb7a278cba1d4f503f394fb1a42794ad90e71e647cb0174331266108
7
- data.tar.gz: 2ce2c49e86bcdfd99b7754b8b6a48ec7d9ef01ef97b99c179c4a7d466838ce676e40cb82d6f0f80dc748d3eb516a9af8f9c74ac1ce800a68896fd1ae1d6cb49e
6
+ metadata.gz: 6617f8bfbe1377e9934dd8ae998ba63b1c5aad2f5014f1cffaaa90c366f16103bb10c8f68bdad142c738ff2dc1a5a205eccaf7d9f3bc62c64bff3120400e14b6
7
+ data.tar.gz: c71d2069e11a7b6f825e391f63cd6729051e09f55e80da0adeaeb62360b3b62fb0280f8e90c6fef496bc799ee2eb96d627d1d2fd8ee75fdc330ad74a37e5cf61
@@ -179,23 +179,23 @@ module Curlybars
179
179
  # Posts::ShowPresenter.dependencies
180
180
  # #=> ['posts/comment', 'posts/comment_form']
181
181
  #
182
- # Returns a Set of String view paths.
182
+ # Returns an Array or sorted view paths.
183
183
  def dependencies
184
184
  # The base presenter doesn't have any dependencies.
185
- return SortedSet.new if self == Curlybars::Presenter
185
+ return [] if self == Curlybars::Presenter
186
186
 
187
- @dependencies ||= SortedSet.new
188
- @dependencies.union(superclass.dependencies)
187
+ @dependencies ||= []
188
+ @dependencies = @dependencies.union(superclass.dependencies).uniq.sort
189
189
  end
190
190
 
191
- # Indicate that the presenter depends a list of other views.
191
+ # Indicate that the presenter depends on a list of other views.
192
192
  #
193
- # deps - A list of String view paths that the presenter depends on.
193
+ # dependencies - A list of String view paths that the presenter depends on.
194
194
  #
195
- # Returns nothing.
195
+ # Returns updated Array of String view paths.
196
196
  def depends_on(*dependencies)
197
- @dependencies ||= SortedSet.new
198
- @dependencies.merge(dependencies)
197
+ @dependencies ||= []
198
+ @dependencies = @dependencies.union(dependencies).uniq.sort
199
199
  end
200
200
 
201
201
  # Get or set the version of the presenter.
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Curlybars
4
- VERSION = '1.14.0'
4
+ VERSION = '1.15.0'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: curlybars
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.14.0
4
+ version: 1.15.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Libo Cannici