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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 50088150a63a91cf9047bca00afd9c07c6457be67f78f8a8b505756aa7beef7e
4
- data.tar.gz: b39b595b7255aee9668aea8e1b9596bd871039f7aa87da18d83db5aed435ad95
3
+ metadata.gz: 148eddf5013e8b0aa00c0c9382bf958ee3605395a5bab401514b772e4817bf7c
4
+ data.tar.gz: 1ee04978ade60ae7da13f5680a4790fe6a09c1e525f1aec9b627d96eba9799da
5
5
  SHA512:
6
- metadata.gz: 627e7dbeaf32ea190062944dac3079090d70bd9d91dfc7974472e22551026ebffc38c7db1d51df34e0188a772c6b1e7ad2a3968b5f42291f588e57ba886cab10
7
- data.tar.gz: 531b13de9240ec1a84416a6d56fbf32e47cd8fd80a4c1d3bc8398289c1febdeb046e07b4df6167d129324fbf9c5fcc57346adf530d55b6ab178b43682449abea
6
+ metadata.gz: ca97e2f36298174563a77699108b4c3cbcf7418d4e1a73441f7968ba229ab3475650fd9665abc23f89341870d346f3ba69abdad19f6d6cf51aff8f85cb8012c0
7
+ data.tar.gz: 3b8a4a8c79d1b2dc8d517f442420596c8a6c7a2129a3d1b1ecc5e4a93b494622788a8451206e065839a4308041f56926739078832e12543a8ba2b25d9abc98d7
@@ -1,16 +1,37 @@
1
- name: Ruby
2
-
3
- on: [push,pull_request]
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
- - uses: actions/checkout@v2
10
- - name: Set up Ruby
11
- uses: ruby/setup-ruby@v1
12
- with:
13
- ruby-version: 3.0.2
14
- bundler-cache: true
15
- - name: Run the default task
16
- run: bundle exec rake
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 rails-interactive.gemspec
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
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rails-interactive (0.1.1)
4
+ rails-interactive (0.1.3)
5
5
  tty-prompt
6
6
 
7
7
  GEM
data/bin/console CHANGED
@@ -2,7 +2,7 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
  require "bundler/setup"
5
- require "interactive"
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.
@@ -2,6 +2,6 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
  require "bundler/setup"
5
- require "interactive"
5
+ require "rails_interactive"
6
6
 
7
- Interactive::CLI.new.perform(ARGV.first)
7
+ RailsInteractive::CLI.new.perform(ARGV.first)
data/bin/setup CHANGED
@@ -2,6 +2,6 @@
2
2
  set -euo pipefail
3
3
  IFS=$'\n\t'
4
4
  set -vx
5
- chmod u+x bin/interactive
5
+ chmod u+x bin/rails-interactive
6
6
 
7
7
  bundle install
@@ -2,7 +2,7 @@
2
2
 
3
3
  require "colorize"
4
4
 
5
- module Interactive
5
+ module RailsInteractive
6
6
  # Utils class for the interactive CLI module
7
7
  class Message
8
8
  def self.greet
@@ -2,7 +2,7 @@
2
2
 
3
3
  require "tty/prompt"
4
4
 
5
- module Interactive
5
+ module RailsInteractive
6
6
  # Prompt class for commands
7
7
  class Prompt
8
8
  # Create a new instance
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module RailsInteractive
4
+ VERSION = "0.1.3"
5
+ end
@@ -1,9 +1,9 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require "interactive/prompt"
4
- require "interactive/message"
3
+ require "rails_interactive/prompt"
4
+ require "rails_interactive/message"
5
5
 
6
- module Interactive
6
+ module RailsInteractive
7
7
  # CLI class for the interactive CLI module
8
8
  class CLI
9
9
  def initialize
@@ -1,10 +1,10 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require_relative "lib/interactive/version"
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 = Interactive::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.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-13 00:00:00.000000000 Z
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/interactive.rb
136
- - lib/interactive/ascii.txt
137
- - lib/interactive/message.rb
138
- - lib/interactive/prompt.rb
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:
File without changes
@@ -1,5 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Interactive
4
- VERSION = "0.1.1"
5
- end