redirect-rails 0.1.0 → 0.1.1

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: 64f43033d5a99d592e7b4931eef7801dde22e34d907cbae7687f70371f4501cc
4
- data.tar.gz: 76622fb2a9ae4ecca3ffe013b345a657960d7c470b8a29a3db5d287b0b4ca182
3
+ metadata.gz: 1030900915055f49681aab5105f17e045ae52cd477c42d691ada41144b443421
4
+ data.tar.gz: efc1f721298307fc3c52cbed01c0db86b07669e3d1895456615e9591ad10fc47
5
5
  SHA512:
6
- metadata.gz: c0f571e4b56c9ab51a5246952144d056ca135c10f912cf37ac382296fa4cfa65d8a55e1e53122653e3180c1598b0694ff85bd0f704ca4b51885c05ac8b5f70c9
7
- data.tar.gz: ce489e6c1e69216eeff051b1132a2e13fd3f8b176f40568875f753b2fd9b4e6fab503e5718c5357dba2f35d95e8868d48add7bcc2abfcffadbd762682fef7ba1
6
+ metadata.gz: fecb1dd24be6854857b7470bd9a7f70cc6951f2cc27675a4b41804aa67cf80fe388fe256853310289f5905a9f60737c0cfca237abba2a1f46fbc0ea8d62fb8f0
7
+ data.tar.gz: 053de11bfdb934383f67c7bb8dcdd8a7f55ff93959ceececa54f4dbff82357d474fdb05a595a254e989c90d6d5208598a4240f628f62f28ea5044d0f617b59ef
data/Gemfile.lock ADDED
@@ -0,0 +1,57 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ redirect-rails (0.1.0)
5
+
6
+ GEM
7
+ remote: https://rubygems.org/
8
+ specs:
9
+ ast (2.4.2)
10
+ diff-lcs (1.5.0)
11
+ json (2.6.2)
12
+ parallel (1.22.1)
13
+ parser (3.1.2.1)
14
+ ast (~> 2.4.1)
15
+ rainbow (3.1.1)
16
+ rake (13.0.6)
17
+ regexp_parser (2.6.0)
18
+ rexml (3.2.5)
19
+ rspec (3.12.0)
20
+ rspec-core (~> 3.12.0)
21
+ rspec-expectations (~> 3.12.0)
22
+ rspec-mocks (~> 3.12.0)
23
+ rspec-core (3.12.0)
24
+ rspec-support (~> 3.12.0)
25
+ rspec-expectations (3.12.0)
26
+ diff-lcs (>= 1.2.0, < 2.0)
27
+ rspec-support (~> 3.12.0)
28
+ rspec-mocks (3.12.0)
29
+ diff-lcs (>= 1.2.0, < 2.0)
30
+ rspec-support (~> 3.12.0)
31
+ rspec-support (3.12.0)
32
+ rubocop (1.38.0)
33
+ json (~> 2.3)
34
+ parallel (~> 1.10)
35
+ parser (>= 3.1.2.1)
36
+ rainbow (>= 2.2.2, < 4.0)
37
+ regexp_parser (>= 1.8, < 3.0)
38
+ rexml (>= 3.2.5, < 4.0)
39
+ rubocop-ast (>= 1.23.0, < 2.0)
40
+ ruby-progressbar (~> 1.7)
41
+ unicode-display_width (>= 1.4.0, < 3.0)
42
+ rubocop-ast (1.23.0)
43
+ parser (>= 3.1.1.0)
44
+ ruby-progressbar (1.11.0)
45
+ unicode-display_width (2.3.0)
46
+
47
+ PLATFORMS
48
+ x86_64-linux
49
+
50
+ DEPENDENCIES
51
+ rake (~> 13.0)
52
+ redirect-rails!
53
+ rspec (~> 3.0)
54
+ rubocop (~> 1.21)
55
+
56
+ BUNDLED WITH
57
+ 2.3.7
data/README.md CHANGED
@@ -1,8 +1,6 @@
1
1
  # Redirect::Rails
2
2
 
3
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/redirect/rails`. To experiment with that code, run `bin/console` for an interactive prompt.
4
-
5
- TODO: Delete this and the text above, and describe your gem
3
+ This gem provides 302 redirect functionality in rails.
6
4
 
7
5
  ## Installation
8
6
 
@@ -14,25 +12,16 @@ gem 'redirect-rails'
14
12
 
15
13
  And then execute:
16
14
 
17
- $ bundle install
18
-
19
- Or install it yourself as:
20
-
21
- $ gem install redirect-rails
22
-
15
+ ```
16
+ $ bin/rails redirect:install
17
+ ```
23
18
  ## Usage
24
19
 
25
- TODO: Write usage instructions here
26
-
27
- ## Development
28
-
29
- After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
30
-
31
- To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
20
+ List the correspondence of the paths you want to redirect in config/redirect.yml."
32
21
 
33
22
  ## Contributing
34
23
 
35
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/redirect-rails. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/[USERNAME]/redirect-rails/blob/master/CODE_OF_CONDUCT.md).
24
+ Bug reports and pull requests are welcome on GitHub at https://github.com/slidict/redirect-rails. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/slidict/redirect-rails/blob/main/CODE_OF_CONDUCT.md).
36
25
 
37
26
  ## License
38
27
 
@@ -40,4 +29,4 @@ The gem is available as open source under the terms of the [MIT License](https:/
40
29
 
41
30
  ## Code of Conduct
42
31
 
43
- Everyone interacting in the Redirect::Rails project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/redirect-rails/blob/master/CODE_OF_CONDUCT.md).
32
+ Everyone interacting in the Redirect::Rails project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/slidict/redirect-rails/blob/main/CODE_OF_CONDUCT.md).
@@ -17,7 +17,6 @@ module Redirect
17
17
 
18
18
  def match?(request_path)
19
19
  Redirect::Rails.paths.map do |path, redirect_path|
20
- File.write('response.txt', redirect_path)
21
20
  if Regexp.new(path).match(request_path)
22
21
  return redirect_to(redirect_path)
23
22
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Redirect
4
4
  module Rails
5
- VERSION = "0.1.0"
5
+ VERSION = "0.1.1"
6
6
  end
7
7
  end
@@ -29,9 +29,5 @@ Gem::Specification.new do |spec|
29
29
  spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
30
30
  spec.require_paths = ["lib"]
31
31
 
32
- # Uncomment to register a new dependency of your gem
33
- # spec.add_dependency "example-gem", "~> 1.0"
34
-
35
- # For more information and examples about making a new gem, check out our
36
- # guide at: https://bundler.io/guides/creating_gem.html
32
+ spec.add_dependency "rails"
37
33
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: redirect-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yusuke
@@ -9,7 +9,21 @@ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
11
  date: 2022-11-30 00:00:00.000000000 Z
12
- dependencies: []
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rails
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
13
27
  description: List the correspondence of the paths you want to redirect in config/redirect.yml.
14
28
  email:
15
29
  - yusuke@slidict.io
@@ -21,6 +35,7 @@ files:
21
35
  - ".rubocop.yml"
22
36
  - CODE_OF_CONDUCT.md
23
37
  - Gemfile
38
+ - Gemfile.lock
24
39
  - LICENSE.txt
25
40
  - README.md
26
41
  - Rakefile