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 +11 -0
- data/README.md +8 -0
- data/lib/localmotive.rb +5 -1
- data/lib/localmotive/version.rb +1 -1
- metadata +2 -1
data/Changelog.md
ADDED
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"
|
data/lib/localmotive/version.rb
CHANGED
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.
|
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
|