capture_image 0.0.4 → 0.0.5
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.
- data/README.md +1 -0
- data/README.md~ +15 -11
- data/capture_image.gemspec +2 -2
- data/lib/capture_image/version.rb +1 -1
- data/lib/capture_image/version.rb~ +1 -1
- metadata +3 -3
data/README.md
CHANGED
data/README.md~
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
# CaptureImage
|
2
2
|
|
3
3
|
It's create the image of given url, uses Phantomjs at backend to create image
|
4
|
+
|
4
5
|
http://phantomjs.org/
|
5
6
|
|
6
7
|
## Installation
|
@@ -17,26 +18,30 @@ Or install it yourself as:
|
|
17
18
|
|
18
19
|
$ gem install capture_image
|
19
20
|
|
21
|
+
|
22
|
+
|
23
|
+
## Authors
|
24
|
+
|
25
|
+
https://github.com/muhammad-irfan-confiz
|
26
|
+
|
27
|
+
##Links
|
28
|
+
|
29
|
+
|
30
|
+
|
20
31
|
## Usage
|
21
32
|
|
22
|
-
Just create the
|
33
|
+
Just create the form tag and pass the url as text field i.e.
|
23
34
|
|
24
35
|
<%=form_tag ( { controller: "home", action: "capture_image" } ) do%>
|
25
36
|
<%= text_field_tag "url", nil %>
|
26
37
|
<%= submit_tag :create%>
|
27
38
|
<%end%>
|
28
|
-
|
29
39
|
|
30
|
-
Pass the url to Rack
|
40
|
+
Pass the url to Rack to create the image i.e.
|
31
41
|
|
32
|
-
|
33
|
-
|
42
|
+
req = Rack::Request.new(env)
|
43
|
+
req.params[:url] = url
|
34
44
|
|
35
|
-
|
36
|
-
it uses the middleware at backend to capture image so if you want to handle the request according to your functionality
|
37
|
-
then you can edit the middleware.
|
38
|
-
|
39
|
-
|
40
45
|
|
41
46
|
## Contributing
|
42
47
|
|
@@ -45,4 +50,3 @@ Pass the url to Rack via action to create the image
|
|
45
50
|
3. Commit your changes (`git commit -am 'Add some feature'`)
|
46
51
|
4. Push to the branch (`git push origin my-new-feature`)
|
47
52
|
5. Create new Pull Request
|
48
|
-
|
data/capture_image.gemspec
CHANGED
@@ -6,8 +6,8 @@ require 'capture_image/version'
|
|
6
6
|
Gem::Specification.new do |spec|
|
7
7
|
spec.name = "capture_image"
|
8
8
|
spec.version = CaptureImage::VERSION
|
9
|
-
spec.authors = ["muhammad
|
10
|
-
spec.email = ["
|
9
|
+
spec.authors = ["muhammad irfan"]
|
10
|
+
spec.email = ["muhammad_irfan899@yahoo.com"]
|
11
11
|
spec.description = %q{it uses phantomjs at backend to create an image of given url on middleware level }
|
12
12
|
spec.summary = %q{it creates an image of given url using middleware}
|
13
13
|
spec.homepage = ""
|
metadata
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capture_image
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
|
-
- muhammad
|
8
|
+
- muhammad irfan
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
@@ -62,7 +62,7 @@ dependencies:
|
|
62
62
|
description: ! 'it uses phantomjs at backend to create an image of given url on middleware
|
63
63
|
level '
|
64
64
|
email:
|
65
|
-
-
|
65
|
+
- muhammad_irfan899@yahoo.com
|
66
66
|
executables: []
|
67
67
|
extensions: []
|
68
68
|
extra_rdoc_files: []
|