pandarus 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/pandarus/models/sis_import.rb +3 -2
- data/lib/pandarus/version.rb +1 -1
- data/pandarus.gemspec +1 -1
- data/spec/sis_import_spec.rb +31 -0
- metadata +5 -3
@@ -3,7 +3,7 @@ require "pandarus/model_base"
|
|
3
3
|
# This is an autogenerated file. See readme.md.
|
4
4
|
module Pandarus
|
5
5
|
class SisImport < ModelBase
|
6
|
-
attr_accessor :id, :created_at, :ended_at, :updated_at, :workflow_state, :data, :progress
|
6
|
+
attr_accessor :id, :created_at, :ended_at, :updated_at, :workflow_state, :data, :progress, :processing_warnings
|
7
7
|
|
8
8
|
|
9
9
|
def self.attribute_map
|
@@ -14,7 +14,8 @@ module Pandarus
|
|
14
14
|
:updated_at => {:external => "updated_at", :container => false, :type => "DateTime"},
|
15
15
|
:workflow_state => {:external => "workflow_state", :container => false, :type => "String"},
|
16
16
|
:data => {:external => "data", :container => false, :type => "SisImportData"},
|
17
|
-
:progress => {:external => "progress", :container => false, :type => "String"}
|
17
|
+
:progress => {:external => "progress", :container => false, :type => "String"},
|
18
|
+
:processing_warnings => {:external => "processing_warnings", :container => true, :type => "Array"}
|
18
19
|
|
19
20
|
}
|
20
21
|
end
|
data/lib/pandarus/version.rb
CHANGED
data/pandarus.gemspec
CHANGED
@@ -0,0 +1,31 @@
|
|
1
|
+
require_relative 'spec_helper'
|
2
|
+
require 'pandarus'
|
3
|
+
|
4
|
+
describe Pandarus::SisImport do
|
5
|
+
it "initializes" do
|
6
|
+
Pandarus::SisImport.new
|
7
|
+
end
|
8
|
+
|
9
|
+
context "types" do
|
10
|
+
let(:import) {
|
11
|
+
Pandarus::SisImport.new(
|
12
|
+
:processing_warnings => [
|
13
|
+
[
|
14
|
+
"students.csv",
|
15
|
+
"oh, it didn't work"
|
16
|
+
],
|
17
|
+
[
|
18
|
+
"students.csv",
|
19
|
+
"oh my"
|
20
|
+
]
|
21
|
+
]
|
22
|
+
)
|
23
|
+
}
|
24
|
+
|
25
|
+
it "has an array of processing_warnings" do
|
26
|
+
import.processing_warnings.size.should == 2
|
27
|
+
import.processing_warnings.first.size.should == 2
|
28
|
+
import.processing_warnings[1][1].should == "oh my"
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pandarus
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -98,7 +98,7 @@ dependencies:
|
|
98
98
|
requirements:
|
99
99
|
- - '='
|
100
100
|
- !ruby/object:Gem::Version
|
101
|
-
version: 0.3.
|
101
|
+
version: 0.3.1
|
102
102
|
type: :runtime
|
103
103
|
prerelease: false
|
104
104
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -106,7 +106,7 @@ dependencies:
|
|
106
106
|
requirements:
|
107
107
|
- - '='
|
108
108
|
- !ruby/object:Gem::Version
|
109
|
-
version: 0.3.
|
109
|
+
version: 0.3.1
|
110
110
|
- !ruby/object:Gem::Dependency
|
111
111
|
name: activesupport
|
112
112
|
requirement: !ruby/object:Gem::Requirement
|
@@ -216,6 +216,7 @@ files:
|
|
216
216
|
- lib/pandarus/version.rb
|
217
217
|
- lib/pandarus.rb
|
218
218
|
- spec/api_base_spec.rb
|
219
|
+
- spec/sis_import_spec.rb
|
219
220
|
- spec/spec_helper.rb
|
220
221
|
- spec/user_spec.rb
|
221
222
|
homepage: https://github.com/instructure/pandarus
|
@@ -245,6 +246,7 @@ specification_version: 3
|
|
245
246
|
summary: REST APIs
|
246
247
|
test_files:
|
247
248
|
- spec/api_base_spec.rb
|
249
|
+
- spec/sis_import_spec.rb
|
248
250
|
- spec/spec_helper.rb
|
249
251
|
- spec/user_spec.rb
|
250
252
|
has_rdoc:
|