ruby-clip 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 38d04be6e9a54a1bd07fef270d5040d36bae39572be238876fa64baa089dae4a
4
- data.tar.gz: b4a4f2532d37c2ee5db743af02d7429a2005e0bb74ed1c234d6578a84d92e4b6
3
+ metadata.gz: 1a11ef9513bb0c1e56022467aa52bb1ec5b0d2022d5f7fe2a0e1bcaf2e6925e8
4
+ data.tar.gz: f31e6582e048fdafff781774cb0c68faedfc3b669a8c15e14f00dbedec5445e4
5
5
  SHA512:
6
- metadata.gz: 7f922425c94fafe8ccf6178376ca33364ab0f99a86a096e8c83d37f399b372cc0825c0c084c6c2ee63bbab3039b93ea3f91db8a4b733518fe80a52d1c7825b5a
7
- data.tar.gz: 9b9a06d319e20734c9412521b3b26148376c93147c1907c52a82d3784ed116adfaae09ab9092cc5e5ca43b6a2e0095b2dc968c66b7acf069b0bac5f1b84a5abd
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 UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG
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 UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG
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.previews.first
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
@@ -50,7 +50,7 @@ module Clip
50
50
  def sqlite_file
51
51
  @sqlite_file ||=
52
52
  begin
53
- file = Tempfile.new("ruby-clip-#{basename}--")
53
+ file = Tempfile.new("ruby-clip-#{basename}--", binmode: true)
54
54
  file.write(sqlite_content)
55
55
  file.seek(0)
56
56
  file
data/lib/clip/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Clip
4
- VERSION = "0.1.0"
4
+ VERSION = "0.1.1"
5
5
  end
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.0
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 00:00:00.000000000 Z
11
+ date: 2024-12-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sqlite3