up_and_running 0.2.4 → 1.0.0
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/README.md +9 -1
- data/lib/up_and_running.rb +4 -1
- data/lib/up_and_running/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 18a40ec48524f583c1c67e1566ace3f6105ed862
|
4
|
+
data.tar.gz: a15fecc0bea4cf0fb9a1bcc192271d523b0671c4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9d1ba39a0906e0409463d54b10589d4038cc7ab2194c1442bef0a52aa268c7d81de7c745e89932f0b64d8f51086b14e8022645fb855475ee1da4c5ce4786ee3e
|
7
|
+
data.tar.gz: 7e6322388627bef56832e12e1f1e937517b77f09752826b65824bdaf1524f2fe73b3a7bb17deb793f11b327d20d01ddf38d0aca537275d8c527103da287eba37
|
data/README.md
CHANGED
@@ -28,7 +28,15 @@ Here is a sample:
|
|
28
28
|
|
29
29
|
```rb
|
30
30
|
# ~/.up_and_running/sample.rb
|
31
|
-
|
31
|
+
module UpAndRunning
|
32
|
+
module Compilers
|
33
|
+
class Sample < Compiler
|
34
|
+
def after_compile
|
35
|
+
system 'cat hello'
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
32
40
|
|
33
41
|
# ~/.up_and_running/sample/hello.erb
|
34
42
|
Hello <%= username %>
|
data/lib/up_and_running.rb
CHANGED
@@ -2,6 +2,9 @@ require 'up_and_running/version'
|
|
2
2
|
require 'up_and_running/compiler'
|
3
3
|
|
4
4
|
module UpAndRunning
|
5
|
+
module Compilers
|
6
|
+
end
|
7
|
+
|
5
8
|
module FeatureResolver
|
6
9
|
extend self
|
7
10
|
|
@@ -14,7 +17,7 @@ module UpAndRunning
|
|
14
17
|
if File.exists?(filename)
|
15
18
|
load filename
|
16
19
|
const_name = File.basename(filename).sub(/\.rb$/, '').split('_').map(&:capitalize).join
|
17
|
-
return const_get(const_name)
|
20
|
+
return Compilers.const_get(const_name)
|
18
21
|
end
|
19
22
|
end
|
20
23
|
raise "Couldn't find feature for #{name}"
|