tvnow 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.travis.yml +4 -2
- data/README.md +2 -4
- data/exe/tvnow +0 -0
- data/lib/tvnow/client.rb +2 -2
- data/lib/tvnow/version.rb +1 -1
- data/tvnow.gemspec +13 -5
- metadata +14 -15
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 6a82fbef2fe53a808b2484acb31b696fb5bda640007e4cbde51708d54d855f42
|
4
|
+
data.tar.gz: c34c345d66086361f590df0ad8dd77f2bd69ead2ecc15e235d7c943d573cc40b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 32818fde1d1bdf6582dde3aade1a7b6210a07529d811b17a7be77daa9d93da7650770dd2af56311e46caca3ecc890060561c04b5ea03a161b5d3c20d09fbcec8
|
7
|
+
data.tar.gz: 11eca35859c0bbb19d319805c84aa64231c950c426b31aad6ae0228fbe74f7f60dbe1b1ade0d14a313e5f506728d249de424fd6c1ac413cf8cd72c4812e66ee5
|
data/.travis.yml
CHANGED
data/README.md
CHANGED
@@ -1,8 +1,6 @@
|
|
1
1
|
# Tvnow
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
TODO: Delete this and the text above, and describe your gem
|
3
|
+
[![Build Status](https://travis-ci.org/geeknees/tvnow.svg?branch=master)](https://travis-ci.org/geeknees/tvnow)
|
6
4
|
|
7
5
|
## Installation
|
8
6
|
|
@@ -32,7 +30,7 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
|
|
32
30
|
|
33
31
|
## Contributing
|
34
32
|
|
35
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/
|
33
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/geeknees/tvnow. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](contributor-covenant.org) code of conduct.
|
36
34
|
|
37
35
|
|
38
36
|
## License
|
data/exe/tvnow
CHANGED
File without changes
|
data/lib/tvnow/client.rb
CHANGED
@@ -3,7 +3,7 @@ require 'rss'
|
|
3
3
|
|
4
4
|
module Tvnow
|
5
5
|
class Client
|
6
|
-
API_URL = '
|
6
|
+
API_URL = 'https://tv.so-net.ne.jp/rss/schedulesByCurrentTime.action?group=10&stationAreaId=23'
|
7
7
|
|
8
8
|
def get_program_list
|
9
9
|
program = get_program
|
@@ -15,7 +15,7 @@ module Tvnow
|
|
15
15
|
private
|
16
16
|
|
17
17
|
def get_program
|
18
|
-
RSS::Parser.parse(open(API_URL).read)
|
18
|
+
RSS::Parser.parse(URI.open(API_URL).read)
|
19
19
|
end
|
20
20
|
|
21
21
|
def restruct_program_list(program)
|
data/lib/tvnow/version.rb
CHANGED
data/tvnow.gemspec
CHANGED
@@ -6,20 +6,28 @@ require 'tvnow/version'
|
|
6
6
|
Gem::Specification.new do |spec|
|
7
7
|
spec.name = "tvnow"
|
8
8
|
spec.version = Tvnow::VERSION
|
9
|
-
spec.authors = ["
|
10
|
-
spec.email = ["
|
9
|
+
spec.authors = ["geeknees"]
|
10
|
+
spec.email = ["mkawasaki@sbihg.co.jp"]
|
11
11
|
|
12
12
|
spec.summary = %q{Show current TV programs}
|
13
13
|
spec.description = %q{Show current TV programs}
|
14
|
-
spec.homepage = "https://github.com/
|
14
|
+
spec.homepage = "https://github.com/geeknees/tvnow"
|
15
15
|
spec.license = "MIT"
|
16
16
|
|
17
|
+
# Prevent pushing this gem to RubyGems.org by setting 'allowed_push_host', or
|
18
|
+
# delete this section to allow pushing this gem to any host.
|
19
|
+
# if spec.respond_to?(:metadata)
|
20
|
+
# spec.metadata['allowed_push_host'] = "TODO: Set to 'http://mygemserver.com'"
|
21
|
+
# else
|
22
|
+
# raise "RubyGems 2.0 or newer is required to protect against public gem pushes."
|
23
|
+
# end
|
24
|
+
|
17
25
|
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
18
26
|
spec.bindir = "exe"
|
19
27
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
20
28
|
spec.require_paths = ["lib"]
|
21
29
|
|
22
|
-
spec.add_development_dependency "bundler"
|
23
|
-
spec.add_development_dependency "rake", "
|
30
|
+
spec.add_development_dependency "bundler"
|
31
|
+
spec.add_development_dependency "rake", ">= 12.3.3"
|
24
32
|
spec.add_development_dependency "rspec"
|
25
33
|
end
|
metadata
CHANGED
@@ -1,43 +1,43 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tvnow
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
-
|
7
|
+
- geeknees
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-03-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '0'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - "
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
26
|
+
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
33
|
+
version: 12.3.3
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - "
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
40
|
+
version: 12.3.3
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rspec
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -54,7 +54,7 @@ dependencies:
|
|
54
54
|
version: '0'
|
55
55
|
description: Show current TV programs
|
56
56
|
email:
|
57
|
-
-
|
57
|
+
- mkawasaki@sbihg.co.jp
|
58
58
|
executables:
|
59
59
|
- tvnow
|
60
60
|
extensions: []
|
@@ -75,7 +75,7 @@ files:
|
|
75
75
|
- lib/tvnow/client.rb
|
76
76
|
- lib/tvnow/version.rb
|
77
77
|
- tvnow.gemspec
|
78
|
-
homepage: https://github.com/
|
78
|
+
homepage: https://github.com/geeknees/tvnow
|
79
79
|
licenses:
|
80
80
|
- MIT
|
81
81
|
metadata: {}
|
@@ -94,8 +94,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
94
94
|
- !ruby/object:Gem::Version
|
95
95
|
version: '0'
|
96
96
|
requirements: []
|
97
|
-
|
98
|
-
rubygems_version: 2.4.8
|
97
|
+
rubygems_version: 3.1.2
|
99
98
|
signing_key:
|
100
99
|
specification_version: 4
|
101
100
|
summary: Show current TV programs
|