space2dot 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -1
- data/README.md +11 -8
- data/lib/space2dot/version.rb +1 -1
- data/lib/space2dot.rb +7 -5
- metadata +13 -13
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 47da8f3ded44d86847efe29b5661b98916cfbe01
|
4
|
+
data.tar.gz: 385774c2cf493f27d7c4278df9f608627f6958d6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7c110e568467a26a932893a61fabbde539187c18741149d7a5404e132181abf843ad2aa8eeecc4451cb89a0e96611b484e2e0e9b57a659de9664f779628401a1
|
7
|
+
data.tar.gz: d58330ff4e711a32d59e8771cfabfb234bed6231c94f5d36c7381c635fafbb87840a66fcfd013586fe005990e840cdbe093ddee06278e0b80b61fb8407aadb9b
|
data/.gitignore
CHANGED
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Space2dot
|
2
2
|
## What
|
3
|
-
|
3
|
+
Change the space into dot.
|
4
4
|
|
5
5
|
## Installation
|
6
6
|
|
@@ -16,17 +16,19 @@ Or install it yourself as:
|
|
16
16
|
|
17
17
|
$ gem install space2dot
|
18
18
|
|
19
|
-
If your computer is
|
19
|
+
If your computer is Ubuntu
|
20
20
|
|
21
|
-
$ sudo apt-get install
|
21
|
+
$ sudo apt-get install xsel
|
22
22
|
|
23
|
-
|
23
|
+
If your computer is CentOS
|
24
24
|
|
25
|
-
$
|
26
|
-
|
27
|
-
$ alias pbpaste='xclip -selection clipboard -o'
|
25
|
+
$ sudo yum -y install xsel
|
28
26
|
|
29
|
-
|
27
|
+
You need to alias
|
28
|
+
|
29
|
+
$ alias pbcopy='xsel --clipboard --input'
|
30
|
+
|
31
|
+
## Usage
|
30
32
|
|
31
33
|
From the terminal:
|
32
34
|
|
@@ -40,3 +42,4 @@ From the terminal:
|
|
40
42
|
3. Commit your changes (`git commit -am 'Add some feature'`)
|
41
43
|
4. Push to the branch (`git push origin my-new-feature`)
|
42
44
|
5. Create new Pull Request
|
45
|
+
|
data/lib/space2dot/version.rb
CHANGED
data/lib/space2dot.rb
CHANGED
@@ -1,11 +1,13 @@
|
|
1
1
|
require 'space2dot/version'
|
2
2
|
|
3
3
|
module Space2dot
|
4
|
-
|
5
|
-
|
6
|
-
|
4
|
+
class << self
|
5
|
+
def convert(argv)
|
6
|
+
argv.length == 1 ? argv[0].strip.gsub(/\s/, '.').insert(0, '.') : argv.join('.').insert(0, '.')
|
7
|
+
end
|
7
8
|
|
8
|
-
|
9
|
-
|
9
|
+
def copy_command(dot_include_sentence)
|
10
|
+
"echo #{dot_include_sentence} | ruby -pe 'chomp' | pbcopy"
|
11
|
+
end
|
10
12
|
end
|
11
13
|
end
|
metadata
CHANGED
@@ -1,55 +1,55 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: space2dot
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- sachin21
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-12-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - ~>
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '1.6'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - ~>
|
24
|
+
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '1.6'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
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: :development
|
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: rspec
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- -
|
45
|
+
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
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
54
|
version: '0'
|
55
55
|
description: Convert to space the dot
|
@@ -60,8 +60,8 @@ executables:
|
|
60
60
|
extensions: []
|
61
61
|
extra_rdoc_files: []
|
62
62
|
files:
|
63
|
-
- .gitignore
|
64
|
-
- .rspec
|
63
|
+
- ".gitignore"
|
64
|
+
- ".rspec"
|
65
65
|
- Gemfile
|
66
66
|
- LICENSE.txt
|
67
67
|
- README.md
|
@@ -82,17 +82,17 @@ require_paths:
|
|
82
82
|
- lib
|
83
83
|
required_ruby_version: !ruby/object:Gem::Requirement
|
84
84
|
requirements:
|
85
|
-
- -
|
85
|
+
- - ">="
|
86
86
|
- !ruby/object:Gem::Version
|
87
87
|
version: '0'
|
88
88
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
89
89
|
requirements:
|
90
|
-
- -
|
90
|
+
- - ">="
|
91
91
|
- !ruby/object:Gem::Version
|
92
92
|
version: '0'
|
93
93
|
requirements: []
|
94
94
|
rubyforge_project:
|
95
|
-
rubygems_version: 2.
|
95
|
+
rubygems_version: 2.4.5
|
96
96
|
signing_key:
|
97
97
|
specification_version: 4
|
98
98
|
summary: Convert to space the dot
|