forest_liana 1.9.5 → 1.9.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/forest_liana/application_controller.rb +1 -1
- data/app/controllers/forest_liana/intercom_controller.rb +11 -2
- data/app/serializers/forest_liana/intercom_attribute_serializer.rb +3 -3
- data/app/serializers/forest_liana/intercom_conversation_serializer.rb +1 -1
- data/app/services/forest_liana/intercom_attributes_getter.rb +5 -10
- data/app/services/forest_liana/intercom_conversation_getter.rb +22 -0
- data/app/services/forest_liana/intercom_conversations_getter.rb +5 -11
- data/config/routes.rb +2 -1
- data/lib/forest_liana/bootstraper.rb +8 -23
- data/lib/forest_liana/collection.rb +11 -1
- data/lib/forest_liana/version.rb +1 -1
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/test.log +2628 -0
- data/test/routing/route_test.rb +7 -1
- metadata +3 -2
data/test/routing/route_test.rb
CHANGED
@@ -113,7 +113,7 @@ module ForestLiana
|
|
113
113
|
assert_routing({
|
114
114
|
method: 'get', path: ':collection/:id/intercom_conversations'
|
115
115
|
}, {
|
116
|
-
controller: 'forest_liana/intercom', action: '
|
116
|
+
controller: 'forest_liana/intercom', action: 'conversations',
|
117
117
|
collection: ':collection', id: ':id'
|
118
118
|
})
|
119
119
|
assert_routing({
|
@@ -122,6 +122,12 @@ module ForestLiana
|
|
122
122
|
controller: 'forest_liana/intercom', action: 'attributes',
|
123
123
|
collection: ':collection', id: ':id'
|
124
124
|
})
|
125
|
+
assert_routing({
|
126
|
+
method: 'get', path: '(*collection)_intercom_conversations/:conversation_id'
|
127
|
+
}, {
|
128
|
+
controller: 'forest_liana/intercom', action: 'conversation',
|
129
|
+
collection: '(*collection)', conversation_id: ':conversation_id'
|
130
|
+
})
|
125
131
|
|
126
132
|
# Devise support
|
127
133
|
assert_routing({
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: forest_liana
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.9.
|
4
|
+
version: 1.9.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sandro Munda
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-10-
|
11
|
+
date: 2017-10-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -175,6 +175,7 @@ files:
|
|
175
175
|
- app/services/forest_liana/has_many_dissociator.rb
|
176
176
|
- app/services/forest_liana/has_many_getter.rb
|
177
177
|
- app/services/forest_liana/intercom_attributes_getter.rb
|
178
|
+
- app/services/forest_liana/intercom_conversation_getter.rb
|
178
179
|
- app/services/forest_liana/intercom_conversations_getter.rb
|
179
180
|
- app/services/forest_liana/line_stat_getter.rb
|
180
181
|
- app/services/forest_liana/operator_date_interval_parser.rb
|