hatenablog_publisher 0.2.0 → 0.3.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: ae5520e6363ca01a3e404687252372c0d3e3cca100ddbc3fcd6adc1ea940a70a
4
- data.tar.gz: b4489a0d2245d0efb130a589d6f1eefe2430af44469fe0b6112987b357e1c31f
3
+ metadata.gz: 1c3040d39a5be46c7a7e2dcf5fd7ee32b0b598e6b784924f455260173b8d4743
4
+ data.tar.gz: 30370641aa5797c6f77b4a63e12a68fea0fdd4083dad15ae20a5a90cc0ffbfba
5
5
  SHA512:
6
- metadata.gz: e6fdb7227d35882af116414d1a858bcb5821e16bdaa96feb98db03c994e88db51af52e6b9302b97a067340a60d43b0707e1c72c33a6f7631dd5887c5c7a5455a
7
- data.tar.gz: 5e071ae5bf18dba02a26840a0b822f804237005178e510a7a4843e2001a6612a03e94d644923a687945388c552dcacd1003143a1aaaec300453a49d3e4f2c06b
6
+ metadata.gz: 99bd3e7df86ca28647270467861be3b61899a45c16abdc537e638618482b38c8938493ee8eb4845ddfae1a5efca130f626938f12ea195cc19638f716a04805a4
7
+ data.tar.gz: 18f8e3f072782ed1df829261378bfa3499873bbb6a373fe4387f226e7a81e0e7808151a32fb5d7f0613f4fb0b3062e1d5d3ed4c4948d2ff9c273ab8174edc9e4
@@ -7,12 +7,16 @@ jobs:
7
7
  test:
8
8
  runs-on: ubuntu-latest
9
9
  name: 'test'
10
+ strategy:
11
+ fail-fast: false
12
+ matrix:
13
+ ruby-version: ['2.6', '2.7', '3.0', '3.1']
10
14
  steps:
11
- - uses: actions/checkout@v2
15
+ - uses: actions/checkout@v3.0.2
12
16
  - uses: ruby/setup-ruby@v1
13
17
  with:
14
- ruby-version: 2.6
15
- - uses: actions/cache@v2.1.3
18
+ ruby-version: ${{ matrix.ruby-version }}
19
+ - uses: actions/cache@v3.0.2
16
20
  with:
17
21
  path: vendor/bundle
18
22
  key: ${{ runner.os }}-gems-${{ hashFiles('./Gemfile.lock') }}
@@ -37,10 +41,14 @@ jobs:
37
41
  runs-on: ubuntu-latest
38
42
  name: 'rubocop'
39
43
  steps:
40
- - uses: actions/checkout@v2
44
+ - uses: actions/checkout@v3.0.2
45
+ - name: Read Ruby version from .ruby-version
46
+ run: echo ::set-output name=ruby_version::$(cat .ruby-version)
47
+ id: ruby-version
48
+
41
49
  - uses: ruby/setup-ruby@v1
42
50
  with:
43
- ruby-version: 2.6
51
+ ruby-version: ${{ steps.ruby-version.outputs.ruby_version }}
44
52
  - run: |
45
53
  gem install rubocop
46
54
 
@@ -50,10 +58,6 @@ jobs:
50
58
  run: |
51
59
  curl -sfL https://raw.githubusercontent.com/reviewdog/reviewdog/master/install.sh | sh -s
52
60
  rubocop | ./bin/reviewdog -f=rubocop -reporter=github-pr-review
53
- # - uses: reviewdog/action-rubocop@v1
54
- # with:
55
- # github_token: ${{ secrets.GITHUB_TOKEN }}
56
- # reporter: github-pr-check
57
61
 
58
62
  slack-notify:
59
63
  if: always()
@@ -61,7 +65,7 @@ jobs:
61
65
  name: post slack
62
66
  runs-on: ubuntu-latest
63
67
  steps:
64
- - uses: Gamesight/slack-workflow-status@master
68
+ - uses: Gamesight/slack-workflow-status@v1.1.0
65
69
  with:
66
70
  repo_token: ${{ secrets.GITHUB_TOKEN }}
67
71
  slack_webhook_url: ${{ secrets.SLACK_WEBHOOK_URL }}
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ 2.7.6
data/Gemfile CHANGED
@@ -3,16 +3,6 @@ source 'https://rubygems.org'
3
3
  # Specify your gem's dependencies in hatenablog_publisher.gemspec
4
4
  gemspec
5
5
 
6
- gem 'activesupport'
7
- gem 'awesome_print'
8
- gem 'front_matter_parser'
9
- gem 'mime-types'
10
- gem 'oauth'
11
- gem 'oga'
12
- gem 'pry-byebug'
13
- gem 'rake', '~> 13.0'
14
- gem 'rspec', '~> 3.0'
15
- gem 'rubocop'
16
- gem 'sanitize'
17
- gem 'xml-simple'
18
- gem 'codecov', :require => false, :group => :test
6
+ group :test do
7
+ gem 'codecov', require: false
8
+ end
@@ -1,6 +1,7 @@
1
1
  require 'yaml'
2
2
  require 'time'
3
3
  require 'front_matter_parser'
4
+ require 'active_support'
4
5
  require 'active_support/core_ext/hash'
5
6
 
6
7
  module HatenablogPublisher
@@ -13,7 +13,7 @@ module HatenablogPublisher
13
13
  end
14
14
 
15
15
  def yaml_loader
16
- FrontMatterParser::Loader::Yaml.new(whitelist_classes: [Time])
16
+ FrontMatterParser::Loader::Yaml.new(allowlist_classes: [Time])
17
17
  end
18
18
 
19
19
  def write(metadata, text)
@@ -1,3 +1,3 @@
1
1
  module HatenablogPublisher
2
- VERSION = '0.2.0'.freeze
2
+ VERSION = '0.3.0'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hatenablog_publisher
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - swfz
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-12-28 00:00:00.000000000 Z
11
+ date: 2022-05-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -191,10 +191,10 @@ files:
191
191
  - ".gitignore"
192
192
  - ".rspec"
193
193
  - ".rubocop.yml"
194
+ - ".ruby-version"
194
195
  - ".travis.yml"
195
196
  - CODE_OF_CONDUCT.md
196
197
  - Gemfile
197
- - Gemfile.lock
198
198
  - LICENSE.txt
199
199
  - README.md
200
200
  - Rakefile
@@ -238,7 +238,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
238
238
  - !ruby/object:Gem::Version
239
239
  version: '0'
240
240
  requirements: []
241
- rubygems_version: 3.0.1
241
+ rubygems_version: 3.1.6
242
242
  signing_key:
243
243
  specification_version: 4
244
244
  summary: Gem that posts to the Hatena Blog API and PhotoLife API
data/Gemfile.lock DELETED
@@ -1,126 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- hatenablog_publisher (0.2.0)
5
- activesupport
6
- front_matter_parser
7
- mime-types
8
- oauth
9
- oga
10
- sanitize
11
- xml-simple
12
-
13
- GEM
14
- remote: https://rubygems.org/
15
- specs:
16
- activesupport (6.0.3.1)
17
- concurrent-ruby (~> 1.0, >= 1.0.2)
18
- i18n (>= 0.7, < 2)
19
- minitest (~> 5.1)
20
- tzinfo (~> 1.1)
21
- zeitwerk (~> 2.2, >= 2.2.2)
22
- ansi (1.5.0)
23
- ast (2.4.0)
24
- awesome_print (1.8.0)
25
- byebug (11.1.3)
26
- codecov (0.2.11)
27
- json
28
- simplecov
29
- coderay (1.1.2)
30
- concurrent-ruby (1.1.6)
31
- crass (1.0.6)
32
- diff-lcs (1.3)
33
- docile (1.3.2)
34
- front_matter_parser (0.2.1)
35
- i18n (1.8.2)
36
- concurrent-ruby (~> 1.0)
37
- jaro_winkler (1.5.4)
38
- json (2.3.1)
39
- method_source (1.0.0)
40
- mime-types (3.3.1)
41
- mime-types-data (~> 3.2015)
42
- mime-types-data (3.2020.0425)
43
- mini_portile2 (2.4.0)
44
- minitest (5.14.1)
45
- nokogiri (1.10.9)
46
- mini_portile2 (~> 2.4.0)
47
- nokogumbo (2.0.2)
48
- nokogiri (~> 1.8, >= 1.8.4)
49
- oauth (0.5.4)
50
- oga (3.2)
51
- ast
52
- ruby-ll (~> 2.1)
53
- parallel (1.19.1)
54
- parser (2.7.1.2)
55
- ast (~> 2.4.0)
56
- pry (0.13.1)
57
- coderay (~> 1.1)
58
- method_source (~> 1.0)
59
- pry-byebug (3.9.0)
60
- byebug (~> 11.0)
61
- pry (~> 0.13.0)
62
- rainbow (3.0.0)
63
- rake (13.0.1)
64
- rexml (3.2.4)
65
- rspec (3.9.0)
66
- rspec-core (~> 3.9.0)
67
- rspec-expectations (~> 3.9.0)
68
- rspec-mocks (~> 3.9.0)
69
- rspec-core (3.9.2)
70
- rspec-support (~> 3.9.3)
71
- rspec-expectations (3.9.1)
72
- diff-lcs (>= 1.2.0, < 2.0)
73
- rspec-support (~> 3.9.0)
74
- rspec-mocks (3.9.1)
75
- diff-lcs (>= 1.2.0, < 2.0)
76
- rspec-support (~> 3.9.0)
77
- rspec-support (3.9.3)
78
- rubocop (0.82.0)
79
- jaro_winkler (~> 1.5.1)
80
- parallel (~> 1.10)
81
- parser (>= 2.7.0.1)
82
- rainbow (>= 2.2.2, < 4.0)
83
- rexml
84
- ruby-progressbar (~> 1.7)
85
- unicode-display_width (>= 1.4.0, < 2.0)
86
- ruby-ll (2.1.2)
87
- ansi
88
- ast
89
- ruby-progressbar (1.10.1)
90
- sanitize (5.2.1)
91
- crass (~> 1.0.2)
92
- nokogiri (>= 1.8.0)
93
- nokogumbo (~> 2.0)
94
- simplecov (0.19.0)
95
- docile (~> 1.1)
96
- simplecov-html (~> 0.11)
97
- simplecov-html (0.12.3)
98
- thread_safe (0.3.6)
99
- tzinfo (1.2.7)
100
- thread_safe (~> 0.1)
101
- unicode-display_width (1.7.0)
102
- xml-simple (1.1.5)
103
- zeitwerk (2.3.0)
104
-
105
- PLATFORMS
106
- ruby
107
-
108
- DEPENDENCIES
109
- activesupport
110
- awesome_print
111
- bundler
112
- codecov
113
- front_matter_parser
114
- hatenablog_publisher!
115
- mime-types
116
- oauth
117
- oga
118
- pry-byebug
119
- rake (~> 13.0)
120
- rspec (~> 3.0)
121
- rubocop
122
- sanitize
123
- xml-simple
124
-
125
- BUNDLED WITH
126
- 2.1.4