utensils 2.2.0 → 3.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/utensils/upload_macros.rb +4 -3
- data/lib/utensils/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 618336c083840946b2fe0d77efa03f488c5b1ba3
|
4
|
+
data.tar.gz: c24ff82eb8d4273eda35244458a71b03127a7694
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/lib/utensils/version.rb
CHANGED
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:
|
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-
|
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:
|