code_metrics 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/code_metrics/statistics_calculator.rb +1 -2
- data/lib/code_metrics/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
N2FkNTMxZDUzOTA0Y2IzNmRiMzc0N2Y4NGYzNmUzZTJiMGM3ZGVjMQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MTM0MjhmYzcyMWM3NDgyYTBjMmY4YTg3ZTAyNGE2OGU0MmU5YTc4OQ==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YjNlZjYzNTk3NjM4ZjMwODNiYTFkZjkzNDk4ZjJiMTc0ZDUzOWU5ODkwOTA2
|
10
|
+
ZDAyOTYyM2U3YWI2OGNlZjRhMTgxYWZlOGZkZDdmNDk1ZWRjODA1ODQxYjRl
|
11
|
+
OWY0YWQ0ZGM0MjQ1MDBkZDE1YzVjYWZhZTEzZWE5NWYyYWZlYzI=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
YzdjYjVlNTZlNjNjOTdmNjg2ODcxNzc2NDdiOWFlZjkxYmE1YzI5Y2MxY2Y3
|
14
|
+
NWRiYzUyN2Y4NTZhOGQzODBmYTkwZWRlYWJkNjhlMzk3YWNiYTcxN2NlZDJi
|
15
|
+
MzllY2E4MzUyODk2NmZiZTQwZjY1ZmEyNDgzZTQ5ZWU4ZDI2NmE=
|
@@ -40,8 +40,7 @@ module CodeMetrics
|
|
40
40
|
end
|
41
41
|
|
42
42
|
def add_by_file_path(file_path)
|
43
|
-
file_flags = '
|
44
|
-
file_flags << ':UTF-8' unless defined?(Encoding) && Encoding.default_internal == Encoding::UTF_8
|
43
|
+
file_flags = 'rb' # for our purposes, reading in binary encoding is sufficient
|
45
44
|
File.open(file_path, file_flags) do |f|
|
46
45
|
self.add_by_io(f, file_type(file_path))
|
47
46
|
end
|
data/lib/code_metrics/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: code_metrics
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Heinemeier Hansson
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-10-30 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|