array_in_file 0.0.0 → 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fd6745540aa042eb67611024973d9786d64fef02
4
- data.tar.gz: 391d49dd68f0e9451fc127b9d421117a7d7151fc
3
+ metadata.gz: 29edd5682e7b8cf48a329bad6b45473ed56c8019
4
+ data.tar.gz: 9581e4c4019b1e0e59e375c1ce006c50ff09a097
5
5
  SHA512:
6
- metadata.gz: af9075655e2ac85060a88e6f96ac921f1a963fde5557c2c69179cb0de95fa9c0c9eeab2c6c4aa168316861ba832748d8eb39f8d4678b9761d76ebf7732b4beb3
7
- data.tar.gz: aadb75a9870eb60ad9de8b8317b36fd58872d2f8a5374d7ad9267356f0a987da3ab350262e60b829497e78ea56583ad08714505721bd09227790fa9c1ec9678c
6
+ metadata.gz: f0846b438a6c13ba4b0136cce22608c4c8cd83224b1d3214fd33936527489f524e4da940dd5e4f6a5aa86b4d2adf8f5dd2cf1db4a6d0173d4086105e5e73fac4
7
+ data.tar.gz: f48680e95a5a770a5484e8ffcf4ca7bd0c3e93de94a7511e45c140fc13315d6eff004567e44c78c747886cab8afc7a9fdd8ff8467100c026b4dcc134457a3bf5
data/README.md CHANGED
@@ -20,6 +20,7 @@ Or install it yourself as:
20
20
 
21
21
  ### Store the strings "Doppler Value Investing" and "Bargain Stock Funds" at /home/wbuffett/test.txt:
22
22
  array1 = ["Doppler Value Investing", "Bargain Stock Funds"]
23
+
23
24
  ArrayInFile.write(array1, "/home/wbuffett/test.txt")
24
25
 
25
26
  ### Read the string stored at /home/wbuffett/test.txt:
@@ -8,7 +8,9 @@ Gem::Specification.new do |spec|
8
8
  spec.authors = ["Jason Hsu"]
9
9
  spec.email = ["rubyist@jasonhsu.com"]
10
10
  spec.summary = %q{Stores string arrays in files}
11
+ spec.description = %q{Stores string arrays in files}
11
12
  spec.license = "MIT"
13
+ spec.homepage = "http://github.com/jhsu802701/array_in_file"
12
14
 
13
15
  spec.files = `git ls-files`.split($/)
14
16
  spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
@@ -1,3 +1,3 @@
1
1
  module ArrayInFile
2
- VERSION = "0.0.0"
2
+ VERSION = "0.0.1"
3
3
  end
@@ -5,7 +5,7 @@ describe ArrayInFile do
5
5
  it "should return the array contents of a file" do
6
6
  file_to_read = File.expand_path("../file_to_read.txt", __FILE__)
7
7
  array_to_read = ArrayInFile.read(file_to_read)
8
- array_to_read.should == ["Doppler Value Investing", "Bargain Stock Funds"]
8
+ expect(array_to_read).to eq(["Doppler Value Investing", "Bargain Stock Funds"])
9
9
  end
10
10
 
11
11
  it "should write the array contents to a file" do
@@ -13,7 +13,7 @@ describe ArrayInFile do
13
13
  array_to_write = ["Warren Buffett", "Charlie Munger"]
14
14
  ArrayInFile.write(array_to_write, file_to_write)
15
15
  array_to_read = ArrayInFile.read(file_to_write)
16
- array_to_read.should == array_to_write
16
+ expect(array_to_read).to eq(array_to_write)
17
17
  end
18
18
 
19
19
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: array_in_file
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.0
4
+ version: 0.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jason Hsu
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-10-17 00:00:00.000000000 Z
11
+ date: 2014-09-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -52,7 +52,7 @@ dependencies:
52
52
  - - '>='
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
- description:
55
+ description: Stores string arrays in files
56
56
  email:
57
57
  - rubyist@jasonhsu.com
58
58
  executables: []
@@ -70,7 +70,7 @@ files:
70
70
  - spec/lib/array_in_file_spec.rb
71
71
  - spec/lib/file_to_read.txt
72
72
  - spec/spec_helper.rb
73
- homepage:
73
+ homepage: http://github.com/jhsu802701/array_in_file
74
74
  licenses:
75
75
  - MIT
76
76
  metadata: {}
@@ -90,7 +90,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
90
90
  version: '0'
91
91
  requirements: []
92
92
  rubyforge_project:
93
- rubygems_version: 2.0.3
93
+ rubygems_version: 2.2.2
94
94
  signing_key:
95
95
  specification_version: 4
96
96
  summary: Stores string arrays in files
@@ -98,4 +98,3 @@ test_files:
98
98
  - spec/lib/array_in_file_spec.rb
99
99
  - spec/lib/file_to_read.txt
100
100
  - spec/spec_helper.rb
101
- has_rdoc: