yamls 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: ca5b8f6d3b91811cf764845a07915980d734086b9b0ccc594111e0d41e964ac4
4
- data.tar.gz: 3459a1e0ee60d22372cdae1465bd5041d0e5fc6df1c4e03413ece66880fb810d
3
+ metadata.gz: d46df14bb66468b23c9ab08d1b5dfcadb439a148eacb145ff07e93d7b0f84066
4
+ data.tar.gz: f06503685e11f42c7c7a687edaa81896a45e36fd6e464b7cc8aa79d6fa53b6e6
5
5
  SHA512:
6
- metadata.gz: 5eb404db5e5af11c9446b3072b3918c9f57a26f64d88078e6e4fbe2ea5437a84dff26998623b109d33015a33ca04f2f653ec79eba9c4579f29a7993b35109b33
7
- data.tar.gz: 15d44241c80de0570327beb892fd2904d8d1023cb9e65d991a7eb587c28423ce7bd7b324b996c506597cdbd2e9fb63ab43756453633bed2e9b1337924213ae11
6
+ metadata.gz: be090cb08898f3d6f590b63bed2f58c0f2c57d2e6c46aac6d01ef5969583d47435d445bb5f00bc509bbe66b3cb787a068498943c946e595225db0f42ef96152e
7
+ data.tar.gz: d3aecf3dc56a5cbd48a1f414abad6f0eb2872bde8b7cb657dd69d8256f170043da8398f0ea6ae31bb3c517e0c7fccf701022c1f01d0fe6b84ac92b3f3a78d5c3
data/.circleci/config.yml CHANGED
@@ -1,13 +1,36 @@
1
+ # Use the latest 2.1 version of CircleCI pipeline process engine.
2
+ # See: https://circleci.com/docs/2.0/configuration-reference
1
3
  version: 2.1
4
+
5
+ # Orbs are reusable packages of CircleCI configuration that you may share across projects, enabling you to create encapsulated, parameterized commands, jobs, and executors that can be used across multiple projects.
6
+ # See: https://circleci.com/docs/2.0/orb-intro/
7
+ orbs:
8
+ ruby: circleci/ruby@0.1.2
9
+
10
+ # Define a job to be invoked later in a workflow.
11
+ # See: https://circleci.com/docs/2.0/configuration-reference/#jobs
2
12
  jobs:
3
13
  build:
4
14
  docker:
5
- - image: ruby:3.0.0
15
+ - image: circleci/ruby:2.6.3-stretch-node
16
+ executor: ruby/default
6
17
  steps:
7
18
  - checkout
8
19
  - run:
9
- name: Run the default task
10
- command: |
11
- gem install bundler -v 2.2.11
12
- bundle install
13
- bundle exec rake
20
+ name: Which bundler?
21
+ command: bundle -v
22
+ - ruby/bundle-install
23
+ - run:
24
+ name: Run linter
25
+ command: bundle exec rubocop
26
+ - run:
27
+ name: Run rspec
28
+ command: bundle exec rspec
29
+
30
+ # Invoke jobs via workflows
31
+ # See: https://circleci.com/docs/2.0/configuration-reference/#workflows
32
+ workflows:
33
+ sample: # This is the name of the workflow, feel free to change it to better match your workflow.
34
+ # Inside the workflow, you define the jobs you want to run.
35
+ jobs:
36
+ - build
data/.rubocop.yml CHANGED
@@ -1,5 +1,14 @@
1
1
  AllCops:
2
- TargetRubyVersion: 2.4
2
+ TargetRubyVersion: 2.5
3
+ Exclude:
4
+ - 'vendor/**/*'
5
+ - "example/**/*"
6
+ - "spec/*"
7
+ - "yamls.gemspec"
8
+ - "Gemfile"
9
+
10
+ inherit_gem:
11
+ rubocop-discourse: default.yml
3
12
 
4
13
  Style/StringLiterals:
5
14
  Enabled: true
data/Gemfile CHANGED
@@ -10,6 +10,7 @@ gem "rake", "~> 13.0"
10
10
  gem "rspec", "~> 3.0"
11
11
 
12
12
  gem "rubocop", "~> 1.7"
13
+ gem 'rubocop-discourse'
13
14
 
14
15
  group :test do
15
16
  gem 'actionpack'
data/lib/yamls/config.rb CHANGED
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  module Yamls
2
3
  FILEPATH = "app/parameters/column.yml"
3
4
  end
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  require_relative "./config"
2
3
  require_relative "./yaml_load"
3
4
 
data/lib/yamls/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Yamls
4
- VERSION = "0.1.0"
4
+ VERSION = "0.1.1"
5
5
  end
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  module Yamls
2
3
  class YamlLoad
3
4
  def initialize(filepath, loader: YAML)
data/yamls.gemspec CHANGED
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
10
10
 
11
11
  spec.summary = "Managed Strong Parameters with yaml file."
12
12
  spec.homepage = "https://github.com/TsuMakoto/yamls"
13
- spec.required_ruby_version = Gem::Requirement.new(">= 2.4.0")
13
+ spec.required_ruby_version = Gem::Requirement.new(">= 2.5")
14
14
 
15
15
  spec.metadata["homepage_uri"] = spec.homepage
16
16
  spec.metadata["source_code_uri"] = "https://github.com/TsuMakoto/yamls"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yamls
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
  - TsuMakoto
@@ -47,7 +47,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
47
47
  requirements:
48
48
  - - ">="
49
49
  - !ruby/object:Gem::Version
50
- version: 2.4.0
50
+ version: '2.5'
51
51
  required_rubygems_version: !ruby/object:Gem::Requirement
52
52
  requirements:
53
53
  - - ">="