mumukit-core 0.2.0 → 0.3.0

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
- MTcxNTc5NzU2NTUxMTkyZTVhOTU1YzVlMzg2M2MyYjc5MzhlZDkxOQ==
4
+ YTNiZWQ2OTA5ZmZmZTJjOTAzMmRlZWI1ODYzODkxOGNkZDlhZjEyNA==
5
5
  data.tar.gz: !binary |-
6
- ZmExMTEwM2Y1MWU0Mjg1Y2EzYmRiMjU2YWVmZDdhODFiZWE4ZDZhMw==
6
+ MTk5M2RkMjI1YmNiNDc2ZmUyMWViMjk4OTVlYzAwNDg5MDJkMGQ5OQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ZjdmZTg0ZjYzM2RiNWUxMWQ3OTNjODM2N2ZmMDM5OWQ4YzdkNGM3N2NmZjcw
10
- NTRhZGNiYTg5NzE3OTFhOThhOTQ3MzE0MGEzMWYxZTI0MTZlYTdkNGU5ODgz
11
- ZDcwNDMyMzlhYzI0NTg1Y2RhZTQ2MDU3ZDIxZDFlZTQ0NjhkN2M=
9
+ NThjMWE5OGIzMTMwZjcyYTlhYjNkN2RiMzdlOGNlNDA0YjY1YmNlYWQ2YWQ2
10
+ N2I5Y2NjYWU2YWRkNTRlYjg5OTk5NzBkNTVlNDNkMGUxYmU1ZDhhZmRlZmEx
11
+ MmU0MzEzOWUyNGMzYzc3MWMxNTZjNDgwNGU0OTYyYTZmN2EwYTI=
12
12
  data.tar.gz: !binary |-
13
- MDZlYmQwNmYwZGRiYzYxY2Y2Y2M1OWVkNjU4YmU0YWU5YjUxY2MwZTQxOTA2
14
- NWYwOGZjOWE3NDFmNzc1MjdlOTA5NWMyOWVkNTRjYWZkY2UyNzQ3OTM4Mjk3
15
- ZTI0ZTQ4ODEwYmFkMGVlOTViMDliNThlOTUyZWYxMjgxMTMwZmE=
13
+ MjI1NGRiYTNkYmMwNGJiOWU0MjJiOGM5MWMzZDU1NDI2OTBjMDMzNzdiNTAy
14
+ ZmZkNzlkOTQ4ZTk5OWY5ZDYxNzY2NTc0OGNiODkzYzc3NjZmN2UyMDUxMTA5
15
+ YWFlMjQyZDdlMTMxYjIyN2Q0ZTUxYzg4OGViOGE3Njg3M2NjZjE=
@@ -1,7 +1,15 @@
1
+ require 'csv'
2
+
1
3
  class Array
2
4
  def merge_numbers!(key=:number)
3
5
  self.each_with_index do |r, i|
4
6
  r.send "#{key}=", i+1
5
7
  end
6
8
  end
9
+
10
+ def to_csv
11
+ CSV.generate do |csv|
12
+ each { |hash| csv << hash.values }
13
+ end
14
+ end
7
15
  end
@@ -1,5 +1,5 @@
1
1
  module Mumukit
2
2
  module Core
3
- VERSION = '0.2.0'
3
+ VERSION = '0.3.0'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mumukit-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Franco Leonardo Bulgarelli
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-09-10 00:00:00.000000000 Z
11
+ date: 2016-10-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler