aspen 0.1.5 → 0.1.6
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 +8 -8
- data/lib/aspen.rb +2 -5
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
---
|
|
2
2
|
!binary "U0hBMQ==":
|
|
3
3
|
metadata.gz: !binary |-
|
|
4
|
-
|
|
4
|
+
ODE0Y2IyODZkMjJjYmFhMzlkM2U4OGU3N2M4MWYyZTFlY2Y5YjU4YQ==
|
|
5
5
|
data.tar.gz: !binary |-
|
|
6
|
-
|
|
6
|
+
OTM4MmViM2ZkMDZjNDc2YmFiMjA5MjFjMjE3YzRmMTYxOTc1Y2Q3Yw==
|
|
7
7
|
!binary "U0hBNTEy":
|
|
8
8
|
metadata.gz: !binary |-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
MmM5MzgxMTI3NDg1YjMzYmRmYjg2YjRhMjBkNWEzNmY4YTQ3ZWMzOTVlNzQx
|
|
10
|
+
MWFkMTIxMDMwZWQ5YTYyMDE5MTE1MTI1MGQ4OTU2OTYxOGM5MTNlMTgxM2Rh
|
|
11
|
+
YzFkYjY3YjlkOWM2ZTZiOTNlNGNmMTA0ZDg0YmM5Zjg1MGJkNzM=
|
|
12
12
|
data.tar.gz: !binary |-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
MWYwOWI2ZThhYWMzZTg3NGQ2NDhiYmZhYmMxOTFlMjFlOTlmODIzODRlM2Iy
|
|
14
|
+
NGEwNzBjMWY5MjFlYTAyOWI0MmMyZDczOWNlMWE5MjMwNjY5OGRlYWI0Njdh
|
|
15
|
+
ZDg5NmVkZTI2NjgwMDA5ZTJmYmNhOWVmMjdkMmYxMDc1NDdhZWU=
|
data/lib/aspen.rb
CHANGED
|
@@ -3,15 +3,12 @@ require 'rspec'
|
|
|
3
3
|
|
|
4
4
|
class Aspen
|
|
5
5
|
|
|
6
|
-
# Aspen.run("roman numerals -s")
|
|
7
|
-
# Aspen.run("roman_numerals -s")
|
|
8
|
-
|
|
9
6
|
def self.method_missing(method, *args, &block)
|
|
10
7
|
puts "Invalid command - try again."
|
|
11
8
|
end
|
|
12
9
|
|
|
13
10
|
def self.help
|
|
14
|
-
File.open("help
|
|
11
|
+
File.open("help.txt").each_line do |line|
|
|
15
12
|
puts line
|
|
16
13
|
end
|
|
17
14
|
end
|
|
@@ -62,7 +59,7 @@ class Aspen
|
|
|
62
59
|
end
|
|
63
60
|
|
|
64
61
|
def self.sterilize_project_name(string)
|
|
65
|
-
if string.match(/[^\w|\s|\-|.]
|
|
62
|
+
if string.match(/[^\w|\s|\-|.]/)
|
|
66
63
|
puts "Invalid project name"
|
|
67
64
|
else
|
|
68
65
|
string.strip.downcase.gsub(" ", "-").gsub("_", "-")
|