file_to_tempfile 0.1.1 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +15 -15
- data/lib/file_to_tempfile/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9d1da6db4271c7d79c287f08dd0d117a74d3689d121f0ddf0fbe1481b76e337f
|
4
|
+
data.tar.gz: 7012046a40dcac78d5f4ae979ea85f70a94760f33bfdfd31290985b8cb64ad36
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f497d6b69cf670836ffb69c78cb499aef523a9c64b42289fb87c17d2f03e45a71583bf947f1ad016c44066f9e784ee5d5c98e3155f312451fb202fe96aa6841d
|
7
|
+
data.tar.gz: '09b023418c99b5900e248d5b97a87da45e9a69818d30e5171928c2c4eb5542a86991d37e4c097b3687017150de4c8ce699687bc68d181b84a0fbb3105ed2e794'
|
data/README.md
CHANGED
@@ -1,34 +1,34 @@
|
|
1
1
|
# FileToTempfile
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/file_to_tempfile`. To experiment with that code, run `bin/console` for an interactive prompt.
|
3
|
+
Easily convert a File object to a Tempfile object.
|
6
4
|
|
7
5
|
## Installation
|
8
6
|
|
9
|
-
|
10
|
-
|
11
|
-
Install the gem and add to the application's Gemfile by executing:
|
7
|
+
Add this line to your application's Gemfile:
|
12
8
|
|
13
|
-
|
9
|
+
```ruby
|
10
|
+
gem 'file_to_tempfile'
|
11
|
+
```
|
14
12
|
|
15
|
-
|
13
|
+
And then execute:
|
16
14
|
|
17
|
-
|
15
|
+
```sh
|
16
|
+
$ bundle install
|
17
|
+
```
|
18
18
|
|
19
19
|
## Usage
|
20
20
|
|
21
|
-
|
22
|
-
|
23
|
-
## Development
|
21
|
+
```ruby
|
22
|
+
require 'file_to_tempfile'
|
24
23
|
|
25
|
-
|
24
|
+
file = File.open '.gitignore'
|
26
25
|
|
27
|
-
|
26
|
+
tempfile = FileToTempfile.convert(file)
|
27
|
+
```
|
28
28
|
|
29
29
|
## Contributing
|
30
30
|
|
31
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/
|
31
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/ZaikoXander/file_to_tempfile.
|
32
32
|
|
33
33
|
## License
|
34
34
|
|