dollar-command 0.1.1 → 0.1.2
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 +5 -5
- data/.github/workflows/ruby.yml +27 -0
- data/Gemfile.lock +3 -3
- data/README.md +3 -1
- data/dollar.gemspec +1 -1
- data/lib/dollar.rb +2 -8
- data/lib/dollar/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: caaa9279a94c66d35c2f196220495051a594d3c4dede5755eadd92a91d669120
|
4
|
+
data.tar.gz: 3eb4c45a1e908c6b9acd9ad24d4a55a0082b468384991af16f109f80ed5b145a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: be9f56ee6ae813141c988b9b6205ba5e92171990f03205e913bfe703b1463856b1fee0f143c794e62845237075fee1afc4e76a46a8f3105612b7a1c995aa5174
|
7
|
+
data.tar.gz: 6ca0cc49b3595d99b4fc735f867da14472404188c7bdaa68c0b6e90f13fa8756988aea6d469456aef6ba1d86d83c5c9708db5b92f9cee32743dc5f8455be3546
|
@@ -0,0 +1,27 @@
|
|
1
|
+
name: build
|
2
|
+
|
3
|
+
on: [push]
|
4
|
+
|
5
|
+
jobs:
|
6
|
+
build:
|
7
|
+
|
8
|
+
runs-on: ubuntu-latest
|
9
|
+
|
10
|
+
steps:
|
11
|
+
- uses: actions/checkout@v1
|
12
|
+
- name: Set up Ruby 2.6
|
13
|
+
uses: actions/setup-ruby@v1
|
14
|
+
with:
|
15
|
+
ruby-version: 2.6.x
|
16
|
+
- name: Build and test with Rake
|
17
|
+
run: |
|
18
|
+
gem install bundler
|
19
|
+
bundle install --jobs 4 --retry 3
|
20
|
+
bundle exec rake install
|
21
|
+
if [[ $($ echo "foobar") == "foobar" ]]; then
|
22
|
+
echo "Test passed –– exiting with code 0";
|
23
|
+
exit 0;
|
24
|
+
else
|
25
|
+
echo "Test failed –– exiting with code 1";
|
26
|
+
exit 1;
|
27
|
+
fi
|
data/Gemfile.lock
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
dollar-command (0.1.
|
4
|
+
dollar-command (0.1.2)
|
5
5
|
|
6
6
|
GEM
|
7
7
|
remote: https://rubygems.org/
|
8
8
|
specs:
|
9
|
-
rake (
|
9
|
+
rake (13.0.0)
|
10
10
|
|
11
11
|
PLATFORMS
|
12
12
|
ruby
|
@@ -14,7 +14,7 @@ PLATFORMS
|
|
14
14
|
DEPENDENCIES
|
15
15
|
bundler (~> 2.0)
|
16
16
|
dollar-command!
|
17
|
-
rake (~>
|
17
|
+
rake (~> 13.0)
|
18
18
|
|
19
19
|
BUNDLED WITH
|
20
20
|
2.0.2
|
data/README.md
CHANGED
@@ -1,4 +1,6 @@
|
|
1
1
|
# $ command
|
2
|
+

|
3
|
+
|
2
4
|
A simple command to never hear `command not found: $` again!
|
3
5
|
|
4
6
|
### Motive
|
@@ -24,7 +26,7 @@ To release, bump `version.rb` and run `$ bundle exec rake release`
|
|
24
26
|
|
25
27
|
## Contributing
|
26
28
|
|
27
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/jackHedaya/dollar.
|
29
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/jackHedaya/dollar-command.
|
28
30
|
|
29
31
|
## License
|
30
32
|
|
data/dollar.gemspec
CHANGED
data/lib/dollar.rb
CHANGED
@@ -4,14 +4,8 @@ module Dollar
|
|
4
4
|
class Dollar
|
5
5
|
def start
|
6
6
|
arguments = ARGV
|
7
|
-
|
8
|
-
if arguments
|
9
|
-
arguments.pop
|
10
|
-
end
|
11
|
-
|
12
|
-
if arguments[0] == "$"
|
13
|
-
arguments.shift
|
14
|
-
elsif arguments.length < 1 || arguments[0] == "--help"
|
7
|
+
|
8
|
+
if arguments.length < 1 || arguments[0] == "--help"
|
15
9
|
puts '$: Runs any commands that follow it to help with copy and paste errors'
|
16
10
|
exit
|
17
11
|
end
|
data/lib/dollar/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dollar-command
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jack Hedaya
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-10-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '13.0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
40
|
+
version: '13.0'
|
41
41
|
description:
|
42
42
|
email:
|
43
43
|
- jackehedaya@gmail.com
|
@@ -46,6 +46,7 @@ executables:
|
|
46
46
|
extensions: []
|
47
47
|
extra_rdoc_files: []
|
48
48
|
files:
|
49
|
+
- ".github/workflows/ruby.yml"
|
49
50
|
- ".gitignore"
|
50
51
|
- Gemfile
|
51
52
|
- Gemfile.lock
|
@@ -79,8 +80,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
79
80
|
- !ruby/object:Gem::Version
|
80
81
|
version: '0'
|
81
82
|
requirements: []
|
82
|
-
|
83
|
-
rubygems_version: 2.5.2.3
|
83
|
+
rubygems_version: 3.0.3
|
84
84
|
signing_key:
|
85
85
|
specification_version: 4
|
86
86
|
summary: 'A simple command to never hear "command not found: $" again!'
|