the-city-admin 0.7.0 → 0.7.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/.gitignore +2 -0
- data/.pryrc +3 -0
- data/.rspec +1 -1
- data/.ruby-gemset +1 -0
- data/.ruby-version +1 -0
- data/.travis.yml +12 -0
- data/Gemfile +6 -3
- data/Gemfile.lock +58 -28
- data/README.rdoc +4 -1
- data/examples/barcodes_checkins.rb +37 -14
- data/lib/api/checkin.rb +1 -1
- data/lib/api/checkin_list.rb +0 -1
- data/lib/api/checkin_list_by_callboard_number.rb +61 -0
- data/lib/api/checkin_list_by_pager_number.rb +61 -0
- data/lib/api/group_checkin.rb +13 -2
- data/lib/api/group_checkin_event.rb +24 -0
- data/lib/api/group_checkin_events_list.rb +64 -0
- data/lib/api/group_checkin_list.rb +2 -2
- data/lib/readers/api_reader.rb +9 -2
- data/lib/readers/checkin_list_by_callboard_number_reader.rb +27 -0
- data/lib/readers/checkin_list_by_pager_number_reader.rb +27 -0
- data/lib/readers/checkin_list_reader.rb +2 -2
- data/lib/readers/group_checkin_events_list_reader.rb +28 -0
- data/lib/readers/group_checkin_reader.rb +32 -0
- data/lib/readers/group_list_reader.rb +0 -1
- data/spec/api/checkin_list_by_callboard_number_spec.rb +91 -0
- data/spec/api/checkin_list_by_pager_number_spec.rb +98 -0
- data/spec/api/checkin_list_spec.rb +91 -0
- data/spec/api/group_address_list_spec.rb +1 -1
- data/spec/api/group_address_spec.rb +2 -3
- data/spec/api/group_checkin_events_list_spec.rb +91 -0
- data/spec/api/group_checkin_list_spec.rb +1 -1
- data/spec/api/group_checkin_spec.rb +12 -0
- data/spec/api/group_event_attendance_list_spec.rb +1 -1
- data/spec/api/group_export_spec.rb +1 -5
- data/spec/api/group_invitation_list_spec.rb +6 -6
- data/spec/api/group_invitation_spec.rb +1 -5
- data/spec/api/group_list_spec.rb +72 -7
- data/spec/api/group_role_list_spec.rb +6 -6
- data/spec/api/group_role_spec.rb +1 -5
- data/spec/api/group_spec.rb +1 -5
- data/spec/api/group_tag_list_spec.rb +6 -6
- data/spec/api/group_tag_spec.rb +1 -5
- data/spec/api/metric_list_spec.rb +6 -6
- data/spec/api/metric_measurement_list_spec.rb +6 -6
- data/spec/api/metric_measurement_spec.rb +2 -2
- data/spec/api/metric_spec.rb +2 -2
- data/spec/api/role_list_spec.rb +1 -1
- data/spec/api/role_spec.rb +2 -2
- data/spec/api/skill_list_spec.rb +1 -1
- data/spec/api/skilled_user_id_list_spec.rb +1 -1
- data/spec/api/skilled_user_list_spec.rb +1 -1
- data/spec/api/tag_group_list_spec.rb +1 -1
- data/spec/api/tag_list_spec.rb +1 -1
- data/spec/api/tag_spec.rb +2 -2
- data/spec/api/terminology_list_spec.rb +1 -1
- data/spec/api/terminology_spec.rb +2 -2
- data/spec/api/user_address_list_spec.rb +1 -1
- data/spec/api/user_address_spec.rb +2 -2
- data/spec/api/user_admin_privilege_list_spec.rb +1 -1
- data/spec/api/user_admin_privilege_spec.rb +2 -2
- data/spec/api/user_barcode_spec.rb +2 -2
- data/spec/api/user_family_list_spec.rb +1 -1
- data/spec/api/user_family_member_spec.rb +2 -2
- data/spec/api/user_invitation_list_spec.rb +1 -1
- data/spec/api/user_invitation_spec.rb +2 -2
- data/spec/api/user_list_spec.rb +1 -1
- data/spec/api/user_note_list_spec.rb +1 -1
- data/spec/api/user_note_spec.rb +2 -2
- data/spec/api/user_process_answer_list_spec.rb +1 -1
- data/spec/api/user_process_list_spec.rb +1 -1
- data/spec/api/user_process_spec.rb +2 -2
- data/spec/api/user_role_list_spec.rb +1 -1
- data/spec/api/user_role_spec.rb +2 -2
- data/spec/api/user_skill_list_spec.rb +1 -1
- data/spec/api/user_skill_spec.rb +2 -2
- data/spec/api/user_spec.rb +1 -2
- data/spec/api/web_hook_list_spec.rb +1 -1
- data/spec/api/web_hook_spec.rb +2 -2
- data/spec/factories/group_checkin_event.rb +20 -0
- data/spec/factories/group_checkin_events_list.rb +14 -0
- data/spec/factories/group_list.rb +13 -0
- data/spec/functional/the_city_admin_spec.rb +5 -5
- data/spec/readers/api_reader_spec.rb +3 -5
- data/spec/readers/user_reader_spec.rb +1 -1
- data/spec/spec_helper.rb +9 -7
- data/thecity_admin_api.gemspec +6 -5
- metadata +51 -8
- data/.autotest +0 -9
- data/.rvmrc +0 -1
data/spec/api/group_spec.rb
CHANGED
@@ -3,7 +3,7 @@ require File.join(Dir.pwd, 'spec', 'spec_helper')
|
|
3
3
|
describe 'GroupTagList' do
|
4
4
|
|
5
5
|
before do
|
6
|
-
simulate_connection_to_server
|
6
|
+
#simulate_connection_to_server
|
7
7
|
end
|
8
8
|
|
9
9
|
after do
|
@@ -11,11 +11,11 @@ describe 'GroupTagList' do
|
|
11
11
|
end
|
12
12
|
|
13
13
|
|
14
|
-
it 'should pass if group tag list attribute is not specifed'
|
15
|
-
it 'should pass if group tag list is empty'
|
16
|
-
it 'should return a valid list of group tags'
|
17
|
-
it 'should iterate using *each* method'
|
18
|
-
it 'should iterate using *collect* method'
|
14
|
+
# it 'should pass if group tag list attribute is not specifed'
|
15
|
+
# it 'should pass if group tag list is empty'
|
16
|
+
# it 'should return a valid list of group tags'
|
17
|
+
# it 'should iterate using *each* method'
|
18
|
+
# it 'should iterate using *collect* method'
|
19
19
|
|
20
20
|
|
21
21
|
end
|
data/spec/api/group_tag_spec.rb
CHANGED
@@ -3,7 +3,7 @@ require File.join(Dir.pwd, 'spec', 'spec_helper')
|
|
3
3
|
describe 'MetricList' do
|
4
4
|
|
5
5
|
before do
|
6
|
-
simulate_connection_to_server
|
6
|
+
#simulate_connection_to_server
|
7
7
|
end
|
8
8
|
|
9
9
|
after do
|
@@ -11,11 +11,11 @@ describe 'MetricList' do
|
|
11
11
|
end
|
12
12
|
|
13
13
|
|
14
|
-
it 'should pass if matric list attribute is not specifed'
|
15
|
-
it 'should pass if matric list is empty'
|
16
|
-
it 'should return a valid list of matrics'
|
17
|
-
it 'should iterate using *each* method'
|
18
|
-
it 'should iterate using *collect* method'
|
14
|
+
# it 'should pass if matric list attribute is not specifed'
|
15
|
+
# it 'should pass if matric list is empty'
|
16
|
+
# it 'should return a valid list of matrics'
|
17
|
+
# it 'should iterate using *each* method'
|
18
|
+
# it 'should iterate using *collect* method'
|
19
19
|
|
20
20
|
end
|
21
21
|
|
@@ -3,7 +3,7 @@ require File.join(Dir.pwd, 'spec', 'spec_helper')
|
|
3
3
|
describe 'MetricMeasurementList' do
|
4
4
|
|
5
5
|
before do
|
6
|
-
simulate_connection_to_server
|
6
|
+
#simulate_connection_to_server
|
7
7
|
end
|
8
8
|
|
9
9
|
after do
|
@@ -11,11 +11,11 @@ describe 'MetricMeasurementList' do
|
|
11
11
|
end
|
12
12
|
|
13
13
|
|
14
|
-
it 'should pass if metric measurement list attribute is not specifed'
|
15
|
-
it 'should pass if metric measurement list is empty'
|
16
|
-
it 'should return a valid list of metric measurements'
|
17
|
-
it 'should iterate using *each* method'
|
18
|
-
it 'should iterate using *collect* method'
|
14
|
+
# it 'should pass if metric measurement list attribute is not specifed'
|
15
|
+
# it 'should pass if metric measurement list is empty'
|
16
|
+
# it 'should return a valid list of metric measurements'
|
17
|
+
# it 'should iterate using *each* method'
|
18
|
+
# it 'should iterate using *collect* method'
|
19
19
|
|
20
20
|
|
21
21
|
end
|
@@ -3,7 +3,7 @@ require File.join(Dir.pwd, 'spec', 'spec_helper')
|
|
3
3
|
describe 'MetricMeasurement' do
|
4
4
|
|
5
5
|
before do
|
6
|
-
simulate_connection_to_server
|
6
|
+
#simulate_connection_to_server
|
7
7
|
end
|
8
8
|
|
9
9
|
after do
|
@@ -11,7 +11,7 @@ describe 'MetricMeasurement' do
|
|
11
11
|
end
|
12
12
|
|
13
13
|
|
14
|
-
|
14
|
+
|
15
15
|
|
16
16
|
|
17
17
|
end
|
data/spec/api/metric_spec.rb
CHANGED
@@ -3,7 +3,7 @@ require File.join(Dir.pwd, 'spec', 'spec_helper')
|
|
3
3
|
describe 'Metric' do
|
4
4
|
|
5
5
|
before do
|
6
|
-
simulate_connection_to_server
|
6
|
+
#simulate_connection_to_server
|
7
7
|
end
|
8
8
|
|
9
9
|
after do
|
@@ -11,7 +11,7 @@ describe 'Metric' do
|
|
11
11
|
end
|
12
12
|
|
13
13
|
|
14
|
-
|
14
|
+
|
15
15
|
|
16
16
|
|
17
17
|
end
|
data/spec/api/role_list_spec.rb
CHANGED
data/spec/api/role_spec.rb
CHANGED
@@ -3,7 +3,7 @@ require File.join(Dir.pwd, 'spec', 'spec_helper')
|
|
3
3
|
describe 'Role' do
|
4
4
|
|
5
5
|
before do
|
6
|
-
simulate_connection_to_server
|
6
|
+
#simulate_connection_to_server
|
7
7
|
end
|
8
8
|
|
9
9
|
after do
|
@@ -11,7 +11,7 @@ describe 'Role' do
|
|
11
11
|
end
|
12
12
|
|
13
13
|
|
14
|
-
|
14
|
+
|
15
15
|
|
16
16
|
|
17
17
|
end
|
data/spec/api/skill_list_spec.rb
CHANGED
data/spec/api/tag_list_spec.rb
CHANGED
data/spec/api/tag_spec.rb
CHANGED
@@ -3,7 +3,7 @@ require File.join(Dir.pwd, 'spec', 'spec_helper')
|
|
3
3
|
describe 'Tag' do
|
4
4
|
|
5
5
|
before do
|
6
|
-
simulate_connection_to_server
|
6
|
+
#simulate_connection_to_server
|
7
7
|
end
|
8
8
|
|
9
9
|
after do
|
@@ -11,7 +11,7 @@ describe 'Tag' do
|
|
11
11
|
end
|
12
12
|
|
13
13
|
|
14
|
-
|
14
|
+
|
15
15
|
|
16
16
|
|
17
17
|
end
|
@@ -3,7 +3,7 @@ require File.join(Dir.pwd, 'spec', 'spec_helper')
|
|
3
3
|
describe 'Terminology' do
|
4
4
|
|
5
5
|
before do
|
6
|
-
simulate_connection_to_server
|
6
|
+
#simulate_connection_to_server
|
7
7
|
end
|
8
8
|
|
9
9
|
after do
|
@@ -11,7 +11,7 @@ describe 'Terminology' do
|
|
11
11
|
end
|
12
12
|
|
13
13
|
|
14
|
-
|
14
|
+
|
15
15
|
|
16
16
|
|
17
17
|
end
|
@@ -3,7 +3,7 @@ require File.join(Dir.pwd, 'spec', 'spec_helper')
|
|
3
3
|
describe 'UserAddress' do
|
4
4
|
|
5
5
|
before do
|
6
|
-
simulate_connection_to_server
|
6
|
+
#simulate_connection_to_server
|
7
7
|
end
|
8
8
|
|
9
9
|
after do
|
@@ -11,7 +11,7 @@ describe 'UserAddress' do
|
|
11
11
|
end
|
12
12
|
|
13
13
|
|
14
|
-
|
14
|
+
|
15
15
|
|
16
16
|
|
17
17
|
end
|
@@ -3,7 +3,7 @@ require File.join(Dir.pwd, 'spec', 'spec_helper')
|
|
3
3
|
describe 'UserAdminPrivilege' do
|
4
4
|
|
5
5
|
before do
|
6
|
-
simulate_connection_to_server
|
6
|
+
#simulate_connection_to_server
|
7
7
|
end
|
8
8
|
|
9
9
|
after do
|
@@ -11,7 +11,7 @@ describe 'UserAdminPrivilege' do
|
|
11
11
|
end
|
12
12
|
|
13
13
|
|
14
|
-
|
14
|
+
|
15
15
|
|
16
16
|
|
17
17
|
end
|
@@ -3,7 +3,7 @@ require File.join(Dir.pwd, 'spec', 'spec_helper')
|
|
3
3
|
describe 'UserBarcode' do
|
4
4
|
|
5
5
|
before do
|
6
|
-
simulate_connection_to_server
|
6
|
+
#simulate_connection_to_server
|
7
7
|
end
|
8
8
|
|
9
9
|
after do
|
@@ -11,7 +11,7 @@ describe 'UserBarcode' do
|
|
11
11
|
end
|
12
12
|
|
13
13
|
|
14
|
-
|
14
|
+
|
15
15
|
|
16
16
|
|
17
17
|
end
|
@@ -3,7 +3,7 @@ require File.join(Dir.pwd, 'spec', 'spec_helper')
|
|
3
3
|
describe 'UserFamilyMember' do
|
4
4
|
|
5
5
|
before do
|
6
|
-
simulate_connection_to_server
|
6
|
+
#simulate_connection_to_server
|
7
7
|
end
|
8
8
|
|
9
9
|
after do
|
@@ -11,7 +11,7 @@ describe 'UserFamilyMember' do
|
|
11
11
|
end
|
12
12
|
|
13
13
|
|
14
|
-
|
14
|
+
|
15
15
|
|
16
16
|
|
17
17
|
end
|
@@ -3,7 +3,7 @@ require File.join(Dir.pwd, 'spec', 'spec_helper')
|
|
3
3
|
describe 'UserInvitation' do
|
4
4
|
|
5
5
|
before do
|
6
|
-
simulate_connection_to_server
|
6
|
+
#simulate_connection_to_server
|
7
7
|
end
|
8
8
|
|
9
9
|
after do
|
@@ -11,7 +11,7 @@ describe 'UserInvitation' do
|
|
11
11
|
end
|
12
12
|
|
13
13
|
|
14
|
-
|
14
|
+
|
15
15
|
|
16
16
|
|
17
17
|
end
|
data/spec/api/user_list_spec.rb
CHANGED
data/spec/api/user_note_spec.rb
CHANGED
@@ -3,7 +3,7 @@ require File.join(Dir.pwd, 'spec', 'spec_helper')
|
|
3
3
|
describe 'UserNote' do
|
4
4
|
|
5
5
|
before do
|
6
|
-
simulate_connection_to_server
|
6
|
+
#simulate_connection_to_server
|
7
7
|
end
|
8
8
|
|
9
9
|
after do
|
@@ -11,7 +11,7 @@ describe 'UserNote' do
|
|
11
11
|
end
|
12
12
|
|
13
13
|
|
14
|
-
|
14
|
+
|
15
15
|
|
16
16
|
|
17
17
|
end
|