logan 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/logan/client.rb +4 -2
  3. metadata +32 -5
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9c18f6281d3d287226289bbd59f7f1bdf5a3d8e8
4
- data.tar.gz: 0d1e7bab238f796dbe1225ec36c035dc9afd6279
3
+ metadata.gz: 6d977ec77d68ec25fbb28776eb247d6fa79dd5ba
4
+ data.tar.gz: e15d414e057c515179b4becb006f56d221ac77fc
5
5
  SHA512:
6
- metadata.gz: 6bd3ecf2deb865c21f9cfd9be97a13fc9ab62318ca31680dac5f0364cff4d163b2ee0778cd250fc937612c4fa970679c1ca09b461b5597ce723ebf253b18c4ba
7
- data.tar.gz: 8feb5a487550687310efc5862d33e398580949faef8ea18d24322a825161c676b3db27298bdae795c0ff5d64a64a87f4c191e450e5db6263ab8567d89bf573be
6
+ metadata.gz: 7be2adee6777733a08a0a2cec6463ae4a6756191fa29742180857f8ca9205756cf78a0dfc950324f33200592d0db504b697ec70987eae58e43f144053c39233c
7
+ data.tar.gz: 3669f94661c114390342d9c204dcc2a4ccadc3cdf9e1c194d3ce9c62ade6aae5bac2aa39da427b90170baac51d4a9301cf82bbad9d027a07f22965466660af12
@@ -20,7 +20,9 @@ module Logan
20
20
  # @param auth_hash [Hash] authorization hash consisting of a username and password combination (:username, :password) or an access_token (:access_token)
21
21
  def auth=(auth_hash)
22
22
  # symbolize the keys
23
- auth_hash = auth_hash.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
23
+ new_auth_hash = {}
24
+ auth_hash.each {|k, v| new_auth_hash[k.to_sym] = v}
25
+ auth_hash = new_auth_hash
24
26
 
25
27
  if auth_hash.has_key? :access_token
26
28
  # clear the basic_auth, if it's set
@@ -71,4 +73,4 @@ module Logan
71
73
  response.map { |h| e = Logan::Event.new(h) }
72
74
  end
73
75
  end
74
- end
76
+ end
metadata CHANGED
@@ -1,15 +1,43 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logan
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stephen Birarda
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-08-29 00:00:00.000000000 Z
12
- dependencies: []
11
+ date: 2014-01-31 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: httparty
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - '='
18
+ - !ruby/object:Gem::Version
19
+ version: 0.11.0
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - '='
25
+ - !ruby/object:Gem::Version
26
+ version: 0.11.0
27
+ - !ruby/object:Gem::Dependency
28
+ name: json
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - '>='
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - '>='
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
13
41
  description:
14
42
  email: logan@birarda.com
15
43
  executables: []
@@ -44,9 +72,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
44
72
  version: '0'
45
73
  requirements: []
46
74
  rubyforge_project:
47
- rubygems_version: 2.0.3
75
+ rubygems_version: 2.1.10
48
76
  signing_key:
49
77
  specification_version: 4
50
78
  summary: ruby gem to communicate with new Basecamp API
51
79
  test_files: []
52
- has_rdoc: