yui-rails 0.2.0 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (51) hide show
  1. data/CHANGELOG.md +9 -1
  2. data/README.md +6 -2
  3. data/lib/tasks/yui_rails_tasks.rake +6 -0
  4. data/lib/yui/rails.rb +31 -2
  5. data/lib/yui/rails/engine.rb +5 -1
  6. data/lib/yui/rails/railtie.rb +11 -0
  7. data/lib/yui/rails/version.rb +1 -1
  8. data/test/dummy/README.rdoc +261 -0
  9. data/test/dummy/Rakefile +7 -0
  10. data/test/dummy/app/assets/javascripts/application.js +15 -0
  11. data/test/dummy/app/assets/stylesheets/application.css +13 -0
  12. data/test/dummy/app/controllers/application_controller.rb +3 -0
  13. data/test/dummy/app/helpers/application_helper.rb +2 -0
  14. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  15. data/test/dummy/config.ru +4 -0
  16. data/test/dummy/config/application.rb +59 -0
  17. data/test/dummy/config/boot.rb +10 -0
  18. data/test/dummy/config/database.yml +25 -0
  19. data/test/dummy/config/environment.rb +5 -0
  20. data/test/dummy/config/environments/development.rb +37 -0
  21. data/test/dummy/config/environments/production.rb +67 -0
  22. data/test/dummy/config/environments/test.rb +37 -0
  23. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  24. data/test/dummy/config/initializers/inflections.rb +15 -0
  25. data/test/dummy/config/initializers/mime_types.rb +5 -0
  26. data/test/dummy/config/initializers/secret_token.rb +7 -0
  27. data/test/dummy/config/initializers/session_store.rb +8 -0
  28. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  29. data/test/dummy/config/locales/en.yml +5 -0
  30. data/test/dummy/config/routes.rb +58 -0
  31. data/test/dummy/db/test.sqlite3 +0 -0
  32. data/test/dummy/log/test.log +107 -0
  33. data/test/dummy/public/404.html +26 -0
  34. data/test/dummy/public/422.html +26 -0
  35. data/test/dummy/public/500.html +25 -0
  36. data/test/dummy/public/favicon.ico +0 -0
  37. data/test/dummy/script/rails +6 -0
  38. data/test/dummy/tmp/cache/assets/C5A/0E0/sprockets%2F243fad75f4947529242e79a75e526031 +0 -0
  39. data/test/dummy/tmp/cache/assets/CFF/7C0/sprockets%2Fd26a74ae0256046c98cf240aae8401e2 +0 -0
  40. data/test/dummy/tmp/cache/assets/D3E/910/sprockets%2F8ede36a443e2af0f0724a4c2856e934d +0 -0
  41. data/test/dummy/tmp/cache/assets/D76/190/sprockets%2Fb3ed0e1558edaf6362c67f07dbe63846 +0 -0
  42. data/test/dummy/tmp/cache/assets/D88/8D0/sprockets%2F38b1ff2d2218fb9d4ffdfe5098448d89 +0 -0
  43. data/test/dummy/tmp/cache/assets/E88/280/sprockets%2Ff7db9ccf844b52ff32d4cc740aaadbce +0 -0
  44. data/test/integration/yui_rails_integration_test.rb +14 -0
  45. data/test/test_helper.rb +14 -0
  46. metadata +103 -22
  47. data/.gitignore +0 -17
  48. data/Gemfile +0 -1
  49. data/Rakefile +0 -2
  50. data/update-yui.sh +0 -16
  51. data/yui-rails.gemspec +0 -29
@@ -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,14 @@
1
+ require 'test_helper'
2
+
3
+ describe "yui_rails assets integration" do
4
+ it "provides yui.js on the asset pipeline" do
5
+ visit '/assets/yui.js'
6
+ page.text.must_include "function(Y)"
7
+ page.text.must_include YUI::Rails::YUI_VERSION
8
+ end
9
+ it "provides yui-min.js on the asset pipeline" do
10
+ visit '/assets/yui-min.js'
11
+ page.text.must_include "var YUI=function()"
12
+ page.text.must_include YUI::Rails::YUI_VERSION
13
+ end
14
+ end
@@ -0,0 +1,14 @@
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
+ require 'minitest/autorun'
7
+ require "capybara/rails"
8
+
9
+ Rails.backtrace_cleaner.remove_silencers!
10
+
11
+ class IntegrationTest < MiniTest::Spec
12
+ include Capybara::DSL
13
+ register_spec_type(/integration$/, self)
14
+ end
metadata CHANGED
@@ -1,57 +1,97 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yui-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
8
8
  - Matt Sanders
9
+ - Benjamin Fleischer
9
10
  autorequire:
10
11
  bindir: bin
11
12
  cert_chain: []
12
- date: 2013-02-20 00:00:00.000000000 Z
13
+ date: 2013-02-28 00:00:00.000000000 Z
13
14
  dependencies:
14
15
  - !ruby/object:Gem::Dependency
15
16
  name: rails
16
17
  requirement: !ruby/object:Gem::Requirement
17
18
  none: false
18
19
  requirements:
19
- - - ~>
20
+ - - ! '>='
20
21
  - !ruby/object:Gem::Version
21
22
  version: '3.1'
22
- type: :development
23
+ type: :runtime
23
24
  prerelease: false
24
25
  version_requirements: !ruby/object:Gem::Requirement
25
26
  none: false
26
27
  requirements:
27
- - - ~>
28
+ - - ! '>='
28
29
  - !ruby/object:Gem::Version
29
30
  version: '3.1'
30
- description: Easy integration of YUI with the Rails asset pipeline.
31
- email: matt@modal.org
31
+ description: ! 'Easy integration of YUI #{YUI::Rails::YUI_VERSION} with the Rails
32
+ asset pipeline.'
33
+ email:
34
+ - matt@modal.org
35
+ - dev@benjaminfleischer.com
32
36
  executables: []
33
37
  extensions: []
34
38
  extra_rdoc_files:
35
39
  - LICENSE
36
40
  files:
37
- - .gitignore
38
- - CHANGELOG.md
39
- - Gemfile
40
- - LICENSE
41
- - README.md
42
- - Rakefile
43
- - lib/yui-rails.rb
44
- - lib/yui/rails.rb
45
- - lib/yui/rails/engine.rb
46
- - lib/yui/rails/version.rb
47
- - update-yui.sh
48
41
  - vendor/assets/javascripts/yui-debug.js
49
42
  - vendor/assets/javascripts/yui-min.js
50
43
  - vendor/assets/javascripts/yui.js
51
44
  - vendor/assets/javascripts/yui_ujs.js
52
- - yui-rails.gemspec
45
+ - lib/tasks/yui_rails_tasks.rake
46
+ - lib/yui/rails/engine.rb
47
+ - lib/yui/rails/railtie.rb
48
+ - lib/yui/rails/version.rb
49
+ - lib/yui/rails.rb
50
+ - lib/yui-rails.rb
51
+ - README.md
52
+ - CHANGELOG.md
53
+ - LICENSE
54
+ - test/dummy/app/assets/javascripts/application.js
55
+ - test/dummy/app/assets/stylesheets/application.css
56
+ - test/dummy/app/controllers/application_controller.rb
57
+ - test/dummy/app/helpers/application_helper.rb
58
+ - test/dummy/app/views/layouts/application.html.erb
59
+ - test/dummy/config/application.rb
60
+ - test/dummy/config/boot.rb
61
+ - test/dummy/config/database.yml
62
+ - test/dummy/config/environment.rb
63
+ - test/dummy/config/environments/development.rb
64
+ - test/dummy/config/environments/production.rb
65
+ - test/dummy/config/environments/test.rb
66
+ - test/dummy/config/initializers/backtrace_silencers.rb
67
+ - test/dummy/config/initializers/inflections.rb
68
+ - test/dummy/config/initializers/mime_types.rb
69
+ - test/dummy/config/initializers/secret_token.rb
70
+ - test/dummy/config/initializers/session_store.rb
71
+ - test/dummy/config/initializers/wrap_parameters.rb
72
+ - test/dummy/config/locales/en.yml
73
+ - test/dummy/config/routes.rb
74
+ - test/dummy/config.ru
75
+ - test/dummy/db/test.sqlite3
76
+ - test/dummy/log/test.log
77
+ - test/dummy/public/404.html
78
+ - test/dummy/public/422.html
79
+ - test/dummy/public/500.html
80
+ - test/dummy/public/favicon.ico
81
+ - test/dummy/Rakefile
82
+ - test/dummy/README.rdoc
83
+ - test/dummy/script/rails
84
+ - test/dummy/tmp/cache/assets/C5A/0E0/sprockets%2F243fad75f4947529242e79a75e526031
85
+ - test/dummy/tmp/cache/assets/CFF/7C0/sprockets%2Fd26a74ae0256046c98cf240aae8401e2
86
+ - test/dummy/tmp/cache/assets/D3E/910/sprockets%2F8ede36a443e2af0f0724a4c2856e934d
87
+ - test/dummy/tmp/cache/assets/D76/190/sprockets%2Fb3ed0e1558edaf6362c67f07dbe63846
88
+ - test/dummy/tmp/cache/assets/D88/8D0/sprockets%2F38b1ff2d2218fb9d4ffdfe5098448d89
89
+ - test/dummy/tmp/cache/assets/E88/280/sprockets%2Ff7db9ccf844b52ff32d4cc740aaadbce
90
+ - test/integration/yui_rails_integration_test.rb
91
+ - test/test_helper.rb
53
92
  homepage: https://github.com/nextmat/yui-rails
54
- licenses: []
93
+ licenses:
94
+ - MIT
55
95
  post_install_message:
56
96
  rdoc_options: []
57
97
  require_paths:
@@ -62,6 +102,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
62
102
  - - ! '>='
63
103
  - !ruby/object:Gem::Version
64
104
  version: '0'
105
+ segments:
106
+ - 0
107
+ hash: -400019602121063300
65
108
  required_rubygems_version: !ruby/object:Gem::Requirement
66
109
  none: false
67
110
  requirements:
@@ -70,8 +113,46 @@ required_rubygems_version: !ruby/object:Gem::Requirement
70
113
  version: 1.3.6
71
114
  requirements: []
72
115
  rubyforge_project:
73
- rubygems_version: 1.8.25
116
+ rubygems_version: 1.8.24
74
117
  signing_key:
75
118
  specification_version: 3
76
119
  summary: YUI integration with Rails 3.1+
77
- test_files: []
120
+ test_files:
121
+ - test/dummy/app/assets/javascripts/application.js
122
+ - test/dummy/app/assets/stylesheets/application.css
123
+ - test/dummy/app/controllers/application_controller.rb
124
+ - test/dummy/app/helpers/application_helper.rb
125
+ - test/dummy/app/views/layouts/application.html.erb
126
+ - test/dummy/config/application.rb
127
+ - test/dummy/config/boot.rb
128
+ - test/dummy/config/database.yml
129
+ - test/dummy/config/environment.rb
130
+ - test/dummy/config/environments/development.rb
131
+ - test/dummy/config/environments/production.rb
132
+ - test/dummy/config/environments/test.rb
133
+ - test/dummy/config/initializers/backtrace_silencers.rb
134
+ - test/dummy/config/initializers/inflections.rb
135
+ - test/dummy/config/initializers/mime_types.rb
136
+ - test/dummy/config/initializers/secret_token.rb
137
+ - test/dummy/config/initializers/session_store.rb
138
+ - test/dummy/config/initializers/wrap_parameters.rb
139
+ - test/dummy/config/locales/en.yml
140
+ - test/dummy/config/routes.rb
141
+ - test/dummy/config.ru
142
+ - test/dummy/db/test.sqlite3
143
+ - test/dummy/log/test.log
144
+ - test/dummy/public/404.html
145
+ - test/dummy/public/422.html
146
+ - test/dummy/public/500.html
147
+ - test/dummy/public/favicon.ico
148
+ - test/dummy/Rakefile
149
+ - test/dummy/README.rdoc
150
+ - test/dummy/script/rails
151
+ - test/dummy/tmp/cache/assets/C5A/0E0/sprockets%2F243fad75f4947529242e79a75e526031
152
+ - test/dummy/tmp/cache/assets/CFF/7C0/sprockets%2Fd26a74ae0256046c98cf240aae8401e2
153
+ - test/dummy/tmp/cache/assets/D3E/910/sprockets%2F8ede36a443e2af0f0724a4c2856e934d
154
+ - test/dummy/tmp/cache/assets/D76/190/sprockets%2Fb3ed0e1558edaf6362c67f07dbe63846
155
+ - test/dummy/tmp/cache/assets/D88/8D0/sprockets%2F38b1ff2d2218fb9d4ffdfe5098448d89
156
+ - test/dummy/tmp/cache/assets/E88/280/sprockets%2Ff7db9ccf844b52ff32d4cc740aaadbce
157
+ - test/integration/yui_rails_integration_test.rb
158
+ - test/test_helper.rb
data/.gitignore DELETED
@@ -1,17 +0,0 @@
1
- .rvmrc
2
- .bundle
3
- .DS_Store
4
- Gemfile.lock
5
-
6
- # docs
7
- doc/*
8
- rdoc
9
- .yardoc
10
-
11
- # editors
12
- *.tmproj
13
- *.swp
14
- .idea
15
-
16
- # rcov
17
- coverage
data/Gemfile DELETED
@@ -1 +0,0 @@
1
- gemspec
data/Rakefile DELETED
@@ -1,2 +0,0 @@
1
- require 'bundler'
2
- Bundler::GemHelper.install_tasks
@@ -1,16 +0,0 @@
1
- #!/bin/bash
2
-
3
- ROOT=`pwd`"/vendor/assets"
4
- if [ -n "$1" ]
5
- then
6
- echo "downloading $1"
7
- cd $ROOT/javascripts/
8
- rm yui.js yui-min.js yui-debug.js
9
- wget "http://yui.yahooapis.com/$1/build/yui/yui-min.js"
10
- wget "http://yui.yahooapis.com/$1/build/yui/yui.js"
11
- wget "http://yui.yahooapis.com/$1/build/yui/yui-debug.js"
12
- cd ../..
13
- else
14
- echo "run this with the version number, e.g. ./update_yui.sh 3.8.1"
15
- echo "then update lib/yui/rails/version.rb YUI_VERSION to 3.8.1"
16
- fi
@@ -1,29 +0,0 @@
1
- # -*- encoding: utf-8 -*-
2
- $:.push File.expand_path("../lib", __FILE__)
3
- require 'yui/rails/version'
4
-
5
- Gem::Specification.new do |s|
6
-
7
- s.name = 'yui-rails'
8
- s.version = YUI::Rails::VERSION
9
- s.platform = Gem::Platform::RUBY
10
-
11
- s.summary = 'YUI integration with Rails 3.1+'
12
- s.description = 'Easy integration of YUI with the Rails asset pipeline.'
13
-
14
- s.authors = ["Matt Sanders"]
15
- s.email = 'matt@modal.org'
16
- s.homepage = 'https://github.com/nextmat/yui-rails'
17
-
18
- #s.executables = []
19
- s.required_rubygems_version = '>= 1.3.6'
20
-
21
- s.files = `git ls-files`.split("\n")
22
- s.executables = `git ls-files`.split("\n").select{|f| f =~ /^bin/}
23
- s.require_paths = ["lib"]
24
- s.extra_rdoc_files = ["LICENSE"]
25
-
26
- # Dependencies, this syntax requires RubyGems > 1.2.0
27
- s.add_development_dependency 'rails', '~>3.1'
28
- end
29
-