github-to-canvas 0.0.30 → 0.0.31
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/github-to-canvas +8 -4
- data/lib/github-to-canvas/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cbe5aa05e4c77ad585a787d3d47d7f6f9bd3c1459888f6fc1bbba4d28270744d
|
4
|
+
data.tar.gz: 27491ba2f7073b47ba291bf81796649346d3ec5d0f1203d2715af1373fde7f6a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 164d14066a9a97e873aa6d348fc16ee6bd9dd56d5670753490d0729bda8202a7d2b94881ef0c40f44bf8328383b176ec7809f7295ee0f88639310c1827040f7e
|
7
|
+
data.tar.gz: 04640d7007324b1b75b4afc123eabec3e9e1fff600da90b1ad094ce04ba72fd1df6611f9e9e304fb0023d1779316f3d6d40a551f64ecab86226add8f0799565b
|
data/bin/github-to-canvas
CHANGED
@@ -110,7 +110,11 @@ if !options[:branch]
|
|
110
110
|
end
|
111
111
|
|
112
112
|
if !options[:name]
|
113
|
-
options[:
|
113
|
+
if options[:file_to_convert]
|
114
|
+
options[:name] = options[:file_to_convert]
|
115
|
+
else
|
116
|
+
options[:name] = File.basename(Dir.getwd)
|
117
|
+
end
|
114
118
|
end
|
115
119
|
|
116
120
|
if options[:create_lesson]
|
@@ -131,9 +135,9 @@ if options[:align]
|
|
131
135
|
course: nil,
|
132
136
|
filepath: Dir.pwd,
|
133
137
|
file_to_convert: options[:file_to_convert],
|
134
|
-
branch: options[:branch],
|
135
|
-
name: options[:name],
|
136
|
-
type: options[:type],
|
138
|
+
branch: options[:branch],
|
139
|
+
name: options[:name],
|
140
|
+
type: options[:type],
|
137
141
|
save_to_github: !!options[:save_to_github],
|
138
142
|
fis_links: !!options[:fis],
|
139
143
|
remove_header_and_footer: !!options[:remove_header_and_footer])
|