fig_rake 0.9.1 → 0.9.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fe3dfe803f876af9795bce9c45e56585a5a9c068
4
- data.tar.gz: f11aa93552ac932276b8717f9127558a37dd66ea
3
+ metadata.gz: 97b4bb73ecaa56b396a843a1dd1f4d07f7324d73
4
+ data.tar.gz: 6e536728b3798dd17369ccb5f6cd87701aff4cf1
5
5
  SHA512:
6
- metadata.gz: ad5f74bbbc25d85bd0c351df8d687f2fd0a6ba9ec6399599afcfb5d89c08eee01e3b13e544cf31b7f6433e404055625c4e53f44b7e5006aa5217fa42837288bd
7
- data.tar.gz: 90ae30883c0e609768433ca74221d694072d0ccffd4eddd134d2301a086586e7b919c863614798d3e6f8466d584951c0ab0152d2f1b81d5f0f5735eaad79f5e7
6
+ metadata.gz: 984a383459fb81ffc26615379ebf69c4772a6b70c66fbfb3d27daebb680d43d9bf5b740953a511723a0110feb99847cf28b90fb7eb61ae03870efcc14647f698
7
+ data.tar.gz: bccc0f6a2256c2ba79eef1723a42c05036837c3e33b0da17060df98ee03c88115c36b99a4458c5c13a140d5d30b40145a732793160ad314b87fedf9029846fec
data/README.md CHANGED
@@ -32,9 +32,13 @@ For more information type `frake --help` or `frails --help`
32
32
 
33
33
  I don't think there's anything wrong with monkey patching, so let's do it.
34
34
 
35
- Just add `require 'fig_rake/rake'` to your Rakefile or `require 'fig_rake/rails'` and frake will automatically intercept your rake and rails commands and run them against its default container. The default container will be determined in the same manner as the `frake` command. You can optionally call `FigRake::Rake.default_container "name"` in your Rakefile or `FigRake::Rails.default_container "name"` in your config/application.rb to set the default container name there.
35
+ Just add `require 'fig_rake/rake'` to your Rakefile or `require 'fig_rake/rails'` and frake will automatically intercept your rake and rails commands and run them against its default container. The default container will be determined in the same manner as the `frake` command. You can optionally call `FigRake::Rake.default_container "name"` in your Rakefile or `FigRake::Rails.default_container "name"` in your config/boot.rb to set the default container name there.
36
36
 
37
- If you need to run rake commands locally after installing FigRake, add `FIG_RAKE=off` to the end of your rake command or as a shell environment variable to disable FigRake for that command.
37
+ You still need to explicity enable Fig Rake after including it in Rake or Rails by setting the environment variable `FIG_RAKE`.
38
+
39
+ ## Versioning
40
+
41
+ This Gem is feature complete for my purposes. However it lacks tests. As soon as I have added enough of a test suite to feel comfortable, I will cut a 1.0.0 release.
38
42
 
39
43
  ## Contributing
40
44
 
@@ -28,10 +28,10 @@ module Rails
28
28
  m = self.instance_method(method)
29
29
 
30
30
  define_method method do
31
- if ENV['FIG_RAKE'] == 'off'
32
- m.bind(self).call
33
- else
31
+ if ENV['FIG_RAKE']
34
32
  run_in_fig(argv.unshift(method))
33
+ else
34
+ m.bind(self).call
35
35
  end
36
36
  end
37
37
  end
data/lib/fig_rake/rake.rb CHANGED
@@ -27,10 +27,10 @@ module Rake
27
27
  tl = self.instance_method(:top_level)
28
28
 
29
29
  define_method :top_level do
30
- if ENV['FIG_RAKE'] == 'off'
31
- tl.bind(self).call
32
- else
30
+ if ENV['FIG_RAKE']
33
31
  run_in_fig(ARGV)
32
+ else
33
+ tl.bind(self).call
34
34
  end
35
35
  end
36
36
  end
@@ -1,3 +1,3 @@
1
1
  module FigRake
2
- VERSION = "0.9.1"
2
+ VERSION = "0.9.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fig_rake
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.1
4
+ version: 0.9.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Edward Paget
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-01-21 00:00:00.000000000 Z
11
+ date: 2015-01-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler