iori 0.1.0 → 0.1.3

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: 36cf690282b107f1ca3f34bc7c2b4eb0fcb141d38297621e1ce4b78f9b78d92c
4
- data.tar.gz: e855f01d8bfcb957309f06bbf7584587bb4a0bcd14f2c869fddba29b6355bcdf
3
+ metadata.gz: 9e36fa0c8965299e10823ced0b6c38d1cd67ebd7a8ab5bb317392998f10bd0ad
4
+ data.tar.gz: 2c7894c47c336b5b28124710e0768cd5ec191c8a2e942c8c5d3014075cde6a31
5
5
  SHA512:
6
- metadata.gz: a8d3ebb407df6dd61cfb2f42ea919fc7468fa1adb3d6f8aae38dae7354c4ae07e1d92a9dc47826c3ecee0ce4c7838e4b3363da0ef5a92848eea75340ad9b9111
7
- data.tar.gz: 619edfaeebd32ac2d848bdc10bad3e40dfe4b90e48bcb8412ce6d75467781e6c0639d0e71e22fe32bb7e7cf038728ff9f3dba2bf3f1d770b97e824358c8b91a2
6
+ metadata.gz: f4a0e57d23c6b22fad30f8c345218ad046ef14026f25d27468c0f35ef6d5dbb6c74accb70858a6311bd5b8bd553f38df5e2700810549ec8a63237a0ce70b6436
7
+ data.tar.gz: c58738fbb689db48330d8ba81a7d55cb36bd6491f69aa3ac8e240cc6d10cbd364b66ec67b62d95046aff7eef3c3c85fbfea43ddfebf925f530a9a24f8f97ba21
@@ -0,0 +1,39 @@
1
+ // For format details, see https://aka.ms/devcontainer.json. For config options, see the README at:
2
+ // https://github.com/microsoft/vscode-dev-containers/tree/v0.231.3/containers/docker-existing-docker-compose
3
+ // If you want to run as a non-root user in the container, see .devcontainer/docker-compose.yml.
4
+ {
5
+ "name": "Existing Docker Compose (Extend)",
6
+
7
+ // Update the 'dockerComposeFile' list if you have more compose files or use different names.
8
+ // The .devcontainer/docker-compose.yml file contains any overrides you need/want to make.
9
+ "dockerComposeFile": ["../compose.yaml", "docker-compose.yml"],
10
+
11
+ // The 'service' property is the name of the service for the container that VS Code should
12
+ // use. Update this value and .devcontainer/docker-compose.yml to the real service name.
13
+ "service": "ruby",
14
+
15
+ // The optional 'workspaceFolder' property is the path VS Code should open by default when
16
+ // connected. This is typically a file mount in .devcontainer/docker-compose.yml
17
+ "workspaceFolder": "/workspace",
18
+
19
+ // Set *default* container specific settings.json values on container create.
20
+ "settings": {},
21
+
22
+ // Add the IDs of extensions you want installed when the container is created.
23
+ "extensions": ["soutaro.steep-vscode"]
24
+
25
+ // Use 'forwardPorts' to make a list of ports inside the container available locally.
26
+ // "forwardPorts": [],
27
+
28
+ // Uncomment the next line if you want start specific services in your Docker Compose config.
29
+ // "runServices": [],
30
+
31
+ // Uncomment the next line if you want to keep your containers running after VS Code shuts down.
32
+ // "shutdownAction": "none",
33
+
34
+ // Uncomment the next line to run commands after the container is created - for example installing curl.
35
+ // "postCreateCommand": "apt-get update && apt-get install -y curl",
36
+
37
+ // Uncomment to connect as a non-root user if you've added one. See https://aka.ms/vscode-remote/containers/non-root.
38
+ // "remoteUser": "vscode"
39
+ }
@@ -0,0 +1,38 @@
1
+ version: '3.8'
2
+ services:
3
+ # Update this to the name of the service you want to work with in your docker-compose.yml file
4
+ ruby:
5
+ # If you want add a non-root user to your Dockerfile, you can use the "remoteUser"
6
+ # property in devcontainer.json to cause VS Code its sub-processes (terminals, tasks,
7
+ # debugging) to execute as the user. Uncomment the next line if you want the entire
8
+ # container to run as this user instead. Note that, on Linux, you may need to
9
+ # ensure the UID and GID of the container user you create matches your local user.
10
+ # See https://aka.ms/vscode-remote/containers/non-root for details.
11
+ #
12
+ # user: vscode
13
+
14
+ # Uncomment if you want to override the service's Dockerfile to one in the .devcontainer
15
+ # folder. Note that the path of the Dockerfile and context is relative to the *primary*
16
+ # docker-compose.yml file (the first in the devcontainer.json "dockerComposeFile"
17
+ # array). The sample below assumes your primary file is in the root of your project.
18
+ #
19
+ # build:
20
+ # context: .
21
+ # dockerfile: .devcontainer/Dockerfile
22
+
23
+ volumes:
24
+ # Update this to wherever you want VS Code to mount the folder of your project
25
+ - .:/workspace:cached
26
+
27
+ # Uncomment the next line to use Docker from inside the container. See https://aka.ms/vscode-remote/samples/docker-from-docker-compose for details.
28
+ # - /var/run/docker.sock:/var/run/docker.sock
29
+
30
+ # Uncomment the next four lines if you will use a ptrace-based debugger like C++, Go, and Rust.
31
+ # cap_add:
32
+ # - SYS_PTRACE
33
+ # security_opt:
34
+ # - seccomp:unconfined
35
+
36
+ # Overrides default command so things don't shut down after the process ends.
37
+ command: /bin/sh -c "while sleep 1000; do :; done"
38
+
@@ -0,0 +1,35 @@
1
+ name: Ruby Gem
2
+
3
+ on:
4
+ workflow_dispatch:
5
+ inputs:
6
+ otp-code:
7
+ description: OTP code
8
+ required: true
9
+
10
+ jobs:
11
+ build:
12
+ name: Build + Publish
13
+ runs-on: ubuntu-latest
14
+ permissions:
15
+ contents: read
16
+ packages: write
17
+
18
+ steps:
19
+ - uses: actions/checkout@v3
20
+ - name: Set up Ruby
21
+ uses: actions/setup-ruby@v1
22
+ with:
23
+ ruby-version: 3.1.x
24
+
25
+ - name: Publish to RubyGems
26
+ run: |
27
+ mkdir -p $HOME/.gem
28
+ touch $HOME/.gem/credentials
29
+ chmod 0600 $HOME/.gem/credentials
30
+ printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
31
+ gem build *.gemspec
32
+ gem push *.gem
33
+ env:
34
+ GEM_HOST_API_KEY: "${{ secrets.RUBYGEMS_AUTH_TOKEN }}"
35
+ GEM_HOST_OTP_CODE: "${{ github.event.inputs.otp-code }}"
data/.gitignore CHANGED
@@ -11,3 +11,5 @@
11
11
  .rspec_status
12
12
 
13
13
  /Gemfile.lock
14
+
15
+ /compose.override.yaml
data/Gemfile CHANGED
@@ -14,3 +14,5 @@ gem 'rubocop', '~> 1.7'
14
14
  gem 'rubocop-rake', '~> 0.6.0'
15
15
 
16
16
  gem 'rubocop-rspec', '~> 2.9'
17
+
18
+ gem "steep", "~> 0.52.0"
data/README.md CHANGED
@@ -1,8 +1,6 @@
1
1
  # Iori
2
2
 
3
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/iori`. To experiment with that code, run `bin/console` for an interactive prompt.
4
-
5
- TODO: Delete this and the text above, and describe your gem
3
+ Configure rails config easily.
6
4
 
7
5
  ## Installation
8
6
 
@@ -16,13 +14,14 @@ And then execute:
16
14
 
17
15
  $ bundle install
18
16
 
19
- Or install it yourself as:
20
-
21
- $ gem install iori
22
-
23
- ## Usage
17
+ ## Features
24
18
 
25
- TODO: Write usage instructions here
19
+ - Not generated by scaffold
20
+ - helper
21
+ - routing specs
22
+ - view_specs
23
+ - Add settings for docker
24
+ - web-console permissions
26
25
 
27
26
  ## Development
28
27
 
@@ -32,7 +31,7 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
32
31
 
33
32
  ## Contributing
34
33
 
35
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/iori.
34
+ Bug reports and pull requests are welcome on GitHub at https://github.com/mogurastore/iori.
36
35
 
37
36
  ## License
38
37
 
data/Steepfile ADDED
@@ -0,0 +1,5 @@
1
+ target :lib do
2
+ signature "sig"
3
+
4
+ check "lib"
5
+ end
@@ -3,10 +3,8 @@ services:
3
3
  image: ruby
4
4
  volumes:
5
5
  - .:/workspace
6
- - gem-credentials-data:/root/.local/share/gem
7
6
  - gem-data:/usr/local/bundle
8
7
  working_dir: /workspace
9
8
 
10
9
  volumes:
11
- gem-credentials-data:
12
10
  gem-data:
data/iori.gemspec CHANGED
@@ -8,7 +8,7 @@ Gem::Specification.new do |spec|
8
8
  spec.authors = %w[MoguraStore]
9
9
  spec.email = %w[368034+lisp719@users.noreply.github.com]
10
10
 
11
- spec.summary = 'Configure rails config easily'
11
+ spec.summary = 'Configure rails config easily.'
12
12
  spec.description = spec.summary
13
13
  spec.homepage = 'https://github.com/mogurastore/iori'
14
14
  spec.license = 'MIT'
data/lib/iori/railtie.rb CHANGED
@@ -9,6 +9,6 @@ module Iori
9
9
  config.app_generators.view_specs = false
10
10
  end
11
11
 
12
- config.web_console.permissions = '0.0.0.0/0' if Rails.env.development?
12
+ config.web_console.permissions = '0.0.0.0/0' if Rails.env.development? && config.respond_to?(:web_console)
13
13
  end
14
14
  end
data/lib/iori/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Iori
4
- VERSION = '0.1.0'
4
+ VERSION = '0.1.3'
5
5
  end
@@ -0,0 +1,7 @@
1
+ # TypeProf 0.21.2
2
+
3
+ # Classes
4
+ module Iori
5
+ class Railtie < Rails::Railtie
6
+ end
7
+ end
@@ -0,0 +1,6 @@
1
+ # TypeProf 0.21.2
2
+
3
+ # Classes
4
+ module Iori
5
+ VERSION: String
6
+ end
data/sig/patch.rbs ADDED
@@ -0,0 +1,7 @@
1
+ module Rails
2
+ def self.env: -> untyped
3
+
4
+ class Railtie
5
+ def self.config: -> untyped
6
+ end
7
+ end
metadata CHANGED
@@ -1,22 +1,25 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: iori
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - MoguraStore
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-03-29 00:00:00.000000000 Z
11
+ date: 2022-08-25 00:00:00.000000000 Z
12
12
  dependencies: []
13
- description: Configure rails config easily
13
+ description: Configure rails config easily.
14
14
  email:
15
15
  - 368034+lisp719@users.noreply.github.com
16
16
  executables: []
17
17
  extensions: []
18
18
  extra_rdoc_files: []
19
19
  files:
20
+ - ".devcontainer/devcontainer.json"
21
+ - ".devcontainer/docker-compose.yml"
22
+ - ".github/workflows/gem-push.yml"
20
23
  - ".gitignore"
21
24
  - ".rspec"
22
25
  - ".rubocop.yml"
@@ -24,13 +27,17 @@ files:
24
27
  - LICENSE.txt
25
28
  - README.md
26
29
  - Rakefile
30
+ - Steepfile
27
31
  - bin/console
28
32
  - bin/setup
29
- - compose.yml
33
+ - compose.yaml
30
34
  - iori.gemspec
31
35
  - lib/iori.rb
32
36
  - lib/iori/railtie.rb
33
37
  - lib/iori/version.rb
38
+ - sig/iori/railtie.rbs
39
+ - sig/iori/version.rbs
40
+ - sig/patch.rbs
34
41
  homepage: https://github.com/mogurastore/iori
35
42
  licenses:
36
43
  - MIT
@@ -53,8 +60,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
53
60
  - !ruby/object:Gem::Version
54
61
  version: '0'
55
62
  requirements: []
56
- rubygems_version: 3.2.22
63
+ rubygems_version: 3.3.7
57
64
  signing_key:
58
65
  specification_version: 4
59
- summary: Configure rails config easily
66
+ summary: Configure rails config easily.
60
67
  test_files: []