file_to_tempfile 0.1.0 → 0.1.2
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 +4 -4
- data/README.md +15 -15
- data/lib/file_to_tempfile/version.rb +1 -1
- data/sig/file_to_tempfile.rbs +2 -0
- 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: 54217f11a4d57f3f050f92ec323be0b03c7adf33fd5d35801d1f68c43d5b3187
|
4
|
+
data.tar.gz: 848dcd39cb3a2fb40a02e5e98fa1a6d549944d39658cd067746ebc661f15e506
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bca8123a9a6a89f86e656130a64fc5a1823881522e4f4772cfd326cdc89534f51324c7a169250e68166caa06602a85e5c96529ef4db7db87a60450434c74b88e
|
7
|
+
data.tar.gz: 9998aeaf6e31c14a0db077e8bb668d9b6af5fd0d7c985b8a31e33f63a6bc13dec8b14a637221e9e6a5c880ef157b47ebcfaf4cd98e9914456fe7d37d70e0ae64
|
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 'rubyt'
|
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
|
|
data/sig/file_to_tempfile.rbs
CHANGED