textmerge 0.0.9 → 0.1.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: c90f36333538cf575358a820f0ac5fb721596791
4
- data.tar.gz: 7b503cdd5e3edf4e099014a37611540966f8c5cf
3
+ metadata.gz: a3a9291c8f90717018c3736df163de340d4856d8
4
+ data.tar.gz: b7c8c64cedafd985ab6359a561c81456ced8145b
5
5
  SHA512:
6
- metadata.gz: de247141bef9f9c30928d4ee017b0cbd569b71e6f83a0751d36705c1d14e9a390432255313dbdf93f5c4514f93214976414e43ac176fcdc018ccd957794f61df
7
- data.tar.gz: 7317a2dd112087c1393a99e8838640597c098e2b16cac3a707bd0b2d986221a0992a8130128f589f0d793a0222e410d2edb8fd0468b64d65e9043140121fd428
6
+ metadata.gz: 7c442c89d76e93eca9ffdafa98eaf7ff67d50ee8b477ab94b8cda370870659b7fff4366cdd9c6b12a4a6bb96726826fcc0a19f952c8f76ef180e443ff194506e
7
+ data.tar.gz: 1b07021b079e60ecb5311f3b3b73247dedce9f7710d824bac085116ca81caf5ca17cd46d478117f11a7693a3993e49a6c0175bb371f8f812cc6ffa95cb2729ae
@@ -54,8 +54,8 @@ module Textmerge
54
54
  end
55
55
 
56
56
  def array_to_hash(array)
57
- array.inject({}) {|m,e| m[e[0].to_i] = e[1]; m}
58
- # array.sort_by { | num,value | num}
57
+ sorted = array.sort_by { |m,e| m }
58
+ sorted.inject({}) {|m,e| m[e[0].to_i] = e[1]; m}
59
59
  end
60
60
 
61
61
  end
@@ -1,3 +1,3 @@
1
1
  module Textmerge
2
- VERSION = "0.0.9"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: textmerge
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Simpson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-05-06 00:00:00.000000000 Z
11
+ date: 2015-05-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler