capture_image 0.0.3 → 0.0.4

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
@@ -1,7 +1,6 @@
1
1
  # CaptureImage
2
2
 
3
3
  It's create the image of given url, uses Phantomjs at backend to create image
4
-
5
4
  http://phantomjs.org/
6
5
 
7
6
  ## Installation
@@ -18,30 +17,26 @@ Or install it yourself as:
18
17
 
19
18
  $ gem install capture_image
20
19
 
21
-
22
-
23
- ## Authors
24
-
25
- https://github.com/muhammad-irfan-confiz
26
-
27
- ##Links
28
-
29
- home page
30
-
31
-
32
20
  ## Usage
33
21
 
34
- Just create the form tag and pass the url as text field i.e.
22
+ Just create the form_tag and pass the url as text_field i.e.
35
23
 
36
24
  <%=form_tag ( { controller: "home", action: "capture_image" } ) do%>
37
25
  <%= text_field_tag "url", nil %>
38
26
  <%= submit_tag :create%>
39
27
  <%end%>
28
+
40
29
 
41
- Pass the url to Rack to create the image i.e.
30
+ Pass the url to Rack via action to create the image
42
31
 
43
32
  req = Rack::Request.new(params[:url])
33
+ req.params[:url] = url
44
34
 
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
+
45
40
 
46
41
  ## Contributing
47
42
 
@@ -50,3 +45,4 @@ Pass the url to Rack to create the image i.e.
50
45
  3. Commit your changes (`git commit -am 'Add some feature'`)
51
46
  4. Push to the branch (`git push origin my-new-feature`)
52
47
  5. Create new Pull Request
48
+
data/README.md~ ADDED
@@ -0,0 +1,48 @@
1
+ # CaptureImage
2
+
3
+ It's create the image of given url, uses Phantomjs at backend to create image
4
+ http://phantomjs.org/
5
+
6
+ ## Installation
7
+
8
+ Add this line to your application's Gemfile:
9
+
10
+ gem 'capture_image'
11
+
12
+ And then execute:
13
+
14
+ $ bundle
15
+
16
+ Or install it yourself as:
17
+
18
+ $ gem install capture_image
19
+
20
+ ## Usage
21
+
22
+ Just create the form_tag and pass the url as text_field i.e.
23
+
24
+ <%=form_tag ( { controller: "home", action: "capture_image" } ) do%>
25
+ <%= text_field_tag "url", nil %>
26
+ <%= submit_tag :create%>
27
+ <%end%>
28
+
29
+
30
+ Pass the url to Rack via action to create the image
31
+
32
+ req = Rack::Request.new(params[:url])
33
+ req.params[:url] = url
34
+
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
+
41
+ ## Contributing
42
+
43
+ 1. Fork it
44
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
45
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
46
+ 4. Push to the branch (`git push origin my-new-feature`)
47
+ 5. Create new Pull Request
48
+
@@ -1,3 +1,3 @@
1
1
  module CaptureImage
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
@@ -0,0 +1,3 @@
1
+ module CaptureImage
2
+ VERSION = "0.0.4"
3
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capture_image
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-10-02 00:00:00.000000000 Z
12
+ date: 2013-10-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -71,12 +71,14 @@ files:
71
71
  - Gemfile
72
72
  - LICENSE.txt
73
73
  - README.md
74
+ - README.md~
74
75
  - Rakefile
75
76
  - capture_image.gemspec
76
77
  - capture_image.gemspec~
77
78
  - lib/capture_image.rb
78
79
  - lib/capture_image.rb~
79
80
  - lib/capture_image/version.rb
81
+ - lib/capture_image/version.rb~
80
82
  - lib/phantomjs_rasterize/rasterize.js
81
83
  - lib/phantomjs_rasterize/rasterize.js~
82
84
  homepage: ''