githug 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4d8b3eab324d0ecfc1aeeb273d659ff6ec64306a
4
- data.tar.gz: 94bc597fec09d5b394d971953611cddf990fcf49
3
+ metadata.gz: b998e69188f28ab1276dfbd253552a089d1a7492
4
+ data.tar.gz: b6dd4c01eeac6d2858d8fee98bdc9578f9c7b768
5
5
  SHA512:
6
- metadata.gz: 9ca97b4095f43a2e41fc2b97cae08437f8623af0de49bd972ad9a5e2b78c9ba1eb2b03c1b23b27cc00e9c73efd93873a99109756a3ba0847624324d123250abf
7
- data.tar.gz: e28ea1edaa4aca08a521316368fdc9982176882ff08d45871cba6410d69c1c5a6923a953892db322e31e46abfd8fa8633ce62c7a4367b08d22c9573ff1385d26
6
+ metadata.gz: 08fdd2f641d7b199b204c1aa29b616b13cb981ca75c580402768f1502fed154541c912b1f52e6358111721ddc9b60692cf27095af60992f1f418116cda423b04
7
+ data.tar.gz: a166b43a5784e178ff7d7693e3cef80732c7f353d30bfa90b8cdb341adbe7c89001b9d8895b9d31ac1dd23811f06dd74b1fc63987d922175735d2bca285ae3ab
@@ -1,7 +1,17 @@
1
1
  class String
2
- if ((defined? RUBY_VERSION) && (RUBY_VERSION[0..2] == "1.9" || RUBY_VERSION.split(".")[0].to_i >= 2))
2
+ if self.method_defined?(:ord)
3
3
  def getord(offset); self[offset].ord; end
4
4
  else
5
5
  alias :getord :[]
6
6
  end
7
+
8
+ unless self.method_defined?(:b)
9
+ if self.method_defined?(:force_encoding)
10
+ def b; self.dup.force_encoding(Encoding::ASCII_8BIT); end
11
+ else
12
+ def b; self.dup; end
13
+ end
14
+ end
7
15
  end
16
+
17
+ PACK_IDX_SIGNATURE = "\377tOc".b
@@ -1,3 +1,3 @@
1
1
  module Githug
2
- VERSION = "0.3.0"
2
+ VERSION = "0.3.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: githug
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gary Rennie
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-07-21 00:00:00.000000000 Z
11
+ date: 2013-10-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
@@ -412,7 +412,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
412
412
  version: '0'
413
413
  requirements: []
414
414
  rubyforge_project: githug
415
- rubygems_version: 2.0.2
415
+ rubygems_version: 2.0.0
416
416
  signing_key:
417
417
  specification_version: 4
418
418
  summary: An interactive way to learn git.