ttsttb 0.0.3 → 0.1.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: ea73f2ec6452e43f2b4f950395f6c5cb676f51e7823654e7a19875941b40b09f
4
- data.tar.gz: e5750051b807160c297b4194842355f4ccfe557caac8644d94cdb6334767b76e
3
+ metadata.gz: ac2db7a7805e980a93a2868e5864af404fecec4706c972cc44f5d83d230c6559
4
+ data.tar.gz: 261146e374a799bac282bbd9999dd515f626ffa9af78c173876bf74c4ae19fb1
5
5
  SHA512:
6
- metadata.gz: b0523bc57febfc43c0affa1f6b69f60caaf3498bf90b52e1f3aefdbf6efd1a0efca37bc314e48eea369e5e2db3c14af2408338f5c617f73b027033dc594c3315
7
- data.tar.gz: 7b443570cb3d3bdc79492d4017fba9d83b9b5fe3b041679702ed8d945da88ee80a6f1b610a16a640d59c151f9d79286f54c065340ce9063870bc53e091792e6c
6
+ metadata.gz: e717c568251b48a67140c2d56113d15efeaa53cd447e9efdf301d374235fb526d4b018f3a8e52f5e5850785bf7e9e9a1fd90ac3d7f4993374b62a04261e8dba6
7
+ data.tar.gz: 783efa3d89f1e708d4554e0b6521b449cb913af9bf83c96303b0325820b87888fd7b1f87a776051944f7b8f1b1f97bd97fd9030caa59fcd9f3ae946eee0d656e
data/.rubocop.yml CHANGED
@@ -1,3 +1,5 @@
1
+ inherit_from: .rubocop_todo.yml
2
+
1
3
  # This configuration was generated by
2
4
  # `rubocop --auto-gen-config`
3
5
  # on 2018-02-23 11:31:57 +0900 using RuboCop version 0.48.1.
data/.rubocop_todo.yml ADDED
@@ -0,0 +1,127 @@
1
+ # This configuration was generated by
2
+ # `rubocop --auto-gen-config`
3
+ # on 2021-04-22 06:18:26 UTC using RuboCop version 1.10.0.
4
+ # The point is for the user to remove these configuration records
5
+ # one by one as the offenses are removed from the code base.
6
+ # Note that changes in the inspected code, or installation of new
7
+ # versions of RuboCop, may require this file to be generated again.
8
+
9
+ # Offense count: 1
10
+ # Configuration parameters: Include.
11
+ # Include: **/*.gemspec
12
+ Gemspec/RequiredRubyVersion:
13
+ Exclude:
14
+ - 'ttsttb.gemspec'
15
+
16
+ # Offense count: 1
17
+ # Cop supports --auto-correct.
18
+ # Configuration parameters: EnforcedStyle.
19
+ # SupportedStyles: empty_lines, no_empty_lines
20
+ Layout/EmptyLinesAroundBlockBody:
21
+ Exclude:
22
+ - 'ttsttb.gemspec'
23
+
24
+ # Offense count: 1
25
+ # Cop supports --auto-correct.
26
+ # Configuration parameters: AllowForAlignment, AllowBeforeTrailingComments, ForceEqualSignAlignment.
27
+ Layout/ExtraSpacing:
28
+ Exclude:
29
+ - 'ttsttb.gemspec'
30
+
31
+ # Offense count: 1
32
+ # Cop supports --auto-correct.
33
+ Layout/LeadingEmptyLines:
34
+ Exclude:
35
+ - 'ttsttb.gemspec'
36
+
37
+ # Offense count: 1
38
+ # Cop supports --auto-correct.
39
+ # Configuration parameters: AllowForAlignment, EnforcedStyleForExponentOperator.
40
+ # SupportedStylesForExponentOperator: space, no_space
41
+ Layout/SpaceAroundOperators:
42
+ Exclude:
43
+ - 'ttsttb.gemspec'
44
+
45
+ # Offense count: 1
46
+ # Cop supports --auto-correct.
47
+ # Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces, SpaceBeforeBlockParameters.
48
+ # SupportedStyles: space, no_space
49
+ # SupportedStylesForEmptyBraces: space, no_space
50
+ Layout/SpaceInsideBlockBraces:
51
+ Exclude:
52
+ - 'Gemfile'
53
+
54
+ # Offense count: 1
55
+ # Cop supports --auto-correct.
56
+ # Configuration parameters: EnforcedStyle.
57
+ # SupportedStyles: final_newline, final_blank_line
58
+ Layout/TrailingEmptyLines:
59
+ Exclude:
60
+ - 'main.rb'
61
+
62
+ # Offense count: 1
63
+ # Configuration parameters: AllowComments.
64
+ Lint/EmptyConditionalBody:
65
+ Exclude:
66
+ - 'ttsttb.gemspec'
67
+
68
+ # Offense count: 1
69
+ # Configuration parameters: IgnoredMethods, CountRepeatedAttributes.
70
+ Metrics/AbcSize:
71
+ Max: 27
72
+
73
+ # Offense count: 1
74
+ Security/Open:
75
+ Exclude:
76
+ - 'lib/ttsttb.rb'
77
+
78
+ # Offense count: 1
79
+ # Cop supports --auto-correct.
80
+ Style/ExpandPathArguments:
81
+ Exclude:
82
+ - 'ttsttb.gemspec'
83
+
84
+ # Offense count: 7
85
+ # Cop supports --auto-correct.
86
+ # Configuration parameters: EnforcedStyle.
87
+ # SupportedStyles: always, always_true, never
88
+ Style/FrozenStringLiteralComment:
89
+ Exclude:
90
+ - 'Gemfile'
91
+ - 'Rakefile'
92
+ - 'bin/console'
93
+ - 'lib/ttsttb.rb'
94
+ - 'lib/ttsttb/version.rb'
95
+ - 'main.rb'
96
+ - 'ttsttb.gemspec'
97
+
98
+ # Offense count: 1
99
+ # Cop supports --auto-correct.
100
+ # Configuration parameters: UseHashRocketsWithSymbolValues, PreferHashRocketsForNonAlnumEndingSymbols.
101
+ # SupportedStyles: ruby19, hash_rockets, no_mixed_keys, ruby19_no_mixed_keys
102
+ Style/HashSyntax:
103
+ EnforcedStyle: hash_rockets
104
+
105
+ # Offense count: 2
106
+ # Cop supports --auto-correct.
107
+ # Configuration parameters: PreferredDelimiters.
108
+ Style/PercentLiteralDelimiters:
109
+ Exclude:
110
+ - 'ttsttb.gemspec'
111
+
112
+ # Offense count: 2
113
+ # Cop supports --auto-correct.
114
+ Style/RedundantPercentQ:
115
+ Exclude:
116
+ - 'ttsttb.gemspec'
117
+
118
+ # Offense count: 19
119
+ # Cop supports --auto-correct.
120
+ # Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline.
121
+ # SupportedStyles: single_quotes, double_quotes
122
+ Style/StringLiterals:
123
+ Exclude:
124
+ - 'Gemfile'
125
+ - 'Rakefile'
126
+ - 'bin/console'
127
+ - 'ttsttb.gemspec'
data/Gemfile.lock CHANGED
@@ -1,24 +1,24 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ttsttb (0.0.3)
4
+ ttsttb (0.1.0)
5
5
  nokogiri
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
9
9
  specs:
10
- mini_portile2 (2.3.0)
11
- nokogiri (1.8.2)
12
- mini_portile2 (~> 2.3.0)
10
+ mini_portile2 (2.4.0)
11
+ nokogiri (1.10.9)
12
+ mini_portile2 (~> 2.4.0)
13
13
  rake (10.5.0)
14
14
 
15
15
  PLATFORMS
16
16
  ruby
17
17
 
18
18
  DEPENDENCIES
19
- bundler (~> 1.16)
19
+ bundler (~> 2)
20
20
  rake (~> 10.0)
21
21
  ttsttb!
22
22
 
23
23
  BUNDLED WITH
24
- 1.16.1
24
+ 2.2.16
data/lib/ttsttb.rb CHANGED
@@ -16,7 +16,7 @@ module Ttsttb
16
16
 
17
17
  require 'open-uri'
18
18
 
19
- doc = Nokogiri::HTML(open(url, redirect: false))
19
+ doc = Nokogiri::HTML(URI.open(url, :redirect => false))
20
20
  scrape(doc)
21
21
  end
22
22
 
@@ -47,6 +47,7 @@ module Ttsttb
47
47
  def self.normalize(value)
48
48
  value = value.strip
49
49
  return nil if value == 'unquoted'
50
+
50
51
  value.to_f
51
52
  end
52
53
 
@@ -1,3 +1,3 @@
1
1
  module Ttsttb
2
- VERSION = '0.0.3'.freeze
2
+ VERSION = '0.1.0'.freeze
3
3
  end
data/ttsttb.gemspec CHANGED
@@ -28,7 +28,7 @@ Gem::Specification.new do |spec|
28
28
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
29
29
  spec.require_paths = ["lib"]
30
30
 
31
- spec.add_development_dependency "bundler", "~> 1.16"
31
+ spec.add_development_dependency "bundler", "~> 2"
32
32
  spec.add_development_dependency "rake", "~> 10.0"
33
33
 
34
34
  spec.add_runtime_dependency 'nokogiri'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ttsttb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yuki Matsukura
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-02-23 00:00:00.000000000 Z
11
+ date: 2021-04-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '1.16'
19
+ version: '2'
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: '1.16'
26
+ version: '2'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -61,6 +61,7 @@ extra_rdoc_files: []
61
61
  files:
62
62
  - ".gitignore"
63
63
  - ".rubocop.yml"
64
+ - ".rubocop_todo.yml"
64
65
  - Gemfile
65
66
  - Gemfile.lock
66
67
  - README.md
@@ -74,7 +75,7 @@ files:
74
75
  homepage: https://github.com/matsubo/ttsttb
75
76
  licenses: []
76
77
  metadata: {}
77
- post_install_message:
78
+ post_install_message:
78
79
  rdoc_options: []
79
80
  require_paths:
80
81
  - lib
@@ -89,9 +90,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
89
90
  - !ruby/object:Gem::Version
90
91
  version: '0'
91
92
  requirements: []
92
- rubyforge_project:
93
- rubygems_version: 2.7.6
94
- signing_key:
93
+ rubygems_version: 3.1.2
94
+ signing_key:
95
95
  specification_version: 4
96
96
  summary: Fetch TTS and TTB corresponding to the date.
97
97
  test_files: []