pasrb 0.0.5 → 0.0.5.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. data/CHANGELOG +3 -0
  2. data/Rakefile +1 -1
  3. data/lib/pas.rb +7 -7
  4. data/pasrb.gemspec +2 -2
  5. metadata +4 -3
data/CHANGELOG CHANGED
@@ -1,3 +1,6 @@
1
+ v0.0.5.1 Changes:
2
+ * Fixed bug in symbolize_keys on 1.8.6
3
+
1
4
  v0.0.5. Changes:
2
5
  * #websites api method
3
6
 
data/Rakefile CHANGED
@@ -1,5 +1,5 @@
1
1
  require 'echoe'
2
- Echoe.new('pasrb', '0.0.5') do |g|
2
+ Echoe.new('pasrb', '0.0.5.1') do |g|
3
3
  g.description = "PokerAffiliateSupport api querying via ruby"
4
4
  g.url = "http://github.com/markiz/pasrb"
5
5
  g.author = "Markiz"
data/lib/pas.rb CHANGED
@@ -215,13 +215,13 @@ class PAS
215
215
  case arg
216
216
  when Array
217
217
  arg.map { |elem| symbolize_keys elem }
218
- when Hash
219
- Hash[
220
- arg.map { |key, value|
221
- k = key.is_a?(String) ? key.to_sym : key
222
- v = symbolize_keys value
223
- [k,v]
224
- }]
218
+ when Hash
219
+ arg.inject({}) { |result, kv|
220
+ k = kv[0].is_a?(String) ? kv[0].to_sym : kv[0]
221
+ v = symbolize_keys kv[1]
222
+ result[k] = v
223
+ result
224
+ }
225
225
  else
226
226
  arg
227
227
  end
data/pasrb.gemspec CHANGED
@@ -2,11 +2,11 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{pasrb}
5
- s.version = "0.0.5"
5
+ s.version = "0.0.5.1"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Markiz"]
9
- s.date = %q{2010-10-26}
9
+ s.date = %q{2010-11-02}
10
10
  s.description = %q{PokerAffiliateSupport api querying via ruby}
11
11
  s.email = %q{markizko@gmail.com}
12
12
  s.extra_rdoc_files = ["CHANGELOG", "LICENSE", "README", "lib/pas.rb"]
metadata CHANGED
@@ -1,13 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pasrb
3
3
  version: !ruby/object:Gem::Version
4
- hash: 21
4
+ hash: 89
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
9
  - 5
10
- version: 0.0.5
10
+ - 1
11
+ version: 0.0.5.1
11
12
  platform: ruby
12
13
  authors:
13
14
  - Markiz
@@ -15,7 +16,7 @@ autorequire:
15
16
  bindir: bin
16
17
  cert_chain: []
17
18
 
18
- date: 2010-10-26 00:00:00 +04:00
19
+ date: 2010-11-02 00:00:00 +03:00
19
20
  default_executable:
20
21
  dependencies:
21
22
  - !ruby/object:Gem::Dependency