routingo 0.1.5 → 0.1.6

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
2
  SHA256:
3
- metadata.gz: 58b7436157fd9bcda89600697ecc4a17a3f570b5de8fb85127f6b5c7ea730317
4
- data.tar.gz: e54b337b640a4061dde7311496c3e17c85cf1f254706d3477380d744f24c2282
3
+ metadata.gz: e6d8991c8219e03241a19bf8a5098b5757248ba705f75a5c2c79154afcc90b9d
4
+ data.tar.gz: aad969b346f838e353c3aaa627fe2baf7ed1f4456d8133bfdd19b9fd5cb7c3ca
5
5
  SHA512:
6
- metadata.gz: 49526a887ad0971ca61f0c797998f8740850ced03f31f85187ec84f071ebd538945b4363fdc90fd3f3fddd1a7ef2c065e5d021d3777fed70d1403e7b048e2b65
7
- data.tar.gz: adb7cea97789c8fe0e46cfc8e8b0f63b06aee8fa33ca0951d40ac3a7dbc4ac0d747f187dc61124795d63746d7e65ea6d19f0e553efa03e86d159b9466d9ad01b
6
+ metadata.gz: a36898015775550688664dbe17cc3824a1eabcd71bc162c89f6446a317c38b33d1d5db5e3a1ce7f24178e798686a1b10b05d58d88ef5ee74e405927b597e4aaf
7
+ data.tar.gz: 0fa222aee162a2f774d5abf3408912cf2147c789821fd3b33756666321925425e23877bad7d855db17cc2966a7cb7a3f01154a9a374ac23c788b23d6ba7cb816
data/.rubocop.yml ADDED
@@ -0,0 +1,7 @@
1
+ AllCops:
2
+ TargetRubyVersion: 2.6
3
+ Exclude:
4
+ - "bin/*"
5
+
6
+ Style/ExpandPathArguments:
7
+ Enabled: false
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 2.6.0
1
+ 2.6.3
data/.travis.yml CHANGED
@@ -1,5 +1,5 @@
1
1
  sudo: false
2
2
  language: ruby
3
3
  rvm:
4
- - 2.6.0
5
- before_install: gem install bundler -v 2.0.1
4
+ - 2.6.3
5
+ before_install: gem install bundler
data/Gemfile CHANGED
@@ -1,4 +1,4 @@
1
- source 'https://rubygems.org'
1
+ # frozen_string_literal: true
2
2
 
3
- # Specify your gem's dependencies in routingo.gemspec
3
+ source 'https://rubygems.org'
4
4
  gemspec
data/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # Routingo
2
2
 
3
3
  [![Gem Version](https://badge.fury.io/rb/routingo.svg)](https://badge.fury.io/rb/routingo)
4
- [![Codacy Badge](https://api.codacy.com/project/badge/Grade/ce7bae3716df48de8f98e56cd70cda15)](https://www.codacy.com/app/webguruserbia/routingo?utm_source=github.com&utm_medium=referral&utm_content=popac/routingo&utm_campaign=Badge_Grade)[![Build Status](https://travis-ci.org/popicic/routingo.svg?branch=master)](https://travis-ci.org/popicic/routingo)
4
+ [![Codacy Badge](https://api.codacy.com/project/badge/Grade/ce7bae3716df48de8f98e56cd70cda15)](https://www.codacy.com/app/webguruserbia/routingo?utm_source=github.com&utm_medium=referral&utm_content=popac/routingo&utm_campaign=Badge_Grade)[![Build Status](https://travis-ci.org/popac/routingo.svg?branch=master)](https://travis-ci.org/popac/routingo)[![wercker status](https://app.wercker.com/status/7635ae97e127b9ff8b8c32de4aeec514/s/master "wercker status")](https://app.wercker.com/project/byKey/7635ae97e127b9ff8b8c32de4aeec514)
5
5
 
6
6
  Gem that split routes.rb into smaller parts.
7
7
 
data/Rakefile CHANGED
@@ -1,2 +1,4 @@
1
- require "bundler/gem_tasks"
2
- task :default => :spec
1
+ # frozen_string_literal: true
2
+
3
+ require 'bundler/gem_tasks'
4
+ task default: :spec
@@ -1,11 +1,17 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'rails/generators'
2
4
 
3
5
  module Routingo
4
6
  module Generators
7
+ # Install Class
5
8
  class Install < Rails::Generators::Base
6
9
  def insert_path
7
- insert_into_file "config/application.rb", :after => "class Application < Rails::Application\n" do
8
- "config.paths['config/routes.rb'].concat(Dir[Rails.root.join('config/routes/*.rb')])\n"
10
+ klazz = 'class Application < Rails::Application'
11
+ paths = 'config/routes.rb'
12
+ joins = 'config/routes/*.rb'
13
+ insert_into_file 'config/application.rb', after: "#{klazz}\n" do
14
+ "config.paths[#{paths}].concat(Dir[Rails.root.join(#{joins})])\n"
9
15
  end
10
16
  end
11
17
  end
@@ -1,9 +1,12 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Routingo
4
+ # Routingo Class
2
5
  class Routingo < Rails::Generators::NamedBase
3
6
  def create_helper_file
4
7
  create_file "config/routes/#{file_name}.rb", <<-FILE
5
8
  Rails.application.routes.draw do
6
-
9
+
7
10
  end
8
11
  FILE
9
12
  end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Routingo
2
- VERSION = "0.1.5"
4
+ VERSION = '0.1.6'
3
5
  end
data/lib/routingo.rb CHANGED
@@ -1,4 +1,6 @@
1
- require "routingo/version"
1
+ # frozen_string_literal: true
2
+
3
+ require 'routingo/version'
2
4
 
3
5
  module Routingo
4
6
  class Engine < ::Rails::Engine
data/routingo.gemspec CHANGED
@@ -1,34 +1,32 @@
1
- # coding: utf-8
1
+ # frozen_string_literal: true
2
+
2
3
  lib = File.expand_path('../lib', __FILE__)
3
4
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
5
  require 'routingo/version'
5
6
 
6
7
  Gem::Specification.new do |spec|
7
- spec.name = "routingo"
8
- spec.version = Routingo::VERSION
9
- spec.authors = ["popicic"]
10
- spec.email = ["aleksandar.popovic.popac@gmail.com"]
11
-
12
- spec.summary = %q{Routingo}
13
- spec.description = %q{Gem that split routes.rb into smaller parts}
14
- spec.homepage = "https://github.com/popac/routingo"
15
- spec.license = "MIT"
16
- spec.post_install_message = "Thanks for installing Routingo!"
8
+ spec.name = 'routingo'
9
+ spec.version = Routingo::VERSION
10
+ spec.authors = ['popac']
11
+ spec.email = ['aleksandar.popovic.popac@gmail.com']
17
12
 
18
- if spec.respond_to?(:metadata)
19
- spec.metadata['allowed_push_host'] = "https://rubygems.org"
20
- else
21
- raise "RubyGems 2.0 or newer is required to protect against public gem pushes."
22
- end
13
+ spec.summary = 'Routingo'
14
+ spec.description = 'Gem that split routes.rb into smaller parts'
15
+ spec.homepage = 'https://github.com/popac/routingo'
16
+ spec.license = 'MIT'
17
+ spec.post_install_message = 'Thanks for installing Routingo!'
23
18
 
24
- spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
25
- spec.bindir = "exe"
26
- spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
27
- spec.require_paths = ["lib"]
19
+ spec.metadata['allowed_push_host'] = 'https://rubygems.org'
28
20
 
29
- spec.add_development_dependency 'bundler', '~> 2.0', '>= 2.0.1'
30
- spec.add_development_dependency 'rake', '~> 12.3.2'
31
- spec.add_development_dependency 'rspec', '~> 3.8.0'
21
+ spec.files = `git ls-files -z`.split("\x0")
22
+ .reject { |f| f.match(%r{^(spec)/}) }
23
+ spec.bindir = 'exe'
24
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
25
+ spec.require_paths = ['lib']
32
26
 
33
- spec.add_runtime_dependency 'rails', '~> 5.2', '>= 5.2.2'
27
+ spec.add_development_dependency 'bundler', '~> 2.0', '>= 2.0.2'
28
+ spec.add_development_dependency 'rake', '~> 12.3', '>= 12.3.3'
29
+ spec.add_development_dependency 'rspec', '~> 3.8'
30
+ spec.add_development_dependency 'rubocop', '~> 0.74.0'
31
+ spec.add_runtime_dependency 'rails', '~> 6.0'
34
32
  end
data/wercker.yml ADDED
@@ -0,0 +1,11 @@
1
+ box: ruby:2.6.3
2
+
3
+ build:
4
+ steps:
5
+ - script:
6
+ name: Install bundler
7
+ code: gem install bundler
8
+ - bundle-install
9
+ - script:
10
+ name: RSpec
11
+ code: bundle exec rspec
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: routingo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
- - popicic
7
+ - popac
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-01-05 00:00:00.000000000 Z
11
+ date: 2019-08-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '2.0'
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 2.0.1
22
+ version: 2.0.2
23
23
  type: :development
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,55 +29,69 @@ dependencies:
29
29
  version: '2.0'
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 2.0.1
32
+ version: 2.0.2
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: rake
35
35
  requirement: !ruby/object:Gem::Requirement
36
36
  requirements:
37
37
  - - "~>"
38
38
  - !ruby/object:Gem::Version
39
- version: 12.3.2
39
+ version: '12.3'
40
+ - - ">="
41
+ - !ruby/object:Gem::Version
42
+ version: 12.3.3
40
43
  type: :development
41
44
  prerelease: false
42
45
  version_requirements: !ruby/object:Gem::Requirement
43
46
  requirements:
44
47
  - - "~>"
45
48
  - !ruby/object:Gem::Version
46
- version: 12.3.2
49
+ version: '12.3'
50
+ - - ">="
51
+ - !ruby/object:Gem::Version
52
+ version: 12.3.3
47
53
  - !ruby/object:Gem::Dependency
48
54
  name: rspec
49
55
  requirement: !ruby/object:Gem::Requirement
50
56
  requirements:
51
57
  - - "~>"
52
58
  - !ruby/object:Gem::Version
53
- version: 3.8.0
59
+ version: '3.8'
54
60
  type: :development
55
61
  prerelease: false
56
62
  version_requirements: !ruby/object:Gem::Requirement
57
63
  requirements:
58
64
  - - "~>"
59
65
  - !ruby/object:Gem::Version
60
- version: 3.8.0
66
+ version: '3.8'
61
67
  - !ruby/object:Gem::Dependency
62
- name: rails
68
+ name: rubocop
63
69
  requirement: !ruby/object:Gem::Requirement
64
70
  requirements:
65
71
  - - "~>"
66
72
  - !ruby/object:Gem::Version
67
- version: '5.2'
68
- - - ">="
73
+ version: 0.74.0
74
+ type: :development
75
+ prerelease: false
76
+ version_requirements: !ruby/object:Gem::Requirement
77
+ requirements:
78
+ - - "~>"
69
79
  - !ruby/object:Gem::Version
70
- version: 5.2.2
80
+ version: 0.74.0
81
+ - !ruby/object:Gem::Dependency
82
+ name: rails
83
+ requirement: !ruby/object:Gem::Requirement
84
+ requirements:
85
+ - - "~>"
86
+ - !ruby/object:Gem::Version
87
+ version: '6.0'
71
88
  type: :runtime
72
89
  prerelease: false
73
90
  version_requirements: !ruby/object:Gem::Requirement
74
91
  requirements:
75
92
  - - "~>"
76
93
  - !ruby/object:Gem::Version
77
- version: '5.2'
78
- - - ">="
79
- - !ruby/object:Gem::Version
80
- version: 5.2.2
94
+ version: '6.0'
81
95
  description: Gem that split routes.rb into smaller parts
82
96
  email:
83
97
  - aleksandar.popovic.popac@gmail.com
@@ -87,6 +101,7 @@ extra_rdoc_files: []
87
101
  files:
88
102
  - ".gitignore"
89
103
  - ".rspec"
104
+ - ".rubocop.yml"
90
105
  - ".ruby-version"
91
106
  - ".travis.yml"
92
107
  - CODE_OF_CONDUCT.md
@@ -101,6 +116,7 @@ files:
101
116
  - lib/routingo.rb
102
117
  - lib/routingo/version.rb
103
118
  - routingo.gemspec
119
+ - wercker.yml
104
120
  homepage: https://github.com/popac/routingo
105
121
  licenses:
106
122
  - MIT
@@ -121,7 +137,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
121
137
  - !ruby/object:Gem::Version
122
138
  version: '0'
123
139
  requirements: []
124
- rubygems_version: 3.0.1
140
+ rubygems_version: 3.0.3
125
141
  signing_key:
126
142
  specification_version: 4
127
143
  summary: Routingo