ruby-clip 0.1.0 → 0.1.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 +4 -4
- data/README.md +3 -5
- data/lib/clip/file.rb +1 -1
- data/lib/clip/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1a11ef9513bb0c1e56022467aa52bb1ec5b0d2022d5f7fe2a0e1bcaf2e6925e8
|
4
|
+
data.tar.gz: f31e6582e048fdafff781774cb0c68faedfc3b669a8c15e14f00dbedec5445e4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d2df9714709b52551464519dca7dcb64800071b2f1f258a222096c96ccdab81425d281a527040394253376f94d45a1794116e613bb3306e95a2d36b7ce80611d
|
7
|
+
data.tar.gz: 96e4ace26b7525b22891879870a48d45ad354b2bd1e16fc419faa96727f13aefb5a7f22ffca5794339854f1894399b963e7d510fcf8496c30aff013ca37338a8
|
data/README.md
CHANGED
@@ -5,18 +5,16 @@ the Canvas previews out of the file.
|
|
5
5
|
|
6
6
|
## Installation
|
7
7
|
|
8
|
-
TODO: Replace `UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG` with your gem name right after releasing it to RubyGems.org. Please do not do it earlier due to security reasons. Alternatively, replace this section with instructions to install your gem from git if you don't plan to release to RubyGems.org.
|
9
|
-
|
10
8
|
Install the gem and add to the application's Gemfile by executing:
|
11
9
|
|
12
10
|
```bash
|
13
|
-
bundle add
|
11
|
+
bundle add ruby-clip
|
14
12
|
```
|
15
13
|
|
16
14
|
If bundler is not being used to manage dependencies, install the gem by executing:
|
17
15
|
|
18
16
|
```bash
|
19
|
-
gem install
|
17
|
+
gem install ruby-clip
|
20
18
|
```
|
21
19
|
|
22
20
|
## Usage
|
@@ -25,7 +23,7 @@ gem install UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG
|
|
25
23
|
require 'clip'
|
26
24
|
|
27
25
|
file = Clip::File.open('/path/to/file.clip')
|
28
|
-
preview = file.
|
26
|
+
preview = file.canvas_previews.first
|
29
27
|
|
30
28
|
# Get info about the canvas preview
|
31
29
|
preview.width # => 800
|
data/lib/clip/file.rb
CHANGED
data/lib/clip/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby-clip
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Julien 'Lta' BALLET
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-12-
|
11
|
+
date: 2024-12-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sqlite3
|