outpost-cms 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: outpost-cms
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bryan Ricker
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-09-04 00:00:00.000000000 Z
12
+ date: 2014-09-24 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -221,7 +221,6 @@ files:
221
221
  - lib/outpost/engine.rb
222
222
  - lib/outpost/helpers.rb
223
223
  - lib/outpost/helpers/naming.rb
224
- - lib/outpost/hook.rb
225
224
  - lib/outpost/list.rb
226
225
  - lib/outpost/list/base.rb
227
226
  - lib/outpost/list/column.rb
@@ -690,7 +689,6 @@ files:
690
689
  - spec/lib/controller/helpers_spec.rb
691
690
  - spec/lib/controller_spec.rb
692
691
  - spec/lib/helpers/naming_spec.rb
693
- - spec/lib/hook_spec.rb
694
692
  - spec/lib/list/base_spec.rb
695
693
  - spec/lib/list/column_spec.rb
696
694
  - spec/lib/list/filter_spec.rb
@@ -1192,7 +1190,6 @@ test_files:
1192
1190
  - spec/lib/controller/helpers_spec.rb
1193
1191
  - spec/lib/controller_spec.rb
1194
1192
  - spec/lib/helpers/naming_spec.rb
1195
- - spec/lib/hook_spec.rb
1196
1193
  - spec/lib/list/base_spec.rb
1197
1194
  - spec/lib/list/column_spec.rb
1198
1195
  - spec/lib/list/filter_spec.rb
@@ -1,35 +0,0 @@
1
- ##
2
- # Outpost::Hook
3
- #
4
- # Hook into Newsroom.js
5
- module Outpost
6
- class Hook
7
- attr_accessor :data, :path
8
-
9
- def initialize(options={})
10
- @path = options[:path]
11
- @data = options[:data] || { touch: true }
12
- end
13
-
14
- # Publish the message
15
- def publish
16
- response = connection.post do |request|
17
- request.url @path
18
- request.params = @data
19
- end
20
-
21
- response
22
- end
23
-
24
- private
25
-
26
- def connection
27
- @connection ||= begin
28
- Faraday.new(url: Rails.application.config.node.server) do |conn|
29
- conn.response :json
30
- conn.adapter Faraday.default_adapter
31
- end
32
- end
33
- end
34
- end # Hook
35
- end # Outpost
@@ -1,13 +0,0 @@
1
- require 'spec_helper'
2
-
3
- describe Outpost::Hook do
4
- before :each do
5
- @hook = Outpost::Hook.new(path: "finished")
6
- end
7
-
8
- describe "#publish" do
9
- it "posts to the uri with the data" do
10
- pending
11
- end
12
- end
13
- end