active_record_survey_api 0.0.18 → 0.0.19
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/active_record_survey_api/concerns/controllers/surveys.rb +1 -1
- data/lib/active_record_survey_api/version.rb +1 -1
- data/spec/controllers/active_record_survey_api/surveys_spec.rb +2 -1
- data/spec/test_app/db/test.sqlite3 +0 -0
- data/spec/test_app/log/test.log +0 -0
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3ec3565ac69da4b67aaec146c5c29c61040e4d16
|
4
|
+
data.tar.gz: 6243420ede300d5c338d109ff43c7afc79afce32
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f387191415e9c496cd0956283e3b25252a08a47e1d8ec3c65fbd7a03a6951fbaa0b5eeef115f98ec084c5f4b3457b013d369f87dbef614e9b26f6cddd99668aa
|
7
|
+
data.tar.gz: f7b171d60cc6ea7e9d1fd803f3f5388279aade676afa345e01e1f168d1a1e19b515128a124f3dd55f55ca046da4ada63d5a9f092bdbf2d5f38f710c80c940fc1
|
@@ -47,7 +47,7 @@ module ActiveRecordSurveyApi
|
|
47
47
|
def nodes
|
48
48
|
@survey = survey_by_id(params[:survey_id])
|
49
49
|
|
50
|
-
nodes = @survey.nodes
|
50
|
+
nodes = @survey.nodes.includes(:translations)
|
51
51
|
questions = nodes.select { |i|
|
52
52
|
i.class.ancestors.include?(::ActiveRecordSurvey::Node::Question)
|
53
53
|
}
|
@@ -20,8 +20,9 @@ describe ActiveRecordSurveyApi::SurveysController, :type => :controller, :survey
|
|
20
20
|
get :edges, {
|
21
21
|
:survey_id => survey.id
|
22
22
|
}, @header_params.merge(:survey_id => survey.id, :HTTP_ACCEPT_LANGUAGE => 'en')
|
23
|
+
json_body = JSON.parse(response.body)
|
23
24
|
|
24
|
-
|
25
|
+
expect(json_body.length).to eq(16)
|
25
26
|
end
|
26
27
|
end
|
27
28
|
|
Binary file
|
data/spec/test_app/log/test.log
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: active_record_survey_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.19
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Butch Marshall
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-11-
|
11
|
+
date: 2016-11-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -44,14 +44,14 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 0.1.
|
47
|
+
version: 0.1.47
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 0.1.
|
54
|
+
version: 0.1.47
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: active_record_survey-node_map_group
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|