aws-url 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -4,10 +4,12 @@
4
4
 
5
5
  A minimum-viable URL builder for [Amazon Web Services (AWS)][aws].
6
6
 
7
- [Vacuum][vacuum] and [Peddler][peddler] implement AWS URL. [Fog][fog] doesn't.
8
-
9
7
  ![bezos][bezos]
10
8
 
9
+ [Vacuum][vacuum] and [Peddler][peddler] use AWS URL.
10
+
11
+ [Fog][fog] doesn't.
12
+
11
13
  [status]: https://secure.travis-ci.org/hakanensari/aws-url.png
12
14
  [travis]: http://travis-ci.org/hakanensari/aws-url
13
15
  [aws]: http://aws.amazon.com/
@@ -56,16 +56,17 @@ module AWS
56
56
  #
57
57
  # hash - A Hash.
58
58
  #
59
- # Returns nothing.
59
+ # Returns self.
60
60
  def update(hash)
61
61
  hash.each do |key, val|
62
62
  # Syntactic sugar: Camelize symbol keys.
63
63
  if key.is_a? Symbol
64
64
  key = key.to_s.split('_').map(&:capitalize).join
65
65
  end
66
-
67
66
  @params[key] = val
68
67
  end
68
+
69
+ self
69
70
  end
70
71
 
71
72
  private
@@ -1,5 +1,5 @@
1
1
  module AWS
2
2
  class URL
3
- VERSION = '0.1.0'
3
+ VERSION = '0.1.1'
4
4
  end
5
5
  end
@@ -50,6 +50,10 @@ module AWS
50
50
  @url.update :foo => 'bar'
51
51
  @url.params.should include 'Foo'
52
52
  end
53
+
54
+ it 'returns self' do
55
+ @url.update({}).should be @url
56
+ end
53
57
  end
54
58
  end
55
59
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-url
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-05-22 00:00:00.000000000 Z
12
+ date: 2012-05-23 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake
16
- requirement: &70355690895500 !ruby/object:Gem::Requirement
16
+ requirement: &70339646668100 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0.9'
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: *70355690895500
24
+ version_requirements: *70339646668100
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: rspec
27
- requirement: &70355690894780 !ruby/object:Gem::Requirement
27
+ requirement: &70339646667600 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,7 +32,7 @@ dependencies:
32
32
  version: '2.9'
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *70355690894780
35
+ version_requirements: *70339646667600
36
36
  description: A minimum-viable URL builder for Amazon Web Services (AWS)
37
37
  email:
38
38
  - hakan.ensari@papercavalier.com