thor_repl 0.1.0 → 0.1.1
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/.circleci/config.yml +61 -0
- data/Gemfile.lock +5 -2
- data/README.md +5 -1
- data/example/Gemfile +4 -0
- data/example/Gemfile.lock +6 -0
- data/lib/thor_repl/looper.rb +1 -1
- data/lib/thor_repl/version.rb +1 -1
- data/thor-repl.gemspec +1 -0
- metadata +16 -2
- data/.travis.yml +0 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 89a7669c7a9edd5a37fb8d17f679098d243c824a5ff72d0408e5fea4785ac1c1
|
4
|
+
data.tar.gz: f15c2e5c827b781317535c7ae8348385ff7d056a22b31db6e0061c7268176b39
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bcaa384d8c6dd68c94fa9043282d8c3c93029b0b2820c73b2506fdb0bef8725c2638b70fb818fa9067d4721a8968b5f0113141f37093e5d970ab392783855863
|
7
|
+
data.tar.gz: 827f1112fa3e4c722052f2d576a3424893e4f8be967ec283a7374db77c81a2e33dd935b80c6b6e713655fcce8e509f8a950a9b0764a0424e3b0dc35749565c24
|
@@ -0,0 +1,61 @@
|
|
1
|
+
# Ruby CircleCI 2.0 configuration file
|
2
|
+
#
|
3
|
+
# Check https://circleci.com/docs/2.0/language-ruby/ for more details
|
4
|
+
#
|
5
|
+
version: 2
|
6
|
+
jobs:
|
7
|
+
build:
|
8
|
+
docker:
|
9
|
+
# specify the version you desire here
|
10
|
+
- image: circleci/ruby:2.4.1-node-browsers
|
11
|
+
|
12
|
+
# Specify service dependencies here if necessary
|
13
|
+
# CircleCI maintains a library of pre-built images
|
14
|
+
# documented at https://circleci.com/docs/2.0/circleci-images/
|
15
|
+
# - image: circleci/postgres:9.4
|
16
|
+
|
17
|
+
working_directory: ~/repo
|
18
|
+
|
19
|
+
steps:
|
20
|
+
- checkout
|
21
|
+
|
22
|
+
# Download and cache dependencies
|
23
|
+
- restore_cache:
|
24
|
+
keys:
|
25
|
+
- v1-dependencies-{{ checksum "Gemfile.lock" }}
|
26
|
+
# fallback to using the latest cache if no exact match is found
|
27
|
+
- v1-dependencies-
|
28
|
+
|
29
|
+
- run:
|
30
|
+
name: install dependencies
|
31
|
+
command: |
|
32
|
+
gem install bundler -v 1.16
|
33
|
+
|
34
|
+
bundle install --jobs=4 --retry=3 --path vendor/bundle
|
35
|
+
|
36
|
+
- save_cache:
|
37
|
+
paths:
|
38
|
+
- ./vendor/bundle
|
39
|
+
key: v1-dependencies-{{ checksum "Gemfile.lock" }}
|
40
|
+
|
41
|
+
# run tests!
|
42
|
+
- run:
|
43
|
+
name: run tests
|
44
|
+
command: |
|
45
|
+
mkdir /tmp/test-results
|
46
|
+
TEST_FILES="$(circleci tests glob "spec/**/*_spec.rb" | \
|
47
|
+
circleci tests split --split-by=timings)"
|
48
|
+
|
49
|
+
bundle exec rspec \
|
50
|
+
--format progress \
|
51
|
+
--format RspecJunitFormatter \
|
52
|
+
--out /tmp/test-results/rspec.xml \
|
53
|
+
--format progress \
|
54
|
+
$TEST_FILES
|
55
|
+
|
56
|
+
# collect reports
|
57
|
+
- store_test_results:
|
58
|
+
path: /tmp/test-results
|
59
|
+
- store_artifacts:
|
60
|
+
path: /tmp/test-results
|
61
|
+
destination: test-results
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
|
4
|
+
thor_repl (0.1.1)
|
5
5
|
|
6
6
|
GEM
|
7
7
|
remote: https://rubygems.org/
|
@@ -21,6 +21,8 @@ GEM
|
|
21
21
|
diff-lcs (>= 1.2.0, < 2.0)
|
22
22
|
rspec-support (~> 3.8.0)
|
23
23
|
rspec-support (3.8.0)
|
24
|
+
rspec_junit_formatter (0.4.1)
|
25
|
+
rspec-core (>= 2, < 4, != 2.12.0)
|
24
26
|
|
25
27
|
PLATFORMS
|
26
28
|
ruby
|
@@ -29,7 +31,8 @@ DEPENDENCIES
|
|
29
31
|
bundler (~> 1.16)
|
30
32
|
rake (~> 10.0)
|
31
33
|
rspec (~> 3.0)
|
32
|
-
|
34
|
+
rspec_junit_formatter
|
35
|
+
thor_repl!
|
33
36
|
|
34
37
|
BUNDLED WITH
|
35
38
|
1.16.4
|
data/README.md
CHANGED
@@ -2,6 +2,10 @@
|
|
2
2
|
|
3
3
|
Easily create a REPL for any [Thor CLI](https://github.com/erikhuda/thor)
|
4
4
|
|
5
|
+
[](https://codeclimate.com/github/mikfreedman/thor_repl/maintainability)
|
6
|
+
[](https://badge.fury.io/rb/thor_repl)
|
7
|
+
[](https://circleci.com/gh/mikfreedman/thor_repl)
|
8
|
+
|
5
9
|
## Installation
|
6
10
|
|
7
11
|
Add this line to your application's Gemfile:
|
@@ -30,7 +34,7 @@ require 'thor_repl'
|
|
30
34
|
class MyCLI < Thor
|
31
35
|
desc "interactive", "interactive console"
|
32
36
|
def interactive
|
33
|
-
|
37
|
+
ThorRepl.start(self.class, prompt: "my-cli>")
|
34
38
|
end
|
35
39
|
end
|
36
40
|
```
|
data/example/Gemfile
CHANGED
data/example/Gemfile.lock
CHANGED
@@ -6,12 +6,18 @@ PATH
|
|
6
6
|
GEM
|
7
7
|
remote: http://rubygems.org/
|
8
8
|
specs:
|
9
|
+
coderay (1.1.2)
|
10
|
+
method_source (0.9.2)
|
11
|
+
pry (0.12.2)
|
12
|
+
coderay (~> 1.1.0)
|
13
|
+
method_source (~> 0.9.0)
|
9
14
|
thor (0.20.3)
|
10
15
|
|
11
16
|
PLATFORMS
|
12
17
|
ruby
|
13
18
|
|
14
19
|
DEPENDENCIES
|
20
|
+
pry
|
15
21
|
thor
|
16
22
|
thor_repl!
|
17
23
|
|
data/lib/thor_repl/looper.rb
CHANGED
data/lib/thor_repl/version.rb
CHANGED
data/thor-repl.gemspec
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: thor_repl
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mik Freedman
|
@@ -52,6 +52,20 @@ dependencies:
|
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '3.0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rspec_junit_formatter
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
55
69
|
description:
|
56
70
|
email:
|
57
71
|
- github@michael-freedman.com
|
@@ -59,9 +73,9 @@ executables: []
|
|
59
73
|
extensions: []
|
60
74
|
extra_rdoc_files: []
|
61
75
|
files:
|
76
|
+
- ".circleci/config.yml"
|
62
77
|
- ".gitignore"
|
63
78
|
- ".rspec"
|
64
|
-
- ".travis.yml"
|
65
79
|
- CODE_OF_CONDUCT.md
|
66
80
|
- Gemfile
|
67
81
|
- Gemfile.lock
|