showtube 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (61) hide show
  1. data/MIT-LICENSE +20 -0
  2. data/README.rdoc +33 -0
  3. data/Rakefile +40 -0
  4. data/app/assets/javascripts/showtube/application.js +15 -0
  5. data/app/assets/javascripts/showtube/videos.js +2 -0
  6. data/app/assets/stylesheets/scaffold.css +56 -0
  7. data/app/assets/stylesheets/showtube/application.css +13 -0
  8. data/app/assets/stylesheets/showtube/videos.css +4 -0
  9. data/app/controllers/showtube/application_controller.rb +4 -0
  10. data/app/controllers/showtube/videos_controller.rb +85 -0
  11. data/app/helpers/showtube/application_helper.rb +14 -0
  12. data/app/helpers/showtube/videos_helper.rb +4 -0
  13. data/app/models/showtube/video.rb +11 -0
  14. data/app/views/layouts/showtube/application.html.erb +14 -0
  15. data/app/views/showtube/videos/_form.html.erb +29 -0
  16. data/app/views/showtube/videos/edit.html.erb +6 -0
  17. data/app/views/showtube/videos/index.html.erb +27 -0
  18. data/app/views/showtube/videos/new.html.erb +5 -0
  19. data/app/views/showtube/videos/show.html.erb +20 -0
  20. data/config/routes.rb +4 -0
  21. data/db/migrate/20120325221502_create_showtube_videos.rb +15 -0
  22. data/lib/showtube/engine.rb +5 -0
  23. data/lib/showtube/version.rb +3 -0
  24. data/lib/showtube.rb +4 -0
  25. data/lib/tasks/showtube_tasks.rake +4 -0
  26. data/test/dummy/README.rdoc +261 -0
  27. data/test/dummy/Rakefile +7 -0
  28. data/test/dummy/app/assets/javascripts/application.js +15 -0
  29. data/test/dummy/app/assets/stylesheets/application.css +13 -0
  30. data/test/dummy/app/controllers/application_controller.rb +3 -0
  31. data/test/dummy/app/helpers/application_helper.rb +2 -0
  32. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  33. data/test/dummy/config/application.rb +56 -0
  34. data/test/dummy/config/boot.rb +10 -0
  35. data/test/dummy/config/database.yml +25 -0
  36. data/test/dummy/config/environment.rb +5 -0
  37. data/test/dummy/config/environments/development.rb +37 -0
  38. data/test/dummy/config/environments/production.rb +67 -0
  39. data/test/dummy/config/environments/test.rb +37 -0
  40. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  41. data/test/dummy/config/initializers/inflections.rb +15 -0
  42. data/test/dummy/config/initializers/mime_types.rb +5 -0
  43. data/test/dummy/config/initializers/secret_token.rb +7 -0
  44. data/test/dummy/config/initializers/session_store.rb +8 -0
  45. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  46. data/test/dummy/config/locales/en.yml +5 -0
  47. data/test/dummy/config/routes.rb +4 -0
  48. data/test/dummy/config.ru +4 -0
  49. data/test/dummy/public/404.html +26 -0
  50. data/test/dummy/public/422.html +26 -0
  51. data/test/dummy/public/500.html +25 -0
  52. data/test/dummy/public/favicon.ico +0 -0
  53. data/test/dummy/script/rails +6 -0
  54. data/test/fixtures/showtube/videos.yml +11 -0
  55. data/test/functional/showtube/videos_controller_test.rb +51 -0
  56. data/test/integration/navigation_test.rb +10 -0
  57. data/test/showtube_test.rb +7 -0
  58. data/test/test_helper.rb +10 -0
  59. data/test/unit/helpers/showtube/videos_helper_test.rb +6 -0
  60. data/test/unit/showtube/video_test.rb +9 -0
  61. metadata +162 -0
@@ -0,0 +1,26 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>The page you were looking for doesn't exist (404)</title>
5
+ <style type="text/css">
6
+ body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
+ div.dialog {
8
+ width: 25em;
9
+ padding: 0 4em;
10
+ margin: 4em auto 0 auto;
11
+ border: 1px solid #ccc;
12
+ border-right-color: #999;
13
+ border-bottom-color: #999;
14
+ }
15
+ h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
+ </style>
17
+ </head>
18
+
19
+ <body>
20
+ <!-- This file lives in public/404.html -->
21
+ <div class="dialog">
22
+ <h1>The page you were looking for doesn't exist.</h1>
23
+ <p>You may have mistyped the address or the page may have moved.</p>
24
+ </div>
25
+ </body>
26
+ </html>
@@ -0,0 +1,26 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>The change you wanted was rejected (422)</title>
5
+ <style type="text/css">
6
+ body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
+ div.dialog {
8
+ width: 25em;
9
+ padding: 0 4em;
10
+ margin: 4em auto 0 auto;
11
+ border: 1px solid #ccc;
12
+ border-right-color: #999;
13
+ border-bottom-color: #999;
14
+ }
15
+ h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
+ </style>
17
+ </head>
18
+
19
+ <body>
20
+ <!-- This file lives in public/422.html -->
21
+ <div class="dialog">
22
+ <h1>The change you wanted was rejected.</h1>
23
+ <p>Maybe you tried to change something you didn't have access to.</p>
24
+ </div>
25
+ </body>
26
+ </html>
@@ -0,0 +1,25 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>We're sorry, but something went wrong (500)</title>
5
+ <style type="text/css">
6
+ body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
+ div.dialog {
8
+ width: 25em;
9
+ padding: 0 4em;
10
+ margin: 4em auto 0 auto;
11
+ border: 1px solid #ccc;
12
+ border-right-color: #999;
13
+ border-bottom-color: #999;
14
+ }
15
+ h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
+ </style>
17
+ </head>
18
+
19
+ <body>
20
+ <!-- This file lives in public/500.html -->
21
+ <div class="dialog">
22
+ <h1>We're sorry, but something went wrong.</h1>
23
+ </div>
24
+ </body>
25
+ </html>
File without changes
@@ -0,0 +1,6 @@
1
+ #!/usr/bin/env ruby
2
+ # This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
3
+
4
+ APP_PATH = File.expand_path('../../config/application', __FILE__)
5
+ require File.expand_path('../../config/boot', __FILE__)
6
+ require 'rails/commands'
@@ -0,0 +1,11 @@
1
+ # Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/Fixtures.html
2
+
3
+ one:
4
+ title: MyString
5
+ url: MyString
6
+ description: MyText
7
+
8
+ two:
9
+ title: MyString
10
+ url: MyString
11
+ description: MyText
@@ -0,0 +1,51 @@
1
+ require 'test_helper'
2
+
3
+ module Showtube
4
+ class VideosControllerTest < ActionController::TestCase
5
+ setup do
6
+ @video = videos(:one)
7
+ end
8
+
9
+ test "should get index" do
10
+ get :index
11
+ assert_response :success
12
+ assert_not_nil assigns(:videos)
13
+ end
14
+
15
+ test "should get new" do
16
+ get :new
17
+ assert_response :success
18
+ end
19
+
20
+ test "should create video" do
21
+ assert_difference('Video.count') do
22
+ post :create, video: @video.attributes
23
+ end
24
+
25
+ assert_redirected_to video_path(assigns(:video))
26
+ end
27
+
28
+ test "should show video" do
29
+ get :show, id: @video
30
+ assert_response :success
31
+ end
32
+
33
+ test "should get edit" do
34
+ get :edit, id: @video
35
+ assert_response :success
36
+ end
37
+
38
+ test "should update video" do
39
+ put :update, id: @video, video: @video.attributes
40
+ assert_redirected_to video_path(assigns(:video))
41
+ end
42
+
43
+ test "should destroy video" do
44
+ assert_difference('Video.count', -1) do
45
+ delete :destroy, id: @video
46
+ end
47
+
48
+ assert_redirected_to videos_path
49
+ end
50
+ end
51
+ end
@@ -0,0 +1,10 @@
1
+ require 'test_helper'
2
+
3
+ class NavigationTest < ActionDispatch::IntegrationTest
4
+ fixtures :all
5
+
6
+ # test "the truth" do
7
+ # assert true
8
+ # end
9
+ end
10
+
@@ -0,0 +1,7 @@
1
+ require 'test_helper'
2
+
3
+ class ShowtubeTest < ActiveSupport::TestCase
4
+ test "truth" do
5
+ assert_kind_of Module, Showtube
6
+ end
7
+ end
@@ -0,0 +1,10 @@
1
+ # Configure Rails Environment
2
+ ENV["RAILS_ENV"] = "test"
3
+
4
+ require File.expand_path("../dummy/config/environment.rb", __FILE__)
5
+ require "rails/test_help"
6
+
7
+ Rails.backtrace_cleaner.remove_silencers!
8
+
9
+ # Load support files
10
+ Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
@@ -0,0 +1,6 @@
1
+ require 'test_helper'
2
+
3
+ module Showtube
4
+ class VideosHelperTest < ActionView::TestCase
5
+ end
6
+ end
@@ -0,0 +1,9 @@
1
+ require 'test_helper'
2
+
3
+ module Showtube
4
+ class VideoTest < ActiveSupport::TestCase
5
+ # test "the truth" do
6
+ # assert true
7
+ # end
8
+ end
9
+ end
metadata ADDED
@@ -0,0 +1,162 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: showtube
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Pedro Henrique
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2012-03-26 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: rails
16
+ requirement: &2151889400 !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ~>
20
+ - !ruby/object:Gem::Version
21
+ version: 3.2.2
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: *2151889400
25
+ - !ruby/object:Gem::Dependency
26
+ name: sqlite3
27
+ requirement: &2151888200 !ruby/object:Gem::Requirement
28
+ none: false
29
+ requirements:
30
+ - - ! '>='
31
+ - !ruby/object:Gem::Version
32
+ version: '0'
33
+ type: :development
34
+ prerelease: false
35
+ version_requirements: *2151888200
36
+ description: Showtube is a youtube videos show.
37
+ email:
38
+ - pedrohenriqueacruz@gmail.com
39
+ executables: []
40
+ extensions: []
41
+ extra_rdoc_files: []
42
+ files:
43
+ - app/assets/javascripts/showtube/application.js
44
+ - app/assets/javascripts/showtube/videos.js
45
+ - app/assets/stylesheets/scaffold.css
46
+ - app/assets/stylesheets/showtube/application.css
47
+ - app/assets/stylesheets/showtube/videos.css
48
+ - app/controllers/showtube/application_controller.rb
49
+ - app/controllers/showtube/videos_controller.rb
50
+ - app/helpers/showtube/application_helper.rb
51
+ - app/helpers/showtube/videos_helper.rb
52
+ - app/models/showtube/video.rb
53
+ - app/views/layouts/showtube/application.html.erb
54
+ - app/views/showtube/videos/_form.html.erb
55
+ - app/views/showtube/videos/edit.html.erb
56
+ - app/views/showtube/videos/index.html.erb
57
+ - app/views/showtube/videos/new.html.erb
58
+ - app/views/showtube/videos/show.html.erb
59
+ - config/routes.rb
60
+ - db/migrate/20120325221502_create_showtube_videos.rb
61
+ - lib/showtube/engine.rb
62
+ - lib/showtube/version.rb
63
+ - lib/showtube.rb
64
+ - lib/tasks/showtube_tasks.rake
65
+ - MIT-LICENSE
66
+ - Rakefile
67
+ - README.rdoc
68
+ - test/dummy/app/assets/javascripts/application.js
69
+ - test/dummy/app/assets/stylesheets/application.css
70
+ - test/dummy/app/controllers/application_controller.rb
71
+ - test/dummy/app/helpers/application_helper.rb
72
+ - test/dummy/app/views/layouts/application.html.erb
73
+ - test/dummy/config/application.rb
74
+ - test/dummy/config/boot.rb
75
+ - test/dummy/config/database.yml
76
+ - test/dummy/config/environment.rb
77
+ - test/dummy/config/environments/development.rb
78
+ - test/dummy/config/environments/production.rb
79
+ - test/dummy/config/environments/test.rb
80
+ - test/dummy/config/initializers/backtrace_silencers.rb
81
+ - test/dummy/config/initializers/inflections.rb
82
+ - test/dummy/config/initializers/mime_types.rb
83
+ - test/dummy/config/initializers/secret_token.rb
84
+ - test/dummy/config/initializers/session_store.rb
85
+ - test/dummy/config/initializers/wrap_parameters.rb
86
+ - test/dummy/config/locales/en.yml
87
+ - test/dummy/config/routes.rb
88
+ - test/dummy/config.ru
89
+ - test/dummy/public/404.html
90
+ - test/dummy/public/422.html
91
+ - test/dummy/public/500.html
92
+ - test/dummy/public/favicon.ico
93
+ - test/dummy/Rakefile
94
+ - test/dummy/README.rdoc
95
+ - test/dummy/script/rails
96
+ - test/fixtures/showtube/videos.yml
97
+ - test/functional/showtube/videos_controller_test.rb
98
+ - test/integration/navigation_test.rb
99
+ - test/showtube_test.rb
100
+ - test/test_helper.rb
101
+ - test/unit/helpers/showtube/videos_helper_test.rb
102
+ - test/unit/showtube/video_test.rb
103
+ homepage: http://phinfonet.wordpress.com
104
+ licenses: []
105
+ post_install_message:
106
+ rdoc_options: []
107
+ require_paths:
108
+ - lib
109
+ required_ruby_version: !ruby/object:Gem::Requirement
110
+ none: false
111
+ requirements:
112
+ - - ! '>='
113
+ - !ruby/object:Gem::Version
114
+ version: '0'
115
+ required_rubygems_version: !ruby/object:Gem::Requirement
116
+ none: false
117
+ requirements:
118
+ - - ! '>='
119
+ - !ruby/object:Gem::Version
120
+ version: '0'
121
+ requirements: []
122
+ rubyforge_project:
123
+ rubygems_version: 1.8.17
124
+ signing_key:
125
+ specification_version: 3
126
+ summary: Summary of Showtube.
127
+ test_files:
128
+ - test/dummy/app/assets/javascripts/application.js
129
+ - test/dummy/app/assets/stylesheets/application.css
130
+ - test/dummy/app/controllers/application_controller.rb
131
+ - test/dummy/app/helpers/application_helper.rb
132
+ - test/dummy/app/views/layouts/application.html.erb
133
+ - test/dummy/config/application.rb
134
+ - test/dummy/config/boot.rb
135
+ - test/dummy/config/database.yml
136
+ - test/dummy/config/environment.rb
137
+ - test/dummy/config/environments/development.rb
138
+ - test/dummy/config/environments/production.rb
139
+ - test/dummy/config/environments/test.rb
140
+ - test/dummy/config/initializers/backtrace_silencers.rb
141
+ - test/dummy/config/initializers/inflections.rb
142
+ - test/dummy/config/initializers/mime_types.rb
143
+ - test/dummy/config/initializers/secret_token.rb
144
+ - test/dummy/config/initializers/session_store.rb
145
+ - test/dummy/config/initializers/wrap_parameters.rb
146
+ - test/dummy/config/locales/en.yml
147
+ - test/dummy/config/routes.rb
148
+ - test/dummy/config.ru
149
+ - test/dummy/public/404.html
150
+ - test/dummy/public/422.html
151
+ - test/dummy/public/500.html
152
+ - test/dummy/public/favicon.ico
153
+ - test/dummy/Rakefile
154
+ - test/dummy/README.rdoc
155
+ - test/dummy/script/rails
156
+ - test/fixtures/showtube/videos.yml
157
+ - test/functional/showtube/videos_controller_test.rb
158
+ - test/integration/navigation_test.rb
159
+ - test/showtube_test.rb
160
+ - test/test_helper.rb
161
+ - test/unit/helpers/showtube/videos_helper_test.rb
162
+ - test/unit/showtube/video_test.rb