website_information 0.1.0 → 0.2.0

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1428b1f5bea787bdb8f674498f5787df3510ab62
4
- data.tar.gz: f230fe57c0bbc4fc80297ff22f96133301ed8c76
3
+ metadata.gz: c1f618f87459edd9a2fb37519d16c064015c7576
4
+ data.tar.gz: ff4cad05a64d9758d26b03a3fb93551b13bf1180
5
5
  SHA512:
6
- metadata.gz: f8c852d8d117929c45a593fcbbfaf166ae42ebf21c99cf2422ca3e52c2a1bd402e461992d3c748a549fcf2dce553e6063987a89c7fd700d1b53aafbbbaa9f2f5
7
- data.tar.gz: 1e949a4ae64ed51c5404b6b243025852e3890ab90da801d4cbe55e728d8b937a9d9756b7150779238ec770ff0d107321b66effba7bb7dd13d397e6e16d80e5ee
6
+ metadata.gz: d52522bae8b866c2e4798c39d9a78019580e0f26eea8e13b6e30e860488240ca2ddb35097409f8d44f8bd1274a84245aa0d9d4291a9ebbfee43fa04f537a1d2f
7
+ data.tar.gz: adb81f57b949f6d7141ab9e1e05a6822af3989c2356268d31d9d4cfb1caf50b4c193b58acc607cf8f06eb64d3661ae754232a019d15b682c362a45f4b86effe0
@@ -0,0 +1,2 @@
1
+ # lib/website_information/params/site.rb capture url
2
+ export CAPTURE_URL=
data/README.md CHANGED
@@ -20,6 +20,10 @@ Or install it yourself as:
20
20
 
21
21
  $ gem install website_information
22
22
 
23
+ Please set an environment variable if you want to use site capture.
24
+
25
+ $ export CAPTURE_URL=/* site capture service url*/
26
+
23
27
  ## Usage
24
28
 
25
29
  ```
@@ -31,7 +35,7 @@ scraped_params.title
31
35
 
32
36
  ## Contributing
33
37
 
34
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/website_information. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
38
+ Bug reports and pull requests are welcome on GitHub at https://github.com/miraoto/website_information. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
35
39
 
36
40
  ## License
37
41
 
@@ -16,6 +16,11 @@ module WebsiteInformation
16
16
  def og
17
17
  @og
18
18
  end
19
+
20
+ def capture
21
+ return if ENV['CAPTURE_URL'].nil?
22
+ "#{ENV['CAPTURE_URL']}#{@url}"
23
+ end
19
24
  end
20
25
  end
21
26
  end
@@ -1,3 +1,3 @@
1
1
  module WebsiteInformation
2
- VERSION = "0.1.0"
2
+ VERSION = "0.2.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: website_information
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - miraoto
@@ -87,6 +87,7 @@ executables: []
87
87
  extensions: []
88
88
  extra_rdoc_files: []
89
89
  files:
90
+ - ".env.sample"
90
91
  - ".gitignore"
91
92
  - ".rspec"
92
93
  - ".travis.yml"