short_rails 1.0.0 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (55) hide show
  1. checksums.yaml +5 -13
  2. data/MIT-LICENSE +1 -1
  3. data/README.md +57 -40
  4. data/Rakefile +7 -29
  5. data/app/assets/config/short_rails_manifest.js +1 -0
  6. data/app/assets/stylesheets/short_rails/application.css +6 -4
  7. data/app/controllers/short_rails/short_urls_controller.rb +40 -21
  8. data/app/jobs/short_rails/application_job.rb +4 -0
  9. data/app/mailers/short_rails/application_mailer.rb +6 -0
  10. data/app/models/short_rails/application_record.rb +5 -0
  11. data/app/models/short_rails/short_url.rb +12 -3
  12. data/app/views/layouts/short_rails/application.html.erb +4 -3
  13. data/config/routes.rb +4 -4
  14. data/db/migrate/{20121123124825_create_short_rails_short_urls.rb → 20211116084848_create_short_rails_short_urls.rb} +2 -1
  15. data/lib/short_rails/version.rb +1 -1
  16. data/lib/short_rails.rb +7 -0
  17. metadata +31 -109
  18. data/app/assets/javascripts/short_rails/application.js +0 -15
  19. data/db/migrate/20130108094545_add_url_short_param_to_short_urls.rb +0 -5
  20. data/test/dummy/README.rdoc +0 -261
  21. data/test/dummy/Rakefile +0 -7
  22. data/test/dummy/app/assets/javascripts/application.js +0 -15
  23. data/test/dummy/app/assets/stylesheets/application.css +0 -13
  24. data/test/dummy/app/controllers/application_controller.rb +0 -3
  25. data/test/dummy/app/helpers/application_helper.rb +0 -2
  26. data/test/dummy/app/views/layouts/application.html.erb +0 -14
  27. data/test/dummy/config/application.rb +0 -59
  28. data/test/dummy/config/boot.rb +0 -10
  29. data/test/dummy/config/database.yml +0 -25
  30. data/test/dummy/config/environment.rb +0 -5
  31. data/test/dummy/config/environments/development.rb +0 -37
  32. data/test/dummy/config/environments/production.rb +0 -67
  33. data/test/dummy/config/environments/test.rb +0 -37
  34. data/test/dummy/config/initializers/backtrace_silencers.rb +0 -7
  35. data/test/dummy/config/initializers/inflections.rb +0 -15
  36. data/test/dummy/config/initializers/mime_types.rb +0 -5
  37. data/test/dummy/config/initializers/secret_token.rb +0 -7
  38. data/test/dummy/config/initializers/session_store.rb +0 -8
  39. data/test/dummy/config/initializers/wrap_parameters.rb +0 -14
  40. data/test/dummy/config/locales/en.yml +0 -5
  41. data/test/dummy/config/routes.rb +0 -3
  42. data/test/dummy/config.ru +0 -4
  43. data/test/dummy/db/development.sqlite3 +0 -0
  44. data/test/dummy/db/migrate/20121123133344_create_short_rails_short_urls.short_rails.rb +0 -12
  45. data/test/dummy/db/migrate/20130108094709_add_url_short_param_to_short_urls.short_rails.rb +0 -6
  46. data/test/dummy/db/schema.rb +0 -24
  47. data/test/dummy/log/development.log +0 -8830
  48. data/test/dummy/public/404.html +0 -26
  49. data/test/dummy/public/422.html +0 -26
  50. data/test/dummy/public/500.html +0 -25
  51. data/test/dummy/public/favicon.ico +0 -0
  52. data/test/dummy/script/rails +0 -6
  53. data/test/integration/navigation_test.rb +0 -10
  54. data/test/short_rails_test.rb +0 -7
  55. data/test/test_helper.rb +0 -15
@@ -1,3 +0,0 @@
1
- Rails.application.routes.draw do
2
- mount ShortRails::Engine => "/s"
3
- end
data/test/dummy/config.ru DELETED
@@ -1,4 +0,0 @@
1
- # This file is used by Rack-based servers to start the application.
2
-
3
- require ::File.expand_path('../config/environment', __FILE__)
4
- run Dummy::Application
Binary file
@@ -1,12 +0,0 @@
1
- # This migration comes from short_rails (originally 20121123124825)
2
- class CreateShortRailsShortUrls < ActiveRecord::Migration
3
- def change
4
- create_table :short_rails_short_urls do |t|
5
- t.string :short, :null => false, :index => true
6
- t.string :url, :null => false
7
- t.text :params
8
-
9
- t.timestamps
10
- end
11
- end
12
- end
@@ -1,6 +0,0 @@
1
- # This migration comes from short_rails (originally 20130108094545)
2
- class AddUrlShortParamToShortUrls < ActiveRecord::Migration
3
- def change
4
- add_column :short_rails_short_urls, :url_short_param, :string
5
- end
6
- end
@@ -1,24 +0,0 @@
1
- # This file is auto-generated from the current state of the database. Instead
2
- # of editing this file, please use the migrations feature of Active Record to
3
- # incrementally modify your database, and then regenerate this schema definition.
4
- #
5
- # Note that this schema.rb definition is the authoritative source for your
6
- # database schema. If you need to create the application database on another
7
- # system, you should be using db:schema:load, not running all the migrations
8
- # from scratch. The latter is a flawed and unsustainable approach (the more migrations
9
- # you'll amass, the slower it'll run and the greater likelihood for issues).
10
- #
11
- # It's strongly recommended to check this file into your version control system.
12
-
13
- ActiveRecord::Schema.define(:version => 20130108094709) do
14
-
15
- create_table "short_rails_short_urls", :force => true do |t|
16
- t.string "short", :null => false
17
- t.string "url", :null => false
18
- t.text "params"
19
- t.datetime "created_at", :null => false
20
- t.datetime "updated_at", :null => false
21
- t.string "url_short_param"
22
- end
23
-
24
- end