rails-interactive 0.1.1 → 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 +4 -4
- data/.github/workflows/main.yml +33 -12
- data/.github/workflows/rspec_rubocop.yml +17 -0
- data/Gemfile +1 -3
- data/Gemfile.lock +1 -1
- data/bin/console +1 -1
- data/bin/{interactive → rails-interactive} +2 -2
- data/bin/setup +1 -1
- data/lib/{interactive → rails_interactive}/message.rb +1 -1
- data/lib/{interactive → rails_interactive}/prompt.rb +1 -1
- data/lib/rails_interactive/version.rb +5 -0
- data/lib/{interactive.rb → rails_interactive.rb} +3 -3
- data/rails-interactive.gemspec +2 -2
- metadata +9 -9
- data/lib/interactive/ascii.txt +0 -0
- data/lib/interactive/version.rb +0 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 148eddf5013e8b0aa00c0c9382bf958ee3605395a5bab401514b772e4817bf7c
|
4
|
+
data.tar.gz: 1ee04978ade60ae7da13f5680a4790fe6a09c1e525f1aec9b627d96eba9799da
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ca97e2f36298174563a77699108b4c3cbcf7418d4e1a73441f7968ba229ab3475650fd9665abc23f89341870d346f3ba69abdad19f6d6cf51aff8f85cb8012c0
|
7
|
+
data.tar.gz: 3b8a4a8c79d1b2dc8d517f442420596c8a6c7a2129a3d1b1ecc5e4a93b494622788a8451206e065839a4308041f56926739078832e12543a8ba2b25d9abc98d7
|
data/.github/workflows/main.yml
CHANGED
@@ -1,16 +1,37 @@
|
|
1
|
-
name:
|
2
|
-
|
3
|
-
|
4
|
-
|
1
|
+
name: Release and Publish
|
2
|
+
on:
|
3
|
+
push:
|
4
|
+
branches:
|
5
|
+
- main
|
5
6
|
jobs:
|
6
7
|
build:
|
7
8
|
runs-on: ubuntu-latest
|
8
9
|
steps:
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
10
|
+
- name: Wait for tests to succeed
|
11
|
+
uses: lewagon/wait-on-check-action@v1.0.0
|
12
|
+
with:
|
13
|
+
ref: ${{ github.ref }}
|
14
|
+
check-name: 'Run tests'
|
15
|
+
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
16
|
+
wait-interval: 10
|
17
|
+
- name: Setup Ruby
|
18
|
+
uses: ruby/setup-ruby@v1
|
19
|
+
with:
|
20
|
+
ruby-version: 3.0.2
|
21
|
+
bundler-cache: true
|
22
|
+
- name: Set Credentials
|
23
|
+
run: |
|
24
|
+
mkdir -p $HOME/.gem
|
25
|
+
touch $HOME/.gem/credentials
|
26
|
+
chmod 0600 $HOME/.gem/credentials
|
27
|
+
printf -- "---\n:github: Bearer ${{secrets.GITHUB_TOKEN}}\n" > $HOME/.gem/credentials
|
28
|
+
printf -- "---\n:rubygems_api_key: ${{secrets.RUBYGEMS_TOKEN}}\n" > $HOME/.gem/credentials
|
29
|
+
- name: Publish to GitHub Packages
|
30
|
+
run: |
|
31
|
+
export OWNER=$( echo ${{ github.repository }} | cut -d "/" -f 1 )
|
32
|
+
gem build *.gemspec
|
33
|
+
gem push --KEY github --host https://rubygems.pkg.github.com/${OWNER} *.gem
|
34
|
+
- name: Publish to RubyGems
|
35
|
+
run: |
|
36
|
+
gem build *.gemspec
|
37
|
+
gem push *.gem
|
@@ -0,0 +1,17 @@
|
|
1
|
+
name: Run tests
|
2
|
+
|
3
|
+
on: [push, pull_request]
|
4
|
+
|
5
|
+
jobs:
|
6
|
+
test:
|
7
|
+
name: Run tests
|
8
|
+
runs-on: ubuntu-latest
|
9
|
+
steps:
|
10
|
+
- uses: actions/checkout@v2
|
11
|
+
- name: Set up Ruby
|
12
|
+
uses: ruby/setup-ruby@v1
|
13
|
+
with:
|
14
|
+
ruby-version: 3.0.2
|
15
|
+
bundler-cache: true
|
16
|
+
- name: Run the default task
|
17
|
+
run: bundle exec rake
|
data/Gemfile
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
source "https://rubygems.org"
|
4
4
|
|
5
|
-
# Specify your gem's dependencies in
|
5
|
+
# Specify your gem's dependencies in rails_interactive.gemspec
|
6
6
|
gemspec
|
7
7
|
|
8
8
|
gem "rails"
|
@@ -13,6 +13,4 @@ gem "rspec", "~> 3.0"
|
|
13
13
|
|
14
14
|
gem "rubocop", "~> 1.7"
|
15
15
|
|
16
|
-
gem "byebug", "~> 11.1.2"
|
17
|
-
|
18
16
|
gem "tty-prompt"
|
data/Gemfile.lock
CHANGED
data/bin/console
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
# frozen_string_literal: true
|
3
3
|
|
4
4
|
require "bundler/setup"
|
5
|
-
require "
|
5
|
+
require "rails_interactive"
|
6
6
|
|
7
7
|
# You can add fixtures and/or initialization code here to make experimenting
|
8
8
|
# with your gem easier. You can also use a different console, if you like.
|
data/bin/setup
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require "
|
4
|
-
require "
|
3
|
+
require "rails_interactive/prompt"
|
4
|
+
require "rails_interactive/message"
|
5
5
|
|
6
|
-
module
|
6
|
+
module RailsInteractive
|
7
7
|
# CLI class for the interactive CLI module
|
8
8
|
class CLI
|
9
9
|
def initialize
|
data/rails-interactive.gemspec
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require_relative "lib/
|
3
|
+
require_relative "lib/rails_interactive/version"
|
4
4
|
|
5
5
|
Gem::Specification.new do |spec|
|
6
6
|
spec.name = "rails-interactive"
|
7
|
-
spec.version =
|
7
|
+
spec.version = RailsInteractive::VERSION
|
8
8
|
spec.authors = ["Oguzhan Ince"]
|
9
9
|
spec.email = ["oguzhan824@gmail.com"]
|
10
10
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails-interactive
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Oguzhan Ince
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-03-
|
11
|
+
date: 2022-03-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -113,12 +113,13 @@ email:
|
|
113
113
|
- oguzhan824@gmail.com
|
114
114
|
executables:
|
115
115
|
- console
|
116
|
-
- interactive
|
116
|
+
- rails-interactive
|
117
117
|
- setup
|
118
118
|
extensions: []
|
119
119
|
extra_rdoc_files: []
|
120
120
|
files:
|
121
121
|
- ".github/workflows/main.yml"
|
122
|
+
- ".github/workflows/rspec_rubocop.yml"
|
122
123
|
- ".gitignore"
|
123
124
|
- ".rspec"
|
124
125
|
- ".rubocop.yml"
|
@@ -130,13 +131,12 @@ files:
|
|
130
131
|
- README.md
|
131
132
|
- Rakefile
|
132
133
|
- bin/console
|
133
|
-
- bin/interactive
|
134
|
+
- bin/rails-interactive
|
134
135
|
- bin/setup
|
135
|
-
- lib/
|
136
|
-
- lib/
|
137
|
-
- lib/
|
138
|
-
- lib/
|
139
|
-
- lib/interactive/version.rb
|
136
|
+
- lib/rails_interactive.rb
|
137
|
+
- lib/rails_interactive/message.rb
|
138
|
+
- lib/rails_interactive/prompt.rb
|
139
|
+
- lib/rails_interactive/version.rb
|
140
140
|
- rails-interactive.gemspec
|
141
141
|
homepage: https://github.com/oguzsh/rails-interactive
|
142
142
|
licenses:
|
data/lib/interactive/ascii.txt
DELETED
File without changes
|