files 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/README.md +4 -4
  2. data/lib/files.rb +2 -2
  3. data/lib/files/version.rb +1 -1
  4. metadata +4 -4
data/README.md CHANGED
@@ -6,7 +6,7 @@ Ever want to create a whole bunch of files at once? Like when you're writing tes
6
6
 
7
7
  ## Usage (mixin mode)
8
8
 
9
- The mixin mode is a fairly clean API, suitable for use in unit tests. After `include Files` you can call `file` or `dir` to make a temporary file or directory; it'll put them into a new temp dir that is removed on process exit. It also saves a reference to this directory inside an instance variable named `@files` so you can't use that name for your own instance variables.
9
+ The mixin mode is a fairly clean API, suitable for use in unit tests. After `include Files` you can call `file` or `dir` to make a temporary file or directory; it'll put them into a new temp dir that is removed on process exit. It also saves a reference to this directory inside an instance variable named `@files` (so don't use that name for your own instance variables).
10
10
 
11
11
  require "files"
12
12
  include Files
@@ -22,7 +22,7 @@ The mixin mode is a fairly clean API, suitable for use in unit tests. After `inc
22
22
  end
23
23
  end
24
24
 
25
- files.root # creates (or returns) the temporary directory
25
+ files.root # returns the path to the temporary directory, creating it if necessary
26
26
 
27
27
  ## Usage (bare function mode)
28
28
 
@@ -52,7 +52,7 @@ see `test/files_test.rb` for more usage examples
52
52
  * the directory name is based on the name of the source file you called Files from
53
53
  * if the first argument to `file` is a String, then a new file is made
54
54
  * the content of the new file is either a short, descriptive message, or whatever you passed as the second argument
55
- * if the argument to `file` is a Ruby `File` object, then it copies the contents of the named file into the temporary location
55
+ * if the argument to `file` is a Ruby `File` object, then it copies the named file into the new location
56
56
 
57
57
  ## TODO
58
58
 
@@ -70,7 +70,7 @@ see `test/files_test.rb` for more usage examples
70
70
 
71
71
  Written by Alex Chaffee <http://alexchaffee.com> <mailto:alex@stinky.com> <http://github.com/alexch> [@alexch](http://twitter.com/alexch)
72
72
 
73
- ## License
73
+ ## License [MIT]
74
74
 
75
75
  Copyright (C) 2012 Alex Chaffee
76
76
 
@@ -88,7 +88,7 @@ module Files
88
88
  end
89
89
  end
90
90
 
91
- def Files options = Files.default_options, &block
92
- files = Files.create options, &block
91
+ def Files options = ::Files.default_options, &block
92
+ files = ::Files.create options, &block
93
93
  files.root
94
94
  end
@@ -1,3 +1,3 @@
1
1
  module Files
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: files
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-01-24 00:00:00.000000000Z
12
+ date: 2012-01-25 00:00:00.000000000Z
13
13
  dependencies: []
14
14
  description: Ever want to create a whole bunch of files at once? Like when you're
15
15
  writing tests for a tool that processes files? The Files gem lets you cleanly specify
@@ -45,7 +45,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
45
45
  version: '0'
46
46
  segments:
47
47
  - 0
48
- hash: -1401824793539482884
48
+ hash: -4160850693345767944
49
49
  required_rubygems_version: !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
@@ -54,7 +54,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
54
54
  version: '0'
55
55
  segments:
56
56
  - 0
57
- hash: -1401824793539482884
57
+ hash: -4160850693345767944
58
58
  requirements: []
59
59
  rubyforge_project: files
60
60
  rubygems_version: 1.8.6