github_api_ruby_lib 0.1.0 → 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5eb14625a9ba9dd422b87ff0097516c326b4941d
4
- data.tar.gz: 6a384708a7dadea847f367fc36cbb2a0d595ef2d
3
+ metadata.gz: 68eb1220af63cf547ae8f0ecd9ff2ff439e30760
4
+ data.tar.gz: faea69093369a5861524363e0b41c49e6b380541
5
5
  SHA512:
6
- metadata.gz: 8cd1d1589464fd28e64cf21f7baf663c5f364b24c518c904e98141eba390702a50e16fd3d027ff14e0903bfc0038cd3e23c9cb89190d6fd3714bddbd1375f5ca
7
- data.tar.gz: 323c2a503592119f4e50fd5b61afa9d0792d37307667b79228c0746c1bf1ac06ac3b0e2d051d135b2ce6a60fc3f8877c194fda0b6bd09f0ceaee9c7e83e320c4
6
+ metadata.gz: 088d54b65eb9333dc0eb651d14134316bbd7b72ca9dfa63314d8b3d61da50f5044c7c15d8a0ce31f2fe977395c84f98f968f8e7b557b254df88e6928cb02a211
7
+ data.tar.gz: d55602d8a8176e1d5e4907115a0a782f97c0ecf6ed8da228039e6c0b655261d90d7ab511564800706f86ee2ece8bd93f55af3c99b3c4653abb0bca203920f181
@@ -0,0 +1,26 @@
1
+
2
+ class Api_options
3
+
4
+ #All repository related features
5
+ module REPO
6
+ #Get languages (value=1)
7
+ LANGUAGES=1
8
+ #Get contributors (value=2)
9
+ CONTRIBUTORS=2
10
+ #Get README (value=3)
11
+ README=3
12
+ #Get all repositories (value=7)
13
+ ALL_REPOS=7
14
+ end
15
+
16
+ #All user related features
17
+ module USER
18
+ #Get email of given user (value=4)
19
+ EMAIL=4
20
+ #Get search results of user (value=5)
21
+ SEARCH=5
22
+ #Get all followers of user (value=6)
23
+ FOLLOWERS=6
24
+ end
25
+
26
+ end
@@ -0,0 +1,39 @@
1
+ module HttpHandler
2
+
3
+
4
+ def self.create_http(uri)
5
+ @@http=Net::HTTP.new(uri.host,uri.port)
6
+ @@http.use_ssl = true
7
+ end
8
+
9
+
10
+
11
+ #Method gets response from GET request, checks for validiation, and returns json
12
+ #====Attributes
13
+ #
14
+ #- +https+ - HTTP object sending the GET request. Must be previously initialized
15
+ #- +uri+ - Uri object holding converted API url, used for sending GET request
16
+ def self.get_response(https,uri) # :yields: JSON
17
+
18
+ result=https.get(uri)
19
+ if result.code =="200"
20
+ return JSON.parse(result.body)
21
+ else
22
+ raise "HTTP failed with code: #{result.code}"
23
+ end
24
+ end
25
+
26
+
27
+ #Creates a new HTTP object with the given uri's host and port
28
+ #====Attributes
29
+ #- +uri+ - Uri object containing api link
30
+ #
31
+ def self.initiate_http(uri) # :yields: HTTP
32
+ http=Net::HTTP.new(uri.host,uri.port)
33
+ http.use_ssl = true
34
+ return http
35
+ end
36
+
37
+
38
+
39
+ end
@@ -0,0 +1,104 @@
1
+
2
+ require 'net/http'
3
+ require 'open-uri'
4
+ require_relative 'uri_builder'
5
+ require 'json'
6
+ require 'benchmark'
7
+ require_relative 'api_options'
8
+ require_relative 'http_handler'
9
+
10
+ class RepoHttpHandler
11
+ include HttpHandler
12
+ @@app_token=nil
13
+ def initialize
14
+ @@responseStatus=false
15
+ @@uri_builder=UriBuilder.new
16
+
17
+ end
18
+
19
+
20
+ def self.set_auth_token (token)
21
+ @@app_token=token
22
+ end
23
+
24
+ #Retrieves all the major languages used in a repository
25
+ #====Attributes
26
+ #
27
+ #- +username+ -> username of github repo
28
+ #- +repo_name+ -> name of repository to get languages
29
+ def get_languages_of_a_repository(username, repo_name) # :yields: JSON
30
+ uri=URI.parse(@@uri_builder.get_repo_content(Api_options::REPO::LANGUAGES,username,repo_name))
31
+ http=HttpHandler.initiate_http(uri)
32
+
33
+ begin
34
+ response=HttpHandler.get_response(http,uri)
35
+ rescue ArgumentError
36
+ puts "Request failed with code: #{response.code}"
37
+ else
38
+ @@responseStatus=true
39
+ return response
40
+ end
41
+ end
42
+
43
+
44
+ def get_response_status
45
+ @@responseStatus
46
+ end
47
+
48
+ #Get a list of repositories for the given user
49
+ #====Attributes
50
+ #- +username+ -> username of the account
51
+ def get_user_repos(username) # :yields: JSON
52
+ uri=URI.parse(@@uri_builder.user_repos_url(username,@@app_token))
53
+ http=HttpHandler.initiate_http(uri)
54
+ begin
55
+ response=HttpHandler.get_response(http,uri)
56
+ rescue ArgumentError
57
+ puts "Request failed with code: #{response.code}"
58
+ else
59
+ @@responseStatus=true
60
+ return response
61
+ end
62
+ end
63
+
64
+
65
+ #Get all contributors of a given repository
66
+ #====Attributes
67
+ #- +username+ -> username of the account
68
+ #- +repo_name+ -> name of repository
69
+ def get_contributors_of_a_repository(username,repo_name) # :yields: JSON
70
+ uri=URI.parse(@@uri_builder.get_repo_content(Api_options::REPO::CONTRIBUTORS,username,repo_name))
71
+ http= HttpHandler.initiate_http(uri)
72
+ begin
73
+ response=HttpHandler.get_response(http,uri)
74
+ rescue ArgumentError
75
+ puts "Request failed with code: #{response.code}"
76
+ else
77
+ @@responseStatus=true
78
+ return response
79
+ end
80
+ end
81
+
82
+
83
+ #Get README of given repository
84
+ #==== Attributes
85
+ #- +username+ -> username of the account
86
+ #- +repo_name+ -> name of repository
87
+ def get_readme_of_a_repository(username,repo_name) # :yields: JSON
88
+ uri=URI.parse(@@uri_builder.get_repo_content(Api_options::REPO::README,username,repo_name))
89
+ http=HttpHandler.initiate_http(uri)
90
+ begin
91
+ response=HttpHandler.get_response(http,uri)
92
+ rescue ArgumentError
93
+ puts "Request failed with code: #{response.code}"
94
+ else
95
+ @@responseStatus=true
96
+ return response
97
+ end
98
+ end
99
+
100
+ end
101
+
102
+
103
+
104
+
@@ -0,0 +1,101 @@
1
+ require_relative 'api_options'
2
+
3
+ class UriBuilder
4
+
5
+ attr_accessor :base_url
6
+ attr_writer :base_url
7
+
8
+
9
+ #base api string required for all calls
10
+ BASE_URL="https://api.github.com/"
11
+
12
+ #string add-on to find user related information
13
+ USERS="users/"
14
+
15
+ #string add-on to search for relevant information
16
+ SEARCH="search/"
17
+
18
+ #string add-on to find repo related information
19
+ REPOS="repos/"
20
+
21
+ #holds app token needed for authentication requests
22
+ @@token
23
+
24
+
25
+ #sets the token to make authenticated requests
26
+ #==== Attributes
27
+ #- +token+ -> [String] app token needed to make authenticated requests
28
+ def self.set_personal_access_token(token)
29
+ @@token=token
30
+ end
31
+
32
+
33
+ #gets personal access token
34
+ def personal_access_token # :yields: String
35
+ @@token
36
+ end
37
+
38
+
39
+
40
+ def initialize
41
+ @@token=''
42
+ end
43
+
44
+
45
+ #Base API string to get all repos of user
46
+ #====Attributes
47
+ #- +username+ -> username of account
48
+ def user_repos_url(username,token) # :yields:String
49
+ BASE_URL + USERS + "#{username}/" + "repos?access_token=#{token}"
50
+ end
51
+
52
+
53
+
54
+ #Build API string for repository related queries
55
+ #====Attributes
56
+ #- +type+ -> Options to build API string
57
+ #- +username+ -> username of account to access repo content
58
+ #- +repo_name+ -> name of repository
59
+ def get_repo_content(type, username, repo_name) # :yields: String
60
+ case type
61
+
62
+ when Api_options::REPO::LANGUAGES
63
+ "#{BASE_URL}" + "#{REPOS}" + "#{username}/" + "#{repo_name}/languages"
64
+ when Api_options::REPO::CONTRIBUTORS
65
+ BASE_URL + REPOS + "#{username}" + "/" + "#{repo_name}" + "/" + "contributors"
66
+ when Api_options::REPO::README
67
+ BASE_URL + REPOS + "#{username}" + "/" + "#{repo_name}" + "/" + "readme"
68
+ end
69
+ end
70
+
71
+
72
+ #Build API string for user related queries
73
+ #====Attributes
74
+ #- +type+ -> Options to build API string
75
+ #- +params+ -> Additional parameters to narrow search criteria
76
+ def get_user_contents(type, params) # :yields: String
77
+ case type
78
+ when Api_options::USER::EMAIL
79
+ unless personal_access_token.nil?
80
+ "#{BASE_URL}user/emails?access_token=#{params[:app_token]}"
81
+ else
82
+ raise "Authentication required"
83
+ end
84
+ when Api_options::USER::SEARCH
85
+ unless params[:number_of_repos] == nil
86
+ return BASE_URL + SEARCH + USERS + "q=#{params[:by_name]}+repos=#{params[:number_of_repos]}"
87
+ else
88
+ return BASE_URL + SEARCH + USERS + "q=#{params[:by_name]}"
89
+ end
90
+ when Api_options::USER::FOLLOWERS
91
+ BASE_URL + USERS + "#{params[:username]}/followers?access_token=#{params[:token]}"
92
+ end
93
+ end
94
+
95
+
96
+
97
+
98
+
99
+
100
+ end
101
+
@@ -0,0 +1,97 @@
1
+ require_relative 'http_handler'
2
+ require 'net/http'
3
+ require 'open-uri'
4
+ require_relative 'uri_builder'
5
+ require 'json'
6
+
7
+ class UserHttpHandler
8
+ include HttpHandler
9
+
10
+ @@app_token=nil
11
+ @@http=nil
12
+ def initialize
13
+ @response_status=false
14
+ @uri_builder=UriBuilder.new
15
+ end
16
+
17
+
18
+ #Set the authentication token
19
+ #====Attribute
20
+ #- +token+ -> token generated that is needed to make authentication calls
21
+ def self.set_auth_token (token)
22
+ @@app_token=token
23
+ end
24
+
25
+ def self.get_auth_token
26
+ @@app_token
27
+ end
28
+ #get all the followers of the given user
29
+ #==== Attributes
30
+ #- +params+ -> optional parameters for getting followers
31
+ #
32
+ def get_user_followers(params) # :yields: JSON
33
+ uri=URI.parse(@uri_builder.get_user_contents(Api_options::USER::FOLLOWERS,username:params[:username], token:@@app_token))
34
+ http=HttpHandler.initiate_http(uri)
35
+ begin
36
+ if @@app_token == nil
37
+ raise "Authentication not provided"
38
+ end
39
+ response=HttpHandler.get_response(http,uri)
40
+ rescue ArgumentError
41
+ puts "Request failed with code: #{response.code}"
42
+ else
43
+ @response_status=true
44
+ return response
45
+ end
46
+ end
47
+
48
+
49
+ #Search and retrieve user information based on search parameters
50
+ #==== Attributes
51
+ #- +params+ -> optional filters for getting users
52
+ #
53
+ def search_for_user(params) # :yields: JSON
54
+ uri=URI.parse(@uri_builder.get_user_contents(Api_options::USER::SEARCH, params))
55
+ http=HttpHandler.initiate_http(uri)
56
+ begin
57
+ response=HttpHandler.get_response(http,uri)
58
+ rescue ArgumentError
59
+ puts "Request failed with code: #{response.code}"
60
+ else
61
+ @response_status=true
62
+ return response
63
+ end
64
+ end
65
+
66
+
67
+
68
+ #Search for email address of user
69
+ #==== Attributes
70
+ #- +username+ -> username id to get email
71
+ def search_for_user_email(username) # :yields: JSON
72
+ begin
73
+ if @@app_token == nil
74
+ raise "Authentication not provided"
75
+ end
76
+ uri=URI.parse(@uri_builder.get_user_contents(Api_options::USER::EMAIL,username:username, app_token:@@app_token))
77
+ @uri_builder=nil
78
+
79
+ HttpHandler.create_http uri
80
+
81
+ response=HttpHandler.get_response(@@http,uri)
82
+ @response_status=true
83
+ return response
84
+
85
+ end
86
+
87
+
88
+
89
+
90
+
91
+ end
92
+
93
+ #returns the response status that is true if request was successful
94
+ def get_response_status
95
+ @response_status
96
+ end
97
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: github_api_ruby_lib
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - jacob
@@ -45,22 +45,15 @@ executables: []
45
45
  extensions: []
46
46
  extra_rdoc_files: []
47
47
  files:
48
- - .gitignore
49
- - CODE_OF_CONDUCT.md
50
- - Gemfile
51
- - LICENSE.txt
52
- - README.md
53
- - Rakefile
54
- - bin/console
55
- - bin/setup
56
- - github_api_ruby_lib.gemspec
57
- - lib/github_api_ruby_lib.rb
58
- - lib/github_api_ruby_lib/version.rb
48
+ - lib/github_api_ruby_lib/http/api_options.rb
49
+ - lib/github_api_ruby_lib/http/http_handler.rb
50
+ - lib/github_api_ruby_lib/http/repo_http_handler.rb
51
+ - lib/github_api_ruby_lib/http/uri_builder.rb
52
+ - lib/github_api_ruby_lib/http/user_http_handler.rb
59
53
  homepage: https://github.com/jabrah29/Github_Api_Ruby_Library
60
54
  licenses:
61
55
  - MIT
62
- metadata:
63
- allowed_push_host: http://mygemserver.com
56
+ metadata: {}
64
57
  post_install_message:
65
58
  rdoc_options: []
66
59
  require_paths:
@@ -77,7 +70,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
77
70
  version: '0'
78
71
  requirements: []
79
72
  rubyforge_project:
80
- rubygems_version: 2.0.14.1
73
+ rubygems_version: 2.6.12
81
74
  signing_key:
82
75
  specification_version: 4
83
76
  summary: Small Ruby library for using the Github api.
data/.gitignore DELETED
@@ -1,9 +0,0 @@
1
- /.bundle/
2
- /.yardoc
3
- /Gemfile.lock
4
- /_yardoc/
5
- /coverage/
6
- /doc/
7
- /pkg/
8
- /spec/reports/
9
- /tmp/
@@ -1,74 +0,0 @@
1
- # Contributor Covenant Code of Conduct
2
-
3
- ## Our Pledge
4
-
5
- In the interest of fostering an open and welcoming environment, we as
6
- contributors and maintainers pledge to making participation in our project and
7
- our community a harassment-free experience for everyone, regardless of age, body
8
- size, disability, ethnicity, gender identity and expression, level of experience,
9
- nationality, personal appearance, race, religion, or sexual identity and
10
- orientation.
11
-
12
- ## Our Standards
13
-
14
- Examples of behavior that contributes to creating a positive environment
15
- include:
16
-
17
- * Using welcoming and inclusive language
18
- * Being respectful of differing viewpoints and experiences
19
- * Gracefully accepting constructive criticism
20
- * Focusing on what is best for the community
21
- * Showing empathy towards other community members
22
-
23
- Examples of unacceptable behavior by participants include:
24
-
25
- * The use of sexualized language or imagery and unwelcome sexual attention or
26
- advances
27
- * Trolling, insulting/derogatory comments, and personal or political attacks
28
- * Public or private harassment
29
- * Publishing others' private information, such as a physical or electronic
30
- address, without explicit permission
31
- * Other conduct which could reasonably be considered inappropriate in a
32
- professional setting
33
-
34
- ## Our Responsibilities
35
-
36
- Project maintainers are responsible for clarifying the standards of acceptable
37
- behavior and are expected to take appropriate and fair corrective action in
38
- response to any instances of unacceptable behavior.
39
-
40
- Project maintainers have the right and responsibility to remove, edit, or
41
- reject comments, commits, code, wiki edits, issues, and other contributions
42
- that are not aligned to this Code of Conduct, or to ban temporarily or
43
- permanently any contributor for other behaviors that they deem inappropriate,
44
- threatening, offensive, or harmful.
45
-
46
- ## Scope
47
-
48
- This Code of Conduct applies both within project spaces and in public spaces
49
- when an individual is representing the project or its community. Examples of
50
- representing a project or community include using an official project e-mail
51
- address, posting via an official social media account, or acting as an appointed
52
- representative at an online or offline event. Representation of a project may be
53
- further defined and clarified by project maintainers.
54
-
55
- ## Enforcement
56
-
57
- Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
- reported by contacting the project team at jabrah29@uic.edu. All
59
- complaints will be reviewed and investigated and will result in a response that
60
- is deemed necessary and appropriate to the circumstances. The project team is
61
- obligated to maintain confidentiality with regard to the reporter of an incident.
62
- Further details of specific enforcement policies may be posted separately.
63
-
64
- Project maintainers who do not follow or enforce the Code of Conduct in good
65
- faith may face temporary or permanent repercussions as determined by other
66
- members of the project's leadership.
67
-
68
- ## Attribution
69
-
70
- This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
- available at [http://contributor-covenant.org/version/1/4][version]
72
-
73
- [homepage]: http://contributor-covenant.org
74
- [version]: http://contributor-covenant.org/version/1/4/
data/Gemfile DELETED
@@ -1,6 +0,0 @@
1
- source "https://rubygems.org"
2
-
3
- git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
4
-
5
- # Specify your gem's dependencies in github_api_ruby_lib.gemspec
6
- gemspec
@@ -1,21 +0,0 @@
1
- The MIT License (MIT)
2
-
3
- Copyright (c) 2017 jacob
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in
13
- all copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
- THE SOFTWARE.
data/README.md DELETED
@@ -1,43 +0,0 @@
1
- # GithubApiRubyLib
2
-
3
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/github_api_ruby_lib`. To experiment with that code, run `bin/console` for an interactive prompt.
4
-
5
- TODO: Delete this and the text above, and describe your gem
6
-
7
- ## Installation
8
-
9
- Add this line to your application's Gemfile:
10
-
11
- ```ruby
12
- gem 'github_api_ruby_lib'
13
- ```
14
-
15
- And then execute:
16
-
17
- $ bundle
18
-
19
- Or install it yourself as:
20
-
21
- $ gem install github_api_ruby_lib
22
-
23
- ## Usage
24
-
25
- TODO: Write usage instructions here
26
-
27
- ## Development
28
-
29
- After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
30
-
31
- To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
32
-
33
- ## Contributing
34
-
35
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/github_api_ruby_lib. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
36
-
37
- ## License
38
-
39
- The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
40
-
41
- ## Code of Conduct
42
-
43
- Everyone interacting in the GithubApiRubyLib project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/github_api_ruby_lib/blob/master/CODE_OF_CONDUCT.md).
data/Rakefile DELETED
@@ -1,2 +0,0 @@
1
- require "bundler/gem_tasks"
2
- task :default => :spec
@@ -1,14 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- require "bundler/setup"
4
- require "github_api_ruby_lib"
5
-
6
- # You can add fixtures and/or initialization code here to make experimenting
7
- # with your gem easier. You can also use a different console, if you like.
8
-
9
- # (If you use this, don't forget to add pry to your Gemfile!)
10
- # require "pry"
11
- # Pry.start
12
-
13
- require "irb"
14
- IRB.start(__FILE__)
data/bin/setup DELETED
@@ -1,8 +0,0 @@
1
- #!/usr/bin/env bash
2
- set -euo pipefail
3
- IFS=$'\n\t'
4
- set -vx
5
-
6
- bundle install
7
-
8
- # Do any other automated setup that you need to do here
@@ -1,35 +0,0 @@
1
- # coding: utf-8
2
- lib = File.expand_path("../lib", __FILE__)
3
- $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
- require "github_api_ruby_lib/version"
5
-
6
- Gem::Specification.new do |spec|
7
- spec.name = "github_api_ruby_lib"
8
- spec.version = GithubApiRubyLib::VERSION
9
- spec.authors = ["jacob"]
10
- spec.email = ["jabrah29@uic.edu"]
11
-
12
- spec.summary = %q{Small Ruby library for using the Github api.}
13
- spec.description = %q{Ruby library used for basic GET requests}
14
- spec.homepage = "https://github.com/jabrah29/Github_Api_Ruby_Library"
15
- spec.license = "MIT"
16
-
17
- # Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
18
- # to allow pushing to a single host or delete this section to allow pushing to any host.
19
- if spec.respond_to?(:metadata)
20
- spec.metadata["allowed_push_host"] = "http://mygemserver.com"
21
- else
22
- raise "RubyGems 2.0 or newer is required to protect against " \
23
- "public gem pushes."
24
- end
25
-
26
- spec.files = `git ls-files -z`.split("\x0").reject do |f|
27
- f.match(%r{^(test|spec|features)/})
28
- end
29
- spec.bindir = "exe"
30
- spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
31
- spec.require_paths = ["lib"]
32
-
33
- spec.add_development_dependency "bundler", "~> 1.15"
34
- spec.add_development_dependency "rake", "~> 10.0"
35
- end
@@ -1,5 +0,0 @@
1
- require "github_api_ruby_lib/version"
2
-
3
- module GithubApiRubyLib
4
- # Your code goes here...
5
- end
@@ -1,3 +0,0 @@
1
- module GithubApiRubyLib
2
- VERSION = "0.1.0"
3
- end