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 CHANGED
@@ -1,6 +1,7 @@
1
1
  source "http://rubygems.org"
2
2
 
3
3
  group :development do
4
+ gem "rake", "0.8.7"
4
5
  gem "shoulda", ">= 0"
5
6
  gem "bundler", "~> 1.0.0"
6
7
  gem "jeweler", "~> 1.6.4"
@@ -6,7 +6,7 @@ GEM
6
6
  bundler (~> 1.0)
7
7
  git (>= 1.2.5)
8
8
  rake
9
- rake (0.9.2)
9
+ rake (0.8.7)
10
10
  rcov (0.9.10)
11
11
  shoulda (2.11.3)
12
12
 
@@ -16,5 +16,6 @@ PLATFORMS
16
16
  DEPENDENCIES
17
17
  bundler (~> 1.0.0)
18
18
  jeweler (~> 1.6.4)
19
+ rake (= 0.8.7)
19
20
  rcov
20
21
  shoulda
@@ -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
- * Narraw search to only module, classes, methods or any combination
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.4
1
+ 0.2.5
@@ -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
- else
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
- $:.each do |path|
61
- files += expand(path, ["#{options[:gem]}*", "**"])
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
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{coypond}
8
- s.version = "0.2.4"
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-08-10}
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.6.2}
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
- version: 0.2.4
5
- prerelease:
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
- date: 2011-08-10 00:00:00.000000000 -07:00
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: &2157354580 !ruby/object:Gem::Requirement
39
+ requirement: &id002 !ruby/object:Gem::Requirement
18
40
  none: false
19
- requirements:
20
- - - ! '>='
21
- - !ruby/object:Gem::Version
22
- version: '0'
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: *2157354580
26
- - !ruby/object:Gem::Dependency
50
+ version_requirements: *id002
51
+ - !ruby/object:Gem::Dependency
27
52
  name: bundler
28
- requirement: &2157354100 !ruby/object:Gem::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: *2157354100
37
- - !ruby/object:Gem::Dependency
66
+ version_requirements: *id003
67
+ - !ruby/object:Gem::Dependency
38
68
  name: jeweler
39
- requirement: &2157353620 !ruby/object:Gem::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: *2157353620
48
- - !ruby/object:Gem::Dependency
82
+ version_requirements: *id004
83
+ - !ruby/object:Gem::Dependency
49
84
  name: rcov
50
- requirement: &2157353140 !ruby/object:Gem::Requirement
85
+ requirement: &id005 !ruby/object:Gem::Requirement
51
86
  none: false
52
- requirements:
53
- - - ! '>='
54
- - !ruby/object:Gem::Version
55
- version: '0'
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: *2157353140
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
- extra_rdoc_files:
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
- require_paths:
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
- version: '0'
96
- segments:
132
+ requirements:
133
+ - - ">="
134
+ - !ruby/object:Gem::Version
135
+ hash: -3626070006954351097
136
+ segments:
97
137
  - 0
98
- hash: -2130254172118483382
99
- required_rubygems_version: !ruby/object:Gem::Requirement
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
- version: '0'
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.6.2
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
+