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 +4 -4
- data/.github/workflows/gem-push.yml +31 -0
- data/CHANGELOG.md +15 -1
- data/lib/makimono/command/build.rb +3 -1
- data/lib/makimono/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3ab2d90e60b3c40579bb3a00023e0d1b4d9d2dbdeeb2f6646ba966bc2cf83dda
|
4
|
+
data.tar.gz: 28854075a1ea080b97038464b90ff37e6ec42a6ffc9b9646fa27ab3989650670
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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 }}
|
data/CHANGELOG.md
CHANGED
@@ -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
|
-
|
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
|
data/lib/makimono/version.rb
CHANGED
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.
|
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"
|