fonts-rails 0.0.8 → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 156693bf691edf5ca032387f2785d8075e88b63c
4
- data.tar.gz: 821da48b23f7b59c9f25457eeffe36a31e8a6561
3
+ metadata.gz: 32b275296a537b2edd11463172b264c60a6b0b35
4
+ data.tar.gz: 6f2553fcc9fdbf9c8535630df93e207c48cc3642
5
5
  SHA512:
6
- metadata.gz: 56bbe7e80263f9fb9206913b436801546b4874b6c98c1e6ae699b0a3482760d0c688c922b86c1ebbb3973036a896e98ffd8c65586ee2f6bf4ba399eb263eee65
7
- data.tar.gz: 1e70b30ce377bdc625fdc774cbf20defda3054f3568246461363a35fa790acbc9baabdca632d195b87587d0b1f2f89008455bac4a122e42de1a86965df082176
6
+ metadata.gz: c06c1b626abc51038be68fed09fae1a0ca68b7ddc702f61e57087b677e0153efe35fccf221f4a160ae74b117afe498022480cb291bb0d37a3c262a4a5f427fb9
7
+ data.tar.gz: fc4662a13a849409c4eed30b0b69443524118bcffded143026d887ce35522bfd0662da10ff0e80b37a89280edb37d0f8036c88d93332d0d5c90dc27826479b0e
@@ -1,4 +1,4 @@
1
- Copyright 2013 Museways
1
+ Copyright 2014 Museways
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
@@ -1,7 +1,7 @@
1
1
  module Fonts
2
2
  module Rails
3
-
4
- VERSION = '0.0.8'
5
-
3
+
4
+ VERSION = '0.1.0'
5
+
6
6
  end
7
7
  end
@@ -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'
@@ -1,7 +1,4 @@
1
1
  Dummy::Application.routes.draw do
2
-
3
- root to: 'pages#index'
4
-
5
2
  # The priority is based upon order of creation: first created -> highest priority.
6
3
  # See how all your routes lay out with "rake routes".
7
4
 
@@ -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
   (0.1ms) rollback transaction
40
+  (0.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
41
+  (0.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
42
+  (0.1ms) SELECT version FROM "schema_migrations"
43
+  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
44
+  (0.1ms) begin transaction
45
+ ----------------------------------------------------
46
+ LinkTagTest: test_should_return_include_tag_with_url
47
+ ----------------------------------------------------
48
+  (0.1ms) rollback transaction
49
+  (0.3ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
50
+  (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
51
+  (0.1ms) SELECT version FROM "schema_migrations"
52
+  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
53
+  (0.1ms) begin transaction
54
+ ----------------------------------------------------
55
+ LinkTagTest: test_should_return_include_tag_with_url
56
+ ----------------------------------------------------
57
+  (0.1ms) rollback transaction
58
+  (0.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
59
+  (0.1ms) select sqlite_version(*)
60
+  (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
61
+  (0.1ms) SELECT version FROM "schema_migrations"
62
+  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
63
+  (0.1ms) begin transaction
64
+ ----------------------------------------------------
65
+ LinkTagTest: test_should_return_include_tag_with_url
66
+ ----------------------------------------------------
67
+  (0.1ms) rollback transaction
@@ -1,11 +1,10 @@
1
1
  require 'test_helper'
2
2
 
3
- class LinkTagTest < ActionDispatch::IntegrationTest
3
+ class LinkTagTest < ActionView::TestCase
4
4
 
5
- test "should show google fonts tag" do
6
- get '/'
7
- assert_response :success
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
@@ -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.8
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-03-01 00:00:00.000000000 Z
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.0.0
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.0.0
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: '0'
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: '0'
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: '0'
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
@@ -1,6 +0,0 @@
1
- class PagesController < ApplicationController
2
-
3
- def index
4
- end
5
-
6
- end
File without changes