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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 66b93f767f7f709b84ff9dbd08f72608df3fdc5d460901419995a3bf6325a36d
4
- data.tar.gz: 4dbe85a1069e1e9689790484d2ebd82b5ec1c51a989b312c6eec9247140f0cf8
3
+ metadata.gz: 89a7669c7a9edd5a37fb8d17f679098d243c824a5ff72d0408e5fea4785ac1c1
4
+ data.tar.gz: f15c2e5c827b781317535c7ae8348385ff7d056a22b31db6e0061c7268176b39
5
5
  SHA512:
6
- metadata.gz: 232810c19923217b74949d6330698bfdbee3c11bc6c315913543a9502cbe257135647583d043d06928d94672f425a89422ee5682130f12176d432399bfda02e8
7
- data.tar.gz: 6cd1149705ca896b0d2f7cc4197ae49488dbc79d00289be0f758fe83081437cf9483b4648c72f21caa53a0e99860d1924d84e0eaa3cc49fa56320f670970d8b1
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
- thor-repl (0.1.0)
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
- thor-repl!
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
+ [![Maintainability](https://api.codeclimate.com/v1/badges/2b2cd7ca322d7e1c1370/maintainability)](https://codeclimate.com/github/mikfreedman/thor_repl/maintainability)
6
+ [![Gem Version](https://badge.fury.io/rb/thor_repl.svg)](https://badge.fury.io/rb/thor_repl)
7
+ [![CircleCI](https://circleci.com/gh/mikfreedman/thor_repl.svg?style=shield)](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
- CalendarAssistant::CLI::Repl.start(self.class, prompt: "my-cli>")
37
+ ThorRepl.start(self.class, prompt: "my-cli>")
34
38
  end
35
39
  end
36
40
  ```
data/example/Gemfile CHANGED
@@ -2,3 +2,7 @@ source :rubygems
2
2
 
3
3
  gem 'thor'
4
4
  gem 'thor_repl', path: '../'
5
+
6
+ group :development do
7
+ gem 'pry'
8
+ end
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
 
@@ -23,7 +23,7 @@ module ThorRepl
23
23
  case input
24
24
  when /^exit!?/
25
25
  break
26
- when //
26
+ when /^$/
27
27
  Readline::HISTORY.pop
28
28
  end
29
29
 
@@ -1,3 +1,3 @@
1
1
  module ThorRepl
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
data/thor-repl.gemspec CHANGED
@@ -24,4 +24,5 @@ Gem::Specification.new do |spec|
24
24
  spec.add_development_dependency "bundler", "~> 1.16"
25
25
  spec.add_development_dependency "rake", "~> 10.0"
26
26
  spec.add_development_dependency "rspec", "~> 3.0"
27
+ spec.add_development_dependency "rspec_junit_formatter"
27
28
  end
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.0
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
data/.travis.yml DELETED
@@ -1,7 +0,0 @@
1
- ---
2
- sudo: false
3
- language: ruby
4
- cache: bundler
5
- rvm:
6
- - 2.5.1
7
- before_install: gem install bundler -v 1.16.4