conduit 1.1.0 → 1.1.1

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: b37e7362d4af2ed4841798aff5b04f2285cce7eb
4
- data.tar.gz: 99da695bd5abdb9233a3957482741ea9b05dc1fd
3
+ metadata.gz: d46f2ac30b74dabd934e5f184565479ff5e20d4d
4
+ data.tar.gz: f75ba0ec8e8e1c258d57e92a7682a5f5426ee70d
5
5
  SHA512:
6
- metadata.gz: 37d02a757f479664b1eac37eff9e07e45c7b4ef254b5311e96961818f2d5f663e545508ca10cd1e001e8eb706b9bbba3dc5a689f2f477ca43944a1f17d187659
7
- data.tar.gz: 84b2e662f55f271a1aad27044ff3ea14379de08014faa24cb15a637ff1ffcedadaddfdc7b6e2a29bfe121276fbf79850d57866145dde2c0e35ed0b8d510a4a75
6
+ metadata.gz: 450fbc11d0537d048d7fd60885dc2873c1abab99557e3b938f90d927b9a3eb54ae048d639195724268b7ab7622108f6ce6bdb7995b2114b4e67f9e67436dc014
7
+ data.tar.gz: 1c72077fc8dcb18d3069e5aa2028c60005f6f41c74456c279b8895422da7add56bcd5e661c3380880e677e945af4aca49918d936e8b76a95b9728c68e1b75aa5
@@ -111,7 +111,7 @@ module Conduit
111
111
  hash.tap do |h|
112
112
  h[attribute] = @options[attribute]
113
113
  end
114
- end
114
+ end.tap { |avs| avs[:options] = @options }
115
115
  end
116
116
 
117
117
  # Location where the view files can be found
@@ -51,7 +51,7 @@ module Conduit
51
51
  # => Conduit::Storage.read('/path/to/file')
52
52
  #
53
53
  def read(key)
54
- ::File.read(storage_path.join(key))
54
+ ::File.read(storage_path.join(key.to_s))
55
55
  rescue Errno::ENOENT
56
56
  nil
57
57
  end
@@ -1,3 +1,3 @@
1
1
  module Conduit
2
- VERSION = '1.1.0'
2
+ VERSION = '1.1.1'
3
3
  end
@@ -47,13 +47,17 @@ shared_examples_for Conduit::Core::Action do
47
47
  describe '#attributes_with_values' do
48
48
  context 'with optional attribute not set' do
49
49
  let (:attrs) { request_attributes.merge(buz: nil, or: nil) }
50
- its(:attributes_with_values) { should eq(attrs) }
50
+ its(:attributes_with_values) { should include(attrs) }
51
51
  end
52
52
 
53
53
  context 'with optional attribute set' do
54
54
  let (:attrs) { request_attributes.merge(buz: "value for buz", or: nil) }
55
55
  subject { described_class.new(attrs) }
56
- its(:attributes_with_values) { should eq(attrs) }
56
+ its(:attributes_with_values) { should include(attrs) }
57
+
58
+ it "makes all options available" do
59
+ subject.attributes_with_values[:options].should include(attrs)
60
+ end
57
61
  end
58
62
  end
59
63
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: conduit
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Kelley
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-10-20 00:00:00.000000000 Z
11
+ date: 2016-10-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport