rails-routes 0.1.1 → 0.1.2

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
- SHA1:
3
- metadata.gz: cd9c4c26251aa7e46e74444aef5b7399df9fb3a4
4
- data.tar.gz: 7e7b4d2deeecad2d576388ecf7ddb82c4132f101
2
+ SHA256:
3
+ metadata.gz: c9fb93ee742720a7c82fead87c911dd632581ae544b54b5905761f692af04429
4
+ data.tar.gz: bdaa933a8b91ccd5983bd94122f3998cbbef73cc1a77b0d7c62c360fa9b5f021
5
5
  SHA512:
6
- metadata.gz: c261c848953aec1f6003b5ae7ab6045623d83ea05d19a69987c9853f8a023cf8126ed1317aa8800413f66a1a8a2b3ee4b1e85ad184399a3d2b396c4d4b5ec3a0
7
- data.tar.gz: 43fe5ec6747187c058d642c04c4f8bbfb86e6eb3c792e3cd535f04b1fc6374a0ace13f8c5ac5c0ebb6c74b99e899ab1a34e0b10edc49e1db36fde28c32da869a
6
+ metadata.gz: 83dcc244fc334e023245a96095b9d5e7c54eaa4f2b5d4173c57a00d99b653598f1bfdd0a458612ee5f307e4cc536448e82f36667837d81e41280b62389007ca1
7
+ data.tar.gz: c75c3a82c4878c33b9827af470f70d87d415f2fcd98366587ad23b0a6e642571dcd23714a85c7612a206b33835904108a281bf693574ef94c107bfdb165218c8
data/.gitignore CHANGED
@@ -7,3 +7,4 @@
7
7
  /pkg/
8
8
  /spec/reports/
9
9
  /tmp/
10
+ *.log
@@ -1,4 +1,17 @@
1
1
  language: ruby
2
+ cache: bundler
3
+ sudo: false
4
+ notifications:
5
+ email: false
2
6
  rvm:
3
- - 2.2.3
4
- before_install: gem install bundler -v 1.10.6
7
+ - 2.6.1
8
+ before_install: gem install bundler
9
+ before_script:
10
+ - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
11
+ - chmod +x ./cc-test-reporter
12
+ - "./cc-test-reporter before-build"
13
+ after_script:
14
+ - "./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT"
15
+ env:
16
+ global:
17
+ secure: e3aI4XGIHGxpdPJA/gxk0ab9CN3TgvrFQfZFaINy9HxWUZ42y74La2qhpfg8ZetoWm7EkXFqX/150VH4OGE42UN2g3rfgn3D/RAtD6NUHYKKyHZShE54TFWJgghT/8/YbzuPEVyY/A49kKTIQy31FeS9JgloZ4CU8Fh6lnQ+y8bMslNREAUclkdT0oyarwYSJIy4DXekIc+qAZs+1cBEcrmM4z3kCrRdT1ELsCnthSYmkJFSNyn/EPNKw4AaLJh/pbBiA3KFEYaXqgFRZ9eXDmYJMlx/Xqji3ewNTIVNBPKZx1r1sEObHgOVKAduBHCFDdGGfYrb1DlB9jX5fuvbTnfgYPgUf4FvqNYh2rN3XVxSetv+y0/vG8m7fIlfSYg0otALWWd6LvMfTy2NSsJ9JbDKggMc+J1OEZBI31sMmCyoTkEzKM/uNTsATxLfmJpuWEa7Xt/nexRejNL7gJI0doGY9vF68UGW+XsS1TumPPvrgp5PcUdEJXZAedvLogUMv58PiAp54F/tPnXvKCphRIfy2UI+FTa3Iuc6g4lyzX5qPSDo5zFMmjVnQgXKjKEY6TPPBX867y6Um8lWGFxGdulT/hEqQgE/bHaAkLqGLMWetM/3CfM8q7qKaJOHhAIku0zHYjHHLRinXpEUfsOkVMlZvxJnRgkoN4P1pB/cP9U=
data/README.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Rails::Routes
2
2
 
3
+ [![Travis-CI](https://travis-ci.org/fnando/rails-routes.svg)](https://travis-ci.org/fnando/rails-routes)
4
+ [![Code Climate](https://codeclimate.com/github/fnando/rails-routes/badges/gpa.svg)](https://codeclimate.com/github/fnando/rails-routes)
5
+ [![Test Coverage](https://codeclimate.com/github/fnando/rails-routes/badges/coverage.svg)](https://codeclimate.com/github/fnando/rails-routes/coverage)
6
+ [![Gem](https://img.shields.io/gem/v/rails-routes.svg)](https://rubygems.org/gems/rails-routes)
7
+ [![Gem](https://img.shields.io/gem/dt/rails-routes.svg)](https://rubygems.org/gems/rails-routes)
8
+
3
9
  Too many routes on your Rails app? Me too! This gem allows you to separate your routes on different files. Just create them at `config/routes/*.rb` and you're good to go.
4
10
 
5
11
  ## Installation
@@ -38,6 +44,8 @@ Rails.application.routes.draw do
38
44
  end
39
45
  ```
40
46
 
47
+ The routes will be reloaded in development; if you create or remove files, you have to restart your server.
48
+
41
49
  ## Development
42
50
 
43
51
  After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
@@ -2,7 +2,7 @@ module RailsRoutes
2
2
  class Railtie < Rails::Railtie
3
3
  initializer "rails_routes" do
4
4
  app = Rails.application
5
- routes = Dir[Rails.root.join("config/routes/**/*.rb").to_s]
5
+ routes = Dir[Rails.root.join("config/routes/**/*.rb").to_s].sort
6
6
  app.routes_reloader.paths.unshift(*routes)
7
7
  app.config.paths["config/routes.rb"].concat(routes)
8
8
  end
@@ -1,3 +1,3 @@
1
1
  module RailsRoutes
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
@@ -15,11 +15,12 @@ Gem::Specification.new do |spec|
15
15
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
16
16
  spec.require_paths = ["lib"]
17
17
 
18
- spec.add_development_dependency "bundler", "~> 1.10"
19
- spec.add_development_dependency "rake", "~> 10.0"
18
+ spec.add_development_dependency "bundler"
19
+ spec.add_development_dependency "rake"
20
20
  spec.add_development_dependency "minitest"
21
21
  spec.add_development_dependency "minitest-utils"
22
22
  spec.add_development_dependency "pry-meta"
23
23
  spec.add_development_dependency "rails"
24
24
  spec.add_development_dependency "rack-test"
25
+ spec.add_development_dependency "codeclimate-test-reporter"
25
26
  end
metadata CHANGED
@@ -1,43 +1,43 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails-routes
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nando Vieira
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-08-22 00:00:00.000000000 Z
11
+ date: 2019-03-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '1.10'
19
+ version: '0'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: '1.10'
26
+ version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: '10.0'
33
+ version: '0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - "~>"
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
- version: '10.0'
40
+ version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: minitest
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -108,6 +108,20 @@ dependencies:
108
108
  - - ">="
109
109
  - !ruby/object:Gem::Version
110
110
  version: '0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: codeclimate-test-reporter
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
111
125
  description: Enable config/routes/*.rb on your Rails application.
112
126
  email:
113
127
  - fnando.vieira@gmail.com
@@ -127,7 +141,6 @@ files:
127
141
  - lib/rails-routes.rb
128
142
  - lib/rails-routes/railtie.rb
129
143
  - lib/rails-routes/version.rb
130
- - log/development.log
131
144
  - rails-routes.gemspec
132
145
  homepage: https://github.com/fnando/rails-routes
133
146
  licenses:
@@ -148,8 +161,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
148
161
  - !ruby/object:Gem::Version
149
162
  version: '0'
150
163
  requirements: []
151
- rubyforge_project:
152
- rubygems_version: 2.4.5.1
164
+ rubygems_version: 3.0.1
153
165
  signing_key:
154
166
  specification_version: 4
155
167
  summary: Enable config/routes/*.rb on your Rails application.
@@ -1,85 +0,0 @@
1
-
2
-
3
- Started GET "/" for 127.0.0.1 at 2015-08-21 23:05:26 -0300
4
-
5
- RuntimeError (Cannot load `Rails.application.database_configuration`:
6
- Could not load database configuration. No such file - ["config/database.yml"]):
7
- test/rails-routes/rails_test.rb:11:in `block in <class:RailsTest>'
8
-
9
-
10
-
11
-
12
- Started GET "/" for 127.0.0.1 at 2015-08-21 23:05:41 -0300
13
-
14
- RuntimeError (Cannot load `Rails.application.database_configuration`:
15
- Could not load database configuration. No such file - ["config/database.yml"]):
16
- test/rails-routes/rails_test.rb:11:in `block in <class:RailsTest>'
17
-
18
-
19
-
20
-
21
- Started GET "/" for 127.0.0.1 at 2015-08-21 23:06:05 -0300
22
-
23
- RuntimeError (Cannot load `Rails.application.database_configuration`:
24
- Could not load database configuration. No such file - ["config/database.yml"]):
25
- test/rails-routes/rails_test.rb:11:in `block in <class:RailsTest>'
26
-
27
-
28
-
29
-
30
- Started GET "/" for 127.0.0.1 at 2015-08-21 23:07:10 -0300
31
-
32
- RuntimeError (Cannot load `Rails.application.database_configuration`:
33
- Could not load database configuration. No such file - ["config/database.yml"]):
34
- test/rails-routes/rails_test.rb:11:in `block in <class:RailsTest>'
35
-
36
-
37
-
38
-
39
- Started GET "/" for 127.0.0.1 at 2015-08-21 23:07:57 -0300
40
-
41
- RuntimeError (Cannot load `Rails.application.database_configuration`:
42
- Could not load database configuration. No such file - ["config/database.yml"]):
43
- test/rails-routes/rails_test.rb:11:in `block in <class:RailsTest>'
44
-
45
-
46
-
47
-
48
- Started GET "/" for 127.0.0.1 at 2015-08-21 23:09:11 -0300
49
-
50
- ActionController::RoutingError (No route matches [GET] "/"):
51
- test/rails-routes/rails_test.rb:11:in `block in <class:RailsTest>'
52
-
53
-
54
-
55
-
56
- Started GET "/" for 127.0.0.1 at 2015-08-21 23:09:17 -0300
57
-
58
- ActionController::RoutingError (No route matches [GET] "/"):
59
- test/rails-routes/rails_test.rb:11:in `block in <class:RailsTest>'
60
-
61
-
62
-
63
-
64
- Started GET "/" for 127.0.0.1 at 2015-08-21 23:10:01 -0300
65
-
66
- ActionController::RoutingError (No route matches [GET] "/"):
67
- test/rails-routes/rails_test.rb:11:in `block in <class:RailsTest>'
68
-
69
-
70
-
71
-
72
- Started GET "/" for 127.0.0.1 at 2015-08-21 23:10:20 -0300
73
-
74
- ActionController::RoutingError (No route matches [GET] "/"):
75
- test/rails-routes/rails_test.rb:11:in `block in <class:RailsTest>'
76
-
77
-
78
-
79
-
80
- Started GET "/" for 127.0.0.1 at 2015-08-21 23:11:03 -0300
81
-
82
- ActionController::RoutingError (No route matches [GET] "/"):
83
- test/rails-routes/rails_test.rb:11:in `block in <class:RailsTest>'
84
-
85
-