irasutoya-cli 0.1.0 → 1.0.0

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: a66c1b6b1327124a5dc391066d48e5197bc3774d18078d8fa0ec5d1517647b8e
4
- data.tar.gz: aa17bd88db54986da23366f579d8ccd500232cafee17b88dcfc448d90a38feba
3
+ metadata.gz: 6f78c8d4ec507b3e8fbe5e70df37d1458aef58fb839508b8a2e20a389d13d305
4
+ data.tar.gz: a646a40557250b48317257eb2f8c2dbf908753e3952854df5974767b1e98f08a
5
5
  SHA512:
6
- metadata.gz: 48fe036d8e67b26f13360c86247f3f97a7b0a8c76ce5018a315c55af213b9c0c342c9b8a57d836850793dec5942941d43ef2164ce2c8f79a65296a23f9891937
7
- data.tar.gz: 6d761392289d9f10b9f61cb04262aa29d0b09b0ba8f2bbd424eb75345354d687fc17207daa390f21ed6735ce942f9a3f2d3ec93a6901125e0a4dacd0dfc6c78c
6
+ metadata.gz: 3f754bb78b306b4028742244873361c2f4e1abc4fe24968c88d23a9bc58016685c5fb7bdfb16641c055c55ba75fe71862620e6fde843adad077e2ef4cbe7e98a
7
+ data.tar.gz: 64ae3e460b9014891fb5929722c927fe0f942e887f8bd268678b0591cf611aebb38f51dea34ebbee01c65ca9859d0d39a4beb33e689f98e97f1b42caac109ee8
@@ -0,0 +1,30 @@
1
+ version: 2
2
+ updates:
3
+ - package-ecosystem: bundler
4
+ directory: "/"
5
+ schedule:
6
+ interval: daily
7
+ time: "12:00"
8
+ timezone: Asia/Tokyo
9
+ open-pull-requests-limit: 20
10
+ reviewers:
11
+ - unhappychoice
12
+ allow:
13
+ - dependency-type: direct
14
+ - dependency-type: indirect
15
+ ignore:
16
+ - dependency-name: codecov
17
+ versions:
18
+ - ">= 0.2.14.a, < 0.2.15"
19
+ - dependency-name: rubocop
20
+ versions:
21
+ - 1.12.1
22
+ - dependency-name: listen
23
+ versions:
24
+ - 3.5.0
25
+ - dependency-name: codecov
26
+ versions:
27
+ - 0.5.0
28
+ - dependency-name: regexp_parser
29
+ versions:
30
+ - 2.1.1
@@ -0,0 +1,41 @@
1
+ name: release
2
+
3
+ on:
4
+ workflow_dispatch:
5
+ inputs:
6
+ version:
7
+ description: Release version
8
+ required: true
9
+ type: choice
10
+ options:
11
+ - major
12
+ - minor
13
+ - patch
14
+ jobs:
15
+ push:
16
+ name: Push gem to RubyGems.org
17
+ runs-on: ubuntu-latest
18
+ environment:
19
+ name: release
20
+ permissions:
21
+ id-token: write
22
+ contents: write
23
+ steps:
24
+ - uses: actions/checkout@v4
25
+ - name: Set up Ruby
26
+ uses: ruby/setup-ruby@v1
27
+ with:
28
+ bundler-cache: true
29
+ ruby-version: .ruby-version
30
+ - name: Setup Git
31
+ run: |
32
+ git config --global user.email "unhappychoice@gmail.com"
33
+ git config --global user.name "unhappychoice"
34
+ - name: Install gem-release
35
+ run: gem install gem-release
36
+ - name: Bump version
37
+ run: |
38
+ gem bump --version ${{inputs.version}} --message ':tada: Bump %{name} to %{version}'
39
+ bundle config set frozen false && bundle install
40
+ git add . && git commit --amend --no-edit
41
+ - uses: rubygems/release-gem@v1
@@ -0,0 +1,41 @@
1
+ name: test
2
+
3
+ on: [push]
4
+
5
+ jobs:
6
+ lint:
7
+ runs-on: ubuntu-latest
8
+ steps:
9
+ - uses: actions/checkout@master
10
+ - name: Set up Ruby
11
+ uses: ruby/setup-ruby@v1
12
+ with:
13
+ ruby-version: .ruby-version
14
+ - name: Install bundler
15
+ run: gem install bundler
16
+ - name: Install dependencies
17
+ run: bundle install --jobs 4
18
+ - name: Run lint
19
+ run: bundle exec rubocop lib
20
+ test:
21
+ runs-on: ubuntu-latest
22
+ strategy:
23
+ matrix:
24
+ ruby: ['3.4.4', '3.3.8', '3.2.8', '3.1.7']
25
+ steps:
26
+ - uses: actions/checkout@master
27
+ - name: Set up Ruby
28
+ uses: ruby/setup-ruby@v1
29
+ with:
30
+ ruby-version: ${{ matrix.ruby }}
31
+ rubygems: latest
32
+ - name: Install bundler
33
+ run: gem install bundler
34
+ - name: Install dependencies
35
+ run: bundle install --jobs 4
36
+ - name: Run test
37
+ env:
38
+ RAILS_ENV: test
39
+ COVERAGE: true
40
+ CODECOV_TOKEN: d9091f65-2e14-4029-86e6-f6ec9c59ecec
41
+ run: bundle exec rspec
data/.gitignore ADDED
@@ -0,0 +1,57 @@
1
+ # Created by https://www.gitignore.io/api/ruby
2
+ # Edit at https://www.gitignore.io/?templates=ruby
3
+
4
+ ### Ruby ###
5
+ *.gem
6
+ *.rbc
7
+ /.config
8
+ /coverage/
9
+ /InstalledFiles
10
+ /pkg/
11
+ /spec/reports/
12
+ /spec/examples.txt
13
+ /test/tmp/
14
+ /test/version_tmp/
15
+ /tmp/
16
+
17
+ # Used by dotenv library to load environment variables.
18
+ # .env
19
+
20
+ ## Specific to RubyMotion:
21
+ .dat*
22
+ .repl_history
23
+ build/
24
+ *.bridgesupport
25
+ build-iPhoneOS/
26
+ build-iPhoneSimulator/
27
+
28
+ ## Specific to RubyMotion (use of CocoaPods):
29
+ #
30
+ # We recommend against adding the Pods directory to your .gitignore. However
31
+ # you should judge for yourself, the pros and cons are mentioned at:
32
+ # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
33
+ #
34
+ # vendor/Pods/
35
+
36
+ ## Documentation cache and generated files:
37
+ /.yardoc/
38
+ /_yardoc/
39
+ /doc/
40
+ /rdoc/
41
+
42
+ ## Environment normalization:
43
+ /.bundle/
44
+ /vendor/bundle
45
+ /lib/bundler/man/
46
+ vendor/bundle
47
+
48
+ # for a library or gem, you might want to ignore these files since the code is
49
+ # intended to run in multiple environments; otherwise, check them in:
50
+ # Gemfile.lock
51
+ # .ruby-version
52
+ # .ruby-gemset
53
+
54
+ # unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
55
+ .rvmrc
56
+
57
+ # End of https://www.gitignore.io/api/ruby
data/.rubocop.yml CHANGED
@@ -1,3 +1,7 @@
1
+ AllCops:
2
+ NewCops: enable
3
+ TargetRubyVersion: 3.1
4
+
1
5
  Style/Documentation:
2
6
  Enabled: false
3
7
 
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ 3.4.4
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- irasutoya-cli (0.1.0)
4
+ irasutoya-cli (1.0.0)
5
5
  irasutoya
6
6
  terminal_image
7
7
  thor
@@ -9,24 +9,25 @@ PATH
9
9
  GEM
10
10
  remote: https://rubygems.org/
11
11
  specs:
12
- ast (2.4.0)
13
- codecov (0.1.14)
14
- json
15
- simplecov
16
- url
17
- coderay (1.1.2)
18
- diff-lcs (1.3)
19
- docile (1.3.2)
20
- fastimage (2.1.7)
21
- ffi (1.11.1)
22
- formatador (0.2.5)
23
- guard (2.15.1)
12
+ ast (2.4.2)
13
+ base64 (0.2.0)
14
+ codecov (0.6.0)
15
+ simplecov (>= 0.15, < 0.22)
16
+ coderay (1.1.3)
17
+ diff-lcs (1.6.0)
18
+ docile (1.4.1)
19
+ fastimage (2.4.0)
20
+ ffi (1.17.1)
21
+ formatador (1.1.0)
22
+ guard (2.19.1)
24
23
  formatador (>= 0.2.4)
25
24
  listen (>= 2.7, < 4.0)
25
+ logger (~> 1.6)
26
26
  lumberjack (>= 1.0.12, < 2.0)
27
27
  nenv (~> 0.1)
28
28
  notiffany (~> 0.0)
29
- pry (>= 0.9.12)
29
+ ostruct (~> 0.6)
30
+ pry (>= 0.13.0)
30
31
  shellany (~> 0.0)
31
32
  thor (>= 0.18.1)
32
33
  guard-compat (1.2.1)
@@ -34,85 +35,93 @@ GEM
34
35
  guard (~> 2.1)
35
36
  guard-compat (~> 1.1)
36
37
  rspec (>= 2.99.0, < 4.0)
37
- guard-rubocop (1.3.0)
38
+ guard-rubocop (1.5.0)
38
39
  guard (~> 2.0)
39
- rubocop (~> 0.20)
40
- irasutoya (1.0.0)
40
+ rubocop (< 2.0)
41
+ irasutoya (1.1.0)
41
42
  nokogiri
42
- jaro_winkler (1.5.3)
43
- json (2.2.0)
44
- listen (3.1.5)
45
- rb-fsevent (~> 0.9, >= 0.9.4)
46
- rb-inotify (~> 0.9, >= 0.9.7)
47
- ruby_dep (~> 1.2)
48
- lumberjack (1.0.13)
49
- method_source (0.9.2)
50
- mini_portile2 (2.4.0)
43
+ listen (3.9.0)
44
+ rb-fsevent (~> 0.10, >= 0.10.3)
45
+ rb-inotify (~> 0.9, >= 0.9.10)
46
+ logger (1.6.6)
47
+ lumberjack (1.2.10)
48
+ method_source (1.1.0)
49
+ mini_portile2 (2.8.9)
51
50
  nenv (0.3.0)
52
- nokogiri (1.10.4)
53
- mini_portile2 (~> 2.4.0)
51
+ nokogiri (1.18.8)
52
+ mini_portile2 (~> 2.8.2)
53
+ racc (~> 1.4)
54
54
  notiffany (0.1.3)
55
55
  nenv (~> 0.1)
56
56
  shellany (~> 0.0)
57
- parallel (1.17.0)
58
- parser (2.6.4.1)
59
- ast (~> 2.4.0)
60
- pry (0.12.2)
61
- coderay (~> 1.1.0)
62
- method_source (~> 0.9.0)
63
- rainbow (3.0.0)
64
- rake (12.3.3)
65
- rb-fsevent (0.10.3)
66
- rb-inotify (0.10.0)
57
+ ostruct (0.6.1)
58
+ parallel (1.24.0)
59
+ parser (3.3.7.1)
60
+ ast (~> 2.4.1)
61
+ racc
62
+ pry (0.15.2)
63
+ coderay (~> 1.1)
64
+ method_source (~> 1.0)
65
+ racc (1.8.1)
66
+ rainbow (3.1.1)
67
+ rake (13.2.1)
68
+ rb-fsevent (0.11.2)
69
+ rb-inotify (0.11.1)
67
70
  ffi (~> 1.0)
68
- rspec (3.8.0)
69
- rspec-core (~> 3.8.0)
70
- rspec-expectations (~> 3.8.0)
71
- rspec-mocks (~> 3.8.0)
72
- rspec-core (3.8.2)
73
- rspec-support (~> 3.8.0)
74
- rspec-expectations (3.8.4)
71
+ regexp_parser (2.10.0)
72
+ rexml (3.4.1)
73
+ rspec (3.13.0)
74
+ rspec-core (~> 3.13.0)
75
+ rspec-expectations (~> 3.13.0)
76
+ rspec-mocks (~> 3.13.0)
77
+ rspec-core (3.13.3)
78
+ rspec-support (~> 3.13.0)
79
+ rspec-expectations (3.13.3)
75
80
  diff-lcs (>= 1.2.0, < 2.0)
76
- rspec-support (~> 3.8.0)
77
- rspec-mocks (3.8.1)
81
+ rspec-support (~> 3.13.0)
82
+ rspec-mocks (3.13.2)
78
83
  diff-lcs (>= 1.2.0, < 2.0)
79
- rspec-support (~> 3.8.0)
80
- rspec-support (3.8.2)
81
- rubocop (0.74.0)
82
- jaro_winkler (~> 1.5.1)
84
+ rspec-support (~> 3.13.0)
85
+ rspec-support (3.13.2)
86
+ rubocop (1.28.2)
83
87
  parallel (~> 1.10)
84
- parser (>= 2.6)
88
+ parser (>= 3.1.0.0)
85
89
  rainbow (>= 2.2.2, < 4.0)
90
+ regexp_parser (>= 1.8, < 3.0)
91
+ rexml
92
+ rubocop-ast (>= 1.17.0, < 2.0)
86
93
  ruby-progressbar (~> 1.7)
87
- unicode-display_width (>= 1.4.0, < 1.7)
88
- ruby-progressbar (1.10.1)
89
- ruby_dep (1.5.0)
94
+ unicode-display_width (>= 1.4.0, < 3.0)
95
+ rubocop-ast (1.17.0)
96
+ parser (>= 3.1.1.0)
97
+ ruby-progressbar (1.13.0)
90
98
  shellany (0.0.1)
91
- simplecov (0.17.0)
99
+ simplecov (0.21.2)
92
100
  docile (~> 1.1)
93
- json (>= 1.8, < 3)
94
- simplecov-html (~> 0.10.0)
95
- simplecov-html (0.10.2)
101
+ simplecov-html (~> 0.11)
102
+ simplecov_json_formatter (~> 0.1)
103
+ simplecov-html (0.13.1)
104
+ simplecov_json_formatter (0.1.4)
96
105
  terminal_image (0.3.0)
97
106
  fastimage
98
- thor (0.20.3)
99
- unicode-display_width (1.6.0)
100
- url (0.3.2)
107
+ thor (1.2.2)
108
+ unicode-display_width (2.6.0)
101
109
 
102
110
  PLATFORMS
103
111
  ruby
104
112
 
105
113
  DEPENDENCIES
114
+ base64
106
115
  bundler (~> 2.0)
107
116
  codecov
108
117
  guard
109
118
  guard-rspec
110
119
  guard-rubocop
111
120
  irasutoya-cli!
112
- rake (~> 12.3)
121
+ rake (~> 13.0)
113
122
  rspec (~> 3.0)
114
123
  rubocop
115
124
  simplecov
116
125
 
117
126
  BUNDLED WITH
118
- 2.0.2
127
+ 2.4.14
data/Guardfile CHANGED
@@ -17,7 +17,7 @@
17
17
  #
18
18
  # and, you'll have to watch "config/Guardfile" instead of "Guardfile"
19
19
 
20
- # Note: The cmd option is now required due to the increasing number of ways
20
+ # NOTE: The cmd option is now required due to the increasing number of ways
21
21
  # rspec may be run, below are examples of the most common uses.
22
22
  # * bundler: 'bundle exec rspec'
23
23
  # * bundler binstubs: 'bin/rspec'
data/README.md CHANGED
@@ -1,38 +1,35 @@
1
1
  # Irasutoya::Cli
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/irasutoya/cli`. To experiment with that code, run `bin/console` for an interactive prompt.
3
+ [![Gem Version](https://badge.fury.io/rb/irasutoya-cli.svg)](https://badge.fury.io/rb/irasutoya-cli)
4
+ [![Code Climate](https://codeclimate.com/github/irasutoya-tools/irasutoya-cli/badges/gpa.svg)](https://codeclimate.com/github/irasutoya-tools/irasutoya-cli)
5
+ [![codecov](https://codecov.io/gh/irasutoya-tools/irasutoya-cli/branch/master/graph/badge.svg)](https://codecov.io/gh/irasutoya-tools/irasutoya-cli)
6
+ [![Libraries.io dependency status for GitHub repo](https://img.shields.io/librariesio/github/irasutoya-tools/irasutoya-cli.svg)](https://libraries.io/github/irasutoya-tools/irasutoya-cli)
7
+ ![](http://ruby-gem-downloads-badge.herokuapp.com/irasutoya-cli?type=total)
8
+ ![GitHub](https://img.shields.io/github/license/irasutoya-tools/irasutoya-cli.svg)
4
9
 
5
- TODO: Delete this and the text above, and describe your gem
10
+ ![](./images/example.png)
6
11
 
7
12
  ## Installation
8
13
 
9
- Add this line to your application's Gemfile:
10
-
11
- ```ruby
12
- gem 'irasutoya-cli'
14
+ ```sh
15
+ $ gem install irasutoya-cli
13
16
  ```
14
17
 
15
- And then execute:
16
-
17
- $ bundle
18
-
19
- Or install it yourself as:
20
-
21
- $ gem install irasutoya-cli
18
+ To see preview of image, you need to use [iTerm2](https://iterm2.com/index.html) or terminals with [libsixel](https://github.com/saitoha/libsixel) installed.
22
19
 
23
20
  ## Usage
24
21
 
25
- TODO: Write usage instructions here
26
-
27
- ## Development
28
-
29
- After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
30
-
31
- To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
22
+ ```sh
23
+ $ irasutoya
24
+ Commands:
25
+ irasutoya help [COMMAND] # Describe available commands or one specific command
26
+ irasutoya random # Gives you random irasutoya image
27
+ irasutoya search {query} # Gives you irasutoya 3 images by given query
28
+ ```
32
29
 
33
30
  ## Contributing
34
31
 
35
- Bug reports and pull requests are welcome on GitHub at https://github.com/unhappychoice/irasutoya-cli. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
32
+ Bug reports and pull requests are welcome on GitHub at https://github.com/irasutoya-tools/irasutoya-cli. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
36
33
 
37
34
  ## License
38
35
 
Binary file
@@ -5,19 +5,19 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
5
  require 'irasutoya/cli/version'
6
6
 
7
7
  Gem::Specification.new do |spec|
8
- spec.name = 'irasutoya-cli'
9
- spec.version = Irasutoya::Cli::VERSION
10
- spec.authors = ['Yuji Ueki']
11
- spec.email = ['unhappychoice@gmail.com']
12
-
13
- spec.summary = 'CLI tool for irasutoya'
14
- spec.description = 'CLI tool for irasutoya'
15
- spec.homepage = 'https://github.com/unhappychoice/irasutoya-cli'
16
- spec.license = 'MIT'
17
-
18
- spec.metadata['homepage_uri'] = spec.homepage
19
- spec.metadata['source_code_uri'] = 'https://github.com/unhappychoice/irasutoya-cli'
20
- spec.metadata['changelog_uri'] = 'https://github.com/unhappychoice/irasutoya-cli'
8
+ spec.name = 'irasutoya-cli'
9
+ spec.version = Irasutoya::Cli::VERSION
10
+ spec.required_ruby_version = '>= 3.1'
11
+ spec.authors = ['Yuji Ueki']
12
+ spec.email = ['unhappychoice@gmail.com']
13
+ spec.summary = 'CLI tool for irasutoya'
14
+ spec.description = 'CLI tool for irasutoya'
15
+ spec.homepage = 'https://github.com/irasutoya-tools/irasutoya-cli'
16
+ spec.license = 'MIT'
17
+ spec.metadata['homepage_uri'] = spec.homepage
18
+ spec.metadata['source_code_uri'] = 'https://github.com/irasutoya-tools/irasutoya-cli'
19
+ spec.metadata['changelog_uri'] = 'https://github.com/irasutoya-tools/irasutoya-cli'
20
+ spec.metadata['rubygems_mfa_required'] = 'true'
21
21
 
22
22
  # Specify which files should be added to the gem when it is released.
23
23
  # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
@@ -32,12 +32,13 @@ Gem::Specification.new do |spec|
32
32
  spec.add_dependency 'terminal_image'
33
33
  spec.add_dependency 'thor'
34
34
 
35
+ spec.add_development_dependency 'base64'
35
36
  spec.add_development_dependency 'bundler', '~> 2.0'
36
37
  spec.add_development_dependency 'codecov'
37
38
  spec.add_development_dependency 'guard'
38
39
  spec.add_development_dependency 'guard-rspec'
39
40
  spec.add_development_dependency 'guard-rubocop'
40
- spec.add_development_dependency 'rake', '~> 12.3'
41
+ spec.add_development_dependency 'rake', '~> 13.0'
41
42
  spec.add_development_dependency 'rspec', '~> 3.0'
42
43
  spec.add_development_dependency 'rubocop'
43
44
  spec.add_development_dependency 'simplecov'
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Irasutoya
4
4
  module Cli
5
- VERSION = '0.1.0'
5
+ VERSION = '1.0.0'
6
6
  end
7
7
  end
data/lib/irasutoya/cli.rb CHANGED
@@ -8,15 +8,31 @@ require 'thor'
8
8
  module Irasutoya
9
9
  module Cli
10
10
  class Error < StandardError; end
11
+
11
12
  class Runner < Thor
12
13
  desc 'random', 'Gives you random irasutoya image'
13
14
  def random
14
- irasuto = Irasutoya::Irasuto.random
15
+ display(Irasutoya::Irasuto.random)
16
+ end
17
+
18
+ desc 'search {query}', 'Gives you 3 irasutoya images by given query'
19
+ def search(query)
20
+ Irasutoya::Irasuto
21
+ .search(query:)
22
+ .take(3)
23
+ .flat_map(&:fetch_irasuto)
24
+ .compact
25
+ .each(&method(:display))
26
+ end
27
+
28
+ private
29
+
30
+ def display(irasuto)
15
31
  say "Page URL: #{irasuto.url}"
16
32
  say "Title: #{irasuto.title}"
17
33
  say "Description: #{irasuto.description}"
18
- say "Image URL: #{irasuto.image_url}"
19
- TerminalImage.show_url(irasuto.image_url)
34
+ irasuto.image_urls.each { |image_url| say "Image URL: #{image_url}" }
35
+ irasuto.image_urls.each(&TerminalImage.method(:show_url))
20
36
  rescue TerminalImage::UnsupportedTerminal
21
37
  say 'warn: This terminal is not able to show images inline', :yellow
22
38
  say 'warn: Please use iTerm2 or terminal installed libsixel.', :yellow
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: irasutoya-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yuji Ueki
8
- autorequire:
9
8
  bindir: exe
10
9
  cert_chain: []
11
- date: 2019-09-16 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: irasutoya
@@ -52,6 +51,20 @@ dependencies:
52
51
  - - ">="
53
52
  - !ruby/object:Gem::Version
54
53
  version: '0'
54
+ - !ruby/object:Gem::Dependency
55
+ name: base64
56
+ requirement: !ruby/object:Gem::Requirement
57
+ requirements:
58
+ - - ">="
59
+ - !ruby/object:Gem::Version
60
+ version: '0'
61
+ type: :development
62
+ prerelease: false
63
+ version_requirements: !ruby/object:Gem::Requirement
64
+ requirements:
65
+ - - ">="
66
+ - !ruby/object:Gem::Version
67
+ version: '0'
55
68
  - !ruby/object:Gem::Dependency
56
69
  name: bundler
57
70
  requirement: !ruby/object:Gem::Requirement
@@ -128,14 +141,14 @@ dependencies:
128
141
  requirements:
129
142
  - - "~>"
130
143
  - !ruby/object:Gem::Version
131
- version: '12.3'
144
+ version: '13.0'
132
145
  type: :development
133
146
  prerelease: false
134
147
  version_requirements: !ruby/object:Gem::Requirement
135
148
  requirements:
136
149
  - - "~>"
137
150
  - !ruby/object:Gem::Version
138
- version: '12.3'
151
+ version: '13.0'
139
152
  - !ruby/object:Gem::Dependency
140
153
  name: rspec
141
154
  requirement: !ruby/object:Gem::Requirement
@@ -186,9 +199,13 @@ executables:
186
199
  extensions: []
187
200
  extra_rdoc_files: []
188
201
  files:
189
- - ".circleci/config.yml"
202
+ - ".github/dependabot.yml"
203
+ - ".github/workflows/release.yaml"
204
+ - ".github/workflows/test.yml"
205
+ - ".gitignore"
190
206
  - ".rspec"
191
207
  - ".rubocop.yml"
208
+ - ".ruby-version"
192
209
  - CODE_OF_CONDUCT.md
193
210
  - Gemfile
194
211
  - Gemfile.lock
@@ -197,17 +214,18 @@ files:
197
214
  - README.md
198
215
  - Rakefile
199
216
  - exe/irasutoya
217
+ - images/example.png
200
218
  - irasutoya-cli.gemspec
201
219
  - lib/irasutoya/cli.rb
202
220
  - lib/irasutoya/cli/version.rb
203
- homepage: https://github.com/unhappychoice/irasutoya-cli
221
+ homepage: https://github.com/irasutoya-tools/irasutoya-cli
204
222
  licenses:
205
223
  - MIT
206
224
  metadata:
207
- homepage_uri: https://github.com/unhappychoice/irasutoya-cli
208
- source_code_uri: https://github.com/unhappychoice/irasutoya-cli
209
- changelog_uri: https://github.com/unhappychoice/irasutoya-cli
210
- post_install_message:
225
+ homepage_uri: https://github.com/irasutoya-tools/irasutoya-cli
226
+ source_code_uri: https://github.com/irasutoya-tools/irasutoya-cli
227
+ changelog_uri: https://github.com/irasutoya-tools/irasutoya-cli
228
+ rubygems_mfa_required: 'true'
211
229
  rdoc_options: []
212
230
  require_paths:
213
231
  - lib
@@ -215,15 +233,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
215
233
  requirements:
216
234
  - - ">="
217
235
  - !ruby/object:Gem::Version
218
- version: '0'
236
+ version: '3.1'
219
237
  required_rubygems_version: !ruby/object:Gem::Requirement
220
238
  requirements:
221
239
  - - ">="
222
240
  - !ruby/object:Gem::Version
223
241
  version: '0'
224
242
  requirements: []
225
- rubygems_version: 3.0.3
226
- signing_key:
243
+ rubygems_version: 3.6.7
227
244
  specification_version: 4
228
245
  summary: CLI tool for irasutoya
229
246
  test_files: []
data/.circleci/config.yml DELETED
@@ -1,61 +0,0 @@
1
- version: 2.1
2
-
3
- update_bundler: &update_bundler
4
- run:
5
- name: update bundler
6
- command: gem update bundler
7
-
8
- bundle_install: &bundle_install
9
- run:
10
- name: bundle install
11
- command: bundle update --bundler && bundle install --path vendor/bundle --jobs 4
12
-
13
- restore_bundle_cache: &restore_bundle_cache
14
- restore_cache:
15
- key: cache-bundler-{{ checksum "Gemfile.lock" }}
16
-
17
- jobs:
18
- build:
19
- docker:
20
- - image: circleci/ruby
21
- steps:
22
- - checkout
23
- - *restore_bundle_cache
24
- - *update_bundler
25
- - *bundle_install
26
- - save_cache:
27
- key: cache-bundler-{{ checksum "Gemfile.lock" }}
28
- paths:
29
- - vendor/bundle
30
- rubocop:
31
- docker:
32
- - image: circleci/ruby
33
- steps:
34
- - checkout
35
- - *restore_bundle_cache
36
- - *update_bundler
37
- - *bundle_install
38
- - run: bundle exec rubocop
39
- rspec:
40
- docker:
41
- - image: circleci/ruby
42
- steps:
43
- - checkout
44
- - *restore_bundle_cache
45
- - *update_bundler
46
- - *bundle_install
47
- - run:
48
- environment:
49
- RAILS_ENV: test
50
- COVERAGE: true
51
- CODECOV_TOKEN: d9091f65-2e14-4029-86e6-f6ec9c59ecec
52
- command: bundle exec rspec
53
- workflows:
54
- version: 2.1
55
- rspec:
56
- jobs:
57
- - build
58
- - rubocop:
59
- requires: [build]
60
- - rspec:
61
- requires: [build]