hanami-runner 0.5.0 → 0.6.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: c5e87ea883c8a1b504b2527e016deca1314ffbafd25852150a5df7aab0706f10
4
- data.tar.gz: 6cd8c6f6ee4620e9f2fcb5bc688e3d18baa2c7c0fd45f7f3176a61cd67aaa27a
3
+ metadata.gz: cfe3df1994cf691596c1f325c0dce8bb75f783836fc225b6988c23d38879d59c
4
+ data.tar.gz: c2bdfbb5d710e8a145d028f8ee05c2786ed4a5edb20ffeb22b024e77a90efdd1
5
5
  SHA512:
6
- metadata.gz: b346edb67b9ca92ba12ea68e59a2337132992c9e5a1034df2cd063504d90ab83b4f3a694cc61eb2a87b55fe99117dac1889a618b155b9e83d15dc1178545a5f7
7
- data.tar.gz: 78cfdae2c7a612c27ab9802478f8123d3b2655595dcd2dbcfce04d4402d39d8806383c23e332c3d8d439c65d0980452c795983a85faabff904b33c1ec578dd3a
6
+ metadata.gz: e92e6cfc75c89cdbcdbb9a87650976ba4e3ffbc52557b4eb2ef216148ecedc0f4a867780f9558796ae0c1e17094f2b57a6424d5779a40ba7af06031cd08d059f
7
+ data.tar.gz: 2c750888db1e75bf97c455e1a83398cbc7554abeb6ddf29beb25a272e7f418251a8e6924e7c6a7eff4655df477aa6ea94d3c752503114731ee00183c17f46d32
data/.gitignore ADDED
@@ -0,0 +1,2 @@
1
+ *.gem
2
+ .DS_Store
data/README.md CHANGED
@@ -1,33 +1,24 @@
1
- # Hanami Runner
1
+ [![Gem Version](https://badge.fury.io/rb/hanami-runner.svg)](https://badge.fury.io/rb/hanami-runner) ![Gem](https://img.shields.io/gem/dt/hanami-runner.svg?color=limegreen)
2
2
 
3
- Welcome to your new Hanami project!
3
+ # hanami-runner
4
4
 
5
- ## Setup
5
+ This gem allows you to add a `run` subcommand to the `hanami` command.
6
6
 
7
- How to run tests:
7
+ ## Installation
8
8
 
9
- ```
10
- % bundle exec rake
11
- ```
12
-
13
- How to run the development console:
14
-
15
- ```
16
- % bundle exec hanami console
17
- ```
18
-
19
- How to run the development server:
20
-
21
- ```
22
- % bundle exec hanami server
23
- ```
24
-
25
- How to prepare (create and migrate) DB for `development` and `test` environments:
9
+ Eazy peazy, just add this string to your gemfile
26
10
 
11
+ ```rb
12
+ group :plugins do
13
+ gem 'hanami-runner'
14
+ end
27
15
  ```
28
- % bundle exec hanami db prepare
29
-
30
- % HANAMI_ENV=test bundle exec hanami db prepare
16
+ and then use it with
17
+ ```shell
18
+ hanami run '<YOUR-CODE>'
31
19
  ```
20
+ while being in you hanami project root (i.e where the Gemfile is).
32
21
 
33
- Explore Hanami [guides](http://hanamirb.org/guides/), [API docs](http://docs.hanamirb.org/1.3.1/), or jump in [chat](http://chat.hanamirb.org) for help. Enjoy! 🌸
22
+ ## Maintenance and Contribution
23
+ I'll be rarely maintaining this source code due to lack of time, but i will do as much as i can to resolve any open issues.
24
+ If you want to contribute, feel free to fork it, branch it and to create a pull request.
@@ -8,9 +8,8 @@ Gem::Specification.new do |spec|
8
8
  spec.version = HanamiRunner::Info::VERSION
9
9
  spec.authors = ["apontini"]
10
10
  spec.email = ["alberto.pontini@gmail.com"]
11
- spec.description = %q{Adds the run command to Hanami CLI allowing to execute ruby code via CLI (much like Rails Runnes)}
12
- spec.summary = %q{Adds the run command to Hanami CLI allowing to execute ruby code via CLI (much like Rails Runnes)}
13
- #spec.executables << 'coms'
11
+ spec.description = %q{Adds the run command to Hanami CLI allowing to execute ruby code via CLI (much like Rails 'runner' command)}
12
+ spec.summary = %q{Adds the run command to Hanami CLI allowing to execute ruby code via CLI (much like Rails 'runner' command)}
14
13
  spec.homepage = "https://github.com/apontini/hanami-runner"
15
14
  spec.license = "MIT"
16
15
 
@@ -1,5 +1,5 @@
1
1
  module HanamiRunner
2
- module Info
3
- VERSION = "0.5.0"
2
+ class Info
3
+ VERSION = "0.6.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hanami-runner
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - apontini
@@ -39,19 +39,19 @@ dependencies:
39
39
  - !ruby/object:Gem::Version
40
40
  version: 1.3.5
41
41
  description: Adds the run command to Hanami CLI allowing to execute ruby code via
42
- CLI (much like Rails Runnes)
42
+ CLI (much like Rails 'runner' command)
43
43
  email:
44
44
  - alberto.pontini@gmail.com
45
45
  executables: []
46
46
  extensions: []
47
47
  extra_rdoc_files: []
48
48
  files:
49
+ - ".gitignore"
49
50
  - Gemfile
50
51
  - Gemfile.lock
51
52
  - LICENSE
52
53
  - README.md
53
54
  - Rakefile
54
- - bin/coms
55
55
  - hanami_runner.gemspec
56
56
  - lib/hanami-runner.rb
57
57
  - lib/hanami-runner/info.rb
@@ -79,5 +79,5 @@ rubygems_version: 2.7.6
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Adds the run command to Hanami CLI allowing to execute ruby code via CLI
82
- (much like Rails Runnes)
82
+ (much like Rails 'runner' command)
83
83
  test_files: []
data/bin/coms DELETED
@@ -1,5 +0,0 @@
1
- #!/usr/bin/env ruby
2
- require "bundler/setup"
3
- require "hanami-runner"
4
-
5
- Coms::CLI.new.call