localmotive 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
data/Changelog.md ADDED
@@ -0,0 +1,11 @@
1
+ # v0.1.2 2012-11-13
2
+
3
+ * add support for Rails 3.0 (thanks to @thatdutchguy)
4
+
5
+ # v0.1.1 2012-11-13
6
+
7
+ * fix the generate environment files to not override the `config` value
8
+
9
+ # v0.1.0 2012-11-12
10
+
11
+ * initial release, override local configurations
data/README.md CHANGED
@@ -17,6 +17,14 @@ Add this to your rails application's development group:
17
17
  gem 'localmotive'
18
18
  end
19
19
 
20
+ If you want to use localmotive in environments other than just development, you can either enumerate them
21
+
22
+ gem 'localmotive', :groups => [:development, :test]
23
+
24
+ Or just add it to the default group
25
+
26
+ gem 'localmotive'
27
+
20
28
  ## Usage
21
29
 
22
30
  To get started, run the install command
data/lib/localmotive.rb CHANGED
@@ -3,13 +3,17 @@ require "localmotive/version"
3
3
  module Localmotive
4
4
  class Railtie < ::Rails::Railtie
5
5
 
6
- def maybe_load(app, filename)
6
+ def self.maybe_load(app, filename)
7
7
  path = app.root.join('.local/config', filename)
8
8
  if path.exist?
9
9
  load path
10
10
  end
11
11
  end
12
12
 
13
+ def maybe_load(app, filename)
14
+ self.class.maybe_load(app, filename)
15
+ end
16
+
13
17
  config.before_initialize do |app|
14
18
  maybe_load app, "application.rb"
15
19
  maybe_load app, "environments/#{Rails.env}.rb"
@@ -1,3 +1,3 @@
1
1
  module Localmotive
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: localmotive
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -35,6 +35,7 @@ extensions: []
35
35
  extra_rdoc_files: []
36
36
  files:
37
37
  - .gitignore
38
+ - Changelog.md
38
39
  - Gemfile
39
40
  - LICENSE.txt
40
41
  - README.md