file-append 0.0.1

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 +7 -0
  2. data/lib/file-append.rb +7 -0
  3. metadata +58 -0
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 197377cc90528e25bf7e59f1a2282f7e7624320e
4
+ data.tar.gz: d4ffc3f24b930cec050de4dfefb4db8142274dac
5
+ SHA512:
6
+ metadata.gz: 0c3d46e023990bbde86e756804b0d69eea53bd7b591e762127b6d1cb5a0c54894ee675771ff5128a810d97ba33b7b43b7b08e2e988639e2035761ada5cf7c8b0
7
+ data.tar.gz: 97e5250601245ce82cce0ba4782b0b73a6ca69e01b86f02e533fb456fb40998c512f568ec65d276b8a5b292e123394d99dec3fe676823b7204545e49834bfb71
@@ -0,0 +1,7 @@
1
+ class File
2
+ def File.append(name, string, open_args = nil)
3
+ File.open(name, 'a', open_args) do |f|
4
+ f.write(string)
5
+ end
6
+ end
7
+ end
metadata ADDED
@@ -0,0 +1,58 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: file-append
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Ben Porter
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2015-03-02 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rspec
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '3.2'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '3.2'
27
+ description: Adds a File.append convenience function
28
+ email: BenjaminPorter86@gmail.com
29
+ executables: []
30
+ extensions: []
31
+ extra_rdoc_files: []
32
+ files:
33
+ - lib/file-append.rb
34
+ homepage: http://rubygems.org/gems/file-append
35
+ licenses:
36
+ - MIT
37
+ metadata: {}
38
+ post_install_message:
39
+ rdoc_options: []
40
+ require_paths:
41
+ - lib
42
+ required_ruby_version: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - ">="
45
+ - !ruby/object:Gem::Version
46
+ version: '0'
47
+ required_rubygems_version: !ruby/object:Gem::Requirement
48
+ requirements:
49
+ - - ">="
50
+ - !ruby/object:Gem::Version
51
+ version: '0'
52
+ requirements: []
53
+ rubyforge_project:
54
+ rubygems_version: 2.2.2
55
+ signing_key:
56
+ specification_version: 4
57
+ summary: Adds a File.append convenience function
58
+ test_files: []