cat_router 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -2,7 +2,7 @@ module CatRouter
2
2
  module Version
3
3
  MAJOR = 0
4
4
  MINOR = 1
5
- TINY = 0
5
+ TINY = 1
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
data/lib/cat_router.rb CHANGED
@@ -5,8 +5,8 @@ end
5
5
  File.join(File.dirname(__FILE__), 'cat_router', 'version.rb'),
6
6
  File.join(File.dirname(__FILE__), '..', 'app', 'models', 'cat_route.rb'),
7
7
  File.join(File.dirname(__FILE__), '..', 'app', 'controllers', 'cat_router_controller.rb'),
8
- File.join(Rails.root, 'app', 'models', 'cat_route.rb'),
9
- File.join(Rails.root, 'app', 'controllers', 'cat_router_controller.rb')
8
+ File.join(Rails.root||RAILS_ROOT, 'app', 'models', 'cat_route.rb'),
9
+ File.join(Rails.root||RAILS_ROOT, 'app', 'controllers', 'cat_router_controller.rb')
10
10
  ].each do |path|
11
11
  if File.exists?(path)
12
12
  require path
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cat_router
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 25
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 0
10
- version: 0.1.0
9
+ - 1
10
+ version: 0.1.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Kristijan Sedlak