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 CHANGED
@@ -46,3 +46,4 @@ Pass the url to Rack via action to create the image
46
46
  4. Push to the branch (`git push origin my-new-feature`)
47
47
  5. Create new Pull Request
48
48
 
49
+
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 form_tag and pass the url as text_field i.e.
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 via action to create the image
40
+ Pass the url to Rack to create the image i.e.
31
41
 
32
- req = Rack::Request.new(params[:url])
33
- req.params[:url] = url
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
-
@@ -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-irfan-confiz"]
10
- spec.email = ["muhammad.irfan@confiz.com"]
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 = ""
@@ -1,3 +1,3 @@
1
1
  module CaptureImage
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
@@ -1,3 +1,3 @@
1
1
  module CaptureImage
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.3"
3
3
  end
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
4
+ version: 0.0.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
8
- - muhammad-irfan-confiz
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
- - muhammad.irfan@confiz.com
65
+ - muhammad_irfan899@yahoo.com
66
66
  executables: []
67
67
  extensions: []
68
68
  extra_rdoc_files: []