fbtxt 0.0.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.
Files changed (7) hide show
  1. checksums.yaml +7 -0
  2. data/CHANGELOG.md +3 -0
  3. data/Manifest.txt +5 -0
  4. data/README.md +37 -0
  5. data/Rakefile +28 -0
  6. data/bin/fbtxt +54 -0
  7. metadata +103 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 91e2ba33ed04ac703d4c498a53c6c64f37e644e6b579b9f8132cd588b52557fc
4
+ data.tar.gz: 3cd8eb46bac1c7c6e8c3c20bffc7d7406bf01cf9755ac2ab37f9c6cfec1c643f
5
+ SHA512:
6
+ metadata.gz: 97757d86a9480c2d947608c30cb725de483bdbc15ad2da0fb0d3de05e4e615681186a1f24424972a17d2111962e354fe7ae2bcf3692218e67f343581f4b7382c
7
+ data.tar.gz: 8ff75cea845430177e24b2e8402f87ec802eccfd28e7aa09b03594274ed2f3c35285aed408924bc0b533048918fab0aec8d31483d27ab3d2500acb57208b29a9
data/CHANGELOG.md ADDED
@@ -0,0 +1,3 @@
1
+ ### 0.0.1 / 2024-12-28
2
+
3
+ * Everything is new. First release.
data/Manifest.txt ADDED
@@ -0,0 +1,5 @@
1
+ CHANGELOG.md
2
+ Manifest.txt
3
+ README.md
4
+ Rakefile
5
+ bin/fbtxt
data/README.md ADDED
@@ -0,0 +1,37 @@
1
+ # fbtxt - convert football match schedules & more in tabular comma-separated values (csv) format to (future-proof & evergreen) football.txt
2
+
3
+
4
+ * home :: [github.com/sportdb/sport.db](https://github.com/sportdb/sport.db)
5
+ * bugs :: [github.com/sportdb/sport.db/issues](https://github.com/sportdb/sport.db/issues)
6
+ * gem :: [rubygems.org/gems/fbtxt](https://rubygems.org/gems/fbtxt)
7
+ * rdoc :: [rubydoc.info/gems/fbtxt](http://rubydoc.info/gems/fbtxt)
8
+
9
+
10
+ ## Step 0 - Installation Via Gems
11
+
12
+ To install the command-line tool via gems (ruby's package manager) use:
13
+
14
+ ```
15
+ $ gem install fbtxt
16
+ ```
17
+
18
+
19
+ ## Usage
20
+
21
+ Try in your shell / terminal:
22
+
23
+ ```
24
+ $ fbtxt -h
25
+ ```
26
+
27
+ resulting in:
28
+
29
+
30
+ ...
31
+
32
+
33
+
34
+ ## Questions? Comments?
35
+
36
+ Yes, you can. More than welcome.
37
+ See [Help & Support »](https://github.com/openfootball/help)
data/Rakefile ADDED
@@ -0,0 +1,28 @@
1
+ require 'hoe'
2
+
3
+
4
+ Hoe.spec 'fbtxt' do
5
+ self.version = '0.0.1'
6
+
7
+ self.summary = "fbtxt - convert football match schedules & more in tabular comma-separated values (csv) format to (future-proof & evergreen) football.txt"
8
+ self.description = summary
9
+
10
+ self.urls = { home: 'https://github.com/sportdb/sport.db' }
11
+
12
+ self.author = 'Gerald Bauer'
13
+ self.email = 'gerald.bauer@gmail.com'
14
+
15
+ # switch extension to .markdown for gihub formatting
16
+ self.readme_file = 'README.md'
17
+ self.history_file = 'CHANGELOG.md'
18
+
19
+ self.licenses = ['Public Domain']
20
+
21
+ self.extra_deps = [
22
+ ['sportdb-writers', '>= 0.3.1'],
23
+ ]
24
+
25
+ self.spec_extras = {
26
+ required_ruby_version: '>= 3.1.0'
27
+ }
28
+ end
data/bin/fbtxt ADDED
@@ -0,0 +1,54 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ ## tip: to test run:
4
+ ## ruby -I ./lib bin/fbtxt
5
+ ##
6
+ ## or
7
+ ##
8
+ ## ruby -I ./lib bin/fbtxt /sports/cache.api.fbdat/2024-25/de.1.csv
9
+
10
+
11
+ # $LOAD_PATH.unshift( '../../../sportdb/sport.db/parser/lib' )
12
+ # $LOAD_PATH.unshift( '../../../sportdb/sport.db/sportdb-structs/lib' )
13
+ # $LOAD_PATH.unshift( '../../../sportdb/sport.db/quick/lib' )
14
+
15
+ require 'sportdb/writers'
16
+
17
+
18
+ require 'optparse'
19
+
20
+
21
+
22
+ args=ARGV
23
+ opts = {
24
+ }
25
+
26
+ parser = OptionParser.new do |parser|
27
+ parser.banner = "Usage: #{$PROGRAM_NAME} [options] PATH"
28
+ end
29
+ parser.parse!( args )
30
+
31
+ puts "OPTS:"
32
+ p opts
33
+ puts "ARGV:"
34
+ p args
35
+
36
+
37
+ matches = []
38
+
39
+ ## step 1 - get all matches via csv
40
+ args.each do |arg|
41
+ path = arg
42
+ puts "==> reading matches in #{path} ..."
43
+ more_matches = SportDb::CsvMatchParser.read( path )
44
+ matches += more_matches
45
+ end
46
+
47
+ puts "#{matches.size} matches"
48
+ puts
49
+
50
+ txt = SportDb::TxtMatchWriter.build( matches )
51
+ puts txt
52
+ puts
53
+ puts "bye"
54
+
metadata ADDED
@@ -0,0 +1,103 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: fbtxt
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Gerald Bauer
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2024-12-29 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: sportdb-writers
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: 0.3.1
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: 0.3.1
27
+ - !ruby/object:Gem::Dependency
28
+ name: rdoc
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '4.0'
34
+ - - "<"
35
+ - !ruby/object:Gem::Version
36
+ version: '7'
37
+ type: :development
38
+ prerelease: false
39
+ version_requirements: !ruby/object:Gem::Requirement
40
+ requirements:
41
+ - - ">="
42
+ - !ruby/object:Gem::Version
43
+ version: '4.0'
44
+ - - "<"
45
+ - !ruby/object:Gem::Version
46
+ version: '7'
47
+ - !ruby/object:Gem::Dependency
48
+ name: hoe
49
+ requirement: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - "~>"
52
+ - !ruby/object:Gem::Version
53
+ version: '4.1'
54
+ type: :development
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ requirements:
58
+ - - "~>"
59
+ - !ruby/object:Gem::Version
60
+ version: '4.1'
61
+ description: fbtxt - convert football match schedules & more in tabular comma-separated
62
+ values (csv) format to (future-proof & evergreen) football.txt
63
+ email: gerald.bauer@gmail.com
64
+ executables:
65
+ - fbtxt
66
+ extensions: []
67
+ extra_rdoc_files:
68
+ - CHANGELOG.md
69
+ - Manifest.txt
70
+ - README.md
71
+ files:
72
+ - CHANGELOG.md
73
+ - Manifest.txt
74
+ - README.md
75
+ - Rakefile
76
+ - bin/fbtxt
77
+ homepage: https://github.com/sportdb/sport.db
78
+ licenses:
79
+ - Public Domain
80
+ metadata: {}
81
+ post_install_message:
82
+ rdoc_options:
83
+ - "--main"
84
+ - README.md
85
+ require_paths:
86
+ - lib
87
+ required_ruby_version: !ruby/object:Gem::Requirement
88
+ requirements:
89
+ - - ">="
90
+ - !ruby/object:Gem::Version
91
+ version: 3.1.0
92
+ required_rubygems_version: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ requirements: []
98
+ rubygems_version: 3.4.10
99
+ signing_key:
100
+ specification_version: 4
101
+ summary: fbtxt - convert football match schedules & more in tabular comma-separated
102
+ values (csv) format to (future-proof & evergreen) football.txt
103
+ test_files: []