fonts-rails 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (46) hide show
  1. checksums.yaml +4 -4
  2. data/Rakefile +2 -8
  3. data/lib/fonts-rails.rb +0 -3
  4. data/lib/fonts/rails/version.rb +1 -1
  5. data/test/dummy/README.rdoc +15 -248
  6. data/test/dummy/Rakefile +0 -1
  7. data/test/dummy/app/assets/javascripts/application.js +3 -5
  8. data/test/dummy/app/controllers/application_controller.rb +3 -1
  9. data/test/dummy/bin/bundle +3 -0
  10. data/test/dummy/bin/rails +4 -0
  11. data/test/dummy/bin/rake +4 -0
  12. data/test/dummy/config.ru +1 -1
  13. data/test/dummy/config/application.rb +2 -34
  14. data/test/dummy/config/boot.rb +4 -9
  15. data/test/dummy/config/environment.rb +2 -2
  16. data/test/dummy/config/environments/development.rb +10 -15
  17. data/test/dummy/config/environments/production.rb +40 -30
  18. data/test/dummy/config/environments/test.rb +13 -11
  19. data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  20. data/test/dummy/config/initializers/inflections.rb +6 -5
  21. data/test/dummy/config/initializers/secret_token.rb +7 -2
  22. data/test/dummy/config/initializers/session_store.rb +0 -5
  23. data/test/dummy/config/initializers/wrap_parameters.rb +6 -6
  24. data/test/dummy/config/locales/en.yml +20 -2
  25. data/test/dummy/config/routes.rb +23 -25
  26. data/test/dummy/db/development.sqlite3 +0 -0
  27. data/test/dummy/db/schema.rb +16 -0
  28. data/test/dummy/log/development.log +7 -0
  29. data/test/dummy/log/test.log +20 -117
  30. data/test/dummy/public/404.html +43 -11
  31. data/test/dummy/public/422.html +43 -11
  32. data/test/dummy/public/500.html +43 -11
  33. data/test/dummy/tmp/cache/assets/test/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
  34. data/test/dummy/tmp/cache/assets/test/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
  35. data/test/dummy/tmp/cache/assets/test/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
  36. data/test/dummy/tmp/cache/assets/test/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
  37. data/test/dummy/tmp/cache/assets/test/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
  38. data/test/dummy/tmp/cache/assets/test/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
  39. data/test/link_tag_test.rb +2 -2
  40. data/test/test_helper.rb +6 -0
  41. metadata +16 -12
  42. data/test/dummy/script/rails +0 -6
  43. data/test/dummy/tmp/cache/assets/test/sprockets/6ee31c758c2207128f3b2fb9f1e7fc1c +0 -0
  44. data/test/dummy/tmp/cache/assets/test/sprockets/78bbdd3d4b68f961ea76c51d172aec6b +0 -0
  45. data/test/dummy/tmp/cache/assets/test/sprockets/c7342e04b6a4ad6af1bb72c5c094c804 +0 -0
  46. data/test/dummy/tmp/cache/assets/test/sprockets/f09692c097713119fa701a4122205808 +0 -0
@@ -2,17 +2,48 @@
2
2
  <html>
3
3
  <head>
4
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; }
5
+ <style>
6
+ body {
7
+ background-color: #EFEFEF;
8
+ color: #2E2F30;
9
+ text-align: center;
10
+ font-family: arial, sans-serif;
11
+ }
12
+
13
+ div.dialog {
14
+ width: 25em;
15
+ margin: 4em auto 0 auto;
16
+ border: 1px solid #CCC;
17
+ border-right-color: #999;
18
+ border-left-color: #999;
19
+ border-bottom-color: #BBB;
20
+ border-top: #B00100 solid 4px;
21
+ border-top-left-radius: 9px;
22
+ border-top-right-radius: 9px;
23
+ background-color: white;
24
+ padding: 7px 4em 0 4em;
25
+ }
26
+
27
+ h1 {
28
+ font-size: 100%;
29
+ color: #730E15;
30
+ line-height: 1.5em;
31
+ }
32
+
33
+ body > p {
34
+ width: 33em;
35
+ margin: 0 auto 1em;
36
+ padding: 1em 0;
37
+ background-color: #F7F7F7;
38
+ border: 1px solid #CCC;
39
+ border-right-color: #999;
40
+ border-bottom-color: #999;
41
+ border-bottom-left-radius: 4px;
42
+ border-bottom-right-radius: 4px;
43
+ border-top-color: #DADADA;
44
+ color: #666;
45
+ box-shadow:0 3px 8px rgba(50, 50, 50, 0.17);
46
+ }
16
47
  </style>
17
48
  </head>
18
49
 
@@ -22,5 +53,6 @@
22
53
  <h1>The page you were looking for doesn't exist.</h1>
23
54
  <p>You may have mistyped the address or the page may have moved.</p>
24
55
  </div>
56
+ <p>If you are the application owner check the logs for more information.</p>
25
57
  </body>
26
58
  </html>
@@ -2,17 +2,48 @@
2
2
  <html>
3
3
  <head>
4
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; }
5
+ <style>
6
+ body {
7
+ background-color: #EFEFEF;
8
+ color: #2E2F30;
9
+ text-align: center;
10
+ font-family: arial, sans-serif;
11
+ }
12
+
13
+ div.dialog {
14
+ width: 25em;
15
+ margin: 4em auto 0 auto;
16
+ border: 1px solid #CCC;
17
+ border-right-color: #999;
18
+ border-left-color: #999;
19
+ border-bottom-color: #BBB;
20
+ border-top: #B00100 solid 4px;
21
+ border-top-left-radius: 9px;
22
+ border-top-right-radius: 9px;
23
+ background-color: white;
24
+ padding: 7px 4em 0 4em;
25
+ }
26
+
27
+ h1 {
28
+ font-size: 100%;
29
+ color: #730E15;
30
+ line-height: 1.5em;
31
+ }
32
+
33
+ body > p {
34
+ width: 33em;
35
+ margin: 0 auto 1em;
36
+ padding: 1em 0;
37
+ background-color: #F7F7F7;
38
+ border: 1px solid #CCC;
39
+ border-right-color: #999;
40
+ border-bottom-color: #999;
41
+ border-bottom-left-radius: 4px;
42
+ border-bottom-right-radius: 4px;
43
+ border-top-color: #DADADA;
44
+ color: #666;
45
+ box-shadow:0 3px 8px rgba(50, 50, 50, 0.17);
46
+ }
16
47
  </style>
17
48
  </head>
18
49
 
@@ -22,5 +53,6 @@
22
53
  <h1>The change you wanted was rejected.</h1>
23
54
  <p>Maybe you tried to change something you didn't have access to.</p>
24
55
  </div>
56
+ <p>If you are the application owner check the logs for more information.</p>
25
57
  </body>
26
58
  </html>
@@ -2,17 +2,48 @@
2
2
  <html>
3
3
  <head>
4
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; }
5
+ <style>
6
+ body {
7
+ background-color: #EFEFEF;
8
+ color: #2E2F30;
9
+ text-align: center;
10
+ font-family: arial, sans-serif;
11
+ }
12
+
13
+ div.dialog {
14
+ width: 25em;
15
+ margin: 4em auto 0 auto;
16
+ border: 1px solid #CCC;
17
+ border-right-color: #999;
18
+ border-left-color: #999;
19
+ border-bottom-color: #BBB;
20
+ border-top: #B00100 solid 4px;
21
+ border-top-left-radius: 9px;
22
+ border-top-right-radius: 9px;
23
+ background-color: white;
24
+ padding: 7px 4em 0 4em;
25
+ }
26
+
27
+ h1 {
28
+ font-size: 100%;
29
+ color: #730E15;
30
+ line-height: 1.5em;
31
+ }
32
+
33
+ body > p {
34
+ width: 33em;
35
+ margin: 0 auto 1em;
36
+ padding: 1em 0;
37
+ background-color: #F7F7F7;
38
+ border: 1px solid #CCC;
39
+ border-right-color: #999;
40
+ border-bottom-color: #999;
41
+ border-bottom-left-radius: 4px;
42
+ border-bottom-right-radius: 4px;
43
+ border-top-color: #DADADA;
44
+ color: #666;
45
+ box-shadow:0 3px 8px rgba(50, 50, 50, 0.17);
46
+ }
16
47
  </style>
17
48
  </head>
18
49
 
@@ -21,5 +52,6 @@
21
52
  <div class="dialog">
22
53
  <h1>We're sorry, but something went wrong.</h1>
23
54
  </div>
55
+ <p>If you are the application owner check the logs for more information.</p>
24
56
  </body>
25
57
  </html>
@@ -1,8 +1,8 @@
1
1
  require 'test_helper'
2
2
 
3
- class HelpersTest < ActionDispatch::IntegrationTest
3
+ class LinkTagTest < ActionDispatch::IntegrationTest
4
4
 
5
- test "should add google fonts tag" do
5
+ test "should show google fonts tag" do
6
6
  get '/'
7
7
  assert_response :success
8
8
  assert_tag tag: 'link', attributes: { href: 'http://fonts.googleapis.com/css?family=Open+Sans:300' }
data/test/test_helper.rb CHANGED
@@ -13,3 +13,9 @@ Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
13
13
  if ActiveSupport::TestCase.method_defined?(:fixture_path=)
14
14
  ActiveSupport::TestCase.fixture_path = File.expand_path('../fixtures', __FILE__)
15
15
  end
16
+
17
+ # Load database
18
+ config = YAML::load(File.read(File.expand_path('../dummy/config/database.yml', __FILE__)))
19
+ config['test']['adapter'] = 'jdbcsqlite3' if RUBY_PLATFORM == 'java'
20
+ ActiveRecord::Base.establish_connection(config['test'])
21
+ load(File.expand_path('../dummy/db/schema.rb', __FILE__))
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fonts-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mattways
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-08-05 00:00:00.000000000 Z
11
+ date: 2013-08-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -60,6 +60,9 @@ files:
60
60
  - test/dummy/app/helpers/application_helper.rb
61
61
  - test/dummy/app/views/layouts/application.html.erb
62
62
  - test/dummy/app/views/pages/index.html.erb
63
+ - test/dummy/bin/bundle
64
+ - test/dummy/bin/rails
65
+ - test/dummy/bin/rake
63
66
  - test/dummy/config/application.rb
64
67
  - test/dummy/config/boot.rb
65
68
  - test/dummy/config/database.yml
@@ -68,6 +71,7 @@ files:
68
71
  - test/dummy/config/environments/production.rb
69
72
  - test/dummy/config/environments/test.rb
70
73
  - test/dummy/config/initializers/backtrace_silencers.rb
74
+ - test/dummy/config/initializers/filter_parameter_logging.rb
71
75
  - test/dummy/config/initializers/inflections.rb
72
76
  - test/dummy/config/initializers/mime_types.rb
73
77
  - test/dummy/config/initializers/secret_token.rb
@@ -76,6 +80,9 @@ files:
76
80
  - test/dummy/config/locales/en.yml
77
81
  - test/dummy/config/routes.rb
78
82
  - test/dummy/config.ru
83
+ - test/dummy/db/development.sqlite3
84
+ - test/dummy/db/schema.rb
85
+ - test/dummy/log/development.log
79
86
  - test/dummy/log/test.log
80
87
  - test/dummy/public/404.html
81
88
  - test/dummy/public/422.html
@@ -83,16 +90,11 @@ files:
83
90
  - test/dummy/public/favicon.ico
84
91
  - test/dummy/Rakefile
85
92
  - test/dummy/README.rdoc
86
- - test/dummy/script/rails
87
93
  - test/dummy/tmp/cache/assets/test/sprockets/13fe41fee1fe35b49d145bcc06610705
88
94
  - test/dummy/tmp/cache/assets/test/sprockets/2f5173deea6c795b8fdde723bb4b63af
89
95
  - test/dummy/tmp/cache/assets/test/sprockets/357970feca3ac29060c1e3861e2c0953
90
- - test/dummy/tmp/cache/assets/test/sprockets/6ee31c758c2207128f3b2fb9f1e7fc1c
91
- - test/dummy/tmp/cache/assets/test/sprockets/78bbdd3d4b68f961ea76c51d172aec6b
92
- - test/dummy/tmp/cache/assets/test/sprockets/c7342e04b6a4ad6af1bb72c5c094c804
93
96
  - test/dummy/tmp/cache/assets/test/sprockets/cffd775d018f68ce5dba1ee0d951a994
94
97
  - test/dummy/tmp/cache/assets/test/sprockets/d771ace226fc8215a3572e0aa35bb0d6
95
- - test/dummy/tmp/cache/assets/test/sprockets/f09692c097713119fa701a4122205808
96
98
  - test/dummy/tmp/cache/assets/test/sprockets/f7cbd26ba1d28d48de824f0e94586655
97
99
  - test/link_tag_test.rb
98
100
  - test/test_helper.rb
@@ -128,6 +130,9 @@ test_files:
128
130
  - test/dummy/app/helpers/application_helper.rb
129
131
  - test/dummy/app/views/layouts/application.html.erb
130
132
  - test/dummy/app/views/pages/index.html.erb
133
+ - test/dummy/bin/bundle
134
+ - test/dummy/bin/rails
135
+ - test/dummy/bin/rake
131
136
  - test/dummy/config/application.rb
132
137
  - test/dummy/config/boot.rb
133
138
  - test/dummy/config/database.yml
@@ -136,6 +141,7 @@ test_files:
136
141
  - test/dummy/config/environments/production.rb
137
142
  - test/dummy/config/environments/test.rb
138
143
  - test/dummy/config/initializers/backtrace_silencers.rb
144
+ - test/dummy/config/initializers/filter_parameter_logging.rb
139
145
  - test/dummy/config/initializers/inflections.rb
140
146
  - test/dummy/config/initializers/mime_types.rb
141
147
  - test/dummy/config/initializers/secret_token.rb
@@ -144,6 +150,9 @@ test_files:
144
150
  - test/dummy/config/locales/en.yml
145
151
  - test/dummy/config/routes.rb
146
152
  - test/dummy/config.ru
153
+ - test/dummy/db/development.sqlite3
154
+ - test/dummy/db/schema.rb
155
+ - test/dummy/log/development.log
147
156
  - test/dummy/log/test.log
148
157
  - test/dummy/public/404.html
149
158
  - test/dummy/public/422.html
@@ -151,16 +160,11 @@ test_files:
151
160
  - test/dummy/public/favicon.ico
152
161
  - test/dummy/Rakefile
153
162
  - test/dummy/README.rdoc
154
- - test/dummy/script/rails
155
163
  - test/dummy/tmp/cache/assets/test/sprockets/13fe41fee1fe35b49d145bcc06610705
156
164
  - test/dummy/tmp/cache/assets/test/sprockets/2f5173deea6c795b8fdde723bb4b63af
157
165
  - test/dummy/tmp/cache/assets/test/sprockets/357970feca3ac29060c1e3861e2c0953
158
- - test/dummy/tmp/cache/assets/test/sprockets/6ee31c758c2207128f3b2fb9f1e7fc1c
159
- - test/dummy/tmp/cache/assets/test/sprockets/78bbdd3d4b68f961ea76c51d172aec6b
160
- - test/dummy/tmp/cache/assets/test/sprockets/c7342e04b6a4ad6af1bb72c5c094c804
161
166
  - test/dummy/tmp/cache/assets/test/sprockets/cffd775d018f68ce5dba1ee0d951a994
162
167
  - test/dummy/tmp/cache/assets/test/sprockets/d771ace226fc8215a3572e0aa35bb0d6
163
- - test/dummy/tmp/cache/assets/test/sprockets/f09692c097713119fa701a4122205808
164
168
  - test/dummy/tmp/cache/assets/test/sprockets/f7cbd26ba1d28d48de824f0e94586655
165
169
  - test/link_tag_test.rb
166
170
  - test/test_helper.rb
@@ -1,6 +0,0 @@
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'