jeff 0.3.1 → 0.3.2

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -1,9 +1,8 @@
1
1
  # Jeff
2
2
 
3
3
  **Jeff** is a light-weight module that mixes in client behaviour for
4
- [Amazon Web Services (AWS)][aws]. It wraps [Excon][excon], parses
5
- responses with [Nokogiri][nokogiri], and implements [Signature Version
6
- 2][sign].
4
+ [Amazon Web Services (AWS)][aws]. It wraps [Excon][excon], parses with
5
+ [Nokogiri][nokogiri], and implements [Signature Version 2][sign].
7
6
 
8
7
  ![jeff][jeff]
9
8
 
data/lib/jeff.rb CHANGED
@@ -25,8 +25,8 @@ module Jeff
25
25
  def build_query(hsh)
26
26
  default_params
27
27
  .merge(hsh)
28
- .map { |k, v| "#{k}=#{ escape v }" }
29
28
  .sort
29
+ .map { |k, v| "#{k}=#{ escape v }" }
30
30
  .join '&'
31
31
  end
32
32
 
data/lib/jeff/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Jeff
2
- VERSION = '0.3.1'
2
+ VERSION = '0.3.2'
3
3
  end
data/spec/jeff_spec.rb CHANGED
@@ -74,18 +74,14 @@ describe Jeff do
74
74
  end
75
75
 
76
76
  describe '#build_query' do
77
- subject { client.build_query 'Foo' => 1, 'AA' => 1 }
77
+ subject { client.build_query 'A10' => 1, 'A1' => 1 }
78
78
 
79
79
  it 'should include default parameters' do
80
80
  should match /Timestamp/
81
81
  end
82
82
 
83
- it 'should include request-specific parameters' do
84
- should match /Foo/
85
- end
86
-
87
- it 'should sort parameters' do
88
- should match /^AA/
83
+ it 'should sort lexicographically' do
84
+ should match /^A1=1&A10=/
89
85
  end
90
86
  end
91
87
  end
metadata CHANGED
@@ -1,96 +1,96 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jeff
3
3
  version: !ruby/object:Gem::Version
4
- prerelease:
5
- version: 0.3.1
4
+ version: 0.3.2
5
+ prerelease:
6
6
  platform: ruby
7
7
  authors:
8
8
  - Hakan Ensari
9
- autorequire:
9
+ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
  date: 2012-07-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: excon
16
- version_requirements: !ruby/object:Gem::Requirement
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
17
18
  requirements:
18
19
  - - ~>
19
20
  - !ruby/object:Gem::Version
20
21
  version: 0.14.0
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
21
25
  none: false
22
- requirement: !ruby/object:Gem::Requirement
23
26
  requirements:
24
27
  - - ~>
25
28
  - !ruby/object:Gem::Version
26
29
  version: 0.14.0
27
- none: false
28
- prerelease: false
29
- type: :runtime
30
30
  - !ruby/object:Gem::Dependency
31
31
  name: nokogiri
32
- version_requirements: !ruby/object:Gem::Requirement
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
33
34
  requirements:
34
35
  - - ~>
35
36
  - !ruby/object:Gem::Version
36
37
  version: '1.5'
38
+ type: :runtime
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
37
41
  none: false
38
- requirement: !ruby/object:Gem::Requirement
39
42
  requirements:
40
43
  - - ~>
41
44
  - !ruby/object:Gem::Version
42
45
  version: '1.5'
43
- none: false
44
- prerelease: false
45
- type: :runtime
46
46
  - !ruby/object:Gem::Dependency
47
47
  name: guard-rspec
48
- version_requirements: !ruby/object:Gem::Requirement
48
+ requirement: !ruby/object:Gem::Requirement
49
+ none: false
49
50
  requirements:
50
51
  - - ! '>='
51
52
  - !ruby/object:Gem::Version
52
53
  version: '0'
54
+ type: :development
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
53
57
  none: false
54
- requirement: !ruby/object:Gem::Requirement
55
58
  requirements:
56
59
  - - ! '>='
57
60
  - !ruby/object:Gem::Version
58
61
  version: '0'
59
- none: false
60
- prerelease: false
61
- type: :development
62
62
  - !ruby/object:Gem::Dependency
63
63
  name: rake
64
- version_requirements: !ruby/object:Gem::Requirement
64
+ requirement: !ruby/object:Gem::Requirement
65
+ none: false
65
66
  requirements:
66
67
  - - ! '>='
67
68
  - !ruby/object:Gem::Version
68
69
  version: '0'
70
+ type: :development
71
+ prerelease: false
72
+ version_requirements: !ruby/object:Gem::Requirement
69
73
  none: false
70
- requirement: !ruby/object:Gem::Requirement
71
74
  requirements:
72
75
  - - ! '>='
73
76
  - !ruby/object:Gem::Version
74
77
  version: '0'
75
- none: false
76
- prerelease: false
77
- type: :development
78
78
  - !ruby/object:Gem::Dependency
79
79
  name: rspec
80
- version_requirements: !ruby/object:Gem::Requirement
80
+ requirement: !ruby/object:Gem::Requirement
81
+ none: false
81
82
  requirements:
82
83
  - - ! '>='
83
84
  - !ruby/object:Gem::Version
84
85
  version: '0'
86
+ type: :development
87
+ prerelease: false
88
+ version_requirements: !ruby/object:Gem::Requirement
85
89
  none: false
86
- requirement: !ruby/object:Gem::Requirement
87
90
  requirements:
88
91
  - - ! '>='
89
92
  - !ruby/object:Gem::Version
90
93
  version: '0'
91
- none: false
92
- prerelease: false
93
- type: :development
94
94
  description: Minimum-viable Amazon Web Services (AWS) client
95
95
  email:
96
96
  - hakan.ensari@papercavalier.com
@@ -120,26 +120,26 @@ files:
120
120
  - spec/spec_helper.rb
121
121
  homepage: https://github.com/hakanensari/jeff
122
122
  licenses: []
123
- post_install_message:
123
+ post_install_message:
124
124
  rdoc_options: []
125
125
  require_paths:
126
126
  - lib
127
127
  required_ruby_version: !ruby/object:Gem::Requirement
128
+ none: false
128
129
  requirements:
129
130
  - - ! '>='
130
131
  - !ruby/object:Gem::Version
131
132
  version: '0'
132
- none: false
133
133
  required_rubygems_version: !ruby/object:Gem::Requirement
134
+ none: false
134
135
  requirements:
135
136
  - - ! '>='
136
137
  - !ruby/object:Gem::Version
137
138
  version: '0'
138
- none: false
139
139
  requirements: []
140
- rubyforge_project:
141
- rubygems_version: 1.8.24
142
- signing_key:
140
+ rubyforge_project:
141
+ rubygems_version: 1.8.23
142
+ signing_key:
143
143
  specification_version: 3
144
144
  summary: AWS client
145
145
  test_files:
@@ -148,4 +148,4 @@ test_files:
148
148
  - spec/jeff/streamer_spec.rb
149
149
  - spec/jeff_spec.rb
150
150
  - spec/spec_helper.rb
151
- ...
151
+ has_rdoc: