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.
Files changed (91) hide show
  1. checksums.yaml +8 -8
  2. data/.gitignore +2 -0
  3. data/.pryrc +3 -0
  4. data/.rspec +1 -1
  5. data/.ruby-gemset +1 -0
  6. data/.ruby-version +1 -0
  7. data/.travis.yml +12 -0
  8. data/Gemfile +6 -3
  9. data/Gemfile.lock +58 -28
  10. data/README.rdoc +4 -1
  11. data/examples/barcodes_checkins.rb +37 -14
  12. data/lib/api/checkin.rb +1 -1
  13. data/lib/api/checkin_list.rb +0 -1
  14. data/lib/api/checkin_list_by_callboard_number.rb +61 -0
  15. data/lib/api/checkin_list_by_pager_number.rb +61 -0
  16. data/lib/api/group_checkin.rb +13 -2
  17. data/lib/api/group_checkin_event.rb +24 -0
  18. data/lib/api/group_checkin_events_list.rb +64 -0
  19. data/lib/api/group_checkin_list.rb +2 -2
  20. data/lib/readers/api_reader.rb +9 -2
  21. data/lib/readers/checkin_list_by_callboard_number_reader.rb +27 -0
  22. data/lib/readers/checkin_list_by_pager_number_reader.rb +27 -0
  23. data/lib/readers/checkin_list_reader.rb +2 -2
  24. data/lib/readers/group_checkin_events_list_reader.rb +28 -0
  25. data/lib/readers/group_checkin_reader.rb +32 -0
  26. data/lib/readers/group_list_reader.rb +0 -1
  27. data/spec/api/checkin_list_by_callboard_number_spec.rb +91 -0
  28. data/spec/api/checkin_list_by_pager_number_spec.rb +98 -0
  29. data/spec/api/checkin_list_spec.rb +91 -0
  30. data/spec/api/group_address_list_spec.rb +1 -1
  31. data/spec/api/group_address_spec.rb +2 -3
  32. data/spec/api/group_checkin_events_list_spec.rb +91 -0
  33. data/spec/api/group_checkin_list_spec.rb +1 -1
  34. data/spec/api/group_checkin_spec.rb +12 -0
  35. data/spec/api/group_event_attendance_list_spec.rb +1 -1
  36. data/spec/api/group_export_spec.rb +1 -5
  37. data/spec/api/group_invitation_list_spec.rb +6 -6
  38. data/spec/api/group_invitation_spec.rb +1 -5
  39. data/spec/api/group_list_spec.rb +72 -7
  40. data/spec/api/group_role_list_spec.rb +6 -6
  41. data/spec/api/group_role_spec.rb +1 -5
  42. data/spec/api/group_spec.rb +1 -5
  43. data/spec/api/group_tag_list_spec.rb +6 -6
  44. data/spec/api/group_tag_spec.rb +1 -5
  45. data/spec/api/metric_list_spec.rb +6 -6
  46. data/spec/api/metric_measurement_list_spec.rb +6 -6
  47. data/spec/api/metric_measurement_spec.rb +2 -2
  48. data/spec/api/metric_spec.rb +2 -2
  49. data/spec/api/role_list_spec.rb +1 -1
  50. data/spec/api/role_spec.rb +2 -2
  51. data/spec/api/skill_list_spec.rb +1 -1
  52. data/spec/api/skilled_user_id_list_spec.rb +1 -1
  53. data/spec/api/skilled_user_list_spec.rb +1 -1
  54. data/spec/api/tag_group_list_spec.rb +1 -1
  55. data/spec/api/tag_list_spec.rb +1 -1
  56. data/spec/api/tag_spec.rb +2 -2
  57. data/spec/api/terminology_list_spec.rb +1 -1
  58. data/spec/api/terminology_spec.rb +2 -2
  59. data/spec/api/user_address_list_spec.rb +1 -1
  60. data/spec/api/user_address_spec.rb +2 -2
  61. data/spec/api/user_admin_privilege_list_spec.rb +1 -1
  62. data/spec/api/user_admin_privilege_spec.rb +2 -2
  63. data/spec/api/user_barcode_spec.rb +2 -2
  64. data/spec/api/user_family_list_spec.rb +1 -1
  65. data/spec/api/user_family_member_spec.rb +2 -2
  66. data/spec/api/user_invitation_list_spec.rb +1 -1
  67. data/spec/api/user_invitation_spec.rb +2 -2
  68. data/spec/api/user_list_spec.rb +1 -1
  69. data/spec/api/user_note_list_spec.rb +1 -1
  70. data/spec/api/user_note_spec.rb +2 -2
  71. data/spec/api/user_process_answer_list_spec.rb +1 -1
  72. data/spec/api/user_process_list_spec.rb +1 -1
  73. data/spec/api/user_process_spec.rb +2 -2
  74. data/spec/api/user_role_list_spec.rb +1 -1
  75. data/spec/api/user_role_spec.rb +2 -2
  76. data/spec/api/user_skill_list_spec.rb +1 -1
  77. data/spec/api/user_skill_spec.rb +2 -2
  78. data/spec/api/user_spec.rb +1 -2
  79. data/spec/api/web_hook_list_spec.rb +1 -1
  80. data/spec/api/web_hook_spec.rb +2 -2
  81. data/spec/factories/group_checkin_event.rb +20 -0
  82. data/spec/factories/group_checkin_events_list.rb +14 -0
  83. data/spec/factories/group_list.rb +13 -0
  84. data/spec/functional/the_city_admin_spec.rb +5 -5
  85. data/spec/readers/api_reader_spec.rb +3 -5
  86. data/spec/readers/user_reader_spec.rb +1 -1
  87. data/spec/spec_helper.rb +9 -7
  88. data/thecity_admin_api.gemspec +6 -5
  89. metadata +51 -8
  90. data/.autotest +0 -9
  91. data/.rvmrc +0 -1
@@ -3,17 +3,13 @@ require File.join(Dir.pwd, 'spec', 'spec_helper')
3
3
  describe 'Group' 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
10
10
 
11
11
  end
12
12
 
13
-
14
- it 'should pass if ....'
15
-
16
-
17
13
  end
18
14
 
19
15
 
@@ -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
@@ -3,17 +3,13 @@ require File.join(Dir.pwd, 'spec', 'spec_helper')
3
3
  describe 'GroupTag' 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
10
10
 
11
11
  end
12
12
 
13
-
14
- it 'should pass if ....'
15
-
16
-
17
13
  end
18
14
 
19
15
 
@@ -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
- it 'should pass if ....'
14
+
15
15
 
16
16
 
17
17
  end
@@ -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
- it 'should pass if ....'
14
+
15
15
 
16
16
 
17
17
  end
@@ -3,7 +3,7 @@ require File.join(Dir.pwd, 'spec', 'spec_helper')
3
3
  describe 'RoleList' 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
@@ -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
- it 'should pass if ....'
14
+
15
15
 
16
16
 
17
17
  end
@@ -3,7 +3,7 @@ require File.join(Dir.pwd, 'spec', 'spec_helper')
3
3
  describe 'SkillList' 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
@@ -3,7 +3,7 @@ require File.join(Dir.pwd, 'spec', 'spec_helper')
3
3
  describe 'SkilledUserIdList' 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
@@ -3,7 +3,7 @@ require File.join(Dir.pwd, 'spec', 'spec_helper')
3
3
  describe 'SkilledUserList' 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
@@ -3,7 +3,7 @@ require File.join(Dir.pwd, 'spec', 'spec_helper')
3
3
  describe 'TagGroupList' 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
@@ -3,7 +3,7 @@ require File.join(Dir.pwd, 'spec', 'spec_helper')
3
3
  describe 'TagList' 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
@@ -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
- it 'should pass if ....'
14
+
15
15
 
16
16
 
17
17
  end
@@ -3,7 +3,7 @@ require File.join(Dir.pwd, 'spec', 'spec_helper')
3
3
  describe 'TerminologyList' 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
@@ -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
- it 'should pass if ....'
14
+
15
15
 
16
16
 
17
17
  end
@@ -3,7 +3,7 @@ require File.join(Dir.pwd, 'spec', 'spec_helper')
3
3
  describe 'UserAddressList' 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
@@ -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
- it 'should pass if ....'
14
+
15
15
 
16
16
 
17
17
  end
@@ -3,7 +3,7 @@ require File.join(Dir.pwd, 'spec', 'spec_helper')
3
3
  describe 'UserAdminPrivilegeList' 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
@@ -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
- it 'should pass if ....'
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
- it 'should pass if ....'
14
+
15
15
 
16
16
 
17
17
  end
@@ -3,7 +3,7 @@ require File.join(Dir.pwd, 'spec', 'spec_helper')
3
3
  describe 'UserFamilyList' 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
@@ -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
- it 'should pass if ....'
14
+
15
15
 
16
16
 
17
17
  end
@@ -3,7 +3,7 @@ require File.join(Dir.pwd, 'spec', 'spec_helper')
3
3
  describe 'UserInvitationList' 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
@@ -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
- it 'should pass if ....'
14
+
15
15
 
16
16
 
17
17
  end
@@ -3,7 +3,7 @@ require File.join(Dir.pwd, 'spec', 'spec_helper')
3
3
  describe 'UserList' 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
@@ -3,7 +3,7 @@ require File.join(Dir.pwd, 'spec', 'spec_helper')
3
3
  describe 'UserNoteList' 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
@@ -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
- it 'should pass if ....'
14
+
15
15
 
16
16
 
17
17
  end