strict-data-uri 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: f02428e738b890fc31d7040ebb01c0241e5b6920628854785a052ace765a6698
4
- data.tar.gz: 3bfcbccee412d8a8c80a1ff4bb983ce3f393a60f80d01bb790b4ed7efa81b759
3
+ metadata.gz: 4ded663b1e65780a930ccc7c0854ea00c6a3a28ca1bc73427d4f1f474593975a
4
+ data.tar.gz: 4a5c7fa06914fc9189c3b935f2dae4319a58e866a83c26da37bbbc1f66389863
5
5
  SHA512:
6
- metadata.gz: e85a5cbeb1bbc187a5c4405d0e4a8c10068f48f1b8aa0e160dc6d516bd8513f492b82f2fb45ccc54154234775276c7597d8bde322281e4c27992ab4495f3ada8
7
- data.tar.gz: 3b931b45aeb67aa455991d54bbc1d9cfabd5071ec7891e7263fe31b8dcaa2c0108a456305cc1642660e45f92c417a196685911f4c04df4c9791c2f55ff179f6d
6
+ metadata.gz: 97368d76356937d44ed01d6f8e32b19f191a5731d12936893ad20b5df709628cde328f7c86ceb6ff7ef8d6448572f3f0d506b1bb3d9a67e516e7a14bfc5a4529
7
+ data.tar.gz: 7ca778110dc3f2069b9f7c41fc9b43ad59e7d91fdd8ba02139167b855d11f066112e1138a182578677a2d583cd63fe08ff89603dfae0dd4c19105aed5d156f34
data/README.md CHANGED
@@ -1,8 +1,8 @@
1
1
  # Strict::Data::Uri
2
2
 
3
- 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/strict/data/uri`. To experiment with that code, run `bin/console` for an interactive prompt.
3
+ This en- and decodes data URIs.
4
4
 
5
- TODO: Delete this and the text above, and describe your gem
5
+ This was inspired by [data-uri](https://rubygems.org/gems/data-uri).
6
6
 
7
7
  ## Installation
8
8
 
@@ -14,21 +14,33 @@ gem 'strict-data-uri'
14
14
 
15
15
  And then execute:
16
16
 
17
- $ bundle install
17
+ ```bash
18
+ bundle install
19
+ ```
18
20
 
19
- Or install it yourself as:
21
+ ## Usage
20
22
 
21
- $ gem install strict-data-uri
23
+ Encode a string into a data URI:
22
24
 
23
- ## Usage
25
+ ```ruby
26
+ Strict::Data::Uri.encode "string"
27
+ # => data:text/plain;base64,c3RyaW5n
28
+ ```
24
29
 
25
- TODO: Write usage instructions here
30
+ Decode a data URI:
26
31
 
27
- ## Development
32
+ ```ruby
33
+ Strict::Data::Uri.decode "data:text/plain;base64,c3RyaW5n"
34
+ # => string
35
+ ```
28
36
 
29
- After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
37
+ ## Testing
30
38
 
31
- To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
39
+ To run the tests:
40
+
41
+ ```bash
42
+ bundle exec rake
43
+ ```
32
44
 
33
45
  ## Contributing
34
46
 
@@ -3,7 +3,7 @@
3
3
  module Strict
4
4
  module Data
5
5
  module Uri
6
- VERSION = "0.1.0"
6
+ VERSION = "0.1.1"
7
7
  end
8
8
  end
9
9
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: strict-data-uri
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
  - Emil Kampp
@@ -53,7 +53,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  requirements: []
56
- rubygems_version: 3.2.22
56
+ rubygems_version: 3.2.32
57
57
  signing_key:
58
58
  specification_version: 4
59
59
  summary: Strict Data-URI en/decoding