mark 0.0.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.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: be67614e58e9837a50800bcb9ae1c10d94a8be7c
4
+ data.tar.gz: 72f4e7b746ebf7efdd6442b04f4e1b09f71c8f45
5
+ SHA512:
6
+ metadata.gz: 0e6d9fdc243372a822c921b719f302b813ff2685f471b6f896eb33b5b3b24cde164da7b951d94662f46533a468c24351a25b2bca0f5e569d85089da9c5f73463
7
+ data.tar.gz: 11ffe859159ffb304b615a047148ab132aaf7fde4953b313a36569ac90e12e2d0c53650ae6569667dcc0d122abc304a383810fa6bc28983b10e29e24690c0bd3
@@ -0,0 +1,3 @@
1
+ ## mark
2
+
3
+ Directory shortcuts
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env ruby
2
+ # coding: utf-8
3
+
4
+ $:.unshift File.join(File.dirname(__FILE__), *%w[.. lib])
5
+
6
+ require 'mark'
7
+
8
+ Mark::process(*ARGV)
@@ -0,0 +1,17 @@
1
+ # coding: utf-8
2
+
3
+ begin
4
+ require 'rubygems'
5
+ rescue LoadError
6
+ end
7
+
8
+ $:.unshift File.join(File.dirname(__FILE__), *%w[.. lib])
9
+
10
+ require 'mark/label'
11
+ require 'mark/jump'
12
+ require 'mark/error'
13
+ require 'mark/main'
14
+
15
+ module Mark
16
+ VERSION = '0.0.1'
17
+ end
@@ -0,0 +1,7 @@
1
+ # coding: utf-8
2
+
3
+ module Mark
4
+ def self.error!(command, *argv)
5
+ puts "Command \"#{command}\" not found: [#{command} #{argv.join(' ')}]"
6
+ end
7
+ end
@@ -0,0 +1,7 @@
1
+ # coding: utf-8
2
+
3
+ module Mark
4
+ def self.jump(label, *argv)
5
+ puts "Jumping to #{label}"
6
+ end
7
+ end
@@ -0,0 +1,7 @@
1
+ # coding: utf-8
2
+
3
+ module Mark
4
+ def self.label(label, *argv)
5
+ puts "Saving #{label}"
6
+ end
7
+ end
@@ -0,0 +1,14 @@
1
+ # coding: utf-8
2
+
3
+ module Mark
4
+ def self.process(command, *argv)
5
+ case command
6
+ when 'label'
7
+ self.label(*argv)
8
+ when 'jump'
9
+ self.jump(*argv)
10
+ else
11
+ self.error!(command, *argv)
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,76 @@
1
+ ## This is the rakegem gemspec template. Make sure you read and understand
2
+ ## all of the comments. Some sections require modification, and others can
3
+ ## be deleted if you don't need them. Once you understand the contents of
4
+ ## this file, feel free to delete any comments that begin with two hash marks.
5
+ ## You can find comprehensive Gem::Specification documentation, at
6
+ ## http://docs.rubygems.org/read/chapter/20
7
+ Gem::Specification.new do |s|
8
+ s.specification_version = 2 if s.respond_to? :specification_version=
9
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
10
+ s.rubygems_version = '1.3.5'
11
+
12
+ ## Leave these as is they will be modified for you by the rake gemspec task.
13
+ ## If your rubyforge_project name is different, then edit it and comment out
14
+ ## the sub! line in the Rakefile
15
+ s.name = 'mark'
16
+ s.version = '0.0.1'
17
+ s.date = '2013-09-23'
18
+ s.rubyforge_project = 'boom'
19
+
20
+ ## Make sure your summary is short. The description may be as long
21
+ ## as you like.
22
+ s.summary = "mark lets you easily mark directories and jump between them"
23
+ s.description = "cd ../../projects/blah gets old quick. Mark allows you to
24
+ mark directories with a shortcut and jump between them with ease."
25
+
26
+ ## List the primary authors. If there are a bunch of authors, it's probably
27
+ ## better to set the email to an email list or something. If you don't have
28
+ ## a custom homepage, consider using your GitHub URL or the like.
29
+ s.authors = ["Jordan Scales"]
30
+ s.email = 'scalesjordan@gmail.com'
31
+ s.homepage = 'https://github.com/jdan/mark'
32
+ # s.license = 'MIT'
33
+
34
+ ## This gets added to the $LOAD_PATH so that 'lib/NAME.rb' can be required as
35
+ ## require 'NAME.rb' or'/lib/NAME/file.rb' can be as require 'NAME/file.rb'
36
+ s.require_paths = %w[lib]
37
+
38
+ ## This sections is only necessary if you have C extensions.
39
+ #s.require_paths << 'ext'
40
+ #s.extensions = %w[ext/extconf.rb]
41
+
42
+ ## If your gem includes any executables, list them here.
43
+ s.executables = ["mark"]
44
+ s.default_executable = 'mark'
45
+
46
+ ## Specify any RDoc options here. You'll want to add your README and
47
+ ## LICENSE files to the extra_rdoc_files list.
48
+ s.rdoc_options = ["--charset=UTF-8"]
49
+ s.extra_rdoc_files = %w[README.md]
50
+
51
+ ## List your runtime dependencies here. Runtime dependencies are those
52
+ ## that are needed for an end user to actually USE your code.
53
+
54
+ ## List your development dependencies here. Development dependencies are
55
+ ## those that are only needed during development
56
+
57
+ ## Leave this section as-is. It will be automatically generated from the
58
+ ## contents of your Git repository via the gemspec task. DO NOT REMOVE
59
+ ## THE MANIFEST COMMENTS, they are used as delimiters by the task.
60
+ # = MANIFEST =
61
+ s.files = %w[
62
+ README.md
63
+ lib/mark.rb
64
+ lib/mark/main.rb
65
+ lib/mark/label.rb
66
+ lib/mark/jump.rb
67
+ lib/mark/error.rb
68
+ bin/mark
69
+ mark.gemspec
70
+ ]
71
+ # = MANIFEST =
72
+
73
+ ## Test files will be grabbed from the file list. Make sure the path glob
74
+ ## matches what you actually use.
75
+ # s.test_files = s.files.select { |path| path =~ /^test\/test_.*\.rb/ }
76
+ end
metadata ADDED
@@ -0,0 +1,55 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: mark
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Jordan Scales
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2013-09-23 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: |-
14
+ cd ../../projects/blah gets old quick. Mark allows you to
15
+ mark directories with a shortcut and jump between them with ease.
16
+ email: scalesjordan@gmail.com
17
+ executables:
18
+ - mark
19
+ extensions: []
20
+ extra_rdoc_files:
21
+ - README.md
22
+ files:
23
+ - README.md
24
+ - lib/mark.rb
25
+ - lib/mark/main.rb
26
+ - lib/mark/label.rb
27
+ - lib/mark/jump.rb
28
+ - lib/mark/error.rb
29
+ - bin/mark
30
+ - mark.gemspec
31
+ homepage: https://github.com/jdan/mark
32
+ licenses: []
33
+ metadata: {}
34
+ post_install_message:
35
+ rdoc_options:
36
+ - --charset=UTF-8
37
+ require_paths:
38
+ - lib
39
+ required_ruby_version: !ruby/object:Gem::Requirement
40
+ requirements:
41
+ - - '>='
42
+ - !ruby/object:Gem::Version
43
+ version: '0'
44
+ required_rubygems_version: !ruby/object:Gem::Requirement
45
+ requirements:
46
+ - - '>='
47
+ - !ruby/object:Gem::Version
48
+ version: '0'
49
+ requirements: []
50
+ rubyforge_project: boom
51
+ rubygems_version: 2.0.6
52
+ signing_key:
53
+ specification_version: 2
54
+ summary: mark lets you easily mark directories and jump between them
55
+ test_files: []