coypond 0.2.4 → 0.2.5
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +1 -0
- data/Gemfile.lock +2 -1
- data/README.rdoc +1 -1
- data/VERSION +1 -1
- data/bin/coypond +7 -4
- data/coypond.gemspec +7 -3
- metadata +95 -49
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
data/README.rdoc
CHANGED
@@ -5,7 +5,7 @@ A semantic grep-like tool for Ruby. You can use coypond to search through ruby c
|
|
5
5
|
== Features:
|
6
6
|
|
7
7
|
* Search using raw string or regular expression
|
8
|
-
*
|
8
|
+
* Narrow search to only module, classes, methods or any combination
|
9
9
|
* Search through files, directories, or specify a locally installed gem (using -g option)
|
10
10
|
|
11
11
|
== Installation:
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.5
|
data/bin/coypond
CHANGED
@@ -50,15 +50,18 @@ options[:all] ||= (options.keys & [:class, :method, :module]).empty?
|
|
50
50
|
def expand(file, pattern=["**"])
|
51
51
|
if File.directory?(file)
|
52
52
|
return Dir.glob(File.join([file, pattern, "*.rb"].flatten) )
|
53
|
-
|
53
|
+
elsif File.exist?(file)
|
54
54
|
return file
|
55
|
+
else
|
56
|
+
return []
|
55
57
|
end
|
56
58
|
end
|
57
59
|
|
58
60
|
files = []
|
59
61
|
if options[:gem]
|
60
|
-
|
61
|
-
|
62
|
+
pattern = ["#{options[:gem]}*", "**"]
|
63
|
+
$:.each_with_index do |path, i|
|
64
|
+
files += expand(path, pattern)
|
62
65
|
end
|
63
66
|
else
|
64
67
|
files = $*.map {|file| expand(file)}.flatten
|
@@ -73,4 +76,4 @@ coypond.search(options) do |file_name, res|
|
|
73
76
|
end
|
74
77
|
puts ""
|
75
78
|
end
|
76
|
-
end
|
79
|
+
end
|
data/coypond.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{coypond}
|
8
|
-
s.version = "0.2.
|
8
|
+
s.version = "0.2.5"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Amit Levy"]
|
12
|
-
s.date = %q{2011-
|
12
|
+
s.date = %q{2011-10-06}
|
13
13
|
s.default_executable = %q{coypond}
|
14
14
|
s.description = %q{Semantic grep for Ruby}
|
15
15
|
s.email = %q{aalevy@gmail.com}
|
@@ -37,24 +37,28 @@ Gem::Specification.new do |s|
|
|
37
37
|
s.homepage = %q{http://github.com/alevy/coypond}
|
38
38
|
s.licenses = ["MIT"]
|
39
39
|
s.require_paths = ["lib"]
|
40
|
-
s.rubygems_version = %q{1.
|
40
|
+
s.rubygems_version = %q{1.3.7}
|
41
41
|
s.summary = %q{Semantic grep for Ruby}
|
42
42
|
|
43
43
|
if s.respond_to? :specification_version then
|
44
|
+
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
44
45
|
s.specification_version = 3
|
45
46
|
|
46
47
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
48
|
+
s.add_development_dependency(%q<rake>, ["= 0.8.7"])
|
47
49
|
s.add_development_dependency(%q<shoulda>, [">= 0"])
|
48
50
|
s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
|
49
51
|
s.add_development_dependency(%q<jeweler>, ["~> 1.6.4"])
|
50
52
|
s.add_development_dependency(%q<rcov>, [">= 0"])
|
51
53
|
else
|
54
|
+
s.add_dependency(%q<rake>, ["= 0.8.7"])
|
52
55
|
s.add_dependency(%q<shoulda>, [">= 0"])
|
53
56
|
s.add_dependency(%q<bundler>, ["~> 1.0.0"])
|
54
57
|
s.add_dependency(%q<jeweler>, ["~> 1.6.4"])
|
55
58
|
s.add_dependency(%q<rcov>, [">= 0"])
|
56
59
|
end
|
57
60
|
else
|
61
|
+
s.add_dependency(%q<rake>, ["= 0.8.7"])
|
58
62
|
s.add_dependency(%q<shoulda>, [">= 0"])
|
59
63
|
s.add_dependency(%q<bundler>, ["~> 1.0.0"])
|
60
64
|
s.add_dependency(%q<jeweler>, ["~> 1.6.4"])
|
metadata
CHANGED
@@ -1,70 +1,109 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: coypond
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
prerelease: false
|
5
|
+
segments:
|
6
|
+
- 0
|
7
|
+
- 2
|
8
|
+
- 5
|
9
|
+
segments_generated: true
|
10
|
+
version: 0.2.5
|
6
11
|
platform: ruby
|
7
|
-
authors:
|
12
|
+
authors:
|
8
13
|
- Amit Levy
|
9
14
|
autorequire:
|
10
15
|
bindir: bin
|
11
16
|
cert_chain: []
|
12
|
-
|
17
|
+
|
18
|
+
date: 2011-10-06 00:00:00 -07:00
|
13
19
|
default_executable: coypond
|
14
|
-
dependencies:
|
15
|
-
- !ruby/object:Gem::Dependency
|
20
|
+
dependencies:
|
21
|
+
- !ruby/object:Gem::Dependency
|
22
|
+
name: rake
|
23
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
24
|
+
none: false
|
25
|
+
requirements:
|
26
|
+
- - "="
|
27
|
+
- !ruby/object:Gem::Version
|
28
|
+
segments:
|
29
|
+
- 0
|
30
|
+
- 8
|
31
|
+
- 7
|
32
|
+
segments_generated: true
|
33
|
+
version: 0.8.7
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: *id001
|
37
|
+
- !ruby/object:Gem::Dependency
|
16
38
|
name: shoulda
|
17
|
-
requirement: &
|
39
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
18
40
|
none: false
|
19
|
-
requirements:
|
20
|
-
- -
|
21
|
-
- !ruby/object:Gem::Version
|
22
|
-
|
41
|
+
requirements:
|
42
|
+
- - ">="
|
43
|
+
- !ruby/object:Gem::Version
|
44
|
+
segments:
|
45
|
+
- 0
|
46
|
+
segments_generated: true
|
47
|
+
version: "0"
|
23
48
|
type: :development
|
24
49
|
prerelease: false
|
25
|
-
version_requirements: *
|
26
|
-
- !ruby/object:Gem::Dependency
|
50
|
+
version_requirements: *id002
|
51
|
+
- !ruby/object:Gem::Dependency
|
27
52
|
name: bundler
|
28
|
-
requirement: &
|
53
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
29
54
|
none: false
|
30
|
-
requirements:
|
55
|
+
requirements:
|
31
56
|
- - ~>
|
32
|
-
- !ruby/object:Gem::Version
|
57
|
+
- !ruby/object:Gem::Version
|
58
|
+
segments:
|
59
|
+
- 1
|
60
|
+
- 0
|
61
|
+
- 0
|
62
|
+
segments_generated: true
|
33
63
|
version: 1.0.0
|
34
64
|
type: :development
|
35
65
|
prerelease: false
|
36
|
-
version_requirements: *
|
37
|
-
- !ruby/object:Gem::Dependency
|
66
|
+
version_requirements: *id003
|
67
|
+
- !ruby/object:Gem::Dependency
|
38
68
|
name: jeweler
|
39
|
-
requirement: &
|
69
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
40
70
|
none: false
|
41
|
-
requirements:
|
71
|
+
requirements:
|
42
72
|
- - ~>
|
43
|
-
- !ruby/object:Gem::Version
|
73
|
+
- !ruby/object:Gem::Version
|
74
|
+
segments:
|
75
|
+
- 1
|
76
|
+
- 6
|
77
|
+
- 4
|
78
|
+
segments_generated: true
|
44
79
|
version: 1.6.4
|
45
80
|
type: :development
|
46
81
|
prerelease: false
|
47
|
-
version_requirements: *
|
48
|
-
- !ruby/object:Gem::Dependency
|
82
|
+
version_requirements: *id004
|
83
|
+
- !ruby/object:Gem::Dependency
|
49
84
|
name: rcov
|
50
|
-
requirement: &
|
85
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
51
86
|
none: false
|
52
|
-
requirements:
|
53
|
-
- -
|
54
|
-
- !ruby/object:Gem::Version
|
55
|
-
|
87
|
+
requirements:
|
88
|
+
- - ">="
|
89
|
+
- !ruby/object:Gem::Version
|
90
|
+
segments:
|
91
|
+
- 0
|
92
|
+
segments_generated: true
|
93
|
+
version: "0"
|
56
94
|
type: :development
|
57
95
|
prerelease: false
|
58
|
-
version_requirements: *
|
96
|
+
version_requirements: *id005
|
59
97
|
description: Semantic grep for Ruby
|
60
98
|
email: aalevy@gmail.com
|
61
|
-
executables:
|
99
|
+
executables:
|
62
100
|
- coypond
|
63
101
|
extensions: []
|
64
|
-
|
102
|
+
|
103
|
+
extra_rdoc_files:
|
65
104
|
- LICENSE.txt
|
66
105
|
- README.rdoc
|
67
|
-
files:
|
106
|
+
files:
|
68
107
|
- .document
|
69
108
|
- Gemfile
|
70
109
|
- Gemfile.lock
|
@@ -81,31 +120,38 @@ files:
|
|
81
120
|
- test/test_coypond.rb
|
82
121
|
has_rdoc: true
|
83
122
|
homepage: http://github.com/alevy/coypond
|
84
|
-
licenses:
|
123
|
+
licenses:
|
85
124
|
- MIT
|
86
125
|
post_install_message:
|
87
126
|
rdoc_options: []
|
88
|
-
|
127
|
+
|
128
|
+
require_paths:
|
89
129
|
- lib
|
90
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
130
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
91
131
|
none: false
|
92
|
-
requirements:
|
93
|
-
- -
|
94
|
-
- !ruby/object:Gem::Version
|
95
|
-
|
96
|
-
segments:
|
132
|
+
requirements:
|
133
|
+
- - ">="
|
134
|
+
- !ruby/object:Gem::Version
|
135
|
+
hash: -3626070006954351097
|
136
|
+
segments:
|
97
137
|
- 0
|
98
|
-
|
99
|
-
|
138
|
+
segments_generated: true
|
139
|
+
version: "0"
|
140
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
100
141
|
none: false
|
101
|
-
requirements:
|
102
|
-
- -
|
103
|
-
- !ruby/object:Gem::Version
|
104
|
-
|
142
|
+
requirements:
|
143
|
+
- - ">="
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
segments:
|
146
|
+
- 0
|
147
|
+
segments_generated: true
|
148
|
+
version: "0"
|
105
149
|
requirements: []
|
150
|
+
|
106
151
|
rubyforge_project:
|
107
|
-
rubygems_version: 1.
|
152
|
+
rubygems_version: 1.3.7
|
108
153
|
signing_key:
|
109
154
|
specification_version: 3
|
110
155
|
summary: Semantic grep for Ruby
|
111
156
|
test_files: []
|
157
|
+
|