aweplug 1.0.0.a5 → 1.0.0.a6

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.
@@ -43,7 +43,7 @@ module Aweplug
43
43
  :tags => metadata[:technologies].split(/,\s/),
44
44
  :sys_description => metadata[:summary],
45
45
  :sys_content => converted_html,
46
- :sys_url_view => "#{site.base_url}#{'/' + site.ctx_root + '/'}#{page.output_path}",
46
+ :sys_url_view => "#{site.base_url}#{site.ctx_root.nil? ? '/' : '/' + site.ctx_root + '/'}#{page.output_path}",
47
47
  :"sys_content_content-type" => 'text/html',
48
48
  :sys_type => 'jbossdeveloper_quickstart',
49
49
  :sys_content_type => 'quickstart',
@@ -1,6 +1,5 @@
1
1
  require 'faraday'
2
2
  require 'faraday_middleware'
3
- require 'pry' # Allow for debugging
4
3
 
5
4
  module Aweplug::Helpers
6
5
  # Public: A helper class for using Searchisko.
@@ -44,12 +43,11 @@ module Aweplug::Helpers
44
43
  end
45
44
 
46
45
  def post path, params = {}
47
- response = @faraday.post do |req|
46
+ @faraday.post do |req|
48
47
  req.url "/v1/rest/" + path
49
48
  req.headers['Content-Type'] = 'application/json'
50
49
  req.body = params
51
50
  end
52
- binding.pry # Allow for debugging
53
51
  end
54
52
  end
55
53
  end
@@ -1,4 +1,4 @@
1
1
  module Aweplug
2
- VERSION='1.0.0.a5'
2
+ VERSION='1.0.0.a6'
3
3
  end
4
4
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aweplug
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.a5
4
+ version: 1.0.0.a6
5
5
  prerelease: 6
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-12-14 00:00:00.000000000 Z
12
+ date: 2013-12-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: octokit