atum 0.9.0 → 0.9.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e3b4f88a40552482c7b7db6d3f8c273ca8dd86e8
4
- data.tar.gz: 0bf525b21bba1cca79a48cab6e78a06c647bf3c4
3
+ metadata.gz: 2583740eec8e4d2ca40b08cd8192e1004315e7e8
4
+ data.tar.gz: dee7e86137256baf1bcd1ea07be9de360d62d393
5
5
  SHA512:
6
- metadata.gz: 4ba17fd52fdf6dda1241ece37036e07904105fbaa682206cfa5c1b620c7e45bd42c6d4695672a18915244934bb388966e5bff91a327d2df91a65388006546bed
7
- data.tar.gz: 689cef30df036f8368f00e4d877ecac77f6dc266836dfd23cbea8ed165b28e93e15f4e04cf1b2a12192da45d115642ad10431b30c78022b9ad610e1f4dfabda1
6
+ metadata.gz: c477a2f4f437acc61b6186a9a8db90b599ee4f99e0459a16d21db4370e971069bee2288c9861b493267d4e7631b038a0422ad5835441cd068f736c5c34670017
7
+ data.tar.gz: cc6db2afb2f09f5c45ccb488a8ea068f7aa49b72b3ed99fcd3fb820030affd2327c096d0475cc3a37ed088c4d7ed7ad674f57c9c4be78f744fa0080c5509eaf7
@@ -58,6 +58,8 @@ module Atum
58
58
  "for #{expected_params.count}"
59
59
  end
60
60
 
61
+ params.map! { |param| URI.escape(param) }
62
+
61
63
  href.gsub(PARAMETER_REGEX) { |_match| format_parameter(params.shift) }
62
64
  end
63
65
 
data/lib/atum/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Atum
2
- VERSION = '0.9.0'
2
+ VERSION = '0.9.1'
3
3
  end
@@ -83,6 +83,11 @@ describe Atum::Core::Schema::LinkSchema do
83
83
  it { is_expected.to raise_error(ArgumentError) }
84
84
  end
85
85
 
86
+ it 'URL encodes href params' do
87
+ expect(update.construct_path('MD00006N30R4F0>'))
88
+ .to eq('/resource/MD00006N30R4F0%3E')
89
+ end
90
+
86
91
  it 'returns relative url' do
87
92
  expect(update.construct_path('4472831-bf66-4bc2-865f-e2c4c2b14c78'))
88
93
  .to eq('/resource/4472831-bf66-4bc2-865f-e2c4c2b14c78')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: atum
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 0.9.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - isaacseymour
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-10-15 00:00:00.000000000 Z
12
+ date: 2014-10-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler