clever-ruby 2.0.0 → 2.0.1
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/CHANGELOG.md +5 -1
- data/Gemfile.lock +6 -6
- data/README.md +58 -58
- data/clever-ruby-1.2.5.gem +0 -0
- data/clever-ruby-2.0.0.gem +0 -0
- data/lib/clever-ruby/models/student.rb +2 -2
- data/lib/clever-ruby/version.rb +1 -1
- data/sample/sample.rb +1 -1
- data/spec/events_api_spec.rb +1 -1
- data/test.rb +1 -1
- metadata +43 -45
- data/1.8, +0 -0
- data/= +0 -0
- data/doc_coverage.txt +0 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3da6cc3706f7554c9a191f8f76539de1b82a883a
|
4
|
+
data.tar.gz: 19d054fc60b123c675778123e7108447c7935066
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 15260bac5055899df1c852ae48c55cfba61d464fc07b9d89ed50c3faabbd472f84c2c7cee9afb89e0277d9152aab25cb7b13950c37417a2c9067541ca7ead53f
|
7
|
+
data.tar.gz: a9b49243709ded4787649c65ba2cb41d5776b3261aa797083e05157bc05cfa3874fb064f0440d7bad9ef3f0f568a3a35caea399f9e74972ab7227b9afe061712
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
## 2.0.1 (2018-05-15)
|
2
|
+
|
3
|
+
* Change students home_language 'Telegu' to 'Telugu'
|
4
|
+
|
1
5
|
## 2.0.0 (2017-11-03)
|
2
6
|
|
3
7
|
* Supports API version 2.0
|
@@ -5,7 +9,7 @@
|
|
5
9
|
## 1.2.4 (2017-08-24)
|
6
10
|
|
7
11
|
* Revert unnecessary json dependency upgrade introduced in 1.2.2
|
8
|
-
* Lock gem versions to allow Ruby 1.9 usage
|
12
|
+
* Lock gem versions to allow Ruby 1.9 usage again
|
9
13
|
|
10
14
|
## 1.2.3 (2017-08-04)
|
11
15
|
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
clever-ruby (2.0.
|
4
|
+
clever-ruby (2.0.1)
|
5
5
|
json (~> 1.8, >= 1.8.3)
|
6
6
|
typhoeus (~> 1.0, >= 1.0.1)
|
7
7
|
|
@@ -12,16 +12,16 @@ GEM
|
|
12
12
|
addressable (2.4.0)
|
13
13
|
autotest (4.4.6)
|
14
14
|
ZenTest (>= 4.4.1)
|
15
|
-
autotest-fsevent (0.2.
|
15
|
+
autotest-fsevent (0.2.13)
|
16
16
|
sys-uname
|
17
17
|
autotest-growl (0.2.16)
|
18
18
|
autotest-rails-pure (4.1.2)
|
19
19
|
crack (0.4.3)
|
20
20
|
safe_yaml (~> 1.0.0)
|
21
21
|
diff-lcs (1.3)
|
22
|
-
ethon (0.
|
22
|
+
ethon (0.11.0)
|
23
23
|
ffi (>= 1.3.0)
|
24
|
-
ffi (1.9.
|
24
|
+
ffi (1.9.23)
|
25
25
|
hashdiff (0.3.6)
|
26
26
|
json (1.8.6)
|
27
27
|
rake (12.0.0)
|
@@ -41,7 +41,7 @@ GEM
|
|
41
41
|
safe_yaml (1.0.4)
|
42
42
|
sys-uname (1.0.3)
|
43
43
|
ffi (>= 1.0.0)
|
44
|
-
typhoeus (1.
|
44
|
+
typhoeus (1.3.0)
|
45
45
|
ethon (>= 0.9.0)
|
46
46
|
vcr (3.0.3)
|
47
47
|
webmock (1.24.6)
|
@@ -64,4 +64,4 @@ DEPENDENCIES
|
|
64
64
|
webmock (~> 1.24, >= 1.24.3)
|
65
65
|
|
66
66
|
BUNDLED WITH
|
67
|
-
1.
|
67
|
+
1.15.3
|
data/README.md
CHANGED
@@ -7,7 +7,7 @@ The Clever API
|
|
7
7
|
This SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
|
8
8
|
|
9
9
|
- API version: 2.0.0
|
10
|
-
- Package version: 2.0.
|
10
|
+
- Package version: 2.0.1
|
11
11
|
- Build package: io.swagger.codegen.languages.RubyClientCodegen
|
12
12
|
|
13
13
|
## Installation
|
@@ -23,15 +23,15 @@ gem build clever-ruby.gemspec
|
|
23
23
|
Then either install the gem locally:
|
24
24
|
|
25
25
|
```shell
|
26
|
-
gem install ./clever-ruby-2.0.
|
26
|
+
gem install ./clever-ruby-2.0.1.gem
|
27
27
|
```
|
28
|
-
(for development, run `gem install --dev ./clever-ruby-2.0.
|
28
|
+
(for development, run `gem install --dev ./clever-ruby-2.0.1.gem` to install the development dependencies)
|
29
29
|
|
30
30
|
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
31
31
|
|
32
32
|
Finally add this to the Gemfile:
|
33
33
|
|
34
|
-
gem 'clever-ruby', '~> 2.0.
|
34
|
+
gem 'clever-ruby', '~> 2.0.1'
|
35
35
|
|
36
36
|
### Install from Git
|
37
37
|
|
@@ -62,7 +62,7 @@ end
|
|
62
62
|
|
63
63
|
api_instance = Clever::DataApi.new
|
64
64
|
|
65
|
-
id = "id_example" # String |
|
65
|
+
id = "id_example" # String |
|
66
66
|
|
67
67
|
|
68
68
|
begin
|
@@ -80,59 +80,59 @@ All URIs are relative to *https://api.clever.com/v2.0*
|
|
80
80
|
|
81
81
|
Class | Method | HTTP request | Description
|
82
82
|
------------ | ------------- | ------------- | -------------
|
83
|
-
*Clever::DataApi* | [**get_contact**](docs/DataApi.md#get_contact) | **GET** /contacts/{id} |
|
84
|
-
*Clever::DataApi* | [**get_contacts**](docs/DataApi.md#get_contacts) | **GET** /contacts |
|
85
|
-
*Clever::DataApi* | [**get_contacts_for_student**](docs/DataApi.md#get_contacts_for_student) | **GET** /students/{id}/contacts |
|
86
|
-
*Clever::DataApi* | [**get_course**](docs/DataApi.md#get_course) | **GET** /courses/{id} |
|
87
|
-
*Clever::DataApi* | [**get_course_for_section**](docs/DataApi.md#get_course_for_section) | **GET** /sections/{id}/course |
|
88
|
-
*Clever::DataApi* | [**get_courses**](docs/DataApi.md#get_courses) | **GET** /courses |
|
89
|
-
*Clever::DataApi* | [**get_district**](docs/DataApi.md#get_district) | **GET** /districts/{id} |
|
90
|
-
*Clever::DataApi* | [**get_district_admin**](docs/DataApi.md#get_district_admin) | **GET** /district_admins/{id} |
|
91
|
-
*Clever::DataApi* | [**get_district_admins**](docs/DataApi.md#get_district_admins) | **GET** /district_admins |
|
92
|
-
*Clever::DataApi* | [**get_district_for_contact**](docs/DataApi.md#get_district_for_contact) | **GET** /contacts/{id}/district |
|
93
|
-
*Clever::DataApi* | [**get_district_for_course**](docs/DataApi.md#get_district_for_course) | **GET** /courses/{id}/district |
|
94
|
-
*Clever::DataApi* | [**get_district_for_district_admin**](docs/DataApi.md#get_district_for_district_admin) | **GET** /district_admins/{id}/district |
|
95
|
-
*Clever::DataApi* | [**get_district_for_school**](docs/DataApi.md#get_district_for_school) | **GET** /schools/{id}/district |
|
96
|
-
*Clever::DataApi* | [**get_district_for_school_admin**](docs/DataApi.md#get_district_for_school_admin) | **GET** /school_admins/{id}/district |
|
97
|
-
*Clever::DataApi* | [**get_district_for_section**](docs/DataApi.md#get_district_for_section) | **GET** /sections/{id}/district |
|
98
|
-
*Clever::DataApi* | [**get_district_for_student**](docs/DataApi.md#get_district_for_student) | **GET** /students/{id}/district |
|
99
|
-
*Clever::DataApi* | [**get_district_for_teacher**](docs/DataApi.md#get_district_for_teacher) | **GET** /teachers/{id}/district |
|
100
|
-
*Clever::DataApi* | [**get_district_for_term**](docs/DataApi.md#get_district_for_term) | **GET** /terms/{id}/district |
|
101
|
-
*Clever::DataApi* | [**get_districts**](docs/DataApi.md#get_districts) | **GET** /districts |
|
102
|
-
*Clever::DataApi* | [**get_school**](docs/DataApi.md#get_school) | **GET** /schools/{id} |
|
103
|
-
*Clever::DataApi* | [**get_school_admin**](docs/DataApi.md#get_school_admin) | **GET** /school_admins/{id} |
|
104
|
-
*Clever::DataApi* | [**get_school_admins**](docs/DataApi.md#get_school_admins) | **GET** /school_admins |
|
105
|
-
*Clever::DataApi* | [**get_school_for_section**](docs/DataApi.md#get_school_for_section) | **GET** /sections/{id}/school |
|
106
|
-
*Clever::DataApi* | [**get_school_for_student**](docs/DataApi.md#get_school_for_student) | **GET** /students/{id}/school |
|
107
|
-
*Clever::DataApi* | [**get_school_for_teacher**](docs/DataApi.md#get_school_for_teacher) | **GET** /teachers/{id}/school |
|
108
|
-
*Clever::DataApi* | [**get_schools**](docs/DataApi.md#get_schools) | **GET** /schools |
|
109
|
-
*Clever::DataApi* | [**get_schools_for_school_admin**](docs/DataApi.md#get_schools_for_school_admin) | **GET** /school_admins/{id}/schools |
|
110
|
-
*Clever::DataApi* | [**get_schools_for_student**](docs/DataApi.md#get_schools_for_student) | **GET** /students/{id}/schools |
|
111
|
-
*Clever::DataApi* | [**get_schools_for_teacher**](docs/DataApi.md#get_schools_for_teacher) | **GET** /teachers/{id}/schools |
|
112
|
-
*Clever::DataApi* | [**get_section**](docs/DataApi.md#get_section) | **GET** /sections/{id} |
|
113
|
-
*Clever::DataApi* | [**get_sections**](docs/DataApi.md#get_sections) | **GET** /sections |
|
114
|
-
*Clever::DataApi* | [**get_sections_for_course**](docs/DataApi.md#get_sections_for_course) | **GET** /courses/{id}/sections |
|
115
|
-
*Clever::DataApi* | [**get_sections_for_school**](docs/DataApi.md#get_sections_for_school) | **GET** /schools/{id}/sections |
|
116
|
-
*Clever::DataApi* | [**get_sections_for_student**](docs/DataApi.md#get_sections_for_student) | **GET** /students/{id}/sections |
|
117
|
-
*Clever::DataApi* | [**get_sections_for_teacher**](docs/DataApi.md#get_sections_for_teacher) | **GET** /teachers/{id}/sections |
|
118
|
-
*Clever::DataApi* | [**get_sections_for_term**](docs/DataApi.md#get_sections_for_term) | **GET** /terms/{id}/sections |
|
119
|
-
*Clever::DataApi* | [**get_student**](docs/DataApi.md#get_student) | **GET** /students/{id} |
|
120
|
-
*Clever::DataApi* | [**get_students**](docs/DataApi.md#get_students) | **GET** /students |
|
121
|
-
*Clever::DataApi* | [**get_students_for_contact**](docs/DataApi.md#get_students_for_contact) | **GET** /contacts/{id}/students |
|
122
|
-
*Clever::DataApi* | [**get_students_for_school**](docs/DataApi.md#get_students_for_school) | **GET** /schools/{id}/students |
|
123
|
-
*Clever::DataApi* | [**get_students_for_section**](docs/DataApi.md#get_students_for_section) | **GET** /sections/{id}/students |
|
124
|
-
*Clever::DataApi* | [**get_students_for_teacher**](docs/DataApi.md#get_students_for_teacher) | **GET** /teachers/{id}/students |
|
125
|
-
*Clever::DataApi* | [**get_teacher**](docs/DataApi.md#get_teacher) | **GET** /teachers/{id} |
|
126
|
-
*Clever::DataApi* | [**get_teacher_for_section**](docs/DataApi.md#get_teacher_for_section) | **GET** /sections/{id}/teacher |
|
127
|
-
*Clever::DataApi* | [**get_teachers**](docs/DataApi.md#get_teachers) | **GET** /teachers |
|
128
|
-
*Clever::DataApi* | [**get_teachers_for_school**](docs/DataApi.md#get_teachers_for_school) | **GET** /schools/{id}/teachers |
|
129
|
-
*Clever::DataApi* | [**get_teachers_for_section**](docs/DataApi.md#get_teachers_for_section) | **GET** /sections/{id}/teachers |
|
130
|
-
*Clever::DataApi* | [**get_teachers_for_student**](docs/DataApi.md#get_teachers_for_student) | **GET** /students/{id}/teachers |
|
131
|
-
*Clever::DataApi* | [**get_term**](docs/DataApi.md#get_term) | **GET** /terms/{id} |
|
132
|
-
*Clever::DataApi* | [**get_term_for_section**](docs/DataApi.md#get_term_for_section) | **GET** /sections/{id}/term |
|
133
|
-
*Clever::DataApi* | [**get_terms**](docs/DataApi.md#get_terms) | **GET** /terms |
|
134
|
-
*Clever::EventsApi* | [**get_event**](docs/EventsApi.md#get_event) | **GET** /events/{id} |
|
135
|
-
*Clever::EventsApi* | [**get_events**](docs/EventsApi.md#get_events) | **GET** /events |
|
83
|
+
*Clever::DataApi* | [**get_contact**](docs/DataApi.md#get_contact) | **GET** /contacts/{id} |
|
84
|
+
*Clever::DataApi* | [**get_contacts**](docs/DataApi.md#get_contacts) | **GET** /contacts |
|
85
|
+
*Clever::DataApi* | [**get_contacts_for_student**](docs/DataApi.md#get_contacts_for_student) | **GET** /students/{id}/contacts |
|
86
|
+
*Clever::DataApi* | [**get_course**](docs/DataApi.md#get_course) | **GET** /courses/{id} |
|
87
|
+
*Clever::DataApi* | [**get_course_for_section**](docs/DataApi.md#get_course_for_section) | **GET** /sections/{id}/course |
|
88
|
+
*Clever::DataApi* | [**get_courses**](docs/DataApi.md#get_courses) | **GET** /courses |
|
89
|
+
*Clever::DataApi* | [**get_district**](docs/DataApi.md#get_district) | **GET** /districts/{id} |
|
90
|
+
*Clever::DataApi* | [**get_district_admin**](docs/DataApi.md#get_district_admin) | **GET** /district_admins/{id} |
|
91
|
+
*Clever::DataApi* | [**get_district_admins**](docs/DataApi.md#get_district_admins) | **GET** /district_admins |
|
92
|
+
*Clever::DataApi* | [**get_district_for_contact**](docs/DataApi.md#get_district_for_contact) | **GET** /contacts/{id}/district |
|
93
|
+
*Clever::DataApi* | [**get_district_for_course**](docs/DataApi.md#get_district_for_course) | **GET** /courses/{id}/district |
|
94
|
+
*Clever::DataApi* | [**get_district_for_district_admin**](docs/DataApi.md#get_district_for_district_admin) | **GET** /district_admins/{id}/district |
|
95
|
+
*Clever::DataApi* | [**get_district_for_school**](docs/DataApi.md#get_district_for_school) | **GET** /schools/{id}/district |
|
96
|
+
*Clever::DataApi* | [**get_district_for_school_admin**](docs/DataApi.md#get_district_for_school_admin) | **GET** /school_admins/{id}/district |
|
97
|
+
*Clever::DataApi* | [**get_district_for_section**](docs/DataApi.md#get_district_for_section) | **GET** /sections/{id}/district |
|
98
|
+
*Clever::DataApi* | [**get_district_for_student**](docs/DataApi.md#get_district_for_student) | **GET** /students/{id}/district |
|
99
|
+
*Clever::DataApi* | [**get_district_for_teacher**](docs/DataApi.md#get_district_for_teacher) | **GET** /teachers/{id}/district |
|
100
|
+
*Clever::DataApi* | [**get_district_for_term**](docs/DataApi.md#get_district_for_term) | **GET** /terms/{id}/district |
|
101
|
+
*Clever::DataApi* | [**get_districts**](docs/DataApi.md#get_districts) | **GET** /districts |
|
102
|
+
*Clever::DataApi* | [**get_school**](docs/DataApi.md#get_school) | **GET** /schools/{id} |
|
103
|
+
*Clever::DataApi* | [**get_school_admin**](docs/DataApi.md#get_school_admin) | **GET** /school_admins/{id} |
|
104
|
+
*Clever::DataApi* | [**get_school_admins**](docs/DataApi.md#get_school_admins) | **GET** /school_admins |
|
105
|
+
*Clever::DataApi* | [**get_school_for_section**](docs/DataApi.md#get_school_for_section) | **GET** /sections/{id}/school |
|
106
|
+
*Clever::DataApi* | [**get_school_for_student**](docs/DataApi.md#get_school_for_student) | **GET** /students/{id}/school |
|
107
|
+
*Clever::DataApi* | [**get_school_for_teacher**](docs/DataApi.md#get_school_for_teacher) | **GET** /teachers/{id}/school |
|
108
|
+
*Clever::DataApi* | [**get_schools**](docs/DataApi.md#get_schools) | **GET** /schools |
|
109
|
+
*Clever::DataApi* | [**get_schools_for_school_admin**](docs/DataApi.md#get_schools_for_school_admin) | **GET** /school_admins/{id}/schools |
|
110
|
+
*Clever::DataApi* | [**get_schools_for_student**](docs/DataApi.md#get_schools_for_student) | **GET** /students/{id}/schools |
|
111
|
+
*Clever::DataApi* | [**get_schools_for_teacher**](docs/DataApi.md#get_schools_for_teacher) | **GET** /teachers/{id}/schools |
|
112
|
+
*Clever::DataApi* | [**get_section**](docs/DataApi.md#get_section) | **GET** /sections/{id} |
|
113
|
+
*Clever::DataApi* | [**get_sections**](docs/DataApi.md#get_sections) | **GET** /sections |
|
114
|
+
*Clever::DataApi* | [**get_sections_for_course**](docs/DataApi.md#get_sections_for_course) | **GET** /courses/{id}/sections |
|
115
|
+
*Clever::DataApi* | [**get_sections_for_school**](docs/DataApi.md#get_sections_for_school) | **GET** /schools/{id}/sections |
|
116
|
+
*Clever::DataApi* | [**get_sections_for_student**](docs/DataApi.md#get_sections_for_student) | **GET** /students/{id}/sections |
|
117
|
+
*Clever::DataApi* | [**get_sections_for_teacher**](docs/DataApi.md#get_sections_for_teacher) | **GET** /teachers/{id}/sections |
|
118
|
+
*Clever::DataApi* | [**get_sections_for_term**](docs/DataApi.md#get_sections_for_term) | **GET** /terms/{id}/sections |
|
119
|
+
*Clever::DataApi* | [**get_student**](docs/DataApi.md#get_student) | **GET** /students/{id} |
|
120
|
+
*Clever::DataApi* | [**get_students**](docs/DataApi.md#get_students) | **GET** /students |
|
121
|
+
*Clever::DataApi* | [**get_students_for_contact**](docs/DataApi.md#get_students_for_contact) | **GET** /contacts/{id}/students |
|
122
|
+
*Clever::DataApi* | [**get_students_for_school**](docs/DataApi.md#get_students_for_school) | **GET** /schools/{id}/students |
|
123
|
+
*Clever::DataApi* | [**get_students_for_section**](docs/DataApi.md#get_students_for_section) | **GET** /sections/{id}/students |
|
124
|
+
*Clever::DataApi* | [**get_students_for_teacher**](docs/DataApi.md#get_students_for_teacher) | **GET** /teachers/{id}/students |
|
125
|
+
*Clever::DataApi* | [**get_teacher**](docs/DataApi.md#get_teacher) | **GET** /teachers/{id} |
|
126
|
+
*Clever::DataApi* | [**get_teacher_for_section**](docs/DataApi.md#get_teacher_for_section) | **GET** /sections/{id}/teacher |
|
127
|
+
*Clever::DataApi* | [**get_teachers**](docs/DataApi.md#get_teachers) | **GET** /teachers |
|
128
|
+
*Clever::DataApi* | [**get_teachers_for_school**](docs/DataApi.md#get_teachers_for_school) | **GET** /schools/{id}/teachers |
|
129
|
+
*Clever::DataApi* | [**get_teachers_for_section**](docs/DataApi.md#get_teachers_for_section) | **GET** /sections/{id}/teachers |
|
130
|
+
*Clever::DataApi* | [**get_teachers_for_student**](docs/DataApi.md#get_teachers_for_student) | **GET** /students/{id}/teachers |
|
131
|
+
*Clever::DataApi* | [**get_term**](docs/DataApi.md#get_term) | **GET** /terms/{id} |
|
132
|
+
*Clever::DataApi* | [**get_term_for_section**](docs/DataApi.md#get_term_for_section) | **GET** /sections/{id}/term |
|
133
|
+
*Clever::DataApi* | [**get_terms**](docs/DataApi.md#get_terms) | **GET** /terms |
|
134
|
+
*Clever::EventsApi* | [**get_event**](docs/EventsApi.md#get_event) | **GET** /events/{id} |
|
135
|
+
*Clever::EventsApi* | [**get_events**](docs/EventsApi.md#get_events) | **GET** /events |
|
136
136
|
|
137
137
|
|
138
138
|
## Documentation for Models
|
Binary file
|
Binary file
|
@@ -271,7 +271,7 @@ module Clever
|
|
271
271
|
return false unless grade_validator.valid?(@grade)
|
272
272
|
hispanic_ethnicity_validator = EnumAttributeValidator.new('String', ["Y", "N", ""])
|
273
273
|
return false unless hispanic_ethnicity_validator.valid?(@hispanic_ethnicity)
|
274
|
-
home_language_validator = EnumAttributeValidator.new('String', ["English", "Albanian", "Amharic", "Arabic", "Bengali", "Bosnian", "Burmese", "Cantonese", "Chinese", "Dutch", "Farsi", "French", "German", "Hebrew", "Hindi", "Hmong", "Ilocano", "Japanese", "Javanese", "Karen", "Khmer", "Korean", "Laotian", "Latvian", "Malay", "Mandarin", "Nepali", "Oromo", "Polish", "Portuguese", "Punjabi", "Romanian", "Russian", "Samoan", "Serbian", "Somali", "Spanish", "Swahili", "Tagalog", "Tamil", "
|
274
|
+
home_language_validator = EnumAttributeValidator.new('String', ["English", "Albanian", "Amharic", "Arabic", "Bengali", "Bosnian", "Burmese", "Cantonese", "Chinese", "Dutch", "Farsi", "French", "German", "Hebrew", "Hindi", "Hmong", "Ilocano", "Japanese", "Javanese", "Karen", "Khmer", "Korean", "Laotian", "Latvian", "Malay", "Mandarin", "Nepali", "Oromo", "Polish", "Portuguese", "Punjabi", "Romanian", "Russian", "Samoan", "Serbian", "Somali", "Spanish", "Swahili", "Tagalog", "Tamil", "Telugu", "Thai", "Tigrinya", "Turkish", "Ukrainian", "Urdu", "Vietnamese"])
|
275
275
|
return false unless home_language_validator.valid?(@home_language)
|
276
276
|
race_validator = EnumAttributeValidator.new('String', ["Caucasian", "Asian", "Black or African American", "American Indian", "Hawaiian or Other Pacific Islander", "Two or More Races", "Unknown", ""])
|
277
277
|
return false unless race_validator.valid?(@race)
|
@@ -321,7 +321,7 @@ module Clever
|
|
321
321
|
# Custom attribute writer method checking allowed values (enum).
|
322
322
|
# @param [Object] home_language Object to be assigned
|
323
323
|
def home_language=(home_language)
|
324
|
-
validator = EnumAttributeValidator.new('String', ["English", "Albanian", "Amharic", "Arabic", "Bengali", "Bosnian", "Burmese", "Cantonese", "Chinese", "Dutch", "Farsi", "French", "German", "Hebrew", "Hindi", "Hmong", "Ilocano", "Japanese", "Javanese", "Karen", "Khmer", "Korean", "Laotian", "Latvian", "Malay", "Mandarin", "Nepali", "Oromo", "Polish", "Portuguese", "Punjabi", "Romanian", "Russian", "Samoan", "Serbian", "Somali", "Spanish", "Swahili", "Tagalog", "Tamil", "
|
324
|
+
validator = EnumAttributeValidator.new('String', ["English", "Albanian", "Amharic", "Arabic", "Bengali", "Bosnian", "Burmese", "Cantonese", "Chinese", "Dutch", "Farsi", "French", "German", "Hebrew", "Hindi", "Hmong", "Ilocano", "Japanese", "Javanese", "Karen", "Khmer", "Korean", "Laotian", "Latvian", "Malay", "Mandarin", "Nepali", "Oromo", "Polish", "Portuguese", "Punjabi", "Romanian", "Russian", "Samoan", "Serbian", "Somali", "Spanish", "Swahili", "Tagalog", "Tamil", "Telugu", "Thai", "Tigrinya", "Turkish", "Ukrainian", "Urdu", "Vietnamese"])
|
325
325
|
unless validator.valid?(home_language)
|
326
326
|
fail ArgumentError, "invalid value for 'home_language', must be one of #{validator.allowable_values}."
|
327
327
|
end
|
data/lib/clever-ruby/version.rb
CHANGED
data/sample/sample.rb
CHANGED
data/spec/events_api_spec.rb
CHANGED
@@ -6,7 +6,7 @@ describe Clever::EventsApi do
|
|
6
6
|
WebMock.disable_net_connect!(allow_localhost: true)
|
7
7
|
@api_instance = Clever::EventsApi.new
|
8
8
|
Clever.configure do |config|
|
9
|
-
config.access_token = '
|
9
|
+
config.access_token = 'TEST_TOKEN'
|
10
10
|
end
|
11
11
|
|
12
12
|
file = File.read('spec/events.json')
|
data/test.rb
CHANGED
metadata
CHANGED
@@ -1,193 +1,193 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: clever-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Swagger-Codegen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-07-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - ~>
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '1.0'
|
20
|
-
- -
|
20
|
+
- - ">="
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 1.0.1
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
26
26
|
requirements:
|
27
|
-
- - ~>
|
27
|
+
- - "~>"
|
28
28
|
- !ruby/object:Gem::Version
|
29
29
|
version: '1.0'
|
30
|
-
- -
|
30
|
+
- - ">="
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 1.0.1
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: json
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
36
36
|
requirements:
|
37
|
-
- - ~>
|
37
|
+
- - "~>"
|
38
38
|
- !ruby/object:Gem::Version
|
39
39
|
version: '1.8'
|
40
|
-
- -
|
40
|
+
- - ">="
|
41
41
|
- !ruby/object:Gem::Version
|
42
42
|
version: 1.8.3
|
43
43
|
type: :runtime
|
44
44
|
prerelease: false
|
45
45
|
version_requirements: !ruby/object:Gem::Requirement
|
46
46
|
requirements:
|
47
|
-
- - ~>
|
47
|
+
- - "~>"
|
48
48
|
- !ruby/object:Gem::Version
|
49
49
|
version: '1.8'
|
50
|
-
- -
|
50
|
+
- - ">="
|
51
51
|
- !ruby/object:Gem::Version
|
52
52
|
version: 1.8.3
|
53
53
|
- !ruby/object:Gem::Dependency
|
54
54
|
name: rspec
|
55
55
|
requirement: !ruby/object:Gem::Requirement
|
56
56
|
requirements:
|
57
|
-
- - ~>
|
57
|
+
- - "~>"
|
58
58
|
- !ruby/object:Gem::Version
|
59
59
|
version: '3.6'
|
60
|
-
- -
|
60
|
+
- - ">="
|
61
61
|
- !ruby/object:Gem::Version
|
62
62
|
version: 3.6.0
|
63
63
|
type: :development
|
64
64
|
prerelease: false
|
65
65
|
version_requirements: !ruby/object:Gem::Requirement
|
66
66
|
requirements:
|
67
|
-
- - ~>
|
67
|
+
- - "~>"
|
68
68
|
- !ruby/object:Gem::Version
|
69
69
|
version: '3.6'
|
70
|
-
- -
|
70
|
+
- - ">="
|
71
71
|
- !ruby/object:Gem::Version
|
72
72
|
version: 3.6.0
|
73
73
|
- !ruby/object:Gem::Dependency
|
74
74
|
name: vcr
|
75
75
|
requirement: !ruby/object:Gem::Requirement
|
76
76
|
requirements:
|
77
|
-
- - ~>
|
77
|
+
- - "~>"
|
78
78
|
- !ruby/object:Gem::Version
|
79
79
|
version: '3.0'
|
80
|
-
- -
|
80
|
+
- - ">="
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: 3.0.1
|
83
83
|
type: :development
|
84
84
|
prerelease: false
|
85
85
|
version_requirements: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- - ~>
|
87
|
+
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
89
|
version: '3.0'
|
90
|
-
- -
|
90
|
+
- - ">="
|
91
91
|
- !ruby/object:Gem::Version
|
92
92
|
version: 3.0.1
|
93
93
|
- !ruby/object:Gem::Dependency
|
94
94
|
name: webmock
|
95
95
|
requirement: !ruby/object:Gem::Requirement
|
96
96
|
requirements:
|
97
|
-
- - ~>
|
97
|
+
- - "~>"
|
98
98
|
- !ruby/object:Gem::Version
|
99
99
|
version: '1.24'
|
100
|
-
- -
|
100
|
+
- - ">="
|
101
101
|
- !ruby/object:Gem::Version
|
102
102
|
version: 1.24.3
|
103
103
|
type: :development
|
104
104
|
prerelease: false
|
105
105
|
version_requirements: !ruby/object:Gem::Requirement
|
106
106
|
requirements:
|
107
|
-
- - ~>
|
107
|
+
- - "~>"
|
108
108
|
- !ruby/object:Gem::Version
|
109
109
|
version: '1.24'
|
110
|
-
- -
|
110
|
+
- - ">="
|
111
111
|
- !ruby/object:Gem::Version
|
112
112
|
version: 1.24.3
|
113
113
|
- !ruby/object:Gem::Dependency
|
114
114
|
name: autotest
|
115
115
|
requirement: !ruby/object:Gem::Requirement
|
116
116
|
requirements:
|
117
|
-
- - ~>
|
117
|
+
- - "~>"
|
118
118
|
- !ruby/object:Gem::Version
|
119
119
|
version: '4.4'
|
120
|
-
- -
|
120
|
+
- - ">="
|
121
121
|
- !ruby/object:Gem::Version
|
122
122
|
version: 4.4.6
|
123
123
|
type: :development
|
124
124
|
prerelease: false
|
125
125
|
version_requirements: !ruby/object:Gem::Requirement
|
126
126
|
requirements:
|
127
|
-
- - ~>
|
127
|
+
- - "~>"
|
128
128
|
- !ruby/object:Gem::Version
|
129
129
|
version: '4.4'
|
130
|
-
- -
|
130
|
+
- - ">="
|
131
131
|
- !ruby/object:Gem::Version
|
132
132
|
version: 4.4.6
|
133
133
|
- !ruby/object:Gem::Dependency
|
134
134
|
name: autotest-rails-pure
|
135
135
|
requirement: !ruby/object:Gem::Requirement
|
136
136
|
requirements:
|
137
|
-
- - ~>
|
137
|
+
- - "~>"
|
138
138
|
- !ruby/object:Gem::Version
|
139
139
|
version: '4.1'
|
140
|
-
- -
|
140
|
+
- - ">="
|
141
141
|
- !ruby/object:Gem::Version
|
142
142
|
version: 4.1.2
|
143
143
|
type: :development
|
144
144
|
prerelease: false
|
145
145
|
version_requirements: !ruby/object:Gem::Requirement
|
146
146
|
requirements:
|
147
|
-
- - ~>
|
147
|
+
- - "~>"
|
148
148
|
- !ruby/object:Gem::Version
|
149
149
|
version: '4.1'
|
150
|
-
- -
|
150
|
+
- - ">="
|
151
151
|
- !ruby/object:Gem::Version
|
152
152
|
version: 4.1.2
|
153
153
|
- !ruby/object:Gem::Dependency
|
154
154
|
name: autotest-growl
|
155
155
|
requirement: !ruby/object:Gem::Requirement
|
156
156
|
requirements:
|
157
|
-
- - ~>
|
157
|
+
- - "~>"
|
158
158
|
- !ruby/object:Gem::Version
|
159
159
|
version: '0.2'
|
160
|
-
- -
|
160
|
+
- - ">="
|
161
161
|
- !ruby/object:Gem::Version
|
162
162
|
version: 0.2.16
|
163
163
|
type: :development
|
164
164
|
prerelease: false
|
165
165
|
version_requirements: !ruby/object:Gem::Requirement
|
166
166
|
requirements:
|
167
|
-
- - ~>
|
167
|
+
- - "~>"
|
168
168
|
- !ruby/object:Gem::Version
|
169
169
|
version: '0.2'
|
170
|
-
- -
|
170
|
+
- - ">="
|
171
171
|
- !ruby/object:Gem::Version
|
172
172
|
version: 0.2.16
|
173
173
|
- !ruby/object:Gem::Dependency
|
174
174
|
name: autotest-fsevent
|
175
175
|
requirement: !ruby/object:Gem::Requirement
|
176
176
|
requirements:
|
177
|
-
- - ~>
|
177
|
+
- - "~>"
|
178
178
|
- !ruby/object:Gem::Version
|
179
179
|
version: '0.2'
|
180
|
-
- -
|
180
|
+
- - ">="
|
181
181
|
- !ruby/object:Gem::Version
|
182
182
|
version: 0.2.12
|
183
183
|
type: :development
|
184
184
|
prerelease: false
|
185
185
|
version_requirements: !ruby/object:Gem::Requirement
|
186
186
|
requirements:
|
187
|
-
- - ~>
|
187
|
+
- - "~>"
|
188
188
|
- !ruby/object:Gem::Version
|
189
189
|
version: '0.2'
|
190
|
-
- -
|
190
|
+
- - ">="
|
191
191
|
- !ruby/object:Gem::Version
|
192
192
|
version: 0.2.12
|
193
193
|
description: The Clever API
|
@@ -197,8 +197,6 @@ executables: []
|
|
197
197
|
extensions: []
|
198
198
|
extra_rdoc_files: []
|
199
199
|
files:
|
200
|
-
- '1.8, '
|
201
|
-
- '='
|
202
200
|
- CHANGELOG.md
|
203
201
|
- Gemfile
|
204
202
|
- Gemfile.lock
|
@@ -207,8 +205,9 @@ files:
|
|
207
205
|
- README.md
|
208
206
|
- Rakefile
|
209
207
|
- circle.yml
|
208
|
+
- clever-ruby-1.2.5.gem
|
209
|
+
- clever-ruby-2.0.0.gem
|
210
210
|
- clever-ruby.gemspec
|
211
|
-
- doc_coverage.txt
|
212
211
|
- docs/BadRequest.md
|
213
212
|
- docs/Contact.md
|
214
213
|
- docs/ContactObject.md
|
@@ -427,17 +426,17 @@ require_paths:
|
|
427
426
|
- lib
|
428
427
|
required_ruby_version: !ruby/object:Gem::Requirement
|
429
428
|
requirements:
|
430
|
-
- -
|
429
|
+
- - ">="
|
431
430
|
- !ruby/object:Gem::Version
|
432
431
|
version: '1.9'
|
433
432
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
434
433
|
requirements:
|
435
|
-
- -
|
434
|
+
- - ">="
|
436
435
|
- !ruby/object:Gem::Version
|
437
436
|
version: '0'
|
438
437
|
requirements: []
|
439
438
|
rubyforge_project:
|
440
|
-
rubygems_version: 2.
|
439
|
+
rubygems_version: 2.5.2
|
441
440
|
signing_key:
|
442
441
|
specification_version: 4
|
443
442
|
summary: Clever API Ruby Gem
|
@@ -445,4 +444,3 @@ test_files:
|
|
445
444
|
- spec/events.json
|
446
445
|
- spec/events_api_spec.rb
|
447
446
|
- spec/spec_helper.rb
|
448
|
-
has_rdoc:
|
data/1.8,
DELETED
File without changes
|
data/=
DELETED
File without changes
|
data/doc_coverage.txt
DELETED