up_and_running 0.2.4 → 1.0.0

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
  SHA1:
3
- metadata.gz: 96bfc31bf9ab9479db8aee568304a09a306628b5
4
- data.tar.gz: 58efc3c1063a2c860402342d011f386f47d78158
3
+ metadata.gz: 18a40ec48524f583c1c67e1566ace3f6105ed862
4
+ data.tar.gz: a15fecc0bea4cf0fb9a1bcc192271d523b0671c4
5
5
  SHA512:
6
- metadata.gz: 813c0cede349fd35af2860ec0bf0254a1346bb2ac3c7a5ba513e423485a365e542ac2b63c5f5896f492990e302551fadf4d3701f17b59327a6b518354b507bf3
7
- data.tar.gz: 2e3518e6487f2afa050081976d5460bd9958f7a46ac05cf4b3d3d44f8603acb8bf716a8316c2e99ef7c167da69cb4a79e4100747d397cd1d195275f008a3a3dd
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
- class Sample < UpAndRunning::Compiler; end
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 %>
@@ -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}"
@@ -1,3 +1,3 @@
1
1
  module UpAndRunning
2
- VERSION = "0.2.4"
2
+ VERSION = "1.0.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: up_and_running
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josh Bodah