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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NDgwNzdmNmIwNzczZDg1M2VlOWIzNDAzYTliMDYyZTQ0NjgxNmY2Zg==
4
+ N2FkNTMxZDUzOTA0Y2IzNmRiMzc0N2Y4NGYzNmUzZTJiMGM3ZGVjMQ==
5
5
  data.tar.gz: !binary |-
6
- ZTViMjFlM2YxZjc2NmIxZGM1MTBjZDFmZTU0ZjQzYWUyMTUyMTU4Zg==
6
+ MTM0MjhmYzcyMWM3NDgyYTBjMmY4YTg3ZTAyNGE2OGU0MmU5YTc4OQ==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- MjRhMjRhMGZmOTU5ZWQ3Mjc3Y2ZkMmJlMTU1YzRmZDQyZTIwNWVkMTQzY2U0
10
- OTc5OTg1Yzk5NGYyOWRlNjljNjA0MWUwZWMxMmY5NDdlYzU3ZTU4OWNlZTM4
11
- M2UyYTkwMGRkMDU0Yzg5Njc3OWM1MzdkYzcxYzE2NzFlODkxMWE=
9
+ YjNlZjYzNTk3NjM4ZjMwODNiYTFkZjkzNDk4ZjJiMTc0ZDUzOWU5ODkwOTA2
10
+ ZDAyOTYyM2U3YWI2OGNlZjRhMTgxYWZlOGZkZDdmNDk1ZWRjODA1ODQxYjRl
11
+ OWY0YWQ0ZGM0MjQ1MDBkZDE1YzVjYWZhZTEzZWE5NWYyYWZlYzI=
12
12
  data.tar.gz: !binary |-
13
- YWUzNjZhYjc3NDllOTMxMGE2MGFmZTQ1NjIwNWMwMjVkOWY4NDQ1ZDNhZjg1
14
- MDJhYzk5M2VjNmQ0MTY3OWM2OTRlZmJhNjg5ZDUxNDBlZTYzZTMyODNhMDA3
15
- NjRjYzI2MmQ5MmIwYTEwZjU1NWNkYWRmNmM2NDA3NDkyYzNiOTg=
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 = 'r:UTF-8'
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
@@ -1,3 +1,3 @@
1
1
  module CodeMetrics
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
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.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-09-26 00:00:00.000000000 Z
12
+ date: 2013-10-30 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails