github-interactor 0.1.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
  SHA256:
3
- metadata.gz: 6d85b8dd31697538b81297cb58fac8ff4bd37ad5dca27149e58af2011fdf0244
4
- data.tar.gz: 96ea44c7147951e9899fa5cf33b22fa4846758a5b68a5c4f9a66304e223c3656
3
+ metadata.gz: 9fdbce4e5036e486bfd75f836ed256b568a0e1b43df4ff6c890925bfa1f59d9a
4
+ data.tar.gz: aa628e35656a8e2c15df59d6523a571a84964c0292b877793891ebc0b030dd0e
5
5
  SHA512:
6
- metadata.gz: 2c358762b58d6a93360c137bd31ad0291b0f62c4da2f7b5a968143b78060f38a5d00a9cee4f1662ad0c4f35b6c6f86a72a00a236c8f1c2a7dc3607b27e83ce0a
7
- data.tar.gz: 1e3b61565c60b405ef43a1350acc47624ec248bb33a71e5378902aa0fa73e165810558cae91d1b9fabf6241a9117f44c50cb2b94ef93c59cf1530a333421fbb1
6
+ metadata.gz: 84c484a88075e3dcff13cb91b44d9dff58553b81f02a47936bd95c03b36efe4a0a0a7623599083846eddd70b398f280c6e9e4e2170d1a5d1f150dcd07ef37aea
7
+ data.tar.gz: 768b8d2eb6516edd12ce94e770ef80dc50751e1236baf2c3bcecd1283cc1b906a33246944455542a6862cafe8268def6193688f37394b15528e2ef09f7c5b119
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- github-interactor (0.1.0)
4
+ github-interactor (1.0.0)
5
5
  interactor (~> 3.0)
6
6
  vcr
7
7
 
data/README.md CHANGED
@@ -16,7 +16,15 @@ If bundler is not being used to manage dependencies, install the gem by executin
16
16
 
17
17
  ## Usage
18
18
 
19
- TODO: Coming soon...
19
+ Run a rake task and pass a github username
20
+
21
+ ```
22
+ rake github_user soumyaveer
23
+ ```
24
+
25
+ - For Valid username it returns the users repos and followers.
26
+ - For invalid username it returns an error message - `Failed with error: Not Found`
27
+
20
28
 
21
29
  ## Development
22
30
 
data/Rakefile CHANGED
@@ -10,3 +10,6 @@ require "rubocop/rake_task"
10
10
  RuboCop::RakeTask.new
11
11
 
12
12
  task default: %i[spec rubocop]
13
+
14
+ load 'lib/rake_tasks.rb'
15
+
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Github
4
4
  module Interactor
5
- VERSION = "0.1.0"
5
+ VERSION = "1.0.0"
6
6
  end
7
7
  end
data/lib/rake_tasks.rb ADDED
@@ -0,0 +1,7 @@
1
+ desc 'Get user details by passing one argument which is a github username.'
2
+ task :github_user do
3
+ ARGV.each { |a| task a.to_sym do ; end }
4
+
5
+ puts "Printing details of github user: #{ARGV[1]}"
6
+ sh "bundle exec ruby ./lib/get_user_details.rb #{ARGV[1]}"
7
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: github-interactor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Soumya Veer
@@ -135,6 +135,7 @@ files:
135
135
  - lib/github_api_client.rb
136
136
  - lib/init.rb
137
137
  - lib/inspect_user.rb
138
+ - lib/rake_tasks.rb
138
139
  - sig/github/interactor.rbs
139
140
  homepage: ''
140
141
  licenses: