fonts-rails 0.0.3 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (28) hide show
  1. checksums.yaml +7 -0
  2. data/README.rdoc +1 -1
  3. data/Rakefile +1 -1
  4. data/lib/fonts/rails/action_view/base.rb +3 -3
  5. data/lib/fonts/rails/version.rb +1 -1
  6. data/test/dummy/app/controllers/pages_controller.rb +6 -0
  7. data/test/dummy/app/views/layouts/application.html.erb +3 -3
  8. data/test/dummy/app/views/{statics/home.html.erb → pages/index.html.erb} +0 -0
  9. data/test/dummy/config/application.rb +4 -8
  10. data/test/dummy/config/environments/development.rb +1 -4
  11. data/test/dummy/config/environments/production.rb +3 -0
  12. data/test/dummy/config/environments/test.rb +2 -5
  13. data/test/dummy/config/routes.rb +1 -1
  14. data/test/dummy/log/test.log +27 -0
  15. data/test/dummy/tmp/cache/assets/test/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
  16. data/test/dummy/tmp/cache/assets/test/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
  17. data/test/dummy/tmp/cache/assets/test/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
  18. data/test/dummy/tmp/cache/assets/test/sprockets/6ee31c758c2207128f3b2fb9f1e7fc1c +0 -0
  19. data/test/dummy/tmp/cache/assets/test/sprockets/78bbdd3d4b68f961ea76c51d172aec6b +0 -0
  20. data/test/dummy/tmp/cache/assets/test/sprockets/c7342e04b6a4ad6af1bb72c5c094c804 +0 -0
  21. data/test/dummy/tmp/cache/assets/test/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
  22. data/test/dummy/tmp/cache/assets/test/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
  23. data/test/dummy/tmp/cache/assets/test/sprockets/f09692c097713119fa701a4122205808 +0 -0
  24. data/test/dummy/tmp/cache/assets/test/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
  25. data/test/{helpers_test.rb → link_tag_test.rb} +2 -1
  26. metadata +41 -28
  27. data/test/dummy/app/controllers/statics_controller.rb +0 -6
  28. data/test/fonts_rails_test.rb +0 -9
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 6015fc02fa9340954c16baf872856b9d6bb797e4
4
+ data.tar.gz: 74d93d37393ac3258b1cfed4f978a8058a4c6850
5
+ SHA512:
6
+ metadata.gz: 2978b9b4b01f1eb9414666782969a1c79d584ca47212e6418a9749564cd2ac7a23d2f7bf706fe3fc7db430b55c9e09ed4af60ab403c4e728d0367b60e49fd4bd
7
+ data.tar.gz: b11d74874bb46e191decd2b7f0f75dfbd7a074c73cb7db062c9884b5d5d7fdd1a764f2b0d3ba3fef3c0197863539025a4f1e148d98cded60d5bacf498f9e3ceb
data/README.rdoc CHANGED
@@ -15,4 +15,4 @@ Then bundle:
15
15
  = Usage
16
16
 
17
17
  In your layout add a line like this in your head:
18
- = google_fonts_link_tag 'Open+Sans:300'
18
+ <%= google_fonts_link_tag 'Open+Sans:300' %>
data/Rakefile CHANGED
@@ -35,4 +35,4 @@ Rake::TestTask.new(:test) do |t|
35
35
  end
36
36
 
37
37
 
38
- task :default => :test
38
+ task default: :test
@@ -7,9 +7,9 @@ module Fonts
7
7
  tag(
8
8
  :link,
9
9
  {
10
- :rel => :stylesheet,
11
- :type => Mime::CSS,
12
- :href => "http://fonts.googleapis.com/css?family=#{family}"
10
+ rel: :stylesheet,
11
+ type: Mime::CSS,
12
+ href: "http://fonts.googleapis.com/css?family=#{family}"
13
13
  },
14
14
  false,
15
15
  false
@@ -1,7 +1,7 @@
1
1
  module Fonts
2
2
  module Rails
3
3
 
4
- VERSION = '0.0.3'
4
+ VERSION = '0.0.5'
5
5
 
6
6
  end
7
7
  end
@@ -0,0 +1,6 @@
1
+ class PagesController < ApplicationController
2
+
3
+ def index
4
+ end
5
+
6
+ end
@@ -2,9 +2,9 @@
2
2
  <html>
3
3
  <head>
4
4
  <title>Dummy</title>
5
- <%= google_fonts_link_tag "Open+Sans:300" %>
6
- <%= stylesheet_link_tag "application", :media => "all" %>
7
- <%= javascript_include_tag "application" %>
5
+ <%= google_fonts_link_tag 'Open+Sans:300' %>
6
+ <%= stylesheet_link_tag 'application', media: 'all' %>
7
+ <%= javascript_include_tag 'application' %>
8
8
  <%= csrf_meta_tags %>
9
9
  </head>
10
10
  <body>
@@ -30,7 +30,7 @@ module Dummy
30
30
  # config.i18n.default_locale = :de
31
31
 
32
32
  # Configure the default encoding used in templates for Ruby 1.9.
33
- config.encoding = "utf-8"
33
+ config.encoding = 'utf-8'
34
34
 
35
35
  # Configure sensitive parameters which will be filtered from the log file.
36
36
  config.filter_parameters += [:password]
@@ -43,17 +43,13 @@ module Dummy
43
43
  # like if you have constraints or database-specific column types
44
44
  # config.active_record.schema_format = :sql
45
45
 
46
- # Enforce whitelist mode for mass assignment.
47
- # This will create an empty whitelist of attributes available for mass-assignment for all models
48
- # in your app. As such, your models will need to explicitly whitelist or blacklist accessible
49
- # parameters by using an attr_accessible or attr_protected declaration.
50
- config.active_record.whitelist_attributes = true
51
-
52
46
  # Enable the asset pipeline
53
47
  config.assets.enabled = true
54
48
 
55
49
  # Version of your assets, change this if you want to expire all your assets
56
50
  config.assets.version = '1.0'
51
+
52
+ # Rails 4 fix
53
+ config.secret_key_base = 'blipblapblup'
57
54
  end
58
55
  end
59
-
@@ -7,7 +7,7 @@ Dummy::Application.configure do
7
7
  config.cache_classes = false
8
8
 
9
9
  # Log error messages when you accidentally call methods on nil.
10
- config.whiny_nils = true
10
+ config.eager_load = false
11
11
 
12
12
  # Show full error reports and disable caching
13
13
  config.consider_all_requests_local = true
@@ -22,9 +22,6 @@ Dummy::Application.configure do
22
22
  # Only use best-standards-support built into browsers
23
23
  config.action_dispatch.best_standards_support = :builtin
24
24
 
25
- # Raise exception on mass assignment protection for Active Record models
26
- config.active_record.mass_assignment_sanitizer = :strict
27
-
28
25
  # Log the query plan for queries taking more than this (works
29
26
  # with SQLite, MySQL, and PostgreSQL)
30
27
  config.active_record.auto_explain_threshold_in_seconds = 0.5
@@ -11,6 +11,9 @@ Dummy::Application.configure do
11
11
  # Disable Rails's static asset server (Apache or nginx will already do this)
12
12
  config.serve_static_assets = false
13
13
 
14
+ # Log error messages when you accidentally call methods on nil
15
+ config.config.eager_load = false
16
+
14
17
  # Compress JavaScripts and CSS
15
18
  config.assets.compress = true
16
19
 
@@ -9,10 +9,10 @@ Dummy::Application.configure do
9
9
 
10
10
  # Configure static asset server for tests with Cache-Control for performance
11
11
  config.serve_static_assets = true
12
- config.static_cache_control = "public, max-age=3600"
12
+ config.static_cache_control = 'public, max-age=3600'
13
13
 
14
14
  # Log error messages when you accidentally call methods on nil
15
- config.whiny_nils = true
15
+ config.eager_load = false
16
16
 
17
17
  # Show full error reports and disable caching
18
18
  config.consider_all_requests_local = true
@@ -29,9 +29,6 @@ Dummy::Application.configure do
29
29
  # ActionMailer::Base.deliveries array.
30
30
  config.action_mailer.delivery_method = :test
31
31
 
32
- # Raise exception on mass assignment protection for Active Record models
33
- config.active_record.mass_assignment_sanitizer = :strict
34
-
35
32
  # Print deprecation notices to the stderr
36
33
  config.active_support.deprecation = :stderr
37
34
  end
@@ -1,6 +1,6 @@
1
1
  Dummy::Application.routes.draw do
2
2
 
3
- root :to => 'statics#home'
3
+ root to: 'pages#index'
4
4
 
5
5
  # The priority is based upon order of creation:
6
6
  # first created -> highest priority.
@@ -94,3 +94,30 @@ Processing by StaticsController#home as HTML
94
94
  Rendered statics/home.html.erb within layouts/application (4.2ms)
95
95
  Completed 200 OK in 104ms (Views: 103.1ms | ActiveRecord: 0.0ms)
96
96
   (0.1ms) rollback transaction
97
+  (0.4ms) begin transaction
98
+ ---------------------------------------------
99
+ HelpersTest: test_should_add_google_fonts_tag
100
+ ---------------------------------------------
101
+ Started GET "/" for 127.0.0.1 at 2013-08-05 15:17:46 -0300
102
+ Processing by PagesController#index as HTML
103
+ Rendered pages/index.html.erb within layouts/application (0.3ms)
104
+ Completed 200 OK in 66ms (Views: 66.0ms | ActiveRecord: 0.0ms)
105
+  (0.1ms) rollback transaction
106
+  (0.2ms) begin transaction
107
+ ---------------------------------------------
108
+ HelpersTest: test_should_add_google_fonts_tag
109
+ ---------------------------------------------
110
+ Started GET "/" for 127.0.0.1 at 2013-08-05 15:40:15 -0300
111
+ Processing by PagesController#index as HTML
112
+ Rendered pages/index.html.erb within layouts/application (0.8ms)
113
+ Completed 200 OK in 14ms (Views: 13.5ms | ActiveRecord: 0.0ms)
114
+  (0.1ms) rollback transaction
115
+  (0.2ms) begin transaction
116
+ ---------------------------------------------
117
+ HelpersTest: test_should_add_google_fonts_tag
118
+ ---------------------------------------------
119
+ Started GET "/" for 127.0.0.1 at 2013-08-05 16:09:11 -0300
120
+ Processing by PagesController#index as HTML
121
+ Rendered pages/index.html.erb within layouts/application (1.4ms)
122
+ Completed 200 OK in 39ms (Views: 38.8ms | ActiveRecord: 0.0ms)
123
+  (0.1ms) rollback transaction
@@ -4,7 +4,8 @@ class HelpersTest < ActionDispatch::IntegrationTest
4
4
 
5
5
  test "should add google fonts tag" do
6
6
  get '/'
7
- assert_tag :tag => 'link', :attributes => { :href => 'http://fonts.googleapis.com/css?family=Open+Sans:300' }
7
+ assert_response :success
8
+ assert_tag tag: 'link', attributes: { href: 'http://fonts.googleapis.com/css?family=Open+Sans:300' }
8
9
  end
9
10
 
10
11
  end
metadata CHANGED
@@ -1,46 +1,41 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fonts-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
5
- prerelease:
4
+ version: 0.0.5
6
5
  platform: ruby
7
6
  authors:
8
7
  - Mattways
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-06-27 00:00:00.000000000 Z
11
+ date: 2013-08-05 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: rails
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ~>
17
+ - - '>='
20
18
  - !ruby/object:Gem::Version
21
- version: 3.2.8
19
+ version: 3.0.0
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ~>
24
+ - - '>='
28
25
  - !ruby/object:Gem::Version
29
- version: 3.2.8
26
+ version: 3.0.0
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: sqlite3
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ! '>='
31
+ - - '>='
36
32
  - !ruby/object:Gem::Version
37
33
  version: '0'
38
34
  type: :development
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
- - - ! '>='
38
+ - - '>='
44
39
  - !ruby/object:Gem::Version
45
40
  version: '0'
46
41
  description: Adds a simple view helper to create the google fonts link tag.
@@ -61,10 +56,10 @@ files:
61
56
  - test/dummy/app/assets/javascripts/application.js
62
57
  - test/dummy/app/assets/stylesheets/application.css
63
58
  - test/dummy/app/controllers/application_controller.rb
64
- - test/dummy/app/controllers/statics_controller.rb
59
+ - test/dummy/app/controllers/pages_controller.rb
65
60
  - test/dummy/app/helpers/application_helper.rb
66
61
  - test/dummy/app/views/layouts/application.html.erb
67
- - test/dummy/app/views/statics/home.html.erb
62
+ - test/dummy/app/views/pages/index.html.erb
68
63
  - test/dummy/config/application.rb
69
64
  - test/dummy/config/boot.rb
70
65
  - test/dummy/config/database.yml
@@ -89,41 +84,50 @@ files:
89
84
  - test/dummy/Rakefile
90
85
  - test/dummy/README.rdoc
91
86
  - test/dummy/script/rails
92
- - test/fonts_rails_test.rb
93
- - test/helpers_test.rb
87
+ - test/dummy/tmp/cache/assets/test/sprockets/13fe41fee1fe35b49d145bcc06610705
88
+ - test/dummy/tmp/cache/assets/test/sprockets/2f5173deea6c795b8fdde723bb4b63af
89
+ - 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
+ - test/dummy/tmp/cache/assets/test/sprockets/cffd775d018f68ce5dba1ee0d951a994
94
+ - test/dummy/tmp/cache/assets/test/sprockets/d771ace226fc8215a3572e0aa35bb0d6
95
+ - test/dummy/tmp/cache/assets/test/sprockets/f09692c097713119fa701a4122205808
96
+ - test/dummy/tmp/cache/assets/test/sprockets/f7cbd26ba1d28d48de824f0e94586655
97
+ - test/link_tag_test.rb
94
98
  - test/test_helper.rb
95
99
  homepage: https://github.com/mattways/fonts-rails
96
- licenses: []
100
+ licenses:
101
+ - MIT
102
+ metadata: {}
97
103
  post_install_message:
98
104
  rdoc_options: []
99
105
  require_paths:
100
106
  - lib
101
107
  required_ruby_version: !ruby/object:Gem::Requirement
102
- none: false
103
108
  requirements:
104
- - - ! '>='
109
+ - - '>='
105
110
  - !ruby/object:Gem::Version
106
111
  version: '0'
107
112
  required_rubygems_version: !ruby/object:Gem::Requirement
108
- none: false
109
113
  requirements:
110
- - - ! '>='
114
+ - - '>='
111
115
  - !ruby/object:Gem::Version
112
116
  version: '0'
113
117
  requirements: []
114
118
  rubyforge_project:
115
- rubygems_version: 1.8.23
119
+ rubygems_version: 2.0.3
116
120
  signing_key:
117
- specification_version: 3
121
+ specification_version: 4
118
122
  summary: Google Fonts for Rails.
119
123
  test_files:
120
124
  - test/dummy/app/assets/javascripts/application.js
121
125
  - test/dummy/app/assets/stylesheets/application.css
122
126
  - test/dummy/app/controllers/application_controller.rb
123
- - test/dummy/app/controllers/statics_controller.rb
127
+ - test/dummy/app/controllers/pages_controller.rb
124
128
  - test/dummy/app/helpers/application_helper.rb
125
129
  - test/dummy/app/views/layouts/application.html.erb
126
- - test/dummy/app/views/statics/home.html.erb
130
+ - test/dummy/app/views/pages/index.html.erb
127
131
  - test/dummy/config/application.rb
128
132
  - test/dummy/config/boot.rb
129
133
  - test/dummy/config/database.yml
@@ -148,6 +152,15 @@ test_files:
148
152
  - test/dummy/Rakefile
149
153
  - test/dummy/README.rdoc
150
154
  - test/dummy/script/rails
151
- - test/fonts_rails_test.rb
152
- - test/helpers_test.rb
155
+ - test/dummy/tmp/cache/assets/test/sprockets/13fe41fee1fe35b49d145bcc06610705
156
+ - test/dummy/tmp/cache/assets/test/sprockets/2f5173deea6c795b8fdde723bb4b63af
157
+ - 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
+ - test/dummy/tmp/cache/assets/test/sprockets/cffd775d018f68ce5dba1ee0d951a994
162
+ - test/dummy/tmp/cache/assets/test/sprockets/d771ace226fc8215a3572e0aa35bb0d6
163
+ - test/dummy/tmp/cache/assets/test/sprockets/f09692c097713119fa701a4122205808
164
+ - test/dummy/tmp/cache/assets/test/sprockets/f7cbd26ba1d28d48de824f0e94586655
165
+ - test/link_tag_test.rb
153
166
  - test/test_helper.rb
@@ -1,6 +0,0 @@
1
- class StaticsController < ApplicationController
2
-
3
- def home
4
- end
5
-
6
- end
@@ -1,9 +0,0 @@
1
- require 'test_helper'
2
-
3
- class FontsRailsTest < ActiveSupport::TestCase
4
-
5
- test "truth" do
6
- assert_kind_of Module, Fonts::Rails
7
- end
8
-
9
- end