utensils 2.2.0 → 3.0.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
  SHA1:
3
- metadata.gz: 2aa7aa7707ea24394fb420d097e999f19d837a18
4
- data.tar.gz: 02e3f6e4d3f253b1b98b07ad618a1d12276335bf
3
+ metadata.gz: 618336c083840946b2fe0d77efa03f488c5b1ba3
4
+ data.tar.gz: c24ff82eb8d4273eda35244458a71b03127a7694
5
5
  SHA512:
6
- metadata.gz: 49f1689a38a91453b5fbe6e06a0f7cebcdb5d27c8c6c16d2846e10ca1366cb17442af1272315063c10c146cf853aa619bdbf41aa7b5ccff35af3758b094a8142
7
- data.tar.gz: b27f06279312a4d870f82b92cb4697bc49675de1a950f4554e5b0a89e220bdfe68597685c7b8ed2cc23ccb487777e76bdc501cc337f8ed02d2b8c499497fbcee
6
+ metadata.gz: 14df6f4de0c05c2b6c5f12fcf18213806d619a3b625ee701ef1be1fccf165f8e544c683d4467f20ff302511860c6f79166e0eb51f6ac1af62c0d1f95f6b046ea
7
+ data.tar.gz: aa04fe9655f7f1f10f74ed0c3ddcdb55d107c2381519f5ebc84ecd33453f79b9056edccb36614e4d39ddfac34f2ead7b8d357b1fd45fc298a724e6e3dec65688
@@ -2,15 +2,16 @@ module Utensils
2
2
  module UploadMacros
3
3
  include ActionDispatch::TestProcess
4
4
 
5
- def fixture_file_upload(filename)
5
+ def fixture_file_upload(filename = nil)
6
6
  super fixture_file_path(filename)
7
7
  end
8
8
 
9
- def fixture_file(filename)
9
+ def fixture_file(filename = nil)
10
10
  File.new fixture_file_path(filename)
11
11
  end
12
12
 
13
- def fixture_file_path(filename)
13
+ def fixture_file_path(filename = nil)
14
+ filename ||= "photo.jpg"
14
15
  Rails.root.join('spec', 'fixtures', filename)
15
16
  end
16
17
  end
@@ -1,3 +1,3 @@
1
1
  module Utensils
2
- VERSION = "2.2.0"
2
+ VERSION = "3.0.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: utensils
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.0
4
+ version: 3.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jens Balvig
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-01-29 00:00:00.000000000 Z
11
+ date: 2018-02-21 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Rspec stuff we use over and over again
14
14
  email: