video_chat_get 0.2.2 → 0.2.6.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1d24c89a7bc748d5a23de25fd58d03da8259827b1382c69015f803b4c425f8bf
4
- data.tar.gz: 85d8770b3c6c352ae8407eba30c93c6f5673f0562075eeb460cdb41f33a95ee5
3
+ metadata.gz: a22e01dec3d6b5fa273e1c4a5e1b1cf16b9999fb7dfd627a977809f2abfdd040
4
+ data.tar.gz: 7d9c0d49621d4da9ccbfeed4f905c91b3d1aa98cec04a5227d76d02299dd63c6
5
5
  SHA512:
6
- metadata.gz: 49b7c0c2afec807bef23ed178bae2b279bd46b21e1ba5da06aeb66aa0a19878c5380b43e7d039119014ffa85974d3b7d2fcc9087c96cb59f3d3fa6e843fe521d
7
- data.tar.gz: 89e4b683ded3948d04adc959a60e29cc134913090c904eed91f6d54ff8031c5339dc13e87c49eae77fff61454a917f9607c99dc6534cf30d2c515718bfa1930f
6
+ metadata.gz: 94de0c0f74c15ffc178ef2ee32d26d03c7dde1937a1603fc14943a59a7bf6bbbee9fd498d214efffd0549636b63debaa79a371e9220446ff47f62df94794787b
7
+ data.tar.gz: b335eeb7101a31df0386bf17036c0f893df6cdc6fb4bfc89152b7305411b2575444cb5417df6dad11b31d98638124e278728cfabc3445311c4244603d89896a7
data/.circleci/config.yml CHANGED
@@ -36,12 +36,53 @@ jobs:
36
36
  success_message: ':circleci-pass: $CIRCLE_BRANCH のテストが完了しました\n:github_octocat: User:$CIRCLE_USERNAME'
37
37
  failure_message: ':circleci-fail: $CIRCLE_BRANCH のテストが失敗しました\n:github_octocat: User:$CIRCLE_USERNAME'
38
38
  webhook: '${SLACK_WEBHOOK}'
39
+
40
+ deploy:
41
+ executor: my-executor
42
+ steps:
43
+ - checkout
44
+
45
+ - restore_cache:
46
+ name: cache lord
47
+ key: gem-cache-{{ arch }}-{{ .Branch }}-{{ checksum "Gemfile.lock" }}
48
+
49
+ - run:
50
+ name: bundle install
51
+ command: bundle check --path=vendor/bundle || bundle install --path vendor/bundle --clean --jobs 4 --retry 3
52
+
53
+ - save_cache:
54
+ name: save cache
55
+ key: gem-cache-{{ arch }}-{{ .Branch }}-{{ checksum "Gemfile.lock" }}
56
+ paths:
57
+ - ./vendor/bundle
58
+
59
+ - run:
60
+ name: build & release
61
+ command: |
62
+ mkdir -p ~/.gem
63
+ echo ":rubygems_api_key: $RUBYGEMS_API_KEY" > ~/.gem/credentials
64
+ chmod 0600 ~/.gem/credentials
65
+ git config user.name tf0101
66
+ git config user.email $RUBYGEMS_EMAIL
67
+ bundle exec rake build
68
+ bundle exec rake release
69
+
70
+ - slack/status:
71
+ success_message: ':circleci-pass: $CIRCLE_BRANCH のリリースが完了しました\n:github_octocat: User:$CIRCLE_USERNAME'
72
+ failure_message: ':circleci-fail: $CIRCLE_BRANCH のリリースが失敗しました\n:github_octocat: User:$CIRCLE_USERNAME'
73
+ webhook: '${SLACK_WEBHOOK}'
39
74
 
40
75
  workflows:
41
76
  version: 2
42
77
  test:
43
78
  jobs:
44
79
  - test
80
+ deploy:
81
+ jobs:
82
+ - deploy:
83
+ filters:
84
+ branches:
85
+ only: master
45
86
 
46
87
  test_cron:
47
88
  triggers:
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- video_chat_get (0.2.2)
4
+ video_chat_get (0.2.6.1)
5
5
  httpclient (~> 2.8.3)
6
6
  json (~> 2.3.0)
7
7
  nokogiri (~> 1.10.9)
@@ -39,13 +39,13 @@ class Twitcasting_analyze<Video_analyze
39
39
  videoinfo["user_name"]=@videoinfo_request_body.at_css(".tw-user-nav-name").text.strip
40
40
  videoinfo["video_title"]=@videoinfo_request_body.at_css(".tw-player-page__title-editor-value").text
41
41
  videoinfo["video_time"]=@videoinfo_request_body.at_css(".tw-player-duration-time").text.strip
42
- videoinfo["video_start_time"]=@videoinfo_request_body.at_css(".tw-player-meta__status_item > time")[:datetime]
42
+ videoinfo["video_start_time"]=@videoinfo_request_body.at_css(".tw-player-meta__status_item > time").attribute('datetime').text
43
43
 
44
44
  videoinfo_polymer=@videoinfo_request_body.css(".tw-player-meta__status").css(".tw-player-meta__status_item")
45
45
  i=0
46
46
  videoinfo_polymer.each do |fact|
47
47
  if i==1 then
48
- videoinfo["total_view"]=fact.text.strip.split(":",2)[1]
48
+ videoinfo["total_view"]=fact.attribute('aria-label').text.split(":",2)[1].strip
49
49
  return videoinfo
50
50
  end
51
51
  i+=1
@@ -1,3 +1,3 @@
1
1
  module VideoChatGet
2
- VERSION = "0.2.2"
2
+ VERSION = "0.2.6.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: video_chat_get
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - tf0101
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-02-12 00:00:00.000000000 Z
11
+ date: 2022-06-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -146,8 +146,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
146
146
  - !ruby/object:Gem::Version
147
147
  version: '0'
148
148
  requirements: []
149
- rubyforge_project:
150
- rubygems_version: 2.7.6.2
149
+ rubygems_version: 3.0.3
151
150
  signing_key:
152
151
  specification_version: 4
153
152
  summary: videochat scraping package