orphic 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4b77e217707ef649f198ffd511b570d9b88df65dc2db8aa91684695cb7b53d44
4
- data.tar.gz: 222a7a070ca254405084255187faa47af7278927e7b11da8f1e948014b88dc9e
3
+ metadata.gz: a7546590c3972a1011faea32b3d920ef2efcce5aa651bf1bee8b2309eb9773a0
4
+ data.tar.gz: c8129ccc82c513bee94ae8beb97cfea2eef2be459b5693252430da6051ddee99
5
5
  SHA512:
6
- metadata.gz: '0369a7bfc3e3415153fd402276e447360b5599d10e95b69217660420335f37b4e6510bf67b1abb9ffea02bdeda1c1c5b08fdfa32d6afa50e26c6a3608f237826'
7
- data.tar.gz: 1d625de47b2ba54d932dcf5b8721103f5137935bc99bb13b610f3ee7713cd29e3ffc4f4b068deb59795444d14fad75aaf149c86412e427a30fa5195ecd5d6818
6
+ metadata.gz: 74b06f4e150c63e4359f26620003523775d304dcb83d3c4d4feae16aa1d1234d66d4cf4b99019b7ea342f00e5854e44f6ffd9726199f5a8da4ca6e370326f26d
7
+ data.tar.gz: 8adab37499d34b8097fc827d6edc3fe33e87eac157fe76941cc29905b4b428e9caa6964f18a871d8b997ade0616e2b72507fd88d67bb23ce85529a7ecae8daab
data/exe/orphic CHANGED
@@ -1,4 +1,4 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
3
  require "orphic"
4
- Orphic::HammerOfTheGods.start( ARGV )
4
+ Orphic::Mjolnir.start( ARGV )
@@ -2,5 +2,8 @@ require "orphic/version"
2
2
  require "orphic/cli"
3
3
 
4
4
  module Orphic
5
- puts "Hallo warld!"
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
@@ -1,19 +1,13 @@
1
1
  require 'thor'
2
+ require 'orphic/cli/hn'
2
3
 
3
4
  module Orphic
4
- class HammerOfTheGods < Thor
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
- end
25
- class AlltHecuRsed < Thor
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
@@ -1,3 +1,3 @@
1
1
  module Orphic
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
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.0
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.0
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: []