fwac 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.
- checksums.yaml +7 -0
- data/.gitignore +1 -0
- data/Gemfile +4 -0
- data/LICENSE.md +21 -0
- data/README.md +19 -0
- data/Rakefile +2 -0
- data/bin/fwac +15 -0
- data/fwac.gemspec +22 -0
- data/lib/fwac.rb +25 -0
- metadata +82 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 792e20b614bead563c02dec7db1e2082d0ab7816
|
4
|
+
data.tar.gz: c3ed0f9f4e429f5ae3727906922018a4aa382006
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 70896d9706fdd0748ac69f31d2dab6b2379cbdf450be0375de225f77b1d6840f15bc0707a20a152bdbb1aa3f87e7c91ea27071c808a6522024e4caead218de83
|
7
|
+
data.tar.gz: 5f333853c11a12217e352f7df915cf3fced2a5f45e7e617df729b586329dfe38826787cf50815b34de9e4a3962ab968815543cc45bac01573c62dd6179bcabb6
|
data/.gitignore
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
pkg
|
data/Gemfile
ADDED
data/LICENSE.md
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License
|
2
|
+
|
3
|
+
Modifications (c) Zak Kristjanson
|
4
|
+
Original code (c) Zach Holman, http://zachholman.com
|
5
|
+
|
6
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
7
|
+
this software and associated documentation files (the "Software"), to deal in
|
8
|
+
the Software without restriction, including without limitation the rights to
|
9
|
+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
10
|
+
the Software, and to permit persons to whom the Software is furnished to do so,
|
11
|
+
subject to the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be included in all
|
14
|
+
copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
17
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
18
|
+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
19
|
+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
20
|
+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
21
|
+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
fwac helps you write really obnoxious text from your command line. Try it in
|
2
|
+
your commit messages- your coworkers will love you.
|
3
|
+
|
4
|
+
## usage
|
5
|
+
|
6
|
+
$ fwac FWAC IS THE BEST
|
7
|
+
FWAC IS THE BEST
|
8
|
+
|
9
|
+
It also copies it to your clipboard for easy pasting. That's it.
|
10
|
+
|
11
|
+
## install
|
12
|
+
|
13
|
+
$ gem install fwac
|
14
|
+
|
15
|
+
|
16
|
+
## ✪
|
17
|
+
Now fwac by [ubercow](https://twitter.com/_ubercow)
|
18
|
+
|
19
|
+
Originally ⒷⓊⒷⓈ by [ⒽⓄⓁⓂⒶⓃ](https://twitter.com/holman)
|
data/Rakefile
ADDED
data/bin/fwac
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
$:.unshift File.expand_path('../../lib', __FILE__)
|
3
|
+
require 'fwac'
|
4
|
+
|
5
|
+
if $stdin.stat.size > 0
|
6
|
+
args = $stdin.read
|
7
|
+
else
|
8
|
+
args = ARGV.join(' ')
|
9
|
+
end
|
10
|
+
|
11
|
+
abort(Fwac.convert(Fwac::VERSION)) if args == "--version" || args == "-v"
|
12
|
+
|
13
|
+
text = Fwac.convert(args)
|
14
|
+
Fwac.copy(text)
|
15
|
+
puts text
|
data/fwac.gemspec
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'fwac'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "fwac"
|
8
|
+
spec.version = Fwac::VERSION
|
9
|
+
spec.authors = ["Zak Kristjanson"]
|
10
|
+
spec.email = ["zak.kristjanson@gmail.com"]
|
11
|
+
spec.summary = "full width ascii"
|
12
|
+
spec.homepage = "https://github.com/ubercow/aligned_table"
|
13
|
+
spec.license = "MIT"
|
14
|
+
|
15
|
+
spec.files = `git ls-files -z`.split("\x0")
|
16
|
+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
17
|
+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
18
|
+
spec.require_paths = ["lib"]
|
19
|
+
|
20
|
+
spec.add_development_dependency "bundler", "~> 1.5"
|
21
|
+
spec.add_development_dependency "rake"
|
22
|
+
end
|
data/lib/fwac.rb
ADDED
@@ -0,0 +1,25 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
class Fwac
|
3
|
+
VERSION = '0.0.1'
|
4
|
+
|
5
|
+
# Convert words to words.
|
6
|
+
#
|
7
|
+
# Returns a String, but a much cooler string than what you had initially.
|
8
|
+
def self.convert(text)
|
9
|
+
text.tr('A-Za-z0-9', 'A-Za-z0-9')
|
10
|
+
end
|
11
|
+
|
12
|
+
# Copies the text to clipboard
|
13
|
+
#
|
14
|
+
# ... not in windows, tho
|
15
|
+
def self.copy(text)
|
16
|
+
copycmd = case RUBY_PLATFORM
|
17
|
+
when /darwin/
|
18
|
+
'pbcopy'
|
19
|
+
when /linux/
|
20
|
+
'xclip'
|
21
|
+
end
|
22
|
+
|
23
|
+
copycmd && system("printf \"#{text}\" | #{copycmd}")
|
24
|
+
end
|
25
|
+
end
|
metadata
ADDED
@@ -0,0 +1,82 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: fwac
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Zak Kristjanson
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2014-05-02 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.5'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.5'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
description:
|
42
|
+
email:
|
43
|
+
- zak.kristjanson@gmail.com
|
44
|
+
executables:
|
45
|
+
- fwac
|
46
|
+
extensions: []
|
47
|
+
extra_rdoc_files: []
|
48
|
+
files:
|
49
|
+
- ".gitignore"
|
50
|
+
- Gemfile
|
51
|
+
- LICENSE.md
|
52
|
+
- README.md
|
53
|
+
- Rakefile
|
54
|
+
- bin/fwac
|
55
|
+
- fwac.gemspec
|
56
|
+
- lib/fwac.rb
|
57
|
+
homepage: https://github.com/ubercow/aligned_table
|
58
|
+
licenses:
|
59
|
+
- MIT
|
60
|
+
metadata: {}
|
61
|
+
post_install_message:
|
62
|
+
rdoc_options: []
|
63
|
+
require_paths:
|
64
|
+
- lib
|
65
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
66
|
+
requirements:
|
67
|
+
- - ">="
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '0'
|
70
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
71
|
+
requirements:
|
72
|
+
- - ">="
|
73
|
+
- !ruby/object:Gem::Version
|
74
|
+
version: '0'
|
75
|
+
requirements: []
|
76
|
+
rubyforge_project:
|
77
|
+
rubygems_version: 2.2.2
|
78
|
+
signing_key:
|
79
|
+
specification_version: 4
|
80
|
+
summary: "full width ascii"
|
81
|
+
test_files: []
|
82
|
+
has_rdoc:
|