tu 0.0.1 → 0.0.2
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.
- data/lib/tu.rb +8 -0
- data/lib/tu/version.rb +1 -1
- data/tu.gemspec +1 -1
- metadata +50 -29
data/lib/tu.rb
CHANGED
@@ -2,9 +2,17 @@ require 'rubygems'
|
|
2
2
|
require 'thor'
|
3
3
|
|
4
4
|
class Tu < Thor
|
5
|
+
include Thor::Actions
|
6
|
+
|
5
7
|
desc "version", "Show TU version"
|
6
8
|
def version
|
7
9
|
require 'tu/version'
|
8
10
|
puts "TU #{Tu::VERSION}"
|
9
11
|
end
|
12
|
+
|
13
|
+
desc "grep STRING_OR_REGEX", "Search for string or regexp in files within current directory filtered for rails app"
|
14
|
+
def grep(search)
|
15
|
+
run "grep -rs #{search} app config lib spec test features"
|
16
|
+
end
|
17
|
+
map "g" => "grep"
|
10
18
|
end
|
data/lib/tu/version.rb
CHANGED
data/tu.gemspec
CHANGED
@@ -7,7 +7,7 @@ Gem::Specification.new do |s|
|
|
7
7
|
s.version = Tu::VERSION
|
8
8
|
s.authors = ["Anton Dieterle"]
|
9
9
|
s.email = ["antondie@gmail.com"]
|
10
|
-
s.homepage = ""
|
10
|
+
s.homepage = "https://github.com/adie/tu"
|
11
11
|
s.summary = %q{Tiny Utilites}
|
12
12
|
s.description = %q{Small quick utilites to simplify some tasks}
|
13
13
|
|
metadata
CHANGED
@@ -1,35 +1,46 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: tu
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 27
|
5
5
|
prerelease:
|
6
|
+
segments:
|
7
|
+
- 0
|
8
|
+
- 0
|
9
|
+
- 2
|
10
|
+
version: 0.0.2
|
6
11
|
platform: ruby
|
7
|
-
authors:
|
12
|
+
authors:
|
8
13
|
- Anton Dieterle
|
9
14
|
autorequire:
|
10
15
|
bindir: bin
|
11
16
|
cert_chain: []
|
12
|
-
|
13
|
-
|
14
|
-
|
17
|
+
|
18
|
+
date: 2011-12-13 00:00:00 Z
|
19
|
+
dependencies:
|
20
|
+
- !ruby/object:Gem::Dependency
|
15
21
|
name: thor
|
16
|
-
|
22
|
+
prerelease: false
|
23
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
17
24
|
none: false
|
18
|
-
requirements:
|
19
|
-
- -
|
20
|
-
- !ruby/object:Gem::Version
|
21
|
-
|
25
|
+
requirements:
|
26
|
+
- - ">="
|
27
|
+
- !ruby/object:Gem::Version
|
28
|
+
hash: 3
|
29
|
+
segments:
|
30
|
+
- 0
|
31
|
+
version: "0"
|
22
32
|
type: :runtime
|
23
|
-
|
24
|
-
version_requirements: *68844250
|
33
|
+
version_requirements: *id001
|
25
34
|
description: Small quick utilites to simplify some tasks
|
26
|
-
email:
|
35
|
+
email:
|
27
36
|
- antondie@gmail.com
|
28
|
-
executables:
|
37
|
+
executables:
|
29
38
|
- tu
|
30
39
|
extensions: []
|
40
|
+
|
31
41
|
extra_rdoc_files: []
|
32
|
-
|
42
|
+
|
43
|
+
files:
|
33
44
|
- .gitignore
|
34
45
|
- Gemfile
|
35
46
|
- Rakefile
|
@@ -37,28 +48,38 @@ files:
|
|
37
48
|
- lib/tu.rb
|
38
49
|
- lib/tu/version.rb
|
39
50
|
- tu.gemspec
|
40
|
-
homepage:
|
51
|
+
homepage: https://github.com/adie/tu
|
41
52
|
licenses: []
|
53
|
+
|
42
54
|
post_install_message:
|
43
55
|
rdoc_options: []
|
44
|
-
|
56
|
+
|
57
|
+
require_paths:
|
45
58
|
- lib
|
46
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
59
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
47
60
|
none: false
|
48
|
-
requirements:
|
49
|
-
- -
|
50
|
-
- !ruby/object:Gem::Version
|
51
|
-
|
52
|
-
|
61
|
+
requirements:
|
62
|
+
- - ">="
|
63
|
+
- !ruby/object:Gem::Version
|
64
|
+
hash: 3
|
65
|
+
segments:
|
66
|
+
- 0
|
67
|
+
version: "0"
|
68
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
53
69
|
none: false
|
54
|
-
requirements:
|
55
|
-
- -
|
56
|
-
- !ruby/object:Gem::Version
|
57
|
-
|
70
|
+
requirements:
|
71
|
+
- - ">="
|
72
|
+
- !ruby/object:Gem::Version
|
73
|
+
hash: 3
|
74
|
+
segments:
|
75
|
+
- 0
|
76
|
+
version: "0"
|
58
77
|
requirements: []
|
78
|
+
|
59
79
|
rubyforge_project: tu
|
60
80
|
rubygems_version: 1.8.10
|
61
81
|
signing_key:
|
62
82
|
specification_version: 3
|
63
83
|
summary: Tiny Utilites
|
64
84
|
test_files: []
|
85
|
+
|