telepath 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: e34c44c95862221a4d1cfb6bdf316d68ee622b2e
4
+ data.tar.gz: 3754468fd1ecdfcc09f2fd4b3c3ddb817386b26e
5
+ SHA512:
6
+ metadata.gz: 0526648fba0e0336350967b4bf1d33c062c934efe718658698c6f9c6c3a1fccd83474fde450d5d90e78ea9626ee966291f060ab74fc06c9001f6274202eb88aa
7
+ data.tar.gz: b613d99f4e5096bc84f1d6f703c50d9e54175dabc2548f01f0150f9d3030a492b1bb9c5080371bc649abe99323995433ff1a96e5330a55d6c0a9301009d21863
data/.gitignore ADDED
@@ -0,0 +1,17 @@
1
+ *.gem
2
+ *.rbc
3
+ .bundle
4
+ .config
5
+ .yardoc
6
+ Gemfile.lock
7
+ InstalledFiles
8
+ _yardoc
9
+ coverage
10
+ doc/
11
+ lib/bundler/man
12
+ pkg
13
+ rdoc
14
+ spec/reports
15
+ test/tmp
16
+ test/version_tmp
17
+ tmp
data/.ruby-gemset ADDED
@@ -0,0 +1 @@
1
+ telepath
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ ruby-2.0.0-p247
data/.travis.yml ADDED
@@ -0,0 +1,20 @@
1
+ language: ruby
2
+ rvm:
3
+ - 2.0.0
4
+ - 1.9.3
5
+ - 1.9.2
6
+ - rbx-19mode
7
+
8
+ - ruby-head
9
+ - jruby-19mode
10
+
11
+ script: bundle exec rspec
12
+ before_install:
13
+ - gem update bundler
14
+ before_script:
15
+ - bundle exec gem list
16
+
17
+ matrix:
18
+ allow_failures:
19
+ - rvm: ruby-head
20
+ - rvm: jruby-19mode
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in telepath.gemspec
4
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2013 Anthony Cook
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.markdown ADDED
@@ -0,0 +1,53 @@
1
+ Telepath
2
+ ========
3
+
4
+ Spooky action at a distance.
5
+
6
+ [![Build Status](https://travis-ci.org/acook/telepath.png?branch=master)](https://travis-ci.org/acook/telepath)
7
+ [![Code Climate](https://codeclimate.com/github/acook/telepath.png)](https://codeclimate.com/github/acook/telepath)
8
+ [![Dependency Status](https://gemnasium.com/acook/telepath.png)](https://gemnasium.com/acook/telepath)
9
+
10
+ What the hell is this all about?
11
+ --------------------------------
12
+
13
+ Picture this: Half a dozen shells open. Some zsh, some bash, and some fish. Severals editors as well, a couple vim sessions, sublime, lightable.
14
+
15
+ How do you get information from one to another?
16
+
17
+ The clipboard, right? Some systems have multiple clipboards, and some apps even let you save your clipboard history.
18
+
19
+ But what if there was another way.
20
+
21
+ Another way for them to communicate near instantly, dare I say ... telepathically.
22
+
23
+ Passing silently through barriers like the T1000 from Terminator 2.
24
+
25
+ Or a ghost. A ghost is good too.
26
+
27
+ How does full text search sound? Pretty good, eh?
28
+
29
+ How about relative path correction between different working directories?
30
+
31
+ What about shared, persistant, distributed, fully decorated multi-client multi-host history?
32
+
33
+ Yeah thats pretty much what I thought. Now go change your pants, I'll still be here when you get back.
34
+
35
+
36
+ Contributing
37
+ ------------
38
+
39
+ 1. Fork it
40
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
41
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
42
+ 4. Push to the branch (`git push origin my-new-feature`)
43
+ 5. Create new Pull Request
44
+
45
+
46
+ Who made this anyway?
47
+ ---------------------
48
+
49
+ I'm glad you asked!
50
+
51
+ Anthony M. Cook 2013
52
+
53
+
data/Rakefile ADDED
@@ -0,0 +1 @@
1
+ require 'bundler/gem_tasks'
@@ -0,0 +1,35 @@
1
+ require 'moneta'
2
+ require 'daybreak'
3
+
4
+ module Telepath
5
+ class Store
6
+
7
+ class << self
8
+ def path
9
+ Pathname.new('~/').expand_path
10
+ end
11
+
12
+ def file
13
+ '.telepath.db'
14
+ end
15
+
16
+ def location
17
+ path.join file
18
+ end
19
+
20
+
21
+ def create
22
+ new Moneta.new :Daybreak, file: location
23
+ end
24
+ end
25
+
26
+ def initialize store
27
+ @store = store
28
+ end
29
+
30
+ protected
31
+
32
+ attr_accessor :store
33
+
34
+ end
35
+ end
@@ -0,0 +1,3 @@
1
+ module Telepath
2
+ VERSION = '0.0.1'
3
+ end
data/lib/telepath.rb ADDED
@@ -0,0 +1,12 @@
1
+ require 'pathname'
2
+
3
+ require 'bundler/setup'
4
+
5
+ require 'telepath/version'
6
+ require 'telepath/store'
7
+
8
+ module Telepath
9
+ def self.root
10
+ Pathname.new(__FILE__).dirname.expand_path.parent
11
+ end
12
+ end
@@ -0,0 +1,7 @@
1
+ require_relative '../lib/telepath'
2
+
3
+ require 'rspec'
4
+ require 'pry' unless ENV['CI'] == 'true'
5
+
6
+ Dir.chdir Telepath.root
7
+
@@ -0,0 +1,46 @@
1
+ require_relative 'spec_helper'
2
+
3
+ describe Telepath::Store do
4
+ it 'exists' do
5
+ expect(Telepath::Store).to be
6
+ end
7
+
8
+ let(:default_file){ '.telepath.db' }
9
+ let(:default_path){ File.expand_path '~' }
10
+ let(:default_location){ "#{default_path}/#{default_file}" }
11
+
12
+ describe '.file' do
13
+ subject(:file){ described_class.file }
14
+
15
+ it 'matches defaults' do
16
+ expect(file.to_s).to eq default_file
17
+ end
18
+ end
19
+
20
+ describe '.path' do
21
+ subject(:path){ described_class.path }
22
+
23
+ it 'defaults to home directory' do
24
+ expect(path.to_s).to eq default_path
25
+ end
26
+ end
27
+
28
+ describe '.location' do
29
+ subject(:path){ described_class.location }
30
+
31
+ it 'defaults to a combination of the path and file' do
32
+ expect(path.to_s).to eq default_location
33
+ end
34
+ end
35
+
36
+ describe '.create' do
37
+ it 'relays the new data store to new' do
38
+ expect(described_class).to receive(:new).with anything
39
+ described_class.create
40
+ end
41
+
42
+ it 'assigns the store object' do
43
+ expect(described_class.create.send(:store)).to be
44
+ end
45
+ end
46
+ end
@@ -0,0 +1,7 @@
1
+ require_relative 'spec_helper'
2
+
3
+ describe Telepath do
4
+ it 'exists' do
5
+ expect(Telepath).to be
6
+ end
7
+ end
data/telepath.gemspec ADDED
@@ -0,0 +1,39 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'telepath/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = 'telepath'
8
+ spec.version = Telepath::VERSION
9
+ spec.authors = ['Anthony Cook']
10
+ spec.email = ['anthonymichaelcook@gmail.com']
11
+ spec.description = %q{Sorta like IPC for people to GTD.}
12
+ spec.summary = %q{Spooky action at a distance.}
13
+ spec.homepage = 'http://github.com/acook/telepath#readme'
14
+ spec.license = 'MIT'
15
+
16
+ spec.files = `git ls-files`.split($/)
17
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
18
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
+ spec.require_paths = ['lib']
20
+
21
+ # storage
22
+ spec.add_dependency 'moneta'
23
+ spec.add_dependency 'daybreak'
24
+
25
+ # commandline
26
+ #spec.add_dependency 'clamp'
27
+ #spec.add_dependency 'highline'
28
+
29
+ # development
30
+ spec.add_development_dependency 'bundler', '~> 1.3'
31
+ spec.add_development_dependency 'rake'
32
+ # debugging
33
+ spec.add_development_dependency 'pry'
34
+ spec.add_development_dependency 'pry-theme'
35
+ # testing
36
+ spec.add_development_dependency 'rspec', '~> 2'
37
+ #spec.add_development_dependency 'bogus'
38
+ #spec.add_development_dependency 'ffaker'
39
+ end
data/test.db ADDED
Binary file
metadata ADDED
@@ -0,0 +1,161 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: telepath
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Anthony Cook
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2013-08-31 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: moneta
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - '>='
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - '>='
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: daybreak
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - '>='
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - '>='
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: bundler
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ~>
46
+ - !ruby/object:Gem::Version
47
+ version: '1.3'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ~>
53
+ - !ruby/object:Gem::Version
54
+ version: '1.3'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rake
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - '>='
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: pry
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - '>='
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - '>='
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: pry-theme
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - '>='
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - '>='
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: rspec
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ~>
102
+ - !ruby/object:Gem::Version
103
+ version: '2'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ~>
109
+ - !ruby/object:Gem::Version
110
+ version: '2'
111
+ description: Sorta like IPC for people to GTD.
112
+ email:
113
+ - anthonymichaelcook@gmail.com
114
+ executables: []
115
+ extensions: []
116
+ extra_rdoc_files: []
117
+ files:
118
+ - .gitignore
119
+ - .ruby-gemset
120
+ - .ruby-version
121
+ - .travis.yml
122
+ - Gemfile
123
+ - LICENSE.txt
124
+ - README.markdown
125
+ - Rakefile
126
+ - lib/telepath.rb
127
+ - lib/telepath/store.rb
128
+ - lib/telepath/version.rb
129
+ - spec/spec_helper.rb
130
+ - spec/store_spec.rb
131
+ - spec/telepath_spec.rb
132
+ - telepath.gemspec
133
+ - test.db
134
+ homepage: http://github.com/acook/telepath#readme
135
+ licenses:
136
+ - MIT
137
+ metadata: {}
138
+ post_install_message:
139
+ rdoc_options: []
140
+ require_paths:
141
+ - lib
142
+ required_ruby_version: !ruby/object:Gem::Requirement
143
+ requirements:
144
+ - - '>='
145
+ - !ruby/object:Gem::Version
146
+ version: '0'
147
+ required_rubygems_version: !ruby/object:Gem::Requirement
148
+ requirements:
149
+ - - '>='
150
+ - !ruby/object:Gem::Version
151
+ version: '0'
152
+ requirements: []
153
+ rubyforge_project:
154
+ rubygems_version: 2.0.6
155
+ signing_key:
156
+ specification_version: 4
157
+ summary: Spooky action at a distance.
158
+ test_files:
159
+ - spec/spec_helper.rb
160
+ - spec/store_spec.rb
161
+ - spec/telepath_spec.rb