shazo 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: aa3676c402592d2237adc52d0d3666c4e0fd5b3c9566c40c6cfb916b2b1591df
4
- data.tar.gz: 12921a0d776e968aff942757cc8c2eb015fcf49ff36a8310fdb365997485f37a
3
+ metadata.gz: c83c352fdd441b60620b8d1d0d1f7699f9cdfb832ccaacba80c28ae2b4eabde2
4
+ data.tar.gz: 1987c4ba5029a988ebdadbe5507c64305318149c9e458841f4289c310ecbb8b1
5
5
  SHA512:
6
- metadata.gz: e49b317594b2fa22328eb80fa77d1b6cf429c6a5ce82dc7052f36e6e5c9ece8450c997f208c8d07a77b3372ba0e8f3786aae04577ac1ab76086254a175e609a5
7
- data.tar.gz: 300e7e1c9970ccc7306a1cc6c5d2970fb9b67bccdf244c901af650c10b59e52246d18f476e4018caf100dc7c52f94f0bcde4602630d8de273a4173e175210c48
6
+ metadata.gz: 7b07ffa7fe49580ef447b2442bd6a78067c346ff5820daee10d1694486dbfda67c05e2b661ca3b08a64822b064b730f639d4ce206ac290e551d5354ac6eda625
7
+ data.tar.gz: 2631cec8af9948d341ca23ff41c4e689fa0444efb447b09b033c7db83dc6847550adaac194f15d5beddd62dba4508da0dfb10e8a1d9110726cdba614c2d56123
@@ -0,0 +1,53 @@
1
+ version: 2.1
2
+ orbs:
3
+ ruby-orbs: sue445/ruby-orbs@1.4.3
4
+
5
+ executors:
6
+ ruby:
7
+ docker:
8
+ - image: circleci/ruby:2.7.4
9
+
10
+ jobs:
11
+ rspec:
12
+ executor:
13
+ name: ruby
14
+ steps:
15
+ - checkout
16
+ - ruby-orbs/bundle-install:
17
+ restore_bundled_with: false
18
+ cache_key_prefix: v2-bundle
19
+ - run: bundle exec rspec
20
+ release:
21
+ executor:
22
+ name: ruby
23
+ steps:
24
+ - checkout
25
+ - run:
26
+ name: setup rubygems key
27
+ command: |
28
+ git config user.email "ogontaro@gmail.com"
29
+ git config user.name "ogontaro"
30
+ mkdir ~/.gem
31
+ cat .circleci/gem_credentials | sed -e "s/__RUBYGEMS_API_KEY__/${RUBYGEMS_API_KEY}/" > ~/.gem/credentials
32
+ chmod 0600 ~/.gem/credentials
33
+ - ruby-orbs/bundle-install:
34
+ restore_bundled_with: false
35
+ cache_key_prefix: v2-bundle
36
+ - run: bundle exec rake build
37
+ - run: bundle exec rake release
38
+
39
+ workflows:
40
+ build_and_push:
41
+ jobs:
42
+ - rspec:
43
+ filters:
44
+ tags:
45
+ only: /^v.*/
46
+ - release:
47
+ requires:
48
+ - rspec
49
+ filters:
50
+ tags:
51
+ only: /^v.*/
52
+ branches:
53
+ ignore: /.*/
@@ -0,0 +1,3 @@
1
+ ---
2
+ :rubygems_api_key: __RUBYGEMS_API_KEY__
3
+ :status: :ok
data/Dockerfile ADDED
@@ -0,0 +1,18 @@
1
+ FROM ruby:2.7.4-slim
2
+
3
+ ENV LANG="C.UTF-8" \
4
+ TZ="Asia/Tokyo"
5
+ RUN cp /usr/share/zoneinfo/Asia/Tokyo /etc/localtime
6
+
7
+ RUN apt-get update && \
8
+ apt-get install -y --no-install-recommends build-essential git && \
9
+ apt-get clean && \
10
+ rm -r /var/lib/apt/lists/*
11
+
12
+ ENV APP_HOME /app
13
+ WORKDIR ${APP_HOME}
14
+
15
+ COPY Gemfile* ./
16
+ COPY *.gemspec ./
17
+ COPY ./lib/shazo/version.rb ./lib/shazo/version.rb
18
+ RUN bundle install --jobs 4
data/Gemfile.lock ADDED
@@ -0,0 +1,34 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ shazo (0.1.1)
5
+
6
+ GEM
7
+ remote: https://rubygems.org/
8
+ specs:
9
+ diff-lcs (1.4.4)
10
+ rake (12.3.3)
11
+ rspec (3.10.0)
12
+ rspec-core (~> 3.10.0)
13
+ rspec-expectations (~> 3.10.0)
14
+ rspec-mocks (~> 3.10.0)
15
+ rspec-core (3.10.1)
16
+ rspec-support (~> 3.10.0)
17
+ rspec-expectations (3.10.1)
18
+ diff-lcs (>= 1.2.0, < 2.0)
19
+ rspec-support (~> 3.10.0)
20
+ rspec-mocks (3.10.1)
21
+ diff-lcs (>= 1.2.0, < 2.0)
22
+ rspec-support (~> 3.10.0)
23
+ rspec-support (3.10.1)
24
+
25
+ PLATFORMS
26
+ ruby
27
+
28
+ DEPENDENCIES
29
+ rake (~> 12.0)
30
+ rspec (~> 3.0)
31
+ shazo!
32
+
33
+ BUNDLED WITH
34
+ 2.1.4
@@ -0,0 +1,10 @@
1
+ version: "3.7"
2
+
3
+ services:
4
+ ruby:
5
+ build:
6
+ dockerfile: ./Dockerfile
7
+ context: ./
8
+ container_name: slender-ruby_ruby
9
+ volumes:
10
+ - ./:/app/:cached
data/lib/shazo.rb CHANGED
@@ -1,11 +1,9 @@
1
- require "shazo/version"
2
-
3
1
  module Shazo
4
2
  def self.included(base)
5
3
  base.extend ClassMethods
6
4
  end
7
5
 
8
- def initialize(**origin)
6
+ def initialize(origin)
9
7
  @origin = origin
10
8
  self.class.assign_logics.each_key { |key| self[key] = instance_exec(&self.class.assign_logics[key]) }
11
9
  compact!
data/lib/shazo/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Shazo
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shazo
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
  - ogontaro
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-01-27 00:00:00.000000000 Z
11
+ date: 2021-08-19 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Map a hash to another hash
14
14
  email:
@@ -17,17 +17,21 @@ executables: []
17
17
  extensions: []
18
18
  extra_rdoc_files: []
19
19
  files:
20
+ - ".circleci/config.yml"
21
+ - ".circleci/gem_credentials"
20
22
  - ".gitignore"
21
23
  - ".rspec"
22
- - ".travis.yml"
23
24
  - CODE_OF_CONDUCT.md
25
+ - Dockerfile
24
26
  - Gemfile
27
+ - Gemfile.lock
25
28
  - LICENSE
26
29
  - LICENSE.txt
27
30
  - README.md
28
31
  - Rakefile
29
32
  - bin/console
30
33
  - bin/setup
34
+ - docker-compose.yml
31
35
  - lib/shazo.rb
32
36
  - lib/shazo/version.rb
33
37
  - shazo.gemspec
@@ -50,7 +54,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
50
54
  - !ruby/object:Gem::Version
51
55
  version: '0'
52
56
  requirements: []
53
- rubygems_version: 3.1.4
57
+ rubygems_version: 3.1.6
54
58
  signing_key:
55
59
  specification_version: 4
56
60
  summary: Hash Mapping Library
data/.travis.yml DELETED
@@ -1,6 +0,0 @@
1
- ---
2
- language: ruby
3
- cache: bundler
4
- rvm:
5
- - 2.7.2
6
- before_install: gem install bundler -v 2.1.4