dsh 0.2.1 → 0.2.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 -13
- data/README.md +3 -1
- data/gemify.sh +41 -0
- data/lib/dsh/version.rb +1 -1
- metadata +11 -11
- data/img/docset_keywords.png +0 -0
checksums.yaml
CHANGED
|
@@ -1,15 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
|
|
5
|
-
data.tar.gz: !binary |-
|
|
6
|
-
NDk1NDdiMDM5NGM0M2FhY2IxYTkwOGRjN2Y1NTQ0OGY0MDIwZjZlYw==
|
|
2
|
+
SHA1:
|
|
3
|
+
metadata.gz: 3a656bfdead95b31d0badb0cc29f49e08315d79a
|
|
4
|
+
data.tar.gz: 74c89d188a3f9d191521ac2c80b7f006270fdafa
|
|
7
5
|
SHA512:
|
|
8
|
-
metadata.gz:
|
|
9
|
-
|
|
10
|
-
ZTM5YTdmZjAyZmFhNzI4MzY0OWUzNDcwM2NhOGEzMTgwNDJhZWEzYzgwYTMw
|
|
11
|
-
NzQzN2M1NjMxZTAyNDEzNWFjMjBkOGI3N2MxOGZmOTFmNWJkZmE=
|
|
12
|
-
data.tar.gz: !binary |-
|
|
13
|
-
MWRhOTU5NWMzZmRlMzE4ZWQ3Y2M4Zjc2MWM5MjMyMzE2YzI1M2E5YjgxYmNj
|
|
14
|
-
ZDk1MmMzZTBlYjg0NjY3ZDkzM2YzMzc3NTgwN2FlOGFiN2NiMTFlNDA1ZDk0
|
|
15
|
-
Nzc1NDRjMGMwYzYwYmIwZmIzODU0ZWE0NjdkYzQyNTUyY2I1NWM=
|
|
6
|
+
metadata.gz: eb8bd571f82988627a0e9868fb06dbbdf29b1e24180ea5c6f1682edc034f69faf3eec09991c7bef6e0d10073de64028608a5458901e4be04f58d705986f7111b
|
|
7
|
+
data.tar.gz: b60814e9a8f92541b045cab4ce77ce755b18f914199fffa9c4c0e64331e91b0d004e13a8c977e566c56989b5f5208581702e81991c5a04fd3b90fbd4475e519b
|
data/README.md
CHANGED
|
@@ -20,7 +20,7 @@ To restrict your search to a specific programming language/framework docset, use
|
|
|
20
20
|
|
|
21
21
|
You can find the language docset keyword in Preferences > Docsets:
|
|
22
22
|
|
|
23
|
-
<img src="https://raw.github.com/chrissimpkins/dsh/
|
|
23
|
+
<img src="https://raw.github.com/chrissimpkins/dsh/image-include/img/docset_keywords.png" width="598" height="530" alt="Dash Docset Keywords">
|
|
24
24
|
|
|
25
25
|
Enter the keyword that is displayed in your preferences **without** the colon symbol (:).
|
|
26
26
|
|
|
@@ -48,6 +48,8 @@ MIT License
|
|
|
48
48
|
|
|
49
49
|
## Changelog
|
|
50
50
|
|
|
51
|
+
**v0.2.2** - removed repository image (was being pushed with the gem unintentionally...)
|
|
52
|
+
|
|
51
53
|
**v0.2.1** - added support for multiple word queries
|
|
52
54
|
|
|
53
55
|
**v0.2.0** - exception handling for incorrect CL switches/flags/arguments
|
data/gemify.sh
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
#!/bin/sh
|
|
2
|
+
# Scriptacular - gemify.sh
|
|
3
|
+
# Create a Ruby gem and push it to rubygems.org
|
|
4
|
+
# Copyright 2013 Christopher Simpkins
|
|
5
|
+
# MIT License
|
|
6
|
+
|
|
7
|
+
# Enter your gem name below (do not enter version number)
|
|
8
|
+
# or pass it as the first argument to the shell script
|
|
9
|
+
GEM_NAME="dsh"
|
|
10
|
+
|
|
11
|
+
# Don't touch these
|
|
12
|
+
GEMSPEC_SUFFIX=".gemspec"
|
|
13
|
+
GEM_BUILD_CMD="gem build"
|
|
14
|
+
GEM_PUSH_CMD="gem push"
|
|
15
|
+
|
|
16
|
+
# if there is an argument to the script, define the gem name with it
|
|
17
|
+
if [ $# -eq 1 ]; then
|
|
18
|
+
GEM_NAME=$1
|
|
19
|
+
elif [ $# -gt 1 ]; then
|
|
20
|
+
echo "You entered too many arguments. Please specify the name of your gem as the argument to the script." >&2
|
|
21
|
+
exit 1
|
|
22
|
+
fi
|
|
23
|
+
|
|
24
|
+
# if the gem name has not been defined, print error message and exit
|
|
25
|
+
if [ -z "$GEM_NAME" ]; then
|
|
26
|
+
echo "You did not enter a gem name. Please include it as an argument to the script or hard code it as a variable in the script." >&2
|
|
27
|
+
exit 1
|
|
28
|
+
fi
|
|
29
|
+
|
|
30
|
+
# run the gem build and parse for the gem release filename
|
|
31
|
+
GEM_BUILD_NAME=$(gem build "$GEM_NAME$GEMSPEC_SUFFIX" | awk '/File/ {print $2}' -)
|
|
32
|
+
|
|
33
|
+
# if the build failed (i.e. no file name obtained above), print error message and exit
|
|
34
|
+
if [ -z "$GEM_BUILD_NAME" ]; then
|
|
35
|
+
echo "The gem build failed. Please confirm the gem name and try again." >&2
|
|
36
|
+
exit 1
|
|
37
|
+
fi
|
|
38
|
+
|
|
39
|
+
# if above succeeded, then push to rubygems.org using the gem that was compiled
|
|
40
|
+
gem push $GEM_BUILD_NAME
|
|
41
|
+
exit 0
|
data/lib/dsh/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: dsh
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Chris Simpkins
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2013-11-
|
|
11
|
+
date: 2013-11-15 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -28,42 +28,42 @@ dependencies:
|
|
|
28
28
|
name: rake
|
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
|
30
30
|
requirements:
|
|
31
|
-
- -
|
|
31
|
+
- - '>='
|
|
32
32
|
- !ruby/object:Gem::Version
|
|
33
33
|
version: '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
40
|
version: '0'
|
|
41
41
|
- !ruby/object:Gem::Dependency
|
|
42
42
|
name: rdoc
|
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
|
44
44
|
requirements:
|
|
45
|
-
- -
|
|
45
|
+
- - '>='
|
|
46
46
|
- !ruby/object:Gem::Version
|
|
47
47
|
version: '0'
|
|
48
48
|
type: :development
|
|
49
49
|
prerelease: false
|
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
|
51
51
|
requirements:
|
|
52
|
-
- -
|
|
52
|
+
- - '>='
|
|
53
53
|
- !ruby/object:Gem::Version
|
|
54
54
|
version: '0'
|
|
55
55
|
- !ruby/object:Gem::Dependency
|
|
56
56
|
name: aruba
|
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
|
58
58
|
requirements:
|
|
59
|
-
- -
|
|
59
|
+
- - '>='
|
|
60
60
|
- !ruby/object:Gem::Version
|
|
61
61
|
version: '0'
|
|
62
62
|
type: :development
|
|
63
63
|
prerelease: false
|
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
|
65
65
|
requirements:
|
|
66
|
-
- -
|
|
66
|
+
- - '>='
|
|
67
67
|
- !ruby/object:Gem::Version
|
|
68
68
|
version: '0'
|
|
69
69
|
- !ruby/object:Gem::Dependency
|
|
@@ -114,7 +114,7 @@ files:
|
|
|
114
114
|
- features/dsh.feature
|
|
115
115
|
- features/step_definitions/dsh_steps.rb
|
|
116
116
|
- features/support/env.rb
|
|
117
|
-
-
|
|
117
|
+
- gemify.sh
|
|
118
118
|
- lib/dsh.rb
|
|
119
119
|
- lib/dsh/version.rb
|
|
120
120
|
- test/tc_something.rb
|
|
@@ -128,12 +128,12 @@ require_paths:
|
|
|
128
128
|
- lib
|
|
129
129
|
required_ruby_version: !ruby/object:Gem::Requirement
|
|
130
130
|
requirements:
|
|
131
|
-
- -
|
|
131
|
+
- - '>='
|
|
132
132
|
- !ruby/object:Gem::Version
|
|
133
133
|
version: '0'
|
|
134
134
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
135
135
|
requirements:
|
|
136
|
-
- -
|
|
136
|
+
- - '>='
|
|
137
137
|
- !ruby/object:Gem::Version
|
|
138
138
|
version: '0'
|
|
139
139
|
requirements: []
|
data/img/docset_keywords.png
DELETED
|
Binary file
|