orphic 0.1.8 → 0.1.9

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: ada9df94e25136b9bc904ccb6545f0c58c12746769cdee512f5ea00c7833d243
4
- data.tar.gz: 878409e5056c6589c44e3bd627504070cb670a9e87990acc98221b98870241cc
3
+ metadata.gz: '067634208ad0e7347f6b554b58c211e2a06aae99981c6649e341b424e6bf24fd'
4
+ data.tar.gz: d7c0787c643400acc40adeeb291cdf77dc29d61dd8ccad8ddb66ec875a1204f7
5
5
  SHA512:
6
- metadata.gz: 701b671bad7165eecaebcfd694348382551eec03f828e3e96c664d4cb53b47a47dd489cc30b74aedec66b1539edfc7ed19452a6ab2d64f2e929404db48fd3b7a
7
- data.tar.gz: 38f24720c83ff341765c7620c96163dfa87e5e2770222a545810cb899143c8d023280f3caf4327ece23074d56769f3e9f273aafdab87d4512a09e5875edba23f
6
+ metadata.gz: d633fddbea6e4d1a4ae8f33999ba3e70f6173e37004b3579227ec5421d2f163d1ef3d2e04dc2fa60e85a6169505632c4f3ac50002fe37eb2d6cb2a57c1c9eb67
7
+ data.tar.gz: fd02419293607d19aa20bd39ae8e8c759e49571169b7cd1f7efb768b97fa1bc81f71ad4910c8fe1875c2bf5a46bc510e748bcffe54d2160f7d147e4cd6dc5f1e
data/README.md CHANGED
@@ -1,10 +1,8 @@
1
- # Orphic
1
+ # Ruby Orphic CLI
2
2
 
3
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/orphic`. To experiment with that code, run `bin/console` for an interactive prompt.
3
+ [![Gem Version](https://badge.fury.io/rb/orphic.svg)](https://badge.fury.io/rb/orphic)
4
4
 
5
- TODO: Delete this and the text above, and describe your gem
6
-
7
- ## Installation
5
+ ## Quick Installation
8
6
 
9
7
  Add this line to your application's Gemfile:
10
8
 
@@ -20,9 +18,162 @@ Or install it yourself as:
20
18
 
21
19
  $ gem install orphic
22
20
 
23
- ## Usage
21
+ ## Additional Installation Details
22
+
23
+ You'll need [Ruby](https://www.ruby-lang.org/en/documentation/installation/) and Rubygems installed for the Ruby Orphic CLI to function and develop your own commands or plugins. This is built using the [Thor toolkit (Insecure Link!)](http://whatisthor.com/) and [Ruby on Rails](https://rubyonrails.org/).
24
+
25
+ If looking to develop your own front end, check out our [rails fork here](https://github.com/orphic-inc/ruby-orphic-cli/tree/main/orphic-rails). You can [Get Started with Rails](https://guides.rubyonrails.org/getting_started.html) by following the linked guide and for more in-depth tutorials check out [Team Tree House](https://teamtreehouse.com/library/topic:ruby).
26
+
27
+ ## Basic Guide to a Web Development environment for the Orphic CLI
28
+
29
+ // TODO
30
+
31
+ ### Getting Started
32
+
33
+ The Orphic CLI runs on both Ruby and NodeJS, and to get started with either we recommend using [Brew](https://brew.sh) on Linux and Unix distros (including macOS), or [Chocolatey](https://chocolatey.org/) for Windows users. The CLI is currently focused on *-nix* developer environments, but v2 will focus on Windows PowerShell shortcuts via Chocolatey. With these package managers you can install [nvm](https://github.com/nvm-sh/nvm) and [rbenv](https://github.com/rbenv/rbenv), software that will create environments for any specified version. We recommend Ruby version 2.7.1 and Node version 12 or 14. [Google is your friend](https://lmgtfy.com/?q=install+ruby+and+rubygems), and this is a [good article for macOS users](https://www.moncefbelyamani.com/the-definitive-guide-to-installing-ruby-gems-on-a-mac/). If those steps are complete, you can install the gem locally with `gem install orphic`.
34
+
35
+ ### Developer Installation
36
+
37
+ Once the steps above are complete, you'll need the Bundler Ruby gem to locally bundle any changes made with `gem install bundler`. For more on [Bundler](https://bundler.io/) and Gemfiles, check out the [bundler docs here](https://bundler.io/gemfile.html). To build from source, clone the repo, access the directory and run `bundle install`. We strongly recommend using version control before continuing further. You can clone the ruby-orphic-cli repository into your own and once your changes are complete, they can be submitted for review via a Pull Request. If unfamiliar with git, Orphic recommends [Git SCM](https://git-scm.com/).
38
+
39
+ ## macOS
40
+
41
+ macOS includes a version of ruby and for that reason Orphic recommends using shims via rbenv to maintain a separate development environment. Our codebase is on Ruby 2.7.2, so your mileage may vary, but feel free to submit an Issue for any unexpected outcomes with replicable steps to anticipate the same conclusion.
42
+
43
+ # Example neo commands:
44
+
45
+ ## orphic help
46
+
47
+ This will help you get started, there are currently these commands and subcommands available:
48
+
49
+ ```
50
+ hello
51
+ -Uppercase -- Uppercase flag
52
+ node
53
+ node hello
54
+ node help
55
+ -tags -- tags option
56
+ Command -- (req.) argument
57
+ node deploy
58
+ -Site -- Site flag
59
+ -baseDistrict -- argument
60
+ map -- view map commands
61
+ map
62
+ -createDistrict
63
+ map
64
+ -viewDistrict
65
+ map
66
+ -Spools
67
+ media
68
+ -TYPE -- Type flag
69
+ Spools
70
+ Paji
71
+ posPaji
72
+ update_Paji
73
+ Cursor
74
+ posCursor
75
+ GeekCursor
76
+ mongoDb
77
+ mongo_URL - (req.) argument
78
+ Geek
79
+ Data
80
+ Flash
81
+ require Geek
82
+ puts "hi from flash"
83
+ ```
84
+
85
+ # Example dev commands:
86
+
87
+ ## `bundle exec exe/orphic help`
88
+
89
+ ## Publishing the Ruby gem
90
+
91
+ [Start with this doc](https://guides.rubygems.org/publishing/) and [your own test ruby gem](https://guides.rubygems.org/make-your-own-gem/#documenting-your-code), you can copy an [early branch if you'd like](https://rubygems.org/gems/orphic/versions/0.1.0).
92
+
93
+ This will help you get started:
94
+ `nano lib/orphic/version.rb`
95
+ `rm *i*`
96
+ `bundler install`
97
+ `gem build`
98
+ `gem publish *i*`
99
+
100
+ ## Git
101
+
102
+ Create a new branch with git to something like `git branch`.
103
+
104
+ ## Example HTTP headers
105
+ ```
106
+ Request headers
107
+ X-Forwarded-For: {IP address}
108
+ Cache-control: no-cache
109
+ Authorization: {auth token}
110
+ User-Agent: {your custom user agent}
111
+ Response headers
112
+ Access-Control-Allow-Origin: *
113
+ X-Frame-Options: deny
114
+ ```
115
+
116
+ ## Roadmap
117
+
118
+ ### Shell Geek
119
+
120
+ ### Jekyll Geek
121
+
122
+ ### Brew Geek
123
+
124
+ ### Chocolatey Geek
125
+
126
+ ### Node Geek
127
+
128
+ ### BigCommerce Geek
129
+
130
+ ### Google Cloud Geek
131
+
132
+ # spools
133
+
134
+ A spool can be most likened to a volume or book in that threads make up pages, where a spool can ascertain specific locations where Geeks were infantized, using the Paji and Cursor Geeks respectively. Paji specifies for uncommon keywords or commands you may not yet be familiar with, but has been identified as a Cursor Geek by Flash. Flash assists with real-time rendering and ephemeral changes. This creates a perpetual system via [Relational and Non-Relational databases](https://medium.com/@zhenwu93/relational-vs-non-relational-databases-8336870da8bc), as seen in our [example mongoDb doc](https://github.com/orphic-inc/ruby-orphic-cli/blob/main/orphic/lib/orphic/cli/sprites/cursor.rb).
135
+
136
+ # Threads
137
+
138
+ For each Geek, several inputs could be throughput as-is included with the example Geek. The reason "disc" or the equivalent of a hard-reset/disco is highly recommended, but not required falls on a few reasons:
139
+
140
+ The map command provides access to infinite tiers of districts, within reason unless things break which is cause to believe unreasonable in scope.
141
+
142
+ While a mechanism for invoking scope and difference of equation from the original scope of a project (or "District"), custom Districts can invoke their own commands via this CLI which can create interesting effects with APIs.
143
+
144
+ # Districts
145
+
146
+ To create a District, it is required to have an accessible (via SSL and redirected to SSL) API ([Example](https://tudio.us/api/auth)) which returns a [valid](https://jwt.io/introduction) [JWT]([More Info]), and Orphic Enterprises provides base districts for [these factors](https://12factor.net/):
147
+
148
+ # Sprites
149
+
150
+ Sprites serve as directional input, whether intentional or unintentional, serving a focal point for where all attention has become interest with a beginning state of (0,0).
151
+
152
+ // TODO
153
+
154
+ ## Geek: Declarative
155
+
156
+ ### I - Awake - Infant: Codebase
157
+ #### II - Growth - Rookie: Dependencies
158
+ #### III - Discovery - Champion: Config
159
+
160
+ ## Flash: Maximum Portability
161
+
162
+ ### IV - Trust - Angel: Backing Services
163
+ #### V - Truth - Fallen Angel: Build, Release, Run
164
+ #### VI - Magic - Version: Processes
165
+
166
+ ## Paji: Continuous Deployment
167
+
168
+ ### VII - Poetry - Distinct: Port Binding
169
+ #### VIII - Drive - Professional: Concurrency
170
+ #### IX - Will - Mega: Disposability
171
+
172
+ ## Cursor: Scale Up
24
173
 
25
- TODO: Write usage instructions here
174
+ ### X - Loyal - Penultimate: Dev/Prod Parity
175
+ #### XI - Enthusiasm - Ultimate: Logs
176
+ #### XII - Clarity - Awesome: Maximum Portability
26
177
 
27
178
  ## Development
28
179
 
@@ -32,7 +183,7 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
32
183
 
33
184
  ## Contributing
34
185
 
35
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/orphic. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/[USERNAME]/orphic/blob/master/CODE_OF_CONDUCT.md).
186
+ Bug reports and pull requests are welcome on GitHub at https://github.com/orphic-inc/ruby-orphic-cli. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/orphic-inc/ruby-orphic-cli/blob/master/CODE_OF_CONDUCT.md).
36
187
 
37
188
 
38
189
  ## License
@@ -41,4 +192,4 @@ The gem is available as open source under the terms of the [MIT License](https:/
41
192
 
42
193
  ## Code of Conduct
43
194
 
44
- Everyone interacting in the Orphic project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/orphic/blob/master/CODE_OF_CONDUCT.md).
195
+ Everyone interacting in the Orphic project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/orphic-inc/ruby-orphic-cli/blob/master/CODE_OF_CONDUCT.md).
@@ -4,8 +4,8 @@ require "orphic/cli"
4
4
  module Orphic
5
5
  # TODO
6
6
  CLI::UI::StdoutRouter.enable
7
- CLI::UI::Frame.open('Orphic Developer Experience') do
7
+ CLI::UI::Frame.open('Orphic Ruby CLI') do
8
8
  CLI::UI::Frame.open('Ruby CLI') { puts "The Orphic Ruby CLI utilizes the Thor gem for self-documenting commands and cli-ui gem for UI." }
9
- puts "Great minds never think alike."
9
+ puts "CLI, API, DB, e."
10
10
  end
11
11
  end
@@ -10,7 +10,7 @@ module Orphic
10
10
  desc "hello NAME", "This will greet you"
11
11
  long_desc <<-HELLO_WORLD
12
12
 
13
- `hello NAME` will print out a message to the person of your choosing.
13
+ `hello NAME` will print out a message to the person of your choosing. Todo: title screen.
14
14
 
15
15
  HELLO_WORLD
16
16
  option :upcase
@@ -17,18 +17,18 @@ module Orphic
17
17
  long_desc <<-CREATE_DISTRICT
18
18
  Create a new district with createDistrict. Base map includes the following options for branching:
19
19
 
20
- \x5--AWAKE - The entrypoint. Create command line interfaces, web portals, and related tech.
21
- \x5--GROW - User Interfaces and Experiences, projects here relate to front-end like React, CSS, and prototypes.
22
- \x5--DISCOVER - Your current location. Educate your peers or yourself.
23
- \x5--TRUST - Create authorization, cyphers, and cryptography-related projects.
24
- \x5--TRUTH - The gateway. Can be used to verify authorizations and is often tied to the Trust District.
25
- \x5--MAGIC - Let the magic begin! Here you can create ephemeral changes and middleware.
26
- \x5--POETRY - The poet, the lover, and the coder are of imagination all compact... Code as art.
27
- \x5--DRIVE - Real-time commands that will effect a concurrent stream or processes.
28
- \x5--WILL - Databases and permanence.
29
- \x5--LOYAL - The gauntlet. Test your loyalty with user or unit testing.
30
- \x5--ENTHUSE - Live events and promotions.
31
- \x5--CLARITY - The endgame, from your command-line, through staging and production.
20
+ \x5--AWAKE - I. Infant - The entrypoint. Create command line interfaces, web portals, and related tech. Factor: Codebase
21
+ \x5--GROW - II. Child - User Interfaces and Experiences. Projects here relate to front-end like React, CSS, and prototypes. Factor: Dependencies
22
+ \x5--DISCOVER - III. Adolescent - Your current location. Educate your peers or yourself. Factor: Config
23
+ \x5--TRUST - IV. Rookie - Create authorization, cyphers, and cryptography-related projects. Factor: Backing Services
24
+ \x5--TRUTH - V. Amateur - The gateway. Can be used to verify authorizations and should be tied to the Trust District. Factor: Build, Release, Run
25
+ \x5--MAGIC - VI. Associate - Let the magic begin! Create ephemeral changes and middleware. Factor: Processes
26
+ \x5--POETRY - VII. Professional - The poet, the lover, and the coder are of imagination all compact... Code as art. Factor: Port Binding
27
+ \x5--DRIVE - VIII. Master - Real-time commands that effects streams or processes. Factor: Concurrency
28
+ \x5--WILL - IX. Legend - Databases and permanence. Factor: Disposability
29
+ \x5--LOYAL - X. Penultimate - The gauntlet. Test your loyalty with user or unit testing. Factor: Dev/Prod Parity
30
+ \x5--ENTHUSE - XI. Ultimate - Live events and promotions. Factor: Logs
31
+ \x5--CLARITY - XII. Awesome - The endgame, from your command-line, through staging and production. Factor: Admin Process
32
32
  CREATE_DISTRICT
33
33
  option :awake
34
34
  option :grow
@@ -21,8 +21,9 @@ module Orphic
21
21
  subcommand "Cursor", Orphic::OrphicCli::Cursor
22
22
  desc "spools Paji", "Access a spool with Paji"
23
23
  subcommand "Paji", Orphic::OrphicCli::Paji
24
- # desc "spools thread Flash", OrphicCli::Thread::Cursor
25
- # subcommand "thread Flash", OrphicCli::Thread::Paji
24
+ desc "spools Thread Flash", "Threads atomize obtuse objects, Flash follows homeostatic patterns. Paired with Cursor or Paji."
25
+ subcommand "Thread Cursor", Orphic::OrphicCli::Thread
26
+ # subcommand "Thread Paji", Orphic::OrphicCli::Thread::Paji
26
27
  end
27
28
  end
28
29
  end
@@ -1,4 +1,6 @@
1
1
  require 'mongo'
2
+ require 'orphic/cli/sprites/flash'
3
+ require 'orphic/cli/sprites/geek'
2
4
 
3
5
  module Orphic
4
6
  module OrphicCli
@@ -20,10 +22,10 @@ module Orphic
20
22
  long_desc <<-GEEK_CURSOR
21
23
  Info about Geek's instructions, discs, and audio or video if supplied.
22
24
  GEEK_CURSOR
23
- option :ins
24
- option :disc
25
- option :audio
26
- option :video
25
+ option :ins, :required => true
26
+ option :disc, :type => :boolean
27
+ option :audio, :type => :hash
28
+ option :video, :type => :hash
27
29
  def GeekCursor ( currentGeek )
28
30
  CLI::UI::Frame.open( "Cursor :: Geek : " + currentGeek ) do
29
31
  puts "#{currentGeek}"
@@ -1,6 +1,11 @@
1
- # todo
2
1
  require 'orphic/cli/sprites/geek'
3
2
 
4
- # send discs here, this is where the lifecycle of a composition
5
- puts {"hi from Flash"}
3
+ # todo
4
+ #if flash
5
+ # flashState = true
6
+ #end
6
7
 
8
+ # send discs here, this is where the lifecycle of a composition
9
+ #if disc
10
+ # discState = true
11
+ #end
@@ -1,21 +1,46 @@
1
1
  # pseudo-code
2
- class Data
3
-
4
- # required datasets
5
- def i(ins)
6
- # if (Cursor <= i) then
7
- puts "i !<= 0"
8
- $ins = "ins"
9
- return $ins
2
+ module Orphic
3
+ module OrphicCli
4
+ class Thread < Thor
5
+ desc "Cursor", "This geek's location."
6
+ long_desc <<-CURSOR
7
+ The real Cursor.
8
+
9
+ CURSOR
10
+ def Cursor()
11
+ __FILE__
12
+ puts "The Real Cursor."
13
+ end
14
+ desc "Paji", "Pajination (Paginated journaling)"
15
+ long_desc <<-PAJI
16
+ The real Paji.
17
+
18
+ PAJI
19
+ def Paji()
20
+ __LINE__
21
+ puts "The Real Paji."
22
+ end
23
+ puts "Cursor"
24
+ puts "Paji"
25
+ # required datasets
26
+ def i(ins)
27
+
28
+ # if (Cursor <= i) then
29
+ puts "i !<= 0"
30
+ $ins = "ins"
31
+ return $ins
32
+ end
33
+ # instructions, bootload 'this'
34
+ def d(disc)
35
+ $d = "disc"
36
+ puts $d
37
+ puts "disc"
38
+ end
39
+ # check if additional instructions available, if not disconnect
40
+ # not required but recommended for when things break
41
+ $a = "audio"
42
+ $v = "video"
43
+
44
+ end
10
45
  end
11
- # instructions, bootload 'this'
12
- def d(disc)
13
- $d = "disc"
14
- puts $d
15
- puts "disc"
16
- end
17
- # check if additional instructions available, if not disconnect
18
- # not required but recommended for when things break
19
- $a = __FILE__
20
- $v = __LINE__
21
- end
46
+ end
@@ -1,3 +1,6 @@
1
+ require 'orphic/cli/sprites/flash'
2
+ require 'orphic/cli/sprites/geek'
3
+
1
4
  module Orphic
2
5
  module OrphicCli
3
6
  class Paji < Thor
@@ -1,3 +1,3 @@
1
1
  module Orphic
2
- VERSION = "0.1.8"
2
+ VERSION = "0.1.9"
3
3
  end
@@ -30,6 +30,7 @@ Gem::Specification.new do |spec|
30
30
  spec.require_paths = ["lib"]
31
31
  spec.add_dependency "thor", "~> 0.20"
32
32
  spec.add_dependency "cli-ui", "~> 1.4"
33
+ spec.add_dependency "dotenv", "~> 2.1"
33
34
  spec.add_dependency "stripe", "~> 5.28"
34
35
  spec.add_dependency "rails", "~> 6.0.3"
35
36
  spec.add_dependency "mongo", "~> 2.14.0.rc1"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: orphic
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8
4
+ version: 0.1.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kyle OBrien
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-12-29 00:00:00.000000000 Z
11
+ date: 2021-01-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
@@ -38,6 +38,20 @@ dependencies:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '1.4'
41
+ - !ruby/object:Gem::Dependency
42
+ name: dotenv
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '2.1'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '2.1'
41
55
  - !ruby/object:Gem::Dependency
42
56
  name: stripe
43
57
  requirement: !ruby/object:Gem::Requirement
@@ -236,7 +250,7 @@ metadata:
236
250
  bug_tracker_uri: https://github.com/orphic-inc/ruby-orphic-cli/issues
237
251
  changlog_uri: https://github.com/orphic-inc/ruby-orphic-cli/blob/main/CHANGELOG.md
238
252
  documentation_uri: https://github.com/orphic-inc/ruby-orphic-cli/blob/main/README.md
239
- source_code_uri: https://github.com/orphic-inc/ruby-orphic-cli/tree/v0.1.8
253
+ source_code_uri: https://github.com/orphic-inc/ruby-orphic-cli/tree/v0.1.9
240
254
  wiki_uri: https://github.com/orphic-inc/ruby-orphic-cli/wiki
241
255
  post_install_message:
242
256
  rdoc_options: []