gitwrap 0.9.0 → 1.0.0

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: 849733797259a9d1b6ba9e3032bbee55fb7bd510
4
- data.tar.gz: e6bb3e04c735d6089222aec76116ceeb6e43273a
3
+ metadata.gz: ae28b52e50117e1c7c3ab1d9e57b9abfdb4353b4
4
+ data.tar.gz: 8397d2284e9df40c8e11a42a525aa3a9512ab80e
5
5
  SHA512:
6
- metadata.gz: 0c9a04321dd7cf589b720c25511a0cab1ab2ae7256233d42d1f760837d98b9faac902b05b14b58f85c5e6cffc8132150925cf5635bda76ad7415368528606f3a
7
- data.tar.gz: eec2d8945eaeaafd6accec33c78dce031bb1b8b3b1c7c3cc64f3312754cbde39ae83ca6cbcd0f7ad4cda94f117f3e60c3f0787d78c289564140659360467ec8d
6
+ metadata.gz: 0ca6fa68b7d1a298e0798d468ec9a7f292bc89205e5272bf65d2f72dcf5019d6933f27d1b8d493fd1b56d560c34ec08d07e35582ac8641aa783fd76df35e8bf1
7
+ data.tar.gz: ae4e64c83db76c2e573159bddca40e610033c9bd106490706376487dfde8f132e6ac8a777181c382212180b2c0b1025a0dbaa8eec9c74cfe550ddafc5a3fbec2
data/gitwrap-0.9.0.gem ADDED
Binary file
@@ -46,6 +46,6 @@ module DataCreator
46
46
 
47
47
  def create_single_repo(url)
48
48
  Repo.new(parse_data(url))
49
- endn
50
-
49
+ end
50
+ end
51
51
  end
data/lib/gitwrap/fetch.rb CHANGED
@@ -1,61 +1,63 @@
1
- # puts "Type user's username "
2
- # username = gets.chomp
1
+ # require './base_connection.rb'
2
+ # require './users.rb'
3
+ # # puts "Type user's username "
4
+ # # username = gets.chomp
3
5
 
4
- # puts '---------USERS--------'
6
+ # # puts '---------USERS--------'
5
7
 
6
- # u = User.fetch_single_user(username)
8
+ # u = User.fetch_single_user('oelizondo')
7
9
  # puts "Name: #{u.name}"
8
10
  # puts "Email: #{u.email}"
9
11
  # puts "Location: #{u.location}"
10
12
  # puts "Username: #{u.username}"
11
13
 
12
- # puts '-----------------'
14
+ # # puts '-----------------'
13
15
 
14
- # all_users = User.fetch_all_users()
15
- # all_users.each do |user|
16
- # puts "Username: #{user.username}"
17
- # end
16
+ # # all_users = User.fetch_all_users()
17
+ # # all_users.each do |user|
18
+ # # puts "Username: #{user.username}"
19
+ # # end
18
20
 
19
- # puts '--------ORGS---------'
21
+ # # puts '--------ORGS---------'
20
22
 
21
- # org = Org.fetch_single_org('IcaliaLabs')
22
- # puts "Name: #{org.name}"
23
- # puts "Site: #{org.site}"
24
- # puts "Location: #{org.location}"
25
- # puts "Public Repositories: #{org.public_repos}"
26
- # puts "Followers: #{org.followers}"
27
- # puts "Members: #{org.members}"
23
+ # # org = Org.fetch_single_org('IcaliaLabs')
24
+ # # puts "Name: #{org.name}"
25
+ # # puts "Site: #{org.site}"
26
+ # # puts "Location: #{org.location}"
27
+ # # puts "Public Repositories: #{org.public_repos}"
28
+ # # puts "Followers: #{org.followers}"
29
+ # # puts "Members: #{org.members}"
28
30
 
29
- # orgs = Org.fetch_all_orgs()
30
- # orgs.each do |org|
31
- # puts "Name: #{org.name}"
32
- # end
31
+ # # orgs = Org.fetch_all_orgs()
32
+ # # orgs.each do |org|
33
+ # # puts "Name: #{org.name}"
34
+ # # end
33
35
 
34
- # puts '--------REPOS---------'
36
+ # # puts '--------REPOS---------'
35
37
 
36
- # repos = Repo.fetch_user_repos('oelizondo')
37
- # repos.each do |repo|
38
- # puts "Repository name: #{repo.name}"
39
- # end
38
+ # # repos = Repo.fetch_user_repos('oelizondo')
39
+ # # repos.each do |repo|
40
+ # # puts "Repository name: #{repo.name}"
41
+ # # end
40
42
 
41
- # puts '-----------------'
43
+ # # puts '-----------------'
42
44
 
43
- # repos = Repo.fetch_org_repos('IcaliaLabs')
44
- # repos.each do |repo|
45
- # puts "Name: #{repo.name}"
46
- # puts "Language: #{repo.language}"
47
- # puts "Stars: #{repo.stars}"
48
- # end
49
- # puts '-----------------'
45
+ # # repos = Repo.fetch_org_repos('IcaliaLabs')
46
+ # # repos.each do |repo|
47
+ # # puts "Name: #{repo.name}"
48
+ # # puts "Language: #{repo.language}"
49
+ # # puts "Stars: #{repo.stars}"
50
+ # # end
51
+ # # puts '-----------------'
50
52
 
51
- # repos = Repo.fetch_all_repos()
52
- # repos.each do |repo|
53
- # puts "Name: #{repo.name}"
54
- # end
53
+ # # repos = Repo.fetch_all_repos()
54
+ # # repos.each do |repo|
55
+ # # puts "Name: #{repo.name}"
56
+ # # end
55
57
 
56
- # puts '-----------------'
58
+ # # puts '-----------------'
57
59
 
58
- # repo = Repo.fetch_single_repo('oelizondo', 'Angular_1')
59
- # puts "Name: #{repo.name}"
60
- # puts "Language: #{repo.language}"
61
- # puts "Stars #{repo.stars}"
60
+ # # repo = Repo.fetch_single_repo('oelizondo', 'Angular_1')
61
+ # # puts "Name: #{repo.name}"
62
+ # # puts "Language: #{repo.language}"
63
+ # # puts "Stars #{repo.stars}"
data/lib/gitwrap/orgs.rb CHANGED
@@ -1,6 +1,3 @@
1
- $: << 'lib'
2
- require 'gitwrap/base_connection.rb'
3
-
4
1
  module Gitwrap
5
2
  class Org < GithubConnection
6
3
  attr_accessor :name, :site, :location, :public_repos, :followers, :members, :id
data/lib/gitwrap/repos.rb CHANGED
@@ -1,6 +1,3 @@
1
- $: << 'lib'
2
- require 'gitwrap/base_connection.rb'
3
-
4
1
  module Gitwrap
5
2
  class Repo < GithubConnection
6
3
  attr_accessor :name, :url, :forks_count, :language, :stars
data/lib/gitwrap/users.rb CHANGED
@@ -1,6 +1,3 @@
1
- $: << 'lib'
2
- require 'gitwrap/base_connection.rb'
3
-
4
1
  module Gitwrap
5
2
  class User < GithubConnection
6
3
  attr_accessor :name, :location, :email, :username
@@ -1,3 +1,3 @@
1
1
  module Gitwrap
2
- VERSION = "0.9.0"
2
+ VERSION = "1.0.0"
3
3
  end
data/lib/gitwrap.rb CHANGED
@@ -1,3 +1,10 @@
1
1
  require "gitwrap/version"
2
+ require 'json'
3
+ require 'open-uri'
4
+
2
5
  module Gitwrap
6
+ class GithubConnection
7
+ include DataCreator
8
+ BASE_URL = "https://api.github.com/"
9
+ end
3
10
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gitwrap
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - oscarmarcelo95
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-07-20 00:00:00.000000000 Z
11
+ date: 2015-07-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -53,11 +53,10 @@ files:
53
53
  - Rakefile
54
54
  - bin/console
55
55
  - bin/setup
56
- - gitwrap-0.8.0.gem
56
+ - gitwrap-0.9.0.gem
57
57
  - gitwrap.gemspec
58
58
  - lib/gitwrap.rb
59
59
  - lib/gitwrap/.DS_Store
60
- - lib/gitwrap/base_connection.rb
61
60
  - lib/gitwrap/data_creator.rb
62
61
  - lib/gitwrap/fetch.rb
63
62
  - lib/gitwrap/orgs.rb
data/gitwrap-0.8.0.gem DELETED
Binary file
@@ -1,11 +0,0 @@
1
- $: << 'lib'
2
- require 'json'
3
- require 'open-uri'
4
- require 'gitwrap/data_creator'
5
-
6
- module Gitwrap
7
- class GithubConnection
8
- include DataCreator
9
- BASE_URL = "https://api.github.com/"
10
- end
11
- end