github-to-canvas 0.0.8 → 0.0.9

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: 157424448fb4396e7ae200733bf3c27fb45b9d74546f026bf1c9aad55fe958f1
4
- data.tar.gz: a675bce4eb13531be6b80867798bf260ecc6edba8ef0e555bbb7b861d24397b3
3
+ metadata.gz: 22e9d0258dc0813b99121938b37d82311ffb922ff0ffbcf4b222640e748f8659
4
+ data.tar.gz: b804e8f2a65a4d733409cfd3af3d3528bb696f3b458d9a1e30225b2d6f9cc5b9
5
5
  SHA512:
6
- metadata.gz: df3a924b7ab026c0101af16e538b333f9b0aac17e4f9a5e66301d5ad690bad3ec7c229aa1547254f532b8d69ca5a27468c6935ee4db69e1544b57add7d0d8859
7
- data.tar.gz: 51f8d7055e94c7cc0deaf11defa4a5c9a39ab7300dc10e69f337578a6417f4da4a95ebad9223d46cb22539ec6b3d59f091a2467cb2952cd26c4aaedba768cbdc
6
+ metadata.gz: 91ab69410efd3b89570ca9484942fd20799a2b2d074e7bd34de95c3bbd50606a435d11ab3d127021d7c4a4f460904644c0ded04f807725b9041681ed6f4b0710
7
+ data.tar.gz: 1757de283f3ad403cf3c49b3b89ea842b4f05cd9a075061e601f45690d597885b8d26bee069a5976236670eeb27af9aa731c73fdd35082f179ec4d59c699ea7c
data/README.md CHANGED
@@ -71,7 +71,7 @@ page id, and the Canvas URL to the lesson for future reference.
71
71
  You can override the default behaviors with the following arguments:
72
72
 
73
73
  * `--name NAME` uses the provided name instead of the repository's folder name
74
- * `--branch BRANCH` uses the provided git branch instead of `master`
74
+ * `--branch BRANCH` uses the provided git branch instead of `master`
75
75
  * `--type TYPE` will accept either `'page'` or `'assignment'` and create the
76
76
  appropriate Canvas lesson type instead of relying on the repository's
77
77
  directory structure
data/bin/github-to-canvas CHANGED
@@ -74,7 +74,7 @@ if options[:version]
74
74
  GithubToCanvas.new(mode: 'version', course: nil)
75
75
  end
76
76
 
77
- if Dir.entries(Dir.pwd).select {|entry| File.directory? entry and !(entry =='.' || entry == '..')}.empty?
77
+ if Dir.glob("**/*/").empty?
78
78
  options[:type] = "page"
79
79
  else
80
80
  options[:type] = "assignment"
@@ -1,3 +1,3 @@
1
1
  class LearnTool
2
- VERSION = "0.0.8"
2
+ VERSION = "0.0.9"
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.8
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - maxwellbenton