orphic 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/exe/orphic +1 -1
- data/lib/orphic.rb +4 -1
- data/lib/orphic/cli.rb +4 -14
- data/lib/orphic/cli/hn.rb +11 -0
- data/lib/orphic/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a7546590c3972a1011faea32b3d920ef2efcce5aa651bf1bee8b2309eb9773a0
|
4
|
+
data.tar.gz: c8129ccc82c513bee94ae8beb97cfea2eef2be459b5693252430da6051ddee99
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 74b06f4e150c63e4359f26620003523775d304dcb83d3c4d4feae16aa1d1234d66d4cf4b99019b7ea342f00e5854e44f6ffd9726199f5a8da4ca6e370326f26d
|
7
|
+
data.tar.gz: 8adab37499d34b8097fc827d6edc3fe33e87eac157fe76941cc29905b4b428e9caa6964f18a871d8b997ade0616e2b72507fd88d67bb23ce85529a7ecae8daab
|
data/exe/orphic
CHANGED
data/lib/orphic.rb
CHANGED
@@ -2,5 +2,8 @@ require "orphic/version"
|
|
2
2
|
require "orphic/cli"
|
3
3
|
|
4
4
|
module Orphic
|
5
|
-
puts "
|
5
|
+
puts "Startled, you wake in a circular room surrounded by bright terminals."
|
6
|
+
puts "Each terminal represents a pathway that is locked behind a series of keys."
|
7
|
+
puts "Combining the skills gained from each path is possible, but wild paths taken will be less worn."
|
8
|
+
puts "Some of these skills overlap. Learn wisely."
|
6
9
|
end
|
data/lib/orphic/cli.rb
CHANGED
@@ -1,19 +1,13 @@
|
|
1
1
|
require 'thor'
|
2
|
+
require 'orphic/cli/hn'
|
2
3
|
|
3
4
|
module Orphic
|
4
|
-
class
|
5
|
+
class Mjolnir < Thor
|
5
6
|
desc "hello NAME", "This will greet you"
|
6
7
|
long_desc <<-HELLO_WORLD
|
7
8
|
|
8
9
|
`hello NAME` will print out a message to the person of your choosing.
|
9
10
|
|
10
|
-
Brian Kernighan actually wrote the first "Hello, World!" program
|
11
|
-
as part of the documentation for the BCPL programming language
|
12
|
-
developed by Martin Richards. BCPL was used while C was being
|
13
|
-
developed at Bell Labs a few years before the publication of
|
14
|
-
Kernighan and Ritchie's C book in 1972.
|
15
|
-
|
16
|
-
http://stackoverflow.com/a/12785204
|
17
11
|
HELLO_WORLD
|
18
12
|
option :upcase
|
19
13
|
def hello( name )
|
@@ -21,11 +15,7 @@ module Orphic
|
|
21
15
|
greeting.upcase! if options[:upcase]
|
22
16
|
puts greeting
|
23
17
|
end
|
24
|
-
|
25
|
-
|
26
|
-
desc "hello PLANET", "say hello to PLANET"
|
27
|
-
def hello(planet)
|
28
|
-
puts "Hello #{planet}"
|
29
|
-
end
|
18
|
+
desc "hn COMMANDS", "Hacker News Control Module"
|
19
|
+
subcommand "hn", Orphic::OrphicCli::Hn
|
30
20
|
end
|
31
21
|
end
|
@@ -0,0 +1,11 @@
|
|
1
|
+
module Orphic
|
2
|
+
module OrphicCli
|
3
|
+
class Hn < Thor
|
4
|
+
desc "search URL", "Search hn.algolia.com for a url mentioned on Hackernews"
|
5
|
+
option :tags
|
6
|
+
def search ( url )
|
7
|
+
puts "Looks like you are looking for #{url} with tags #{options[:tags]}"
|
8
|
+
end
|
9
|
+
end
|
10
|
+
end
|
11
|
+
end
|
data/lib/orphic/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: orphic
|
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
|
- Kyle OBrien
|
@@ -159,6 +159,7 @@ files:
|
|
159
159
|
- exe/orphic
|
160
160
|
- lib/orphic.rb
|
161
161
|
- lib/orphic/cli.rb
|
162
|
+
- lib/orphic/cli/hn.rb
|
162
163
|
- lib/orphic/version.rb
|
163
164
|
- orphic.gemspec
|
164
165
|
homepage: https://orphic.enterprises/orphic-cli
|
@@ -168,7 +169,7 @@ metadata:
|
|
168
169
|
bug_tracker_uri: https://github.com/orphic-inc/ruby-orphic-cli/issues
|
169
170
|
changlog_uri: https://github.com/orphic-inc/ruby-orphic-cli/blob/main/CHANGELOG.md
|
170
171
|
documentation_uri: https://github.com/orphic-inc/ruby-orphic-cli/blob/main/README.md
|
171
|
-
source_code_uri: https://github.com/orphic-inc/ruby-orphic-cli/tree/v0.1.
|
172
|
+
source_code_uri: https://github.com/orphic-inc/ruby-orphic-cli/tree/v0.1.1
|
172
173
|
wiki_uri: https://github.com/orphic-inc/ruby-orphic-cli/wiki
|
173
174
|
post_install_message:
|
174
175
|
rdoc_options: []
|