rspeckled 0.0.62 → 0.0.63
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 +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/lib/rspeckled/helpers/filepaths.rb +17 -0
- data/lib/rspeckled/version.rb +1 -1
- metadata +2 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ff92d7d6b5c327939c72befbfe48f4a4007837d90c351d587fb3df25c3337ed7
|
|
4
|
+
data.tar.gz: a4b37d98915b2af764a0ac31f573d9743c07c0269aaff8de56dd8e6058da44d5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d66b84ed3da131513ae469b8ef44aa2e542555494739bdad113f34a27295073bf2a83077bbfc19b441e4d4fe487828912a74da187842e06263a94000178d72a3
|
|
7
|
+
data.tar.gz: a15efe1e789e688395b30ed021df0a84e5ff47f1e73fd016662d544782b018a511522369879d588ae15c1dba0e9eeb3bd0234a953e45b7bf94126614f983bb53
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data.tar.gz.sig
CHANGED
|
Binary file
|
|
@@ -15,3 +15,20 @@ end
|
|
|
15
15
|
def fixture_filepath(filepath)
|
|
16
16
|
"#{root_filepath}/spec/fixtures/#{filepath}"
|
|
17
17
|
end
|
|
18
|
+
|
|
19
|
+
def read_fixture(filepath)
|
|
20
|
+
::File.read(fixture_filepath(filepath))
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
def parse_fixture(filepath)
|
|
24
|
+
contents = read_fixture(filepath)
|
|
25
|
+
|
|
26
|
+
case filepath[/\.\w+\z/]
|
|
27
|
+
when '.json'
|
|
28
|
+
::JSON.parse(contents)
|
|
29
|
+
when '.eml'
|
|
30
|
+
::Mail.new(contents)
|
|
31
|
+
else
|
|
32
|
+
fail ArgumentError, "I don't know how to parse #{filepath}."
|
|
33
|
+
end
|
|
34
|
+
end
|
data/lib/rspeckled/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rspeckled
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.63
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- thegranddesign
|
|
@@ -35,7 +35,7 @@ cert_chain:
|
|
|
35
35
|
eUgMp+qKjyM1NGj/222soSUpWqOE16L23vv8sWIbMIADdR8dephQ6jMovYylUmE5
|
|
36
36
|
KHp+JJQviSN0i4z8gVL2zloo+xZf791LiJH8Kcjpx43jhg0WdR4=
|
|
37
37
|
-----END CERTIFICATE-----
|
|
38
|
-
date: 2018-
|
|
38
|
+
date: 2018-09-04 00:00:00.000000000 Z
|
|
39
39
|
dependencies:
|
|
40
40
|
- !ruby/object:Gem::Dependency
|
|
41
41
|
name: rspec
|
metadata.gz.sig
CHANGED
|
Binary file
|