metior 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +4 -0
- data/.travis.yml +7 -0
- data/.yardopts +4 -0
- data/Changelog.md +22 -0
- data/Gemfile +21 -0
- data/Gemfile.lock +44 -0
- data/LICENSE +25 -0
- data/README.md +117 -0
- data/Rakefile +48 -0
- data/lib/core_ext/object.rb +25 -0
- data/lib/metior.rb +50 -0
- data/lib/metior/actor.rb +85 -0
- data/lib/metior/commit.rb +118 -0
- data/lib/metior/errors.rb +19 -0
- data/lib/metior/git.rb +25 -0
- data/lib/metior/git/actor.rb +43 -0
- data/lib/metior/git/commit.rb +68 -0
- data/lib/metior/git/repository.rb +72 -0
- data/lib/metior/github.rb +27 -0
- data/lib/metior/github/actor.rb +43 -0
- data/lib/metior/github/commit.rb +55 -0
- data/lib/metior/github/repository.rb +99 -0
- data/lib/metior/repository.rb +273 -0
- data/lib/metior/vcs.rb +150 -0
- data/lib/metior/version.rb +11 -0
- data/metior.gemspec +26 -0
- data/test/fixtures/mojombo-grit-master-1b2fe77.txt +0 -0
- data/test/helper.rb +26 -0
- data/test/mock_vcs/actor.rb +28 -0
- data/test/mock_vcs/commit.rb +53 -0
- data/test/mock_vcs/repository.rb +72 -0
- data/test/test_class_loading.rb +61 -0
- data/test/test_git.rb +22 -0
- data/test/test_github.rb +43 -0
- data/test/test_metior.rb +34 -0
- data/test/test_repository.rb +150 -0
- data/test/test_vcs.rb +40 -0
- metadata +223 -0
data/test/test_vcs.rb
ADDED
@@ -0,0 +1,40 @@
|
|
1
|
+
# This code is free software; you can redistribute it and/or modify it under
|
2
|
+
# the terms of the new BSD License.
|
3
|
+
#
|
4
|
+
# Copyright (c) 2011, Sebastian Staudt
|
5
|
+
|
6
|
+
require 'helper'
|
7
|
+
|
8
|
+
class TestVCS < Test::Unit::TestCase
|
9
|
+
|
10
|
+
context 'The VCS module' do
|
11
|
+
|
12
|
+
setup do
|
13
|
+
require 'metior/vcs'
|
14
|
+
|
15
|
+
module MockVCS
|
16
|
+
NAME = :mock
|
17
|
+
include VCS
|
18
|
+
not_supported :some_feature
|
19
|
+
end
|
20
|
+
|
21
|
+
@vcs = Object.new
|
22
|
+
@vcs.extend MockVCS
|
23
|
+
end
|
24
|
+
|
25
|
+
should 'allow access to the features of a VCS' do
|
26
|
+
assert_not MockVCS.supports? :some_feature
|
27
|
+
assert_not @vcs.supports? :some_feature
|
28
|
+
assert_raise UnsupportedError do
|
29
|
+
@vcs.support! :some_feature
|
30
|
+
end
|
31
|
+
end
|
32
|
+
|
33
|
+
teardown do
|
34
|
+
@vcs = nil
|
35
|
+
Metior.module_exec { @@vcs_types.delete :mock }
|
36
|
+
end
|
37
|
+
|
38
|
+
end
|
39
|
+
|
40
|
+
end
|
metadata
ADDED
@@ -0,0 +1,223 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: metior
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 25
|
5
|
+
prerelease:
|
6
|
+
segments:
|
7
|
+
- 0
|
8
|
+
- 1
|
9
|
+
- 1
|
10
|
+
version: 0.1.1
|
11
|
+
platform: ruby
|
12
|
+
authors:
|
13
|
+
- Sebastian Staudt
|
14
|
+
autorequire:
|
15
|
+
bindir: bin
|
16
|
+
cert_chain: []
|
17
|
+
|
18
|
+
date: 2011-06-08 00:00:00 Z
|
19
|
+
dependencies:
|
20
|
+
- !ruby/object:Gem::Dependency
|
21
|
+
type: :runtime
|
22
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
23
|
+
none: false
|
24
|
+
requirements:
|
25
|
+
- - ~>
|
26
|
+
- !ruby/object:Gem::Version
|
27
|
+
hash: 11
|
28
|
+
segments:
|
29
|
+
- 1
|
30
|
+
- 0
|
31
|
+
- 14
|
32
|
+
version: 1.0.14
|
33
|
+
prerelease: false
|
34
|
+
name: bundler
|
35
|
+
version_requirements: *id001
|
36
|
+
- !ruby/object:Gem::Dependency
|
37
|
+
type: :runtime
|
38
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
39
|
+
none: false
|
40
|
+
requirements:
|
41
|
+
- - ~>
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
hash: 29
|
44
|
+
segments:
|
45
|
+
- 2
|
46
|
+
- 4
|
47
|
+
- 1
|
48
|
+
version: 2.4.1
|
49
|
+
prerelease: false
|
50
|
+
name: grit
|
51
|
+
version_requirements: *id002
|
52
|
+
- !ruby/object:Gem::Dependency
|
53
|
+
type: :runtime
|
54
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
55
|
+
none: false
|
56
|
+
requirements:
|
57
|
+
- - ~>
|
58
|
+
- !ruby/object:Gem::Version
|
59
|
+
hash: 1
|
60
|
+
segments:
|
61
|
+
- 0
|
62
|
+
- 6
|
63
|
+
- 3
|
64
|
+
version: 0.6.3
|
65
|
+
prerelease: false
|
66
|
+
name: octokit
|
67
|
+
version_requirements: *id003
|
68
|
+
- !ruby/object:Gem::Dependency
|
69
|
+
type: :development
|
70
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
71
|
+
none: false
|
72
|
+
requirements:
|
73
|
+
- - ~>
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
hash: 57
|
76
|
+
segments:
|
77
|
+
- 0
|
78
|
+
- 9
|
79
|
+
- 1
|
80
|
+
version: 0.9.1
|
81
|
+
prerelease: false
|
82
|
+
name: rake
|
83
|
+
version_requirements: *id004
|
84
|
+
- !ruby/object:Gem::Dependency
|
85
|
+
type: :development
|
86
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
87
|
+
none: false
|
88
|
+
requirements:
|
89
|
+
- - ~>
|
90
|
+
- !ruby/object:Gem::Version
|
91
|
+
hash: 1
|
92
|
+
segments:
|
93
|
+
- 0
|
94
|
+
- 7
|
95
|
+
- 1
|
96
|
+
version: 0.7.1
|
97
|
+
prerelease: false
|
98
|
+
name: yard
|
99
|
+
version_requirements: *id005
|
100
|
+
- !ruby/object:Gem::Dependency
|
101
|
+
type: :development
|
102
|
+
requirement: &id006 !ruby/object:Gem::Requirement
|
103
|
+
none: false
|
104
|
+
requirements:
|
105
|
+
- - ~>
|
106
|
+
- !ruby/object:Gem::Version
|
107
|
+
hash: 35
|
108
|
+
segments:
|
109
|
+
- 0
|
110
|
+
- 9
|
111
|
+
- 12
|
112
|
+
version: 0.9.12
|
113
|
+
prerelease: false
|
114
|
+
name: mocha
|
115
|
+
version_requirements: *id006
|
116
|
+
- !ruby/object:Gem::Dependency
|
117
|
+
type: :development
|
118
|
+
requirement: &id007 !ruby/object:Gem::Requirement
|
119
|
+
none: false
|
120
|
+
requirements:
|
121
|
+
- - ~>
|
122
|
+
- !ruby/object:Gem::Version
|
123
|
+
hash: 37
|
124
|
+
segments:
|
125
|
+
- 2
|
126
|
+
- 11
|
127
|
+
- 3
|
128
|
+
version: 2.11.3
|
129
|
+
prerelease: false
|
130
|
+
name: shoulda
|
131
|
+
version_requirements: *id007
|
132
|
+
description: Metior is a source code history analyzer that provides various statistics about a source code repository and its change over time.
|
133
|
+
email:
|
134
|
+
- koraktor@gmail.com
|
135
|
+
executables: []
|
136
|
+
|
137
|
+
extensions: []
|
138
|
+
|
139
|
+
extra_rdoc_files: []
|
140
|
+
|
141
|
+
files:
|
142
|
+
- .gitignore
|
143
|
+
- .travis.yml
|
144
|
+
- .yardopts
|
145
|
+
- Changelog.md
|
146
|
+
- Gemfile
|
147
|
+
- Gemfile.lock
|
148
|
+
- LICENSE
|
149
|
+
- README.md
|
150
|
+
- Rakefile
|
151
|
+
- lib/core_ext/object.rb
|
152
|
+
- lib/metior.rb
|
153
|
+
- lib/metior/actor.rb
|
154
|
+
- lib/metior/commit.rb
|
155
|
+
- lib/metior/errors.rb
|
156
|
+
- lib/metior/git.rb
|
157
|
+
- lib/metior/git/actor.rb
|
158
|
+
- lib/metior/git/commit.rb
|
159
|
+
- lib/metior/git/repository.rb
|
160
|
+
- lib/metior/github.rb
|
161
|
+
- lib/metior/github/actor.rb
|
162
|
+
- lib/metior/github/commit.rb
|
163
|
+
- lib/metior/github/repository.rb
|
164
|
+
- lib/metior/repository.rb
|
165
|
+
- lib/metior/vcs.rb
|
166
|
+
- lib/metior/version.rb
|
167
|
+
- metior.gemspec
|
168
|
+
- test/fixtures/mojombo-grit-master-1b2fe77.txt
|
169
|
+
- test/helper.rb
|
170
|
+
- test/mock_vcs/actor.rb
|
171
|
+
- test/mock_vcs/commit.rb
|
172
|
+
- test/mock_vcs/repository.rb
|
173
|
+
- test/test_class_loading.rb
|
174
|
+
- test/test_git.rb
|
175
|
+
- test/test_github.rb
|
176
|
+
- test/test_metior.rb
|
177
|
+
- test/test_repository.rb
|
178
|
+
- test/test_vcs.rb
|
179
|
+
homepage: http://koraktor.de/metior
|
180
|
+
licenses: []
|
181
|
+
|
182
|
+
post_install_message:
|
183
|
+
rdoc_options: []
|
184
|
+
|
185
|
+
require_paths:
|
186
|
+
- lib
|
187
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
188
|
+
none: false
|
189
|
+
requirements:
|
190
|
+
- - ">="
|
191
|
+
- !ruby/object:Gem::Version
|
192
|
+
hash: 3
|
193
|
+
segments:
|
194
|
+
- 0
|
195
|
+
version: "0"
|
196
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
197
|
+
none: false
|
198
|
+
requirements:
|
199
|
+
- - ">="
|
200
|
+
- !ruby/object:Gem::Version
|
201
|
+
hash: 3
|
202
|
+
segments:
|
203
|
+
- 0
|
204
|
+
version: "0"
|
205
|
+
requirements: []
|
206
|
+
|
207
|
+
rubyforge_project:
|
208
|
+
rubygems_version: 1.8.5
|
209
|
+
signing_key:
|
210
|
+
specification_version: 3
|
211
|
+
summary: A source code history analyzer API
|
212
|
+
test_files:
|
213
|
+
- test/fixtures/mojombo-grit-master-1b2fe77.txt
|
214
|
+
- test/helper.rb
|
215
|
+
- test/mock_vcs/actor.rb
|
216
|
+
- test/mock_vcs/commit.rb
|
217
|
+
- test/mock_vcs/repository.rb
|
218
|
+
- test/test_class_loading.rb
|
219
|
+
- test/test_git.rb
|
220
|
+
- test/test_github.rb
|
221
|
+
- test/test_metior.rb
|
222
|
+
- test/test_repository.rb
|
223
|
+
- test/test_vcs.rb
|