Skip to content

Commit da91d35

Browse files
committed
version bump
1 parent c17e69c commit da91d35

File tree

4 files changed

+74
-102
lines changed

4 files changed

+74
-102
lines changed

README.md

Lines changed: 20 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,25 @@
55
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
66
[![Twitter Follow](https://img.shields.io/twitter/follow/imagekitio?label=Follow&style=social)](https://twitter.com/ImagekitIo)
77

8+
Rails SDK for [ImageKit](https://imagekit.io/) that implements the new APIs and interface for performing different file operations.
9+
10+
ImageKit is a complete image optimization and transformation solution that comes with and
11+
[image CDN](https://imagekit.io/features/imagekit-infrastructure) and media storage. It can be integrated with your
12+
existing infrastructure - storage like AWS s3, web servers, your CDN, and custom domain names, allowing you to deliver
13+
optimize images in minutes with minimal code changes.
14+
15+
Table of contents -
16+
* [Installation](#Installation)
17+
* [Initialization](#Initialization)
18+
* [URL Generation](#URL-generation)
19+
* [File Upload](#File-Upload)
20+
* [File Management](#File-Management)
21+
* [Utility Functions](#Utility-functions)
22+
* [Sample applications](#Sample-Application)
23+
* [Support](#Support)
24+
* [Links](#Links)
25+
26+
827
## Installation
928

1029
If you want to create new rails application, then use this command
@@ -31,25 +50,6 @@ Or install it yourself as:
3150
```
3251
$ gem install imagekitio
3352
```
34-
## Usage
35-
36-
Rails SDK for [ImageKit](https://imagekit.io/) that implements the new APIs and interface for performing different file operations.
37-
38-
ImageKit is a complete image optimization and transformation solution that comes with and
39-
[image CDN](https://imagekit.io/features/imagekit-infrastructure) and media storage. It can be integrated with your
40-
existing infrastructure - storage like AWS s3, web servers, your CDN, and custom domain names, allowing you to deliver
41-
optimize images in minutes with minimal code changes.
42-
43-
Table of contents -
44-
* [Installation](#Installation)
45-
* [Initialization](#Initialization)
46-
* [URL Generation](#URL-generation)
47-
* [File Upload](#File-Upload)
48-
* [File Management](#File-Management)
49-
* [Utility Functions](#Utility-functions)
50-
* [Support](#Support)
51-
* [Links](#Links)
52-
5353

5454
## Initialization
5555

@@ -92,8 +92,6 @@ end
9292
def store_dir
9393
"your_directory/"
9494
end
95-
96-
9795
```
9896

9997
Then you need to modify your model. for example- if your model name is employee then do these changes
@@ -103,7 +101,6 @@ class Employee < ApplicationRecord
103101
attr_accessor :avatar
104102
mount_uploader :avatar, AvatarUploader
105103
end
106-
107104
```
108105

109106
Get image url:
@@ -465,7 +462,7 @@ imagekitio.phash_distance('a4a65595ac94518b', '7838873e791f8400')
465462
# output: 37 (dissimilar images)
466463
```
467464

468-
## Sample Code Instruction
465+
## Sample Application
469466
There are two sample apps:
470467
* [Rails application using Carrierwave](#Instructions-for-rails-application)
471468
* [Plain ruby application](#Instructions-for-ruby-application)
@@ -499,7 +496,6 @@ This sample project are using Sqlite3 database. If you are getting `sqlite3` gem
499496
```ruby
500497
bundle exec rake db:migrate
501498
```
502-
This sample project is using Sqlite3 database. If you are getting `sqlite3` gem installation error, then install sqlite3 first then again run `bundle install`.
503499

504500
**6. Run your application**
505501
```ruby

lib/imagekit/sdk/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module Imagekit
22
module Sdk
3-
VERSION = '1.0.4'
3+
VERSION = '1.0.5'
44
end
55
end

samples/rails_app/Gemfile.lock

Lines changed: 53 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,50 @@
11
PATH
22
remote: ../..
33
specs:
4-
imagekitio (1.0.0)
4+
imagekitio (1.0.5)
55
carrierwave (>= 0.7, < 2.2)
66
rest-client (~> 2.1, >= 2.1)
77

88
GEM
99
remote: https://rubygems.org/
1010
specs:
11-
actioncable (5.2.4.2)
12-
actionpack (= 5.2.4.2)
11+
actioncable (5.2.4.3)
12+
actionpack (= 5.2.4.3)
1313
nio4r (~> 2.0)
1414
websocket-driver (>= 0.6.1)
15-
actionmailer (5.2.4.2)
16-
actionpack (= 5.2.4.2)
17-
actionview (= 5.2.4.2)
18-
activejob (= 5.2.4.2)
15+
actionmailer (5.2.4.3)
16+
actionpack (= 5.2.4.3)
17+
actionview (= 5.2.4.3)
18+
activejob (= 5.2.4.3)
1919
mail (~> 2.5, >= 2.5.4)
2020
rails-dom-testing (~> 2.0)
21-
actionpack (5.2.4.2)
22-
actionview (= 5.2.4.2)
23-
activesupport (= 5.2.4.2)
21+
actionpack (5.2.4.3)
22+
actionview (= 5.2.4.3)
23+
activesupport (= 5.2.4.3)
2424
rack (~> 2.0, >= 2.0.8)
2525
rack-test (>= 0.6.3)
2626
rails-dom-testing (~> 2.0)
2727
rails-html-sanitizer (~> 1.0, >= 1.0.2)
28-
actionview (5.2.4.2)
29-
activesupport (= 5.2.4.2)
28+
actionview (5.2.4.3)
29+
activesupport (= 5.2.4.3)
3030
builder (~> 3.1)
3131
erubi (~> 1.4)
3232
rails-dom-testing (~> 2.0)
3333
rails-html-sanitizer (~> 1.0, >= 1.0.3)
34-
activejob (5.2.4.2)
35-
activesupport (= 5.2.4.2)
34+
activejob (5.2.4.3)
35+
activesupport (= 5.2.4.3)
3636
globalid (>= 0.3.6)
37-
activemodel (5.2.4.2)
38-
activesupport (= 5.2.4.2)
39-
activerecord (5.2.4.2)
40-
activemodel (= 5.2.4.2)
41-
activesupport (= 5.2.4.2)
37+
activemodel (5.2.4.3)
38+
activesupport (= 5.2.4.3)
39+
activerecord (5.2.4.3)
40+
activemodel (= 5.2.4.3)
41+
activesupport (= 5.2.4.3)
4242
arel (>= 9.0)
43-
activestorage (5.2.4.2)
44-
actionpack (= 5.2.4.2)
45-
activerecord (= 5.2.4.2)
43+
activestorage (5.2.4.3)
44+
actionpack (= 5.2.4.3)
45+
activerecord (= 5.2.4.3)
4646
marcel (~> 0.3.1)
47-
activesupport (5.2.4.2)
47+
activesupport (5.2.4.3)
4848
concurrent-ruby (~> 1.0, >= 1.0.2)
4949
i18n (>= 0.7, < 2)
5050
minitest (~> 5.1)
@@ -58,8 +58,8 @@ GEM
5858
bootsnap (1.4.6)
5959
msgpack (~> 1.0)
6060
builder (3.2.4)
61-
byebug (11.1.1)
62-
capybara (3.31.0)
61+
byebug (11.1.3)
62+
capybara (3.33.0)
6363
addressable
6464
mini_mime (>= 0.1.3)
6565
nokogiri (~> 1.8)
@@ -78,7 +78,7 @@ GEM
7878
chromedriver-helper (2.1.1)
7979
archive-zip (~> 0.10)
8080
nokogiri (~> 1.8)
81-
coderay (1.1.2)
81+
coderay (1.1.3)
8282
coffee-rails (4.2.2)
8383
coffee-script (>= 2.2.0)
8484
railties (>= 4.0.0)
@@ -92,13 +92,13 @@ GEM
9292
unf (>= 0.0.5, < 1.0.0)
9393
erubi (1.9.0)
9494
execjs (2.7.0)
95-
ffi (1.12.2)
95+
ffi (1.13.1)
9696
globalid (0.4.2)
9797
activesupport (>= 4.2.0)
9898
http-accept (1.7.0)
9999
http-cookie (1.0.3)
100100
domain_name (~> 0.5)
101-
i18n (1.8.2)
101+
i18n (1.8.3)
102102
concurrent-ruby (~> 1.0)
103103
image_processing (1.11.0)
104104
mini_magick (>= 4.9.5, < 5)
@@ -110,7 +110,7 @@ GEM
110110
rb-fsevent (~> 0.9, >= 0.9.4)
111111
rb-inotify (~> 0.9, >= 0.9.7)
112112
ruby_dep (~> 1.2)
113-
loofah (2.4.0)
113+
loofah (2.6.0)
114114
crass (~> 1.0.2)
115115
nokogiri (>= 1.5.9)
116116
mail (2.7.1)
@@ -121,53 +121,53 @@ GEM
121121
mime-types (3.3.1)
122122
mime-types-data (~> 3.2015)
123123
mime-types-data (3.2020.0512)
124-
mimemagic (0.3.4)
124+
mimemagic (0.3.5)
125125
mini_magick (4.10.1)
126126
mini_mime (1.0.2)
127127
mini_portile2 (2.4.0)
128-
minitest (5.14.0)
128+
minitest (5.14.1)
129129
msgpack (1.3.3)
130130
netrc (0.11.0)
131131
nio4r (2.5.2)
132-
nokogiri (1.10.9)
132+
nokogiri (1.10.10)
133133
mini_portile2 (~> 2.4.0)
134-
pry (0.13.0)
134+
pry (0.13.1)
135135
coderay (~> 1.1)
136136
method_source (~> 1.0)
137-
public_suffix (4.0.3)
138-
puma (3.12.4)
137+
public_suffix (4.0.5)
138+
puma (3.12.6)
139139
rack (2.2.3)
140140
rack-test (1.1.0)
141141
rack (>= 1.0, < 3)
142-
rails (5.2.4.2)
143-
actioncable (= 5.2.4.2)
144-
actionmailer (= 5.2.4.2)
145-
actionpack (= 5.2.4.2)
146-
actionview (= 5.2.4.2)
147-
activejob (= 5.2.4.2)
148-
activemodel (= 5.2.4.2)
149-
activerecord (= 5.2.4.2)
150-
activestorage (= 5.2.4.2)
151-
activesupport (= 5.2.4.2)
142+
rails (5.2.4.3)
143+
actioncable (= 5.2.4.3)
144+
actionmailer (= 5.2.4.3)
145+
actionpack (= 5.2.4.3)
146+
actionview (= 5.2.4.3)
147+
activejob (= 5.2.4.3)
148+
activemodel (= 5.2.4.3)
149+
activerecord (= 5.2.4.3)
150+
activestorage (= 5.2.4.3)
151+
activesupport (= 5.2.4.3)
152152
bundler (>= 1.3.0)
153-
railties (= 5.2.4.2)
153+
railties (= 5.2.4.3)
154154
sprockets-rails (>= 2.0.0)
155155
rails-dom-testing (2.0.3)
156156
activesupport (>= 4.2.0)
157157
nokogiri (>= 1.6)
158158
rails-html-sanitizer (1.3.0)
159159
loofah (~> 2.3)
160-
railties (5.2.4.2)
161-
actionpack (= 5.2.4.2)
162-
activesupport (= 5.2.4.2)
160+
railties (5.2.4.3)
161+
actionpack (= 5.2.4.3)
162+
activesupport (= 5.2.4.3)
163163
method_source
164164
rake (>= 0.8.7)
165165
thor (>= 0.19.0, < 2.0)
166166
rake (13.0.1)
167-
rb-fsevent (0.10.3)
167+
rb-fsevent (0.10.4)
168168
rb-inotify (0.10.1)
169169
ffi (~> 1.0)
170-
regexp_parser (1.7.0)
170+
regexp_parser (1.7.1)
171171
rest-client (2.1.0)
172172
http-accept (>= 1.7.0, < 2.0)
173173
http-cookie (>= 1.0.2, < 2.0)
@@ -209,7 +209,7 @@ GEM
209209
turbolinks (5.2.1)
210210
turbolinks-source (~> 5.2)
211211
turbolinks-source (5.2.0)
212-
tzinfo (1.2.6)
212+
tzinfo (1.2.7)
213213
thread_safe (~> 0.1)
214214
uglifier (4.2.0)
215215
execjs (>= 0.3.0, < 3)
@@ -221,7 +221,7 @@ GEM
221221
activemodel (>= 5.0)
222222
bindex (>= 0.4.0)
223223
railties (>= 5.0)
224-
websocket-driver (0.7.1)
224+
websocket-driver (0.7.3)
225225
websocket-extensions (>= 0.1.0)
226226
websocket-extensions (0.1.5)
227227
xpath (3.2.0)

samples/rails_app/README.md

Lines changed: 0 additions & 24 deletions
This file was deleted.

0 commit comments

Comments
 (0)