instructions_list 1.0.1.beta → 1.0.2.beta
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/il +30 -30
- data/lib/instructions_list/version.rb +1 -1
- metadata +2 -5
- data/.instructions/key +0 -1
- data/.instructions/state +0 -3
- data/instructions/.keep +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cf2c7238c6cb5eb05eb8b12f238a189853af5d7d
|
4
|
+
data.tar.gz: 748a22a30fae82f2a33e1b6bdb6608867b372e44
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2d1c31d9725f4424d2e39c544180099d4dbb88c16b52e4b31904a0b92bb2c0f059fa972f1d7ef83c10ad24ef79237231e40c3693e0cb78d7f9ad73b710b0772d
|
7
|
+
data.tar.gz: 4f96b6f5d50b5cff428579ffc24127b38e4bfbc1f1338b5e68093d48c8ec65361045ca6b5cdf40d2aa0a31f7947af2fd88c9173f20a4f90c05a7e97dac80751f
|
data/exe/il
CHANGED
@@ -62,28 +62,28 @@ module InstructionsList
|
|
62
62
|
|
63
63
|
desc "instructions", "list all instructions"
|
64
64
|
def instructions
|
65
|
+
# puts ""
|
66
|
+
# list_from "Core","#{File.join(File.dirname(__FILE__), "../instructions/")}" do |path|
|
67
|
+
# say show_command_for path
|
68
|
+
# end
|
65
69
|
puts ""
|
66
|
-
list_from "
|
70
|
+
list_from "Instructions", CACHE << "/" do |path|
|
67
71
|
say show_command_for path
|
68
72
|
end
|
69
73
|
puts ""
|
70
|
-
list_from "
|
71
|
-
|
72
|
-
end
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
say show_command_for path
|
84
|
-
end
|
85
|
-
|
86
|
-
puts ""
|
74
|
+
# list_from "Home Directory","#{ENV['HOME']}/instructions/" do |path|
|
75
|
+
# say show_command_for path
|
76
|
+
# end
|
77
|
+
#
|
78
|
+
# puts ""
|
79
|
+
#
|
80
|
+
# return if `pwd`.chomp == ENV['HOME']
|
81
|
+
#
|
82
|
+
# list_from "Current Project","./instructions/" do |path|
|
83
|
+
# say show_command_for path
|
84
|
+
# end
|
85
|
+
#
|
86
|
+
# puts ""
|
87
87
|
end
|
88
88
|
|
89
89
|
desc "info" , "display information"
|
@@ -95,7 +95,9 @@ module InstructionsList
|
|
95
95
|
desc "connect KEY" , "connect to a list"
|
96
96
|
def connect key
|
97
97
|
instructable do
|
98
|
+
disconnect
|
98
99
|
`echo #{key} > ./.instructions/key`
|
100
|
+
`il sync`
|
99
101
|
end
|
100
102
|
|
101
103
|
end
|
@@ -103,6 +105,7 @@ module InstructionsList
|
|
103
105
|
desc "disconnect" , "disconnect from a list"
|
104
106
|
def disconnect
|
105
107
|
instructable do
|
108
|
+
`il sync --reset`
|
106
109
|
`rm ./.instructions/key`
|
107
110
|
end
|
108
111
|
end
|
@@ -113,10 +116,10 @@ module InstructionsList
|
|
113
116
|
CHECKED.clear
|
114
117
|
STACK.clear
|
115
118
|
instructable do
|
116
|
-
load_from "Defaults","#{File.join(File.dirname(__FILE__), "../instructions/")}"
|
117
|
-
load_from "User","#{ENV['HOME']}/instructions/"
|
118
|
-
load_from "Project","./instructions/"
|
119
|
-
load_from "
|
119
|
+
#load_from "Defaults","#{File.join(File.dirname(__FILE__), "../instructions/")}"
|
120
|
+
#load_from "User","#{ENV['HOME']}/instructions/"
|
121
|
+
#load_from "Project","./instructions/"
|
122
|
+
load_from "Instructions", CACHE << "/"
|
120
123
|
handle_instruction name,STACK,options[:force]
|
121
124
|
end
|
122
125
|
end
|
@@ -129,18 +132,15 @@ module InstructionsList
|
|
129
132
|
File.read(KEY_PATH).chomp
|
130
133
|
end
|
131
134
|
def instructable
|
135
|
+
|
136
|
+
return false unless home?
|
137
|
+
|
132
138
|
if Dir.exists? "./instructions"
|
133
139
|
if Dir.exists? "./.instructions"
|
134
|
-
if
|
135
|
-
if File.exists? "./.instructions/key"
|
136
|
-
yield
|
137
|
-
return
|
138
|
-
end
|
139
|
-
else
|
140
|
+
if File.exists? "./.instructions/key"
|
140
141
|
yield
|
141
|
-
return
|
142
|
+
return
|
142
143
|
end
|
143
|
-
|
144
144
|
end
|
145
145
|
end
|
146
146
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: instructions_list
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2.beta
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Coco Coder (aka Delaney Burke)
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-10-
|
11
|
+
date: 2017-10-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -119,8 +119,6 @@ extra_rdoc_files: []
|
|
119
119
|
files:
|
120
120
|
- ".byebug_history"
|
121
121
|
- ".gitignore"
|
122
|
-
- ".instructions/key"
|
123
|
-
- ".instructions/state"
|
124
122
|
- CODE_OF_CONDUCT.md
|
125
123
|
- Gemfile
|
126
124
|
- LICENSE.txt
|
@@ -129,7 +127,6 @@ files:
|
|
129
127
|
- bin/console
|
130
128
|
- bin/setup
|
131
129
|
- exe/il
|
132
|
-
- instructions/.keep
|
133
130
|
- instructions_list.gemspec
|
134
131
|
- lib/instructions_list.rb
|
135
132
|
- lib/instructions_list/version.rb
|
data/.instructions/key
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
ILSCZUWANID
|
data/.instructions/state
DELETED
data/instructions/.keep
DELETED
File without changes
|