fonts-rails 0.0.8 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/MIT-LICENSE +1 -1
- data/lib/fonts/rails/version.rb +3 -3
- data/test/dummy/config/initializers/secret_token.rb +1 -0
- data/test/dummy/config/routes.rb +0 -3
- data/test/dummy/log/test.log +28 -0
- data/test/link_tag_test.rb +4 -5
- data/test/test_helper.rb +3 -0
- metadata +15 -13
- data/test/dummy/app/controllers/pages_controller.rb +0 -6
- data/test/dummy/app/views/pages/index.html.erb +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 32b275296a537b2edd11463172b264c60a6b0b35
|
4
|
+
data.tar.gz: 6f2553fcc9fdbf9c8535630df93e207c48cc3642
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c06c1b626abc51038be68fed09fae1a0ca68b7ddc702f61e57087b677e0153efe35fccf221f4a160ae74b117afe498022480cb291bb0d37a3c262a4a5f427fb9
|
7
|
+
data.tar.gz: fc4662a13a849409c4eed30b0b69443524118bcffded143026d887ce35522bfd0662da10ff0e80b37a89280edb37d0f8036c88d93332d0d5c90dc27826479b0e
|
data/MIT-LICENSE
CHANGED
data/lib/fonts/rails/version.rb
CHANGED
@@ -9,4 +9,5 @@
|
|
9
9
|
|
10
10
|
# Make sure your secret_key_base is kept private
|
11
11
|
# if you're sharing your code publicly.
|
12
|
+
Dummy::Application.config.secret_token = 'be0d032ea86ac1b5a71a841ee5d63683cce3a8173680baba919c0cc34682ef81c3fcd69ff213f11dc7069b10885d005193d359076dc27c495121b4382373bbf1'
|
12
13
|
Dummy::Application.config.secret_key_base = 'be0d032ea86ac1b5a71a841ee5d63683cce3a8173680baba919c0cc34682ef81c3fcd69ff213f11dc7069b10885d005193d359076dc27c495121b4382373bbf1'
|
data/test/dummy/config/routes.rb
CHANGED
data/test/dummy/log/test.log
CHANGED
@@ -37,3 +37,31 @@ Processing by PagesController#index as HTML
|
|
37
37
|
Rendered pages/index.html.erb within layouts/application (1.0ms)
|
38
38
|
Completed 200 OK in 16ms (Views: 16.0ms | ActiveRecord: 0.0ms)
|
39
39
|
[1m[35m (0.1ms)[0m rollback transaction
|
40
|
+
[1m[36m (0.2ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
41
|
+
[1m[35m (0.2ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
42
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
43
|
+
[1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('0')
|
44
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
45
|
+
----------------------------------------------------
|
46
|
+
LinkTagTest: test_should_return_include_tag_with_url
|
47
|
+
----------------------------------------------------
|
48
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
49
|
+
[1m[36m (0.3ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
50
|
+
[1m[35m (0.1ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
51
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
52
|
+
[1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('0')
|
53
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
54
|
+
----------------------------------------------------
|
55
|
+
LinkTagTest: test_should_return_include_tag_with_url
|
56
|
+
----------------------------------------------------
|
57
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
58
|
+
[1m[36m (0.2ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
59
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
60
|
+
[1m[36m (0.1ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
61
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
62
|
+
[1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('0')[0m
|
63
|
+
[1m[35m (0.1ms)[0m begin transaction
|
64
|
+
----------------------------------------------------
|
65
|
+
LinkTagTest: test_should_return_include_tag_with_url
|
66
|
+
----------------------------------------------------
|
67
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
data/test/link_tag_test.rb
CHANGED
@@ -1,11 +1,10 @@
|
|
1
1
|
require 'test_helper'
|
2
2
|
|
3
|
-
class LinkTagTest <
|
3
|
+
class LinkTagTest < ActionView::TestCase
|
4
4
|
|
5
|
-
test "should
|
6
|
-
|
7
|
-
|
8
|
-
assert_tag tag: 'link', attributes: { href: 'http://fonts.googleapis.com/css?family=Open+Sans:300' }
|
5
|
+
test "should return include tag with url" do
|
6
|
+
self.request = OpenStruct.new(protocol: 'http://')
|
7
|
+
assert_equal '<link href="http://fonts.googleapis.com/css?family=Open+Sans:300" rel="stylesheet" type="text/css" />', google_fonts_link_tag('Open+Sans:300')
|
9
8
|
end
|
10
9
|
|
11
10
|
end
|
data/test/test_helper.rb
CHANGED
@@ -19,3 +19,6 @@ config = YAML::load(File.read(File.expand_path('../dummy/config/database.yml', _
|
|
19
19
|
config['test']['adapter'] = 'jdbcsqlite3' if RUBY_PLATFORM == 'java'
|
20
20
|
ActiveRecord::Base.establish_connection(config['test'])
|
21
21
|
load(File.expand_path('../dummy/db/schema.rb', __FILE__))
|
22
|
+
|
23
|
+
# Include helpers
|
24
|
+
ActionView::TestCase.send :include, Fonts::Rails::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.0
|
4
|
+
version: 0.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Museways
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-06-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -16,28 +16,34 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 3.
|
19
|
+
version: 3.1.0
|
20
|
+
- - "<"
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: 4.2.0
|
20
23
|
type: :runtime
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
24
27
|
- - ">="
|
25
28
|
- !ruby/object:Gem::Version
|
26
|
-
version: 3.
|
29
|
+
version: 3.1.0
|
30
|
+
- - "<"
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: 4.2.0
|
27
33
|
- !ruby/object:Gem::Dependency
|
28
34
|
name: sqlite3
|
29
35
|
requirement: !ruby/object:Gem::Requirement
|
30
36
|
requirements:
|
31
|
-
- - "
|
37
|
+
- - "~>"
|
32
38
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
39
|
+
version: '1.3'
|
34
40
|
type: :development
|
35
41
|
prerelease: false
|
36
42
|
version_requirements: !ruby/object:Gem::Requirement
|
37
43
|
requirements:
|
38
|
-
- - "
|
44
|
+
- - "~>"
|
39
45
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
46
|
+
version: '1.3'
|
41
47
|
description: Adds a simple view helper to create the google fonts link tag.
|
42
48
|
email:
|
43
49
|
- hello@museways.com
|
@@ -58,10 +64,8 @@ files:
|
|
58
64
|
- test/dummy/app/assets/javascripts/application.js
|
59
65
|
- test/dummy/app/assets/stylesheets/application.css
|
60
66
|
- test/dummy/app/controllers/application_controller.rb
|
61
|
-
- test/dummy/app/controllers/pages_controller.rb
|
62
67
|
- test/dummy/app/helpers/application_helper.rb
|
63
68
|
- test/dummy/app/views/layouts/application.html.erb
|
64
|
-
- test/dummy/app/views/pages/index.html.erb
|
65
69
|
- test/dummy/bin/bundle
|
66
70
|
- test/dummy/bin/rails
|
67
71
|
- test/dummy/bin/rake
|
@@ -110,7 +114,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
110
114
|
requirements:
|
111
115
|
- - ">="
|
112
116
|
- !ruby/object:Gem::Version
|
113
|
-
version:
|
117
|
+
version: 1.9.3
|
114
118
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
115
119
|
requirements:
|
116
120
|
- - ">="
|
@@ -126,10 +130,8 @@ test_files:
|
|
126
130
|
- test/dummy/app/assets/javascripts/application.js
|
127
131
|
- test/dummy/app/assets/stylesheets/application.css
|
128
132
|
- test/dummy/app/controllers/application_controller.rb
|
129
|
-
- test/dummy/app/controllers/pages_controller.rb
|
130
133
|
- test/dummy/app/helpers/application_helper.rb
|
131
134
|
- test/dummy/app/views/layouts/application.html.erb
|
132
|
-
- test/dummy/app/views/pages/index.html.erb
|
133
135
|
- test/dummy/bin/bundle
|
134
136
|
- test/dummy/bin/rails
|
135
137
|
- test/dummy/bin/rake
|
File without changes
|