gitwrap 1.4.0 → 1.5.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b67a059d9c170daf80acb6d6f893309327b48a31
4
- data.tar.gz: adea36ec4453c52631697d6eb9965c4743a06f24
3
+ metadata.gz: b82d05ab8d4f25f51a5d68b8a1f2f5c1ddc01f7d
4
+ data.tar.gz: 3aa749ef4e59281f9427cd22a33abe2753443be8
5
5
  SHA512:
6
- metadata.gz: a41968b4eabb0f86db6edf7959bff2f1acb410324e9502e876f91bd46a0a4f676660ec103d005c1008011eac319bcd16e6d2b1492cd52a2223b3de619a63fc5f
7
- data.tar.gz: 62f33322695553554e9925954d082ef46faebebce365efb8d14ba3acfea8d4b3e01193468067b5ea700819c80c9052bb97313956cf60123685c95f832c9d9947
6
+ metadata.gz: 167010b5bb68ad87abca383132238dd738aaac365d1d8c90614e5294e20df2df48d39861207f2ea948179794f8f61e3ff6f6519c684f3ad4eec53d0e8da6c357
7
+ data.tar.gz: 273dd533699ca08894d4822de726ae4d3750b8b716b7f40597c7fe41ff4311e4e64a0150507e18db878f2e46a237ff49c873ce1cba8bae8e76c070dfc4391492
data/README.md CHANGED
@@ -96,7 +96,7 @@ It is worth noting that due to the Github API format, not all attributes are ava
96
96
  3. Create a pull request.
97
97
 
98
98
  ##Current Version
99
- Version 0.7.0
99
+ Version 1.5.0
100
100
 
101
101
  ## License
102
102
 
data/lib/gitwrap/fetch.rb CHANGED
@@ -1,8 +1,8 @@
1
+ # require 'json'
2
+ # require 'open-uri'
1
3
  # require './base_connection.rb'
2
- # require './users.rb'
3
4
  # # puts "Type user's username "
4
5
  # # username = gets.chomp
5
-
6
6
  # # puts '---------USERS--------'
7
7
 
8
8
  # u = User.fetch_single_user('oelizondo')
data/lib/gitwrap/orgs.rb CHANGED
@@ -1,9 +1,9 @@
1
1
  module Gitwrap
2
2
  class Org < GithubConnection
3
- attr_accessor :name, :site, :location, :public_repos, :followers, :members, :id
3
+ attr_reader :name, :site, :location, :public_repos, :followers, :members, :id
4
4
  $current_org = 0
5
5
  $all_orgs = []
6
-
6
+
7
7
  def initialize(hash)
8
8
  @id = hash["id"]
9
9
  @name = hash["login"]
data/lib/gitwrap/repos.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  module Gitwrap
2
2
  class Repo < GithubConnection
3
- attr_accessor :name, :url, :forks_count, :language, :stars
3
+ attr_reader :name, :url, :forks_count, :language, :stars
4
4
  $current_repo = 0
5
5
  $all_repos = []
6
6
  $all_org_repos = []
data/lib/gitwrap/users.rb CHANGED
@@ -1,10 +1,10 @@
1
1
  module Gitwrap
2
2
  class User < GithubConnection
3
- attr_accessor :name, :location, :email, :username
3
+ attr_reader :name, :location, :email, :username
4
4
  $current_id = 0
5
5
  $all_users = []
6
6
 
7
- def initialize(hash)
7
+ def initialize(hash={})
8
8
  @name = hash['name']
9
9
  @location = hash['location']
10
10
  @email = hash['email']
@@ -1,3 +1,3 @@
1
1
  module Gitwrap
2
- VERSION = "1.4.0"
2
+ VERSION = "1.5.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gitwrap
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.0
4
+ version: 1.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - oscarmarcelo95