qalam_merit 4.5.10 → 4.5.11
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/lib/merit/generators/merit_generator.rb +9 -1
- data/qalam_merit.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: deec567df823559e660d23204391e9552705a649f57201eb79d30e21d5be727f
|
|
4
|
+
data.tar.gz: 7e1bb67952c7ec3cc5f00e8649b59b1526a5099590b22d51240af7af54f21652
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f6a50d73f6e1cad5dbfd5658874fa1412f41abf2543aec1659ea0aaf5a67627935601abd5a9726544545402222d074d857f9b162c19a8efc333dce60079442de
|
|
7
|
+
data.tar.gz: 3758d8266ea7dea46c9a7282e314569f4cdbb7421486255ad26a0f245be880a4acef9eb66d04c4f6b311c3e60a353b0af70e5198005683c8cc41bf78b895e83a
|
|
@@ -10,10 +10,14 @@ module Merit
|
|
|
10
10
|
inject_into_class(model_path, class_name, " ### END ###\n\n")
|
|
11
11
|
inject_into_class(model_path, class_name, " has_many :created_badges, class_name: 'Merit::Badge', :dependent => :destroy\n")
|
|
12
12
|
inject_into_class(model_path, class_name, " has_many :assigned_badges, through: :sash, source: :badges, :dependent => :destroy\n")
|
|
13
|
-
inject_into_class(model_path, class_name, " has_many :badges_sashes, through: :sash, source: :badges_sashes, :dependent => :destroy\n")
|
|
14
13
|
inject_into_class(model_path, class_name, " belongs_to :sash, foreign_key: 'sash_id', class_name: 'Merit::Sash', :dependent => :destroy\n")
|
|
15
14
|
inject_into_class(model_path, class_name, " has_merit\n")
|
|
16
15
|
inject_into_class(model_path, class_name, " ### QALAM_MERIT ###\n")
|
|
16
|
+
|
|
17
|
+
inject_into_class(course_path, "Course", " ### END ###\n\n")
|
|
18
|
+
inject_into_class(course_path, "Course", " has_many :badges_sashes, class_name: 'Merit::BadgesSash', dependent: :destroy\n")
|
|
19
|
+
inject_into_class(course_path, "Course", " has_many :score_points, class_name: 'Merit::QalamScore::Point', dependent: :destroy\n")
|
|
20
|
+
inject_into_class(course_path, "Course", " ### QALAM_MERIT ###\n")
|
|
17
21
|
end
|
|
18
22
|
end
|
|
19
23
|
|
|
@@ -30,6 +34,10 @@ module Merit
|
|
|
30
34
|
def model_path
|
|
31
35
|
@model_path ||= File.join('app', 'models', "#{file_path}.rb")
|
|
32
36
|
end
|
|
37
|
+
|
|
38
|
+
def course_path
|
|
39
|
+
@course_path ||= File.join('app', 'models', "course.rb")
|
|
40
|
+
end
|
|
33
41
|
end
|
|
34
42
|
end
|
|
35
43
|
end
|
data/qalam_merit.gemspec
CHANGED
|
@@ -6,7 +6,7 @@ Gem::Specification.new do |s|
|
|
|
6
6
|
s.files = `git ls-files`.split("\n").reject{|f| f =~ /^\./ }
|
|
7
7
|
s.test_files = `git ls-files -- test/*`.split("\n")
|
|
8
8
|
s.license = 'MIT'
|
|
9
|
-
s.version = '4.5.
|
|
9
|
+
s.version = '4.5.11'
|
|
10
10
|
s.authors = ["Ahmed Abdelhamid", "Zeyad Saleh"]
|
|
11
11
|
s.email = ['a.hamid@nezam.io', 'zeyad.saleh@nezam.io']
|
|
12
12
|
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: qalam_merit
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 4.5.
|
|
4
|
+
version: 4.5.11
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ahmed Abdelhamid
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2021-03-
|
|
12
|
+
date: 2021-03-13 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: zeitwerk
|