isurvey 0.0.9 → 0.0.10
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 +8 -8
- data/lib/isurvey/version.rb +1 -1
- data/lib/isurvey.rb +2 -2
- data/spec/api_spec.rb +12 -0
- data/spec/question_spec.rb +2 -1
- data/spec/spec_helper.rb +1 -0
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
Y2FhNTNkOWNmYTM3MjU1OTBlZTRkNzc3YzI3ODQ0NGU2ZWMzYWYzOA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MzEzYjIzMDdhMTJhZDdlNWUyNDEyZDQ3ZTlkNmY0MDU1NDljYzdlOQ==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
Mzg3MTdmNTA1NTZkYjBhMDNkZTY1ZWI2MTE1MGE4NDdiYWUxZTg1MmUxMzIz
|
10
|
+
MTExZTU4Zjg3NjExNzA3OWE2NTQ3OTdmYWY1MWM4OTYzYmY1MDJjMTM1ODlh
|
11
|
+
YjVjYTlhMmZkNWNhYjY3MWQ2ZjVlZWI2NjU4OGMwZTAyZTRhZGM=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZjQwYTdiNTkyZWQ0MjE2YTg2ZjAxZGFkMTc4NTE4MDU3M2NhMDcyMjZmOWY3
|
14
|
+
YTZkMTg2YmEzNTU1NzRhNWE4ODM1YzY1YTgxYzk1NzBlMzY3ZDA4YTg3MWNk
|
15
|
+
MzZhMzIyNDg3YzViYTljZjc4NjVmOWI3ZTQ4NTMyMmFhM2YyNjU=
|
data/lib/isurvey/version.rb
CHANGED
data/lib/isurvey.rb
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
require 'isurvey/version'
|
2
2
|
require 'savon'
|
3
|
-
require 'isurvey/base'
|
4
|
-
require 'isurvey/collector'
|
5
3
|
require 'isurvey/soap_client'
|
6
4
|
require 'isurvey/api'
|
5
|
+
require 'isurvey/base'
|
6
|
+
require 'isurvey/collector'
|
7
7
|
require 'isurvey/question'
|
8
8
|
require 'isurvey/answer'
|
9
9
|
|
data/spec/api_spec.rb
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe Isurvey::API do
|
4
|
+
before :all do
|
5
|
+
Isurvey::Credentials.company_identifier = ENV["ISURVEY_COMPANY_IDENTIFIER"]
|
6
|
+
Isurvey::Credentials.survey_password = ENV["ISURVEY_SURVEY_PASSWORD"]
|
7
|
+
end
|
8
|
+
|
9
|
+
it "should respond to questions" do
|
10
|
+
Isurvey::API.questions.should_not be_blank
|
11
|
+
end
|
12
|
+
end
|
data/spec/question_spec.rb
CHANGED
@@ -3,6 +3,7 @@ require 'spec_helper'
|
|
3
3
|
describe Isurvey::Question do
|
4
4
|
|
5
5
|
before :all do
|
6
|
+
@length = Isurvey::Question.all.length
|
6
7
|
@question1 = Isurvey::Question.new(hash: {:screen_id=>"431424", :question_number=>"0", :screen_id_next=>"431426", :show_labels=>true, :selectable_images=>false, :screen_text=>"This is the Week in the Life Daily Survey. ", :screen_instruction=>nil, :theme_class_id=>"59786", :screen_options=>{:screen_option=>[{:screen_option_ref_code=>"DisplayImageAboveText", :screen_option_value_text=>"False"}, {:screen_option_ref_code=>"SelectableImages", :screen_option_value_text=>false}, {:screen_option_ref_code=>"ShowLabels", :screen_option_value_text=>true}]}, :answers=>nil, :questions=>nil, :@type=>"information", :@next_screen_is_linked=>"false"})
|
7
8
|
@question2 = Isurvey::Question.new(hash: {:screen_id=>"431424", :question_number=>"0", :screen_id_next=>"431426", :show_labels=>true, :selectable_images=>false, :screen_text=>"This is the Week in the Life Daily Survey. ", :screen_instruction=>nil, :theme_class_id=>"59786", :screen_options=>{:screen_option=>[{:screen_option_ref_code=>"DisplayImageAboveText", :screen_option_value_text=>"False"}, {:screen_option_ref_code=>"SelectableImages", :screen_option_value_text=>false}, {:screen_option_ref_code=>"ShowLabels", :screen_option_value_text=>true}]}, :answers=>nil, :questions=>nil, :@type=>"information", :@next_screen_is_linked=>"false"})
|
8
9
|
end
|
@@ -16,6 +17,6 @@ describe Isurvey::Question do
|
|
16
17
|
end
|
17
18
|
|
18
19
|
it "should return all questions for all" do
|
19
|
-
Isurvey::Question.all.length.should == 2
|
20
|
+
Isurvey::Question.all.length.should == @length + 2
|
20
21
|
end
|
21
22
|
end
|
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: isurvey
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Nipper
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-07-
|
11
|
+
date: 2013-07-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: savon
|
@@ -102,6 +102,7 @@ files:
|
|
102
102
|
- lib/isurvey/soap_client.rb
|
103
103
|
- lib/isurvey/version.rb
|
104
104
|
- spec/answer_spec.rb
|
105
|
+
- spec/api_spec.rb
|
105
106
|
- spec/question_spec.rb
|
106
107
|
- spec/spec_helper.rb
|
107
108
|
homepage: http://github.com/mnipper/isurvey
|
@@ -130,5 +131,6 @@ specification_version: 4
|
|
130
131
|
summary: Communicate with the iSurvey SOAP api.
|
131
132
|
test_files:
|
132
133
|
- spec/answer_spec.rb
|
134
|
+
- spec/api_spec.rb
|
133
135
|
- spec/question_spec.rb
|
134
136
|
- spec/spec_helper.rb
|