soccers_api 0.1.0 → 1.0.5

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: e0723d516538a2bb732557e18a6eab16536415be645b0cbc65904926a848d47f
4
- data.tar.gz: 50681c78c4bd83dbd2209a5a3d1ac242bd720bdc2d0c11991f9e144034fd9aad
3
+ metadata.gz: 653c3a97ebad8be83e03ff34d0a15876a7d1b32713d38f1c65d3773bb2fbc3a4
4
+ data.tar.gz: 947c578f8ec8f6b6d014dace3713b284c31bb4b0e401dde76a3fc5e8a7d52b0a
5
5
  SHA512:
6
- metadata.gz: 51d1a28fbe85f9a19237281dc8d9779e6197ec5f07f907378332f2138902dac61f2912d3ae4ed1c074f3145145849bd6921a34c4de78d7adf60afb508c63d144
7
- data.tar.gz: 73d419ebff7261420384308b4f70976bb998aa0d40a4b82a035202ac9469a8825f76069a972e1ad3faebc335cd6928ed69ec38fc059da85d48aac18028e41f21
6
+ metadata.gz: 7cd429204545f58c28efbe1b8a13384f8f2ddcb6d37e8a01be69764134add14d4429bafb93c252d7483fa84a534abdbfb4ca036fb30c528d1d77f9136173f97d
7
+ data.tar.gz: 7259a4918ce8e8a75dd24d807dca0fa03bb0f231ca5f3a60059789984092d37e53c7dc0a877af66c45a70394e13f0e8667a1ba17d50f50b4d9625c93b9802de2
@@ -0,0 +1,53 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ soccers_api (1.0.3)
5
+
6
+ GEM
7
+ remote: https://rubygems.org/
8
+ specs:
9
+ diff-lcs (1.4.4)
10
+ domain_name (0.5.20190701)
11
+ unf (>= 0.0.5, < 1.0.0)
12
+ http-accept (1.7.0)
13
+ http-cookie (1.0.3)
14
+ domain_name (~> 0.5)
15
+ mime-types (3.3.1)
16
+ mime-types-data (~> 3.2015)
17
+ mime-types-data (3.2020.0512)
18
+ netrc (0.11.0)
19
+ rake (10.5.0)
20
+ rest-client (2.1.0)
21
+ http-accept (>= 1.7.0, < 2.0)
22
+ http-cookie (>= 1.0.2, < 2.0)
23
+ mime-types (>= 1.16, < 4.0)
24
+ netrc (~> 0.8)
25
+ rspec (3.9.0)
26
+ rspec-core (~> 3.9.0)
27
+ rspec-expectations (~> 3.9.0)
28
+ rspec-mocks (~> 3.9.0)
29
+ rspec-core (3.9.2)
30
+ rspec-support (~> 3.9.3)
31
+ rspec-expectations (3.9.2)
32
+ diff-lcs (>= 1.2.0, < 2.0)
33
+ rspec-support (~> 3.9.0)
34
+ rspec-mocks (3.9.1)
35
+ diff-lcs (>= 1.2.0, < 2.0)
36
+ rspec-support (~> 3.9.0)
37
+ rspec-support (3.9.3)
38
+ unf (0.1.4)
39
+ unf_ext
40
+ unf_ext (0.0.7.7)
41
+
42
+ PLATFORMS
43
+ ruby
44
+
45
+ DEPENDENCIES
46
+ bundler (~> 1.17)
47
+ rake (~> 10.0)
48
+ rest-client (~> 2.1)
49
+ rspec (~> 3.0)
50
+ soccers_api!
51
+
52
+ BUNDLED WITH
53
+ 1.17.3
data/README.md CHANGED
@@ -18,7 +18,7 @@ Or install it yourself as:
18
18
 
19
19
  ## Usage
20
20
 
21
- TODO: Write usage instructions here
21
+ Fetch soccers statistics and live updates using SoccersAPI
22
22
 
23
23
  ## Development
24
24
 
@@ -1,15 +1 @@
1
- require "soccers_api/version"
2
-
3
- module SoccersApi
4
- def soccers_api(chars, filter = '.')
5
- self.rjust(chars, filter)
6
- end
7
-
8
- def capitalize_each_word
9
- self.split(' ').map{ |word| word.capitalize }.join(' ')
10
- end
11
- end
12
-
13
- class String
14
- include SoccersApi
15
- end
1
+ require "soccers_api/continent"
@@ -0,0 +1,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ module SoccersApi
4
+ class Continent
5
+ def self.continents
6
+ require 'rest-client'
7
+
8
+ url = 'https://api.soccersapi.com/v2.2/continents/?user=umarstads&token=4ec1d6a039a04165ce7ca1f2fd594fe0&t=list'
9
+ response = RestClient.get url
10
+ response.body
11
+ end
12
+ end
13
+ end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module SoccersApi
2
- VERSION = "0.1.0"
4
+ VERSION = '1.0.5'
3
5
  end
Binary file
Binary file
Binary file
Binary file
@@ -1,28 +1,30 @@
1
+ # frozen_string_literal: true
1
2
 
2
- lib = File.expand_path("../lib", __FILE__)
3
+ lib = File.expand_path('lib', __dir__)
3
4
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
- require "soccers_api/version"
5
+ require 'soccers_api/version'
5
6
 
6
7
  Gem::Specification.new do |spec|
7
- spec.name = "soccers_api"
8
+ spec.name = 'soccers_api'
8
9
  spec.version = SoccersApi::VERSION
9
- spec.authors = ["umar482"]
10
- spec.email = ["umar.omtomo@gmail.com"]
10
+ spec.authors = ['umar482']
11
+ spec.email = ['umar.omtomo@gmail.com']
11
12
 
12
- spec.summary = %q{R ruby gem to fetch soccer statistics and live soccer data from SoccersApi.}
13
- spec.homepage = "https://github.com/umar482/soccers_api"
14
- spec.license = "MIT"
13
+ spec.summary = 'A ruby gem to fetch soccer statistics and live soccer data from SoccersApi.'
14
+ spec.homepage = 'https://github.com/umar482/soccers_api'
15
+ spec.license = 'MIT'
15
16
 
16
17
  # Specify which files should be added to the gem when it is released.
17
18
  # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
18
- spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
19
+ spec.files = Dir.chdir(File.expand_path(__dir__)) do
19
20
  `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
20
21
  end
21
- spec.bindir = "exe"
22
+ spec.bindir = 'exe'
22
23
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
23
- spec.require_paths = ["lib"]
24
+ spec.require_paths = ['lib']
24
25
 
25
- spec.add_development_dependency "bundler", "~> 1.17"
26
- spec.add_development_dependency "rake", "~> 10.0"
27
- spec.add_development_dependency "rspec", "~> 3.0"
26
+ spec.add_development_dependency 'bundler', '~> 1.17'
27
+ spec.add_development_dependency 'rake', '~> 10.0'
28
+ spec.add_development_dependency 'rspec', '~> 3.0'
29
+ spec.add_development_dependency 'rest-client', '~> 2.1'
28
30
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: soccers_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 1.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - umar482
@@ -52,6 +52,20 @@ dependencies:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: '3.0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rest-client
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '2.1'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '2.1'
55
69
  description:
56
70
  email:
57
71
  - umar.omtomo@gmail.com
@@ -64,13 +78,19 @@ files:
64
78
  - ".travis.yml"
65
79
  - CODE_OF_CONDUCT.md
66
80
  - Gemfile
81
+ - Gemfile.lock
67
82
  - LICENSE.txt
68
83
  - README.md
69
84
  - Rakefile
70
85
  - bin/console
71
86
  - bin/setup
72
87
  - lib/soccers_api.rb
88
+ - lib/soccers_api/continent.rb
73
89
  - lib/soccers_api/version.rb
90
+ - soccers_api-0.1.0.gem
91
+ - soccers_api-1.0.1.gem
92
+ - soccers_api-1.0.2.gem
93
+ - soccers_api-1.0.3.gem
74
94
  - soccers_api.gemspec
75
95
  homepage: https://github.com/umar482/soccers_api
76
96
  licenses:
@@ -91,8 +111,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
91
111
  - !ruby/object:Gem::Version
92
112
  version: '0'
93
113
  requirements: []
94
- rubygems_version: 3.0.3
114
+ rubygems_version: 3.1.3
95
115
  signing_key:
96
116
  specification_version: 4
97
- summary: R ruby gem to fetch soccer statistics and live soccer data from SoccersApi.
117
+ summary: A ruby gem to fetch soccer statistics and live soccer data from SoccersApi.
98
118
  test_files: []