infrataster 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2c82fc0eb0ddf400da9c52fcb3f00609f48eca3f
4
- data.tar.gz: c3137e2ce7db2ae7f6fe33fcf7ddb8f92777956d
3
+ metadata.gz: 30a8caff494d20499e9c34ed7cd0f87bc3d19890
4
+ data.tar.gz: fea6e96fc2ca5ba70317c400b0e1b22a6b91d2c8
5
5
  SHA512:
6
- metadata.gz: 6ca8fc7ecc4ab31749659a7b0b598479fa2057d48fe89352f858b7f6501f65472a5dbe5bae27e4d0f8554f75b0bdab0052a92d02132c69eb91cd4d6a7e22d0f7
7
- data.tar.gz: 8437f90d00d866f9940fd5df87952ca4c5a238b087a7658f94c738459c273d3930ac8ca4d2e07dca4cf107d66024b84ba407169eaf1dd910325b20be11d230dc
6
+ metadata.gz: ba347d3caf3b0401e8442b9965aaa7588dd22cbab24e05dc5ee95967980ceeb11f062ba3cb679664788dbf598620d6efc53ccd2d821d23b62655ce98033f455b
7
+ data.tar.gz: 1f0fc80ef9998d0ea255e0bb7771bc193e58c04ea030669caa945825f02e5b6740eb7ed5fb941cd8a02bf2accd2c3e15b478970a1ae67e09c893f3aab554605a
@@ -1,4 +1,13 @@
1
1
  # Infrataster Changelog
2
+
3
+ ## v0.2.1
4
+
5
+ * `http` resource support `ssl` option which is passed to Faraday.new (by @SnehaM)
6
+
7
+ ## v0.2.0
8
+
9
+ * No change
10
+
2
11
  ## v0.2.0.beta1
3
12
 
4
13
  * Support RSpec 3.x
data/README.md CHANGED
@@ -245,6 +245,12 @@ end
245
245
 
246
246
  `mysql_query` resource is now in [infrataster-plugin-mysql](https://github.com/ryotarai/infrataster-plugin-mysql).
247
247
 
248
+ ### `pgsql_query` resource
249
+
250
+ `pgsql_query` resource sends a query to PostgreSQL server.
251
+
252
+ `pgsql_query` is provided by [infrataster-plugin-pgsql](https://github.com/SnehaM/infrataster-plugin-pgsql) by [@SnehaM](https://github.com/SnehaM).
253
+
248
254
  ## Example
249
255
 
250
256
  * [example](example)
@@ -6,8 +6,13 @@ module Infrataster
6
6
  def response
7
7
  server.forward_port(resource.uri.port) do |address, port|
8
8
  url = "#{resource.uri.scheme}://#{address}:#{port}"
9
-
10
- conn = Faraday.new(:url => url) do |faraday|
9
+ options = {:url => url}
10
+
11
+ if resource.uri.scheme == 'https'
12
+ options[:ssl] = resource.ssl_option
13
+ end
14
+
15
+ conn = Faraday.new(options) do |faraday|
11
16
  faraday.request :url_encoded
12
17
  faraday.response :logger, Logger
13
18
  faraday.adapter Faraday.default_adapter
@@ -14,7 +14,7 @@ desc 'Run tests'
14
14
  task :spec => ['spec:integration']
15
15
 
16
16
  namespace :spec do
17
- RSpec::Core::RakeTask.new("infrataster") do |task|
17
+ RSpec::Core::RakeTask.new("integration") do |task|
18
18
  task.pattern = "./spec/{,/*/**}/*_spec.rb"
19
19
  end
20
20
 
@@ -40,6 +40,10 @@ module Infrataster
40
40
  def headers
41
41
  @options[:headers]
42
42
  end
43
+
44
+ def ssl_option
45
+ @options[:ssl]
46
+ end
43
47
  end
44
48
  end
45
49
  end
@@ -1,3 +1,3 @@
1
1
  module Infrataster
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: infrataster
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryota Arai
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-11-19 00:00:00.000000000 Z
11
+ date: 2015-01-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec