fonts-rails 0.1.5 → 0.1.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (47) hide show
  1. checksums.yaml +4 -4
  2. data/MIT-LICENSE +1 -1
  3. data/README.md +7 -1
  4. data/Rakefile +1 -14
  5. data/lib/fonts/rails.rb +2 -1
  6. data/lib/fonts/rails/extensions/action_view/base.rb +20 -0
  7. data/lib/fonts/rails/railtie.rb +4 -2
  8. data/lib/fonts/rails/version.rb +1 -1
  9. data/test/dummy/Rakefile +1 -2
  10. data/test/dummy/app/assets/javascripts/application.js +2 -2
  11. data/test/dummy/app/assets/stylesheets/application.css +6 -4
  12. data/test/dummy/app/views/layouts/application.html.erb +9 -12
  13. data/test/dummy/bin/bundle +1 -0
  14. data/test/dummy/bin/rails +2 -1
  15. data/test/dummy/bin/rake +1 -0
  16. data/test/dummy/bin/setup +30 -0
  17. data/test/dummy/config.ru +1 -1
  18. data/test/dummy/config/application.rb +6 -2
  19. data/test/dummy/config/boot.rb +1 -1
  20. data/test/dummy/config/environment.rb +1 -1
  21. data/test/dummy/config/environments/development.rb +14 -5
  22. data/test/dummy/config/environments/production.rb +18 -26
  23. data/test/dummy/config/environments/test.rb +10 -12
  24. data/test/dummy/config/initializers/assets.rb +11 -0
  25. data/test/dummy/config/initializers/cookies_serializer.rb +3 -0
  26. data/test/dummy/config/initializers/mime_types.rb +1 -2
  27. data/test/dummy/config/initializers/session_store.rb +1 -1
  28. data/test/dummy/config/routes.rb +2 -2
  29. data/test/dummy/config/secrets.yml +22 -0
  30. data/test/dummy/log/test.log +24 -0
  31. data/test/dummy/public/404.html +58 -55
  32. data/test/dummy/public/422.html +58 -55
  33. data/test/dummy/public/500.html +57 -54
  34. data/test/link_tag_test.rb +5 -2
  35. data/test/test_helper.rb +5 -14
  36. metadata +19 -43
  37. data/lib/fonts/rails/action_view/base.rb +0 -22
  38. data/test/dummy/README.rdoc +0 -28
  39. data/test/dummy/config/database.yml +0 -25
  40. data/test/dummy/config/initializers/secret_token.rb +0 -13
  41. data/test/dummy/db/schema.rb +0 -16
  42. data/test/dummy/tmp/cache/assets/test/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
  43. data/test/dummy/tmp/cache/assets/test/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
  44. data/test/dummy/tmp/cache/assets/test/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
  45. data/test/dummy/tmp/cache/assets/test/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
  46. data/test/dummy/tmp/cache/assets/test/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
  47. data/test/dummy/tmp/cache/assets/test/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
data/test/test_helper.rb CHANGED
@@ -1,24 +1,15 @@
1
1
  # Configure Rails Environment
2
2
  ENV['RAILS_ENV'] = 'test'
3
3
 
4
- require File.expand_path('../dummy/config/environment.rb', __FILE__)
4
+ require File.expand_path('../../test/dummy/config/environment.rb', __FILE__)
5
5
  require 'rails/test_help'
6
6
 
7
- Rails.backtrace_cleaner.remove_silencers!
7
+ # Filter out Minitest backtrace while allowing backtrace from other libraries
8
+ # to be shown.
9
+ Minitest.backtrace_filter = Minitest::BacktraceFilter.new
8
10
 
9
11
  # Load support files
10
12
  Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
11
13
 
12
- # Load fixtures from the engine
13
- if ActiveSupport::TestCase.method_defined?(:fixture_path=)
14
- ActiveSupport::TestCase.fixture_path = File.expand_path('../fixtures', __FILE__)
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__))
22
-
23
14
  # Include helpers
24
- ActionView::TestCase.send :include, Fonts::Rails::ActionView::Base
15
+ ActionView::TestCase.include Fonts::Rails::Extensions::ActionView::Base
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.1.5
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - mmontossi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-01-15 00:00:00.000000000 Z
11
+ date: 2016-11-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 4.0.0
19
+ version: 4.2.0
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 4.3.0
@@ -26,27 +26,13 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: 4.0.0
29
+ version: 4.2.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 4.3.0
33
- - !ruby/object:Gem::Dependency
34
- name: sqlite3
35
- requirement: !ruby/object:Gem::Requirement
36
- requirements:
37
- - - "~>"
38
- - !ruby/object:Gem::Version
39
- version: '1.3'
40
- type: :development
41
- prerelease: false
42
- version_requirements: !ruby/object:Gem::Requirement
43
- requirements:
44
- - - "~>"
45
- - !ruby/object:Gem::Version
46
- version: '1.3'
47
- description: Adds a simple view helper to create the google fonts link tag in rails.
33
+ description: Adds a helper to create the google fonts link in rails.
48
34
  email:
49
- - mmontossi@buyin.io
35
+ - mmontossi@gmail.com
50
36
  executables: []
51
37
  extensions: []
52
38
  extra_rdoc_files: []
@@ -56,10 +42,9 @@ files:
56
42
  - Rakefile
57
43
  - lib/fonts-rails.rb
58
44
  - lib/fonts/rails.rb
59
- - lib/fonts/rails/action_view/base.rb
45
+ - lib/fonts/rails/extensions/action_view/base.rb
60
46
  - lib/fonts/rails/railtie.rb
61
47
  - lib/fonts/rails/version.rb
62
- - test/dummy/README.rdoc
63
48
  - test/dummy/Rakefile
64
49
  - test/dummy/app/assets/javascripts/application.js
65
50
  - test/dummy/app/assets/stylesheets/application.css
@@ -69,34 +54,30 @@ files:
69
54
  - test/dummy/bin/bundle
70
55
  - test/dummy/bin/rails
71
56
  - test/dummy/bin/rake
57
+ - test/dummy/bin/setup
72
58
  - test/dummy/config.ru
73
59
  - test/dummy/config/application.rb
74
60
  - test/dummy/config/boot.rb
75
- - test/dummy/config/database.yml
76
61
  - test/dummy/config/environment.rb
77
62
  - test/dummy/config/environments/development.rb
78
63
  - test/dummy/config/environments/production.rb
79
64
  - test/dummy/config/environments/test.rb
65
+ - test/dummy/config/initializers/assets.rb
80
66
  - test/dummy/config/initializers/backtrace_silencers.rb
67
+ - test/dummy/config/initializers/cookies_serializer.rb
81
68
  - test/dummy/config/initializers/filter_parameter_logging.rb
82
69
  - test/dummy/config/initializers/inflections.rb
83
70
  - test/dummy/config/initializers/mime_types.rb
84
- - test/dummy/config/initializers/secret_token.rb
85
71
  - test/dummy/config/initializers/session_store.rb
86
72
  - test/dummy/config/initializers/wrap_parameters.rb
87
73
  - test/dummy/config/locales/en.yml
88
74
  - test/dummy/config/routes.rb
89
- - test/dummy/db/schema.rb
75
+ - test/dummy/config/secrets.yml
76
+ - test/dummy/log/test.log
90
77
  - test/dummy/public/404.html
91
78
  - test/dummy/public/422.html
92
79
  - test/dummy/public/500.html
93
80
  - test/dummy/public/favicon.ico
94
- - test/dummy/tmp/cache/assets/test/sprockets/13fe41fee1fe35b49d145bcc06610705
95
- - test/dummy/tmp/cache/assets/test/sprockets/2f5173deea6c795b8fdde723bb4b63af
96
- - test/dummy/tmp/cache/assets/test/sprockets/357970feca3ac29060c1e3861e2c0953
97
- - test/dummy/tmp/cache/assets/test/sprockets/cffd775d018f68ce5dba1ee0d951a994
98
- - test/dummy/tmp/cache/assets/test/sprockets/d771ace226fc8215a3572e0aa35bb0d6
99
- - test/dummy/tmp/cache/assets/test/sprockets/f7cbd26ba1d28d48de824f0e94586655
100
81
  - test/link_tag_test.rb
101
82
  - test/test_helper.rb
102
83
  homepage: https://github.com/mmontossi/fonts-rails
@@ -111,7 +92,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
111
92
  requirements:
112
93
  - - ">="
113
94
  - !ruby/object:Gem::Version
114
- version: 1.9.3
95
+ version: 2.1.0
115
96
  required_rubygems_version: !ruby/object:Gem::Requirement
116
97
  requirements:
117
98
  - - ">="
@@ -119,7 +100,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
119
100
  version: '0'
120
101
  requirements: []
121
102
  rubyforge_project:
122
- rubygems_version: 2.4.5
103
+ rubygems_version: 2.5.1
123
104
  signing_key:
124
105
  specification_version: 4
125
106
  summary: Google fonts for rails.
@@ -132,35 +113,30 @@ test_files:
132
113
  - test/dummy/bin/bundle
133
114
  - test/dummy/bin/rails
134
115
  - test/dummy/bin/rake
116
+ - test/dummy/bin/setup
135
117
  - test/dummy/config/application.rb
136
118
  - test/dummy/config/boot.rb
137
- - test/dummy/config/database.yml
138
119
  - test/dummy/config/environment.rb
139
120
  - test/dummy/config/environments/development.rb
140
121
  - test/dummy/config/environments/production.rb
141
122
  - test/dummy/config/environments/test.rb
123
+ - test/dummy/config/initializers/assets.rb
142
124
  - test/dummy/config/initializers/backtrace_silencers.rb
125
+ - test/dummy/config/initializers/cookies_serializer.rb
143
126
  - test/dummy/config/initializers/filter_parameter_logging.rb
144
127
  - test/dummy/config/initializers/inflections.rb
145
128
  - test/dummy/config/initializers/mime_types.rb
146
- - test/dummy/config/initializers/secret_token.rb
147
129
  - test/dummy/config/initializers/session_store.rb
148
130
  - test/dummy/config/initializers/wrap_parameters.rb
149
131
  - test/dummy/config/locales/en.yml
150
132
  - test/dummy/config/routes.rb
133
+ - test/dummy/config/secrets.yml
151
134
  - test/dummy/config.ru
152
- - test/dummy/db/schema.rb
135
+ - test/dummy/log/test.log
153
136
  - test/dummy/public/404.html
154
137
  - test/dummy/public/422.html
155
138
  - test/dummy/public/500.html
156
139
  - test/dummy/public/favicon.ico
157
140
  - test/dummy/Rakefile
158
- - test/dummy/README.rdoc
159
- - test/dummy/tmp/cache/assets/test/sprockets/13fe41fee1fe35b49d145bcc06610705
160
- - test/dummy/tmp/cache/assets/test/sprockets/2f5173deea6c795b8fdde723bb4b63af
161
- - test/dummy/tmp/cache/assets/test/sprockets/357970feca3ac29060c1e3861e2c0953
162
- - test/dummy/tmp/cache/assets/test/sprockets/cffd775d018f68ce5dba1ee0d951a994
163
- - test/dummy/tmp/cache/assets/test/sprockets/d771ace226fc8215a3572e0aa35bb0d6
164
- - test/dummy/tmp/cache/assets/test/sprockets/f7cbd26ba1d28d48de824f0e94586655
165
141
  - test/link_tag_test.rb
166
142
  - test/test_helper.rb
@@ -1,22 +0,0 @@
1
- module Fonts
2
- module Rails
3
- module ActionView
4
- module Base
5
-
6
- def google_fonts_link_tag(family)
7
- tag(
8
- :link,
9
- {
10
- rel: :stylesheet,
11
- type: Mime::CSS,
12
- href: "#{request.protocol}fonts.googleapis.com/css?family=#{family}"
13
- },
14
- false,
15
- false
16
- )
17
- end
18
-
19
- end
20
- end
21
- end
22
- end
@@ -1,28 +0,0 @@
1
- == README
2
-
3
- This README would normally document whatever steps are necessary to get the
4
- application up and running.
5
-
6
- Things you may want to cover:
7
-
8
- * Ruby version
9
-
10
- * System dependencies
11
-
12
- * Configuration
13
-
14
- * Database creation
15
-
16
- * Database initialization
17
-
18
- * How to run the test suite
19
-
20
- * Services (job queues, cache servers, search engines, etc.)
21
-
22
- * Deployment instructions
23
-
24
- * ...
25
-
26
-
27
- Please feel free to use a different markup language if you do not plan to run
28
- <tt>rake doc:app</tt>.
@@ -1,25 +0,0 @@
1
- # SQLite version 3.x
2
- # gem install sqlite3
3
- #
4
- # Ensure the SQLite 3 gem is defined in your Gemfile
5
- # gem 'sqlite3'
6
- development:
7
- adapter: sqlite3
8
- database: db/development.sqlite3
9
- pool: 5
10
- timeout: 5000
11
-
12
- # Warning: The database defined as "test" will be erased and
13
- # re-generated from your development database when you run "rake".
14
- # Do not set this db to the same as development or production.
15
- test:
16
- adapter: sqlite3
17
- database: ":memory:"
18
- pool: 5
19
- timeout: 5000
20
-
21
- production:
22
- adapter: sqlite3
23
- database: db/production.sqlite3
24
- pool: 5
25
- timeout: 5000
@@ -1,13 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # Your secret key is used for verifying the integrity of signed cookies.
4
- # If you change this key, all old signed cookies will become invalid!
5
-
6
- # Make sure the secret is at least 30 characters and all random,
7
- # no regular words or you'll be exposed to dictionary attacks.
8
- # You can use `rake secret` to generate a secure secret key.
9
-
10
- # Make sure your secret_key_base is kept private
11
- # if you're sharing your code publicly.
12
- Dummy::Application.config.secret_token = 'be0d032ea86ac1b5a71a841ee5d63683cce3a8173680baba919c0cc34682ef81c3fcd69ff213f11dc7069b10885d005193d359076dc27c495121b4382373bbf1'
13
- Dummy::Application.config.secret_key_base = 'be0d032ea86ac1b5a71a841ee5d63683cce3a8173680baba919c0cc34682ef81c3fcd69ff213f11dc7069b10885d005193d359076dc27c495121b4382373bbf1'
@@ -1,16 +0,0 @@
1
- # encoding: UTF-8
2
- # This file is auto-generated from the current state of the database. Instead
3
- # of editing this file, please use the migrations feature of Active Record to
4
- # incrementally modify your database, and then regenerate this schema definition.
5
- #
6
- # Note that this schema.rb definition is the authoritative source for your
7
- # database schema. If you need to create the application database on another
8
- # system, you should be using db:schema:load, not running all the migrations
9
- # from scratch. The latter is a flawed and unsustainable approach (the more migrations
10
- # you'll amass, the slower it'll run and the greater likelihood for issues).
11
- #
12
- # It's strongly recommended that you check this file into your version control system.
13
-
14
- ActiveRecord::Schema.define(version: 0) do
15
-
16
- end