gh 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
@@ -27,7 +27,7 @@ end
27
27
  Usage example:
28
28
 
29
29
  ``` ruby
30
- GH.with username: 'rkh' password: 'abc123' do
30
+ GH.with username: 'rkh', password: 'abc123' do
31
31
  sven = GH['users/svenfuchs']
32
32
 
33
33
  if sven['hireable']
@@ -3,6 +3,7 @@ require 'gh'
3
3
  module GH
4
4
  # Public: ...
5
5
  class LazyLoader < Wrapper
6
+ wraps GH::Normalizer
6
7
  double_dispatch
7
8
 
8
9
  def modify_hash(hash)
@@ -16,7 +16,7 @@ module GH
16
16
  # options - Hash of options that will be passed to all layers upon initialization.
17
17
  #
18
18
  # Returns top most Wrapper instance.
19
- def self.build(options, &block)
19
+ def self.build(options = {}, &block)
20
20
  new(&block).build(options)
21
21
  end
22
22
 
@@ -1,4 +1,4 @@
1
1
  module GH
2
2
  # Public: Library version.
3
- VERSION = "0.1.0"
3
+ VERSION = "0.1.1"
4
4
  end
@@ -13,6 +13,10 @@ describe GH::LazyLoader do
13
13
  subject.load(raw)
14
14
  end
15
15
 
16
+ it 'wraps normalizer by default' do
17
+ GH::LazyLoader.new.backend.should be_a(GH::Normalizer)
18
+ end
19
+
16
20
  it 'send http requests for missing fields' do
17
21
  should_request(1) { rkh['name'].should be == 'Konstantin Haase' }
18
22
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gh
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:
@@ -13,7 +13,7 @@ date: 2012-04-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec
16
- requirement: &70185635369900 !ruby/object:Gem::Requirement
16
+ requirement: &70295948070620 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: *70185635369900
24
+ version_requirements: *70295948070620
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: webmock
27
- requirement: &70185635369280 !ruby/object:Gem::Requirement
27
+ requirement: &70295948069940 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '0'
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *70185635369280
35
+ version_requirements: *70295948069940
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: faraday
38
- requirement: &70185635368560 !ruby/object:Gem::Requirement
38
+ requirement: &70295948069220 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ~>
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: '0.7'
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *70185635368560
46
+ version_requirements: *70295948069220
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: backports
49
- requirement: &70185635367800 !ruby/object:Gem::Requirement
49
+ requirement: &70295948068460 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ~>
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: '2.3'
55
55
  type: :runtime
56
56
  prerelease: false
57
- version_requirements: *70185635367800
57
+ version_requirements: *70295948068460
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: multi_json
60
- requirement: &70185635367120 !ruby/object:Gem::Requirement
60
+ requirement: &70295948067780 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ~>
@@ -65,7 +65,7 @@ dependencies:
65
65
  version: '1.0'
66
66
  type: :runtime
67
67
  prerelease: false
68
- version_requirements: *70185635367120
68
+ version_requirements: *70295948067780
69
69
  description: multi-layer client for the github api v3
70
70
  email:
71
71
  - konstantin.mailinglists@googlemail.com