sheldon 6.0.3 → 6.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. checksums.yaml +15 -5
  2. data/README.md +7 -3
  3. data/bin/sheldon +6 -9
  4. data/lib/sheldon/sheldon.rb +1 -1
  5. metadata +27 -47
checksums.yaml CHANGED
@@ -1,7 +1,17 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 77855c60ebc703afb4480d94731609dc83a0454a
4
- data.tar.gz: 315f4954777abaf94211c00f43fac71b98321b6a
2
+ !binary "U0hBMjU2":
3
+ metadata.gz: !binary |-
4
+ MGJlOTE0ZjE1M2QxYjhkNjU2YzBlZjYxNWU5OTliOWUwMTM0NzdiODZkMTZm
5
+ Mzk1ODQwNTU0ZGI1MjhkMDkxYQ==
6
+ data.tar.gz: !binary |-
7
+ MmE4ZGE0YmZmMzhlZGFmNmNhN2U0ZjliNTQ3NGMzMmM2YWMxOTE1MDRmY2U5
8
+ NDVjOTc1OWE3ZmU5NWUxNGFhNw==
5
9
  SHA512:
6
- metadata.gz: dd9cc116ae69569aca23a1f8e7ccadc7d705f8c36807950a6cf7104d43578b6f8b4186f1220251596753a8f367700f6abc9d5e2cae219e387e001e9799947263
7
- data.tar.gz: 2303df8a63f6d709dba17ba03b363d0b087a2744cfb7014793ca0b0739105bf507d70925928c3754639160fbf50c3767710888ca3b5b584f6376c29512e60127
10
+ metadata.gz: !binary |-
11
+ ODhhZWI2MmM2ZGJjNzM0OGQzODViOTAyNDk4YWFjYWFiOTFmNjdjOWI0M2U5
12
+ NDI4Nzk2ZjgxMGI2OGQ1YmYyNzM4YmEwZDRiODRiM2MwODgxYzE2NDAxNGE1
13
+ MzViZmI1MTk5OGVjYmM0NjRmMDQzNTQ1NzEzNGM4ODFjYjU4ZjM=
14
+ data.tar.gz: !binary |-
15
+ MTFjYWMzOTc4M2UwNDY4ZTkxZTUzYjE1ODdmNWZhZDc3ODgyZWMxNjM0OTFl
16
+ NDlmMTkyM2E4OTBiMzEzYjZmYjRjMzIxMDhhMjk3NGU1YjE5YzY4MmI1OGQ4
17
+ MTkyZWZhNGQ0MTM1ODc0ZmM2ZThiOGNmOTNkMWQ2MzkzMGFjMTA=
data/README.md CHANGED
@@ -5,6 +5,10 @@
5
5
 
6
6
  Sheldon makes it easy for you to manage your .dotfiles and configs across all your OS X / linux devices.
7
7
 
8
+ ### Requirements:
9
+ * Ruby 1.9.3 or above.
10
+ * The `build-essential` and `ruby-dev` packages on linux systems
11
+
8
12
  ### Installation:
9
13
  1) `gem install sheldon`
10
14
  2) `sheldon setup path/to/data/directory` to tell Sheldon where your existing data directory resides, or otherwise where a new data directory should be created.
@@ -18,14 +22,14 @@ sheldon learn ~/.gitconfig
18
22
  Recall Cue For File/Folder: git
19
23
  ```
20
24
 
21
- Sheldon will move the original file/directory into his data directory and symlink the file/directory back to it's original location.
25
+ Sheldon will move the original file/directory into his data directory and symlink the file/directory back to its original location.
22
26
  ```shell
23
27
  ls -al ~ | grep .gitconfig
24
28
  .gitconfig -> /Users/dave/sheldon/git/.gitconfig
25
29
  ```
26
30
 
27
31
  #### Recall your files on other machines (sheldon recall)
28
- Sheldon's `recall` command will symlink the file from the data directory to it's correct location on any filesystem (even under different home directories):
32
+ Sheldon's `recall` command will symlink the file from the data directory to its correct location on any filesystem (even under different home directories):
29
33
 
30
34
  ```shell
31
35
  sheldon recall git
@@ -44,7 +48,7 @@ Recall .zshrc (Y/N): y
44
48
  #### Open Your Configs In A Flash (sheldon open)
45
49
  Want to quickly tweak that config file but can't remember where it resides on your system? No worries, Sheldon's got your back:
46
50
  ```shell
47
- sheldon open git
51
+ sheldon open git_config
48
52
  # Your ~/.gitconfig will be opened in your $EDITOR
49
53
  ```
50
54
 
data/bin/sheldon CHANGED
@@ -7,6 +7,7 @@ module CLI
7
7
  class Sheldon < Thor
8
8
  map link: :recall
9
9
  map ls: :list
10
+ map add: :learn
10
11
  map "-v" => :version
11
12
  map "--version" => :version
12
13
 
@@ -16,7 +17,7 @@ module CLI
16
17
  def build(rel_path_to_target)
17
18
  abs_build_path = File.expand_path(rel_path_to_target)
18
19
  with_exception_handling do
19
- announce("Built #{File.basename(rel_path_to_target)}") if sheldon.build(abs_build_path)
20
+ prompt.ok("Built #{File.basename(rel_path_to_target)}") if sheldon.build(abs_build_path)
20
21
  end
21
22
  end
22
23
 
@@ -24,7 +25,7 @@ module CLI
24
25
  def forget(recall_cue=nil)
25
26
  recall_cue ||= cue_picker("What would you like to forget?")
26
27
  with_exception_handling { sheldon.forget(recall_cue) }
27
- announce("I've forgotten about #{recall_cue}. Let us never mention it again.")
28
+ prompt.ok("I've forgotten about #{recall_cue}. Let us never mention it again.")
28
29
  end
29
30
 
30
31
  desc "learn path_to_target", "Add a new file/folder to Sheldon's brain. Supply a recall_cue at runtime."
@@ -34,6 +35,7 @@ module CLI
34
35
  recall_cue = prompt.ask("Recall Cue For File/Folder", default: default_cue, required: true)
35
36
  with_exception_handling { sheldon.learn(recall_cue, abs_learn_path) }
36
37
  with_exception_handling { sheldon.recall(recall_cue) }
38
+ prompt.ok("Sheldon learn complete: #{default_cue}")
37
39
  end
38
40
 
39
41
  desc "list", "List all recall cues known by Sheldon"
@@ -73,7 +75,7 @@ module CLI
73
75
  with_exception_handling { sheldon.recall(recall_cue) }
74
76
  end
75
77
 
76
- announce("Recall Complete.")
78
+ prompt.ok("Sheldon recall complete: #{recall_cue}")
77
79
  end
78
80
 
79
81
  desc "setup path_to_data_directory", "Setup Sheldon on this host, supplying the path that where Sheldon's data directory can be found, or should be created."
@@ -96,16 +98,11 @@ module CLI
96
98
 
97
99
  desc "version", "Prints the current version of Sheldon"
98
100
  def version
99
- announce ::Sheldon::VERSION
101
+ puts ::Sheldon::VERSION
100
102
  end
101
103
 
102
104
  private
103
105
 
104
- def announce(message)
105
- logo = "💥".encode("utf-8")
106
- puts logo + " Sheldon" + logo + " #{message}"
107
- end
108
-
109
106
  def error_and_exit(message)
110
107
  prompt.error(message)
111
108
  exit!
@@ -1,7 +1,7 @@
1
1
  require "fileutils"
2
2
 
3
3
  class Sheldon
4
- VERSION = "6.0.3".freeze
4
+ VERSION = "6.0.4".freeze
5
5
  attr_reader :brain, :builder
6
6
 
7
7
  def initialize(sheldon_data_dir)
metadata CHANGED
@@ -1,105 +1,85 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sheldon
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.0.3
4
+ version: 6.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Jones
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-05-26 00:00:00.000000000 Z
11
+ date: 2018-06-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - ! '>='
18
18
  - !ruby/object:Gem::Version
19
- version: '0.9'
19
+ version: '0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - ! '>='
25
25
  - !ruby/object:Gem::Version
26
- version: '0.9'
26
+ version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: tty-prompt
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: :runtime
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: rake
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ~>
45
+ - - ! '>='
46
46
  - !ruby/object:Gem::Version
47
- version: '11.1'
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
- version: '11.1'
54
+ version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rspec
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ~>
59
+ - - ! '>='
60
60
  - !ruby/object:Gem::Version
61
- version: '3.3'
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
- version: '3.3'
68
+ version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: coveralls
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - ~>
74
- - !ruby/object:Gem::Version
75
- version: 0.8.13
76
- type: :development
77
- prerelease: false
78
- version_requirements: !ruby/object:Gem::Requirement
79
- requirements:
80
- - - ~>
73
+ - - ! '>='
81
74
  - !ruby/object:Gem::Version
82
- version: 0.8.13
83
- - !ruby/object:Gem::Dependency
84
- name: byebug
85
- requirement: !ruby/object:Gem::Requirement
86
- requirements:
87
- - - ~>
88
- - !ruby/object:Gem::Version
89
- version: '9.0'
90
- - - '>='
91
- - !ruby/object:Gem::Version
92
- version: 9.0.0
75
+ version: '0'
93
76
  type: :development
94
77
  prerelease: false
95
78
  version_requirements: !ruby/object:Gem::Requirement
96
79
  requirements:
97
- - - ~>
98
- - !ruby/object:Gem::Version
99
- version: '9.0'
100
- - - '>='
80
+ - - ! '>='
101
81
  - !ruby/object:Gem::Version
102
- version: 9.0.0
82
+ version: '0'
103
83
  description: Another config and dotfile manager for unix environments
104
84
  email: david@dvj.me.uk
105
85
  executables:
@@ -107,16 +87,16 @@ executables:
107
87
  extensions: []
108
88
  extra_rdoc_files: []
109
89
  files:
90
+ - LICENSE
91
+ - README.md
92
+ - bin/sheldon
93
+ - lib/sheldon.rb
110
94
  - lib/sheldon/brain.rb
111
95
  - lib/sheldon/builder.rb
112
96
  - lib/sheldon/exceptions.rb
113
97
  - lib/sheldon/helpers.rb
114
98
  - lib/sheldon/memory.rb
115
99
  - lib/sheldon/sheldon.rb
116
- - lib/sheldon.rb
117
- - bin/sheldon
118
- - LICENSE
119
- - README.md
120
100
  homepage: https://github.com/dvjones89/sheldon
121
101
  licenses:
122
102
  - MIT
@@ -127,17 +107,17 @@ require_paths:
127
107
  - lib
128
108
  required_ruby_version: !ruby/object:Gem::Requirement
129
109
  requirements:
130
- - - '>='
110
+ - - ! '>='
131
111
  - !ruby/object:Gem::Version
132
112
  version: '0'
133
113
  required_rubygems_version: !ruby/object:Gem::Requirement
134
114
  requirements:
135
- - - '>='
115
+ - - ! '>='
136
116
  - !ruby/object:Gem::Version
137
117
  version: '0'
138
118
  requirements: []
139
119
  rubyforge_project:
140
- rubygems_version: 2.0.14.1
120
+ rubygems_version: 2.7.7
141
121
  signing_key:
142
122
  specification_version: 4
143
123
  summary: Another config and dotfile manager for unix environments