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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4848e1245f38fecc827a52b9148f89526d3b38045eb155d6b5eba412dcb96376
4
- data.tar.gz: 1d414803e3fb134f82ecec3d2b21a80756b43000be3b69ea2df84fc7efedebb7
3
+ metadata.gz: cbe5aa05e4c77ad585a787d3d47d7f6f9bd3c1459888f6fc1bbba4d28270744d
4
+ data.tar.gz: 27491ba2f7073b47ba291bf81796649346d3ec5d0f1203d2715af1373fde7f6a
5
5
  SHA512:
6
- metadata.gz: 9e2d63fab8492b4486626a8bd09d0c748eed6f6dbd76c340c3277058a6d982f1d62388c6443acf2f490fb9b91a0b9aa6b7cd68e98168d3e24d56b22fea5915a3
7
- data.tar.gz: f2ed3c42b44f75a629dce9d12bec144624102afb2c96148368e98cc9d6c2812fe26e2f6818fd41dc9d1a4c464b2ef8997c9801c467aa0829dffad191bab01172
6
+ metadata.gz: 164d14066a9a97e873aa6d348fc16ee6bd9dd56d5670753490d0729bda8202a7d2b94881ef0c40f44bf8328383b176ec7809f7295ee0f88639310c1827040f7e
7
+ data.tar.gz: 04640d7007324b1b75b4afc123eabec3e9e1fff600da90b1ad094ce04ba72fd1df6611f9e9e304fb0023d1779316f3d6d40a551f64ecab86226add8f0799565b
@@ -110,7 +110,11 @@ if !options[:branch]
110
110
  end
111
111
 
112
112
  if !options[:name]
113
- options[:name] = File.basename(Dir.getwd)
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])
@@ -1,3 +1,3 @@
1
1
  class GithubToCanvas
2
- VERSION = "0.0.29"
2
+ VERSION = "0.0.31"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: github-to-canvas
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.30
4
+ version: 0.0.31
5
5
  platform: ruby
6
6
  authors:
7
7
  - maxwellbenton