outpost-cms 0.1.3 → 0.1.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.
- checksums.yaml +4 -4
- data/app/inputs/date_time_input.rb +2 -1
- data/lib/outpost/version.rb +1 -1
- data/spec/internal/db/combustion_test.sqlite +0 -0
- data/spec/internal/log/test.log +1315 -0
- metadata +2 -5
- data/lib/outpost/hook.rb +0 -35
- data/spec/lib/hook_spec.rb +0 -13
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.
|
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-
|
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
|
data/lib/outpost/hook.rb
DELETED
@@ -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
|
data/spec/lib/hook_spec.rb
DELETED