makimono 0.1.0 → 0.1.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7b7bafe35f02667e8774cbc02eb7633aac4daacd7ab7432e2361d60f0751cb0b
4
- data.tar.gz: f6919cd44e92c0b981b8dcbd2f13759b4c3400de29fd1f6930444875d8b0db62
3
+ metadata.gz: 3ab2d90e60b3c40579bb3a00023e0d1b4d9d2dbdeeb2f6646ba966bc2cf83dda
4
+ data.tar.gz: 28854075a1ea080b97038464b90ff37e6ec42a6ffc9b9646fa27ab3989650670
5
5
  SHA512:
6
- metadata.gz: 40c5bbae200a1a427992900c306db816e9e7c7f89ca0503bde06d499dccaccffcf6fcc71291e25ef7dfd997e9fa42cf5f032149193a7bf60640182b4c587197f
7
- data.tar.gz: a3e9dea655f13fa16defcaacbca7e4c80e7d2c670f0b6ae4e1db7ee2a7a6557c266c39b722e707e0a07b8e9c025fcba601bffc3f456e8c2ee1ccfc54675daf17
6
+ metadata.gz: 77ff25682614bea8d5c3c2444b53ad07e8b702f9c6063e84f639b790b773001b230961cac9796a94018d5cc0440a6072f56a551e787d89bec3af097ae08605a2
7
+ data.tar.gz: 11cf570ef3a45c9127f0a81741a84d68bd97ce62a7f6709c11de6a27fac24439764414f7249522e273eec68e2a3eda9bbf4d9d4d48a0f57d9a611abd4e0475f8
@@ -0,0 +1,31 @@
1
+ name: Ruby Gem
2
+
3
+ on:
4
+ push:
5
+ tags:
6
+ - v*
7
+
8
+ jobs:
9
+ build:
10
+ name: Build + Publish
11
+ runs-on: ubuntu-latest
12
+
13
+ steps:
14
+ - uses: actions/checkout@v2
15
+
16
+ - name: Set up Ruby
17
+ uses: ruby/setup-ruby@v1
18
+ with:
19
+ ruby-version: 2.7
20
+
21
+ - name: Publish to GPR
22
+ run: |
23
+ mkdir -p $HOME/.gem
24
+ touch $HOME/.gem/credentials
25
+ chmod 0600 $HOME/.gem/credentials
26
+ printf -- "---\n:github: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
27
+ gem build *.gemspec
28
+ gem push --key github --host https://rubygems.pkg.github.com/${OWNER} *.gem
29
+ env:
30
+ GEM_HOST_API_KEY: "Bearer ${{secrets.GITHUB_TOKEN}}"
31
+ OWNER: ${{ github.repository_owner }}
@@ -4,4 +4,18 @@ All notable changes to this project will be documented in this file.
4
4
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
5
5
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
6
 
7
- ## Unreleased
7
+ ## [Unreleased]
8
+
9
+ ## [0.1.1] - 2020-10-12
10
+
11
+ ### Fixed
12
+
13
+ - Permit Date and Time types on user config yaml.
14
+
15
+ ## [0.1.0] - 2020-10-12
16
+
17
+ - First release!
18
+
19
+ [Unreleased]: https://github.com/fuji-nakahara/makimono/compare/v0.1.1...HEAD
20
+ [0.1.1]: https://github.com/fuji-nakahara/makimono/compare/v0.1.0...v0.1.1
21
+ [0.1.0]: https://github.com/fuji-nakahara/makimono/releases/tag/v0.1.0
@@ -1,5 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require 'date'
3
4
  require 'yaml'
4
5
 
5
6
  module Makimono
@@ -10,7 +11,8 @@ module Makimono
10
11
  def load_user_config
11
12
  user_config = if File.file?(options[:config])
12
13
  yaml = File.read(options[:config])
13
- YAML.safe_load(yaml, filename: File.basename(options[:config]), symbolize_names: true)
14
+ filename = File.basename(options[:config])
15
+ YAML.safe_load(yaml, permitted_classes: [Date, Time], filename: filename, symbolize_names: true)
14
16
  else
15
17
  {}
16
18
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Makimono
4
- VERSION = '0.1.0'
4
+ VERSION = '0.1.1'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: makimono
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Fuji Nakahara
@@ -74,6 +74,7 @@ executables:
74
74
  extensions: []
75
75
  extra_rdoc_files: []
76
76
  files:
77
+ - ".github/workflows/gem-push.yml"
77
78
  - ".github/workflows/ruby.yml"
78
79
  - ".gitignore"
79
80
  - ".rspec"