learn_together 0.1.0 → 0.2.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b7ab3fd2602b6badc44b7559c4c186fa0ce22ebd
4
- data.tar.gz: 742c49d386e5d5eb80b5932759120aeb7139b90f
3
+ metadata.gz: cecd101c21817050cf3b40469f9d73f80ea295a5
4
+ data.tar.gz: 045696b43767092b4161e92e67175db2937cdfb3
5
5
  SHA512:
6
- metadata.gz: 09c71f0f21ea3f458fe740fbd59ce0199d72bd7b9a9287444aedeb99e0ab91378e0d21c80a633e54124fae1f1b4ce547f02edb13fc37d22c979359459b520305
7
- data.tar.gz: c514082affc49a624aa1adfa867afa15b23716344cbd6420566177c52371a9dc5cc6e7006efd2b4ea8c8c89229204314e57a810879992af9e3cc1a59adf47fc4
6
+ metadata.gz: 74179e33af13599680ca4fabd1707089a6c6ccdff620d7b00f2a46bb14e00bb53f8318a3771c07fd4f7cee343fdcb92d5069ad8bc2df71fbff367da6e6e424c0
7
+ data.tar.gz: 922564de2666d87cff637d1d7d855d27dca6e1934c3a163ac80a7e0c749a12a05b2bd2252ee169d2afce6520eba8363d29f32cab1fdf55f649195ceb91295eb5
@@ -69,7 +69,7 @@ module LearnTogether
69
69
  end
70
70
 
71
71
  def student_hash_type
72
- collection.first.respond_to?(:[]) && (collection.first[:completed_lesson_count_for_active_track] || collection.first["completed_lesson_count_for_active_track"])
72
+ collection.first.is_a?(Hash) && (collection.first.keys.include?("completed_lesson_count_for_active_track" || :completed_lesson_count_for_active_track))
73
73
  end
74
74
 
75
75
  def student_instance_object_type
@@ -1,3 +1,3 @@
1
1
  module LearnTogether
2
- VERSION = "0.1.0"
2
+ VERSION = "0.2.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: learn_together
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - sophie debenedetto