codes21 0.0.3 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/codes21.rb +3 -2
  3. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a9ed1e65929abeb2efd816ca738208db21add674
4
- data.tar.gz: 73772323d93e069137b7bb27b836f54eb3262784
3
+ metadata.gz: 560974782c46ba9ec713ed839a0b23d99f830f4a
4
+ data.tar.gz: b11841ea8f595796627a21ffcc9e2c19701a3f34
5
5
  SHA512:
6
- metadata.gz: 240b488c384de335ea96e4ca6752d84e7d247b86a651583591560b3a6b6ba202ecbb1eb6943a250bd466a25b46fcab6ee0b48f9640c6bfc7dd0b913db10f4e29
7
- data.tar.gz: f935c7eef2c4ce3b900b25986de03476ae509dbd041a4240f37ccca6922338ddbecb056429c3fe6fb5ec8590d8585727ffe3ce3d4ea80e3a6550c4b6922826fa
6
+ metadata.gz: 5cfe432863850b198a12a12124ae914169004a1b575b215ad21bdc771f3de52686196c0f8fe902a5be68e9922898c54c80de8a160ae557e40b4bdb58b07f58f2
7
+ data.tar.gz: 8d974b8df95cf1c7a909ae785e1aab013faec376888ee2657fe94d461965a009ffc8c50b835c69dab6637200954550d52852277279cf01cc7627d80111607d28
data/lib/codes21.rb CHANGED
@@ -9,19 +9,20 @@ class Codes21
9
9
  codes = File.read(file)
10
10
  codes.squeeze! "\n"
11
11
  puts codes
12
-
12
+
13
13
  item = {title: title, codes: codes}
14
14
  @items << item
15
15
  end
16
16
  @items
17
17
  end
18
-
18
+
19
19
  def write_result(result_file_path)
20
20
  File.open(result_file_path, 'w') do |f|
21
21
  @items.each do |item|
22
22
  f.puts "File:" + item[:title]
23
23
  f.puts "Code:"
24
24
  f.puts item[:codes]
25
+ f.puts "\n"
25
26
  end
26
27
  end
27
28
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: codes21
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aston Fu
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-03 00:00:00.000000000 Z
11
+ date: 2016-04-18 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: With the given suffixes merge multiple files code into one file.
14
14
  email: im@fuhao.im
@@ -39,7 +39,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
39
39
  version: '0'
40
40
  requirements: []
41
41
  rubyforge_project:
42
- rubygems_version: 2.4.4
42
+ rubygems_version: 2.5.1
43
43
  signing_key:
44
44
  specification_version: 4
45
45
  summary: Codes to One.