actionview-component 1.3.2 → 1.3.3

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: 7670fc77a362e27fd4b9d666c20c2042bb077a3a7c3211bca3271074af4ea913
4
- data.tar.gz: 7fbd76e8c88ea4e44386e329dd187573dfc7553e371088053e8ec2645c0bad3f
3
+ metadata.gz: 31181269a68b440c741ff9665ef8cb4df10c7e55bb2b0253423e19ffa96807ab
4
+ data.tar.gz: e851b3a851e95328c969539bad6f02a35311828d5037ea16d21d775651ddf500
5
5
  SHA512:
6
- metadata.gz: be88328b943bc8aa3d4d1a05e845b53c77e3a6737e8e863b94c349ec3049d47bf25c4610ebbc812e2f2ecb84568ec787eb2e86cae622d5c3a2d81a7bce000655
7
- data.tar.gz: a489fc157813dc6ac67bc8bd047b487234768c4584449128bd9290582507da75d68fb429a5ed9bfd9e75b80b29e21549a793de76a00f784a07a63657f12f6ad5
6
+ metadata.gz: eb1cca60238b879c6452688b59ebce47e436493f7b9031871c3099cbcb876f57cd37c020cff59ce09b70ba821d6e1f075c97739753525158acb7d7caa0e5c279
7
+ data.tar.gz: 0341cf5c599e0453ec78ce7f5131411a55dd73253db7b78019a136899d84bbab01d153c0157038d71d484646617bd26e81bf6caae8ab691e1c11f983e533ae99
@@ -1,3 +1,9 @@
1
+ # v1.3.3
2
+
3
+ * Do not raise error when sidecar files that are not templates exist.
4
+
5
+ *Joel Hawksley*
6
+
1
7
  # v1.3.2
2
8
 
3
9
  * Support rendering views from inside component templates.
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- actionview-component (1.3.2)
4
+ actionview-component (1.3.3)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -6,7 +6,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
6
6
 
7
7
  Gem::Specification.new do |spec|
8
8
  spec.name = "actionview-component"
9
- spec.version = "1.3.2"
9
+ spec.version = "1.3.3"
10
10
  spec.authors = ["GitHub Open Source"]
11
11
  spec.email = ["opensource+actionview-component@github.com"]
12
12
 
@@ -117,19 +117,19 @@ module ActionView
117
117
 
118
118
  filename = self.instance_method(:initialize).source_location[0]
119
119
  filename_without_extension = filename[0..-(File.extname(filename).length + 1)]
120
- sibling_files = Dir["#{filename_without_extension}.*"] - [filename]
120
+ sibling_template_files = Dir["#{filename_without_extension}.????.{#{ActionView::Template.template_handler_extensions.join(',')}}"] - [filename]
121
121
 
122
- if sibling_files.length > 1
122
+ if sibling_template_files.length > 1
123
123
  raise StandardError.new("More than one template found for #{self}. There can only be one sidecar template file per component.")
124
124
  end
125
125
 
126
- if sibling_files.length == 0
126
+ if sibling_template_files.length == 0
127
127
  raise NotImplementedError.new(
128
128
  "Could not find a template file for #{self}."
129
129
  )
130
130
  end
131
131
 
132
- sibling_files[0]
132
+ sibling_template_files[0]
133
133
  end
134
134
  end
135
135
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: actionview-component
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.2
4
+ version: 1.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - GitHub Open Source