githubris 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (40) hide show
  1. data/.gitignore +1 -0
  2. data/.travis.yml +7 -0
  3. data/Gemfile +5 -2
  4. data/README.md +16 -1
  5. data/Rakefile +8 -3
  6. data/features/list_of_public_gists.feature +12 -0
  7. data/features/list_of_users_public_gists.feature +14 -0
  8. data/features/step_definitions/general_steps.rb +20 -0
  9. data/features/step_definitions/public_gist_steps.rb +0 -0
  10. data/features/support/env.rb +6 -0
  11. data/features/support/fakeweb_responses.rb +6 -0
  12. data/features/support/fixtures.rb +11 -0
  13. data/features/support/public_gists_page_1.json +884 -0
  14. data/features/support/public_gists_page_2.json +898 -0
  15. data/githubris.gemspec +0 -1
  16. data/lib/githubris/api.rb +38 -20
  17. data/lib/githubris/builder.rb +31 -22
  18. data/lib/githubris/comment.rb +1 -1
  19. data/lib/githubris/gist/file.rb +1 -1
  20. data/lib/githubris/gist.rb +1 -10
  21. data/lib/githubris/issue.rb +1 -1
  22. data/lib/githubris/organization.rb +1 -1
  23. data/lib/githubris/repository.rb +1 -1
  24. data/lib/githubris/user.rb +6 -7
  25. data/lib/githubris/version.rb +2 -2
  26. data/lib/githubris.rb +17 -16
  27. data/spec/githubris/api_spec.rb +18 -20
  28. data/spec/githubris/builder_spec.rb +30 -14
  29. data/spec/githubris/gist_spec.rb +0 -30
  30. data/spec/githubris_spec.rb +48 -0
  31. data/spec/spec_helper.rb +8 -1
  32. data/spec/support/fakeweb_responses.rb +2 -57
  33. data/spec/support/fixtures.rb +1 -1
  34. data/spec/support/public_gists_page_1.json +884 -0
  35. data/spec/support/public_gists_page_2.json +898 -0
  36. metadata +17 -8
  37. data/config/base.yml +0 -1
  38. data/config/gists.yml +0 -13
  39. data/config.yml +0 -1
  40. data/lib/githubris/config.rb +0 -13
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: githubris
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
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-02-23 00:00:00.000000000 Z
12
+ date: 2012-03-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: httparty
16
- requirement: &10496540 !ruby/object:Gem::Requirement
16
+ requirement: &13053580 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,7 +21,7 @@ dependencies:
21
21
  version: 0.8.1
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *10496540
24
+ version_requirements: *13053580
25
25
  description: Githubris is meant to make Github API interaction a breeze.
26
26
  email:
27
27
  - isaac@isaacbfsanders.com
@@ -31,18 +31,24 @@ extra_rdoc_files: []
31
31
  files:
32
32
  - .gitignore
33
33
  - .rvmrc
34
+ - .travis.yml
34
35
  - Gemfile
35
36
  - README.md
36
37
  - Rakefile
37
- - config.yml
38
- - config/base.yml
39
- - config/gists.yml
38
+ - features/list_of_public_gists.feature
39
+ - features/list_of_users_public_gists.feature
40
+ - features/step_definitions/general_steps.rb
41
+ - features/step_definitions/public_gist_steps.rb
42
+ - features/support/env.rb
43
+ - features/support/fakeweb_responses.rb
44
+ - features/support/fixtures.rb
45
+ - features/support/public_gists_page_1.json
46
+ - features/support/public_gists_page_2.json
40
47
  - githubris.gemspec
41
48
  - lib/githubris.rb
42
49
  - lib/githubris/api.rb
43
50
  - lib/githubris/builder.rb
44
51
  - lib/githubris/comment.rb
45
- - lib/githubris/config.rb
46
52
  - lib/githubris/gist.rb
47
53
  - lib/githubris/gist/file.rb
48
54
  - lib/githubris/issue.rb
@@ -53,10 +59,13 @@ files:
53
59
  - spec/githubris/api_spec.rb
54
60
  - spec/githubris/builder_spec.rb
55
61
  - spec/githubris/gist_spec.rb
62
+ - spec/githubris_spec.rb
56
63
  - spec/spec_helper.rb
57
64
  - spec/support/custom_matchers.rb
58
65
  - spec/support/fakeweb_responses.rb
59
66
  - spec/support/fixtures.rb
67
+ - spec/support/public_gists_page_1.json
68
+ - spec/support/public_gists_page_2.json
60
69
  homepage: http://isaacbfsanders.com/githubris
61
70
  licenses: []
62
71
  post_install_message:
data/config/base.yml DELETED
@@ -1 +0,0 @@
1
- base_uri: 'https://api.github.com'
data/config/gists.yml DELETED
@@ -1,13 +0,0 @@
1
- gists:
2
- list_public_user:
3
- method: 'get'
4
- path: '/users/:user/gists'
5
- list_public:
6
- method: 'get'
7
- path: '/gists'
8
- list_authentic_user:
9
- method: 'get'
10
- path: '/gists'
11
- list_authentic_user_starred:
12
- method: 'get'
13
- path: '/gists/starred'
data/config.yml DELETED
@@ -1 +0,0 @@
1
- base_uri: 'https://api.github.com/'
@@ -1,13 +0,0 @@
1
- require 'yaml'
2
-
3
- module Githubris
4
- module Config
5
- @@config = {}
6
- @@config.merge! YAML.load_file('config/base.yml')
7
- @@config.merge! YAML.load_file('config/gists.yml')
8
-
9
- def self.[] (key)
10
- @@config[key.to_s]
11
- end
12
- end
13
- end