weather-icons-for-rails 0.0.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 +7 -0
- data/LICENSE +22 -0
- data/README.md +15 -0
- data/Rakefile +12 -0
- data/app/assets/font/weathericons-regular-webfont.eot +0 -0
- data/app/assets/font/weathericons-regular-webfont.svg +257 -0
- data/app/assets/font/weathericons-regular-webfont.ttf +0 -0
- data/app/assets/font/weathericons-regular-webfont.woff +0 -0
- data/app/assets/font/weathericons-regular-webfont.woff2 +0 -0
- data/app/assets/stylesheets/weather-icons-wind.css.erb +5339 -0
- data/app/assets/stylesheets/weather-icons.css.erb +1846 -0
- data/lib/weather-icons-for-rails.rb +2 -0
- data/lib/weather-icons-for-rails/engine.rb +6 -0
- data/lib/weather-icons-for-rails/version.rb +6 -0
- data/test/dummy/app/assets/stylesheets/sass-import.css.sass +2 -0
- data/test/dummy/app/assets/stylesheets/scss-import.css.scss +2 -0
- data/test/dummy/app/assets/stylesheets/sprockets-require.css +4 -0
- data/test/dummy/app/controllers/pages_controller.rb +2 -0
- data/test/dummy/app/views/pages/icons.html.erb +1 -0
- data/test/dummy/config.ru +4 -0
- data/test/dummy/config/application.rb +19 -0
- data/test/dummy/config/boot.rb +10 -0
- data/test/dummy/config/environment.rb +5 -0
- data/test/dummy/config/initializers/secret_token.rb +8 -0
- data/test/dummy/config/routes.rb +3 -0
- data/test/dummy/log/test.log +773 -0
- data/test/test_helper.rb +7 -0
- data/test/weather_icons_for_rails_test.rb +89 -0
- metadata +134 -0
data/test/test_helper.rb
ADDED
@@ -0,0 +1,89 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
class WeatherIconForRailsTest < ActionDispatch::IntegrationTest
|
4
|
+
teardown { clean_sprockets_cache }
|
5
|
+
|
6
|
+
test 'engine is loaded' do
|
7
|
+
assert_equal ::Rails::Engine, WeatherIconsFor::Rails::Engine.superclass
|
8
|
+
end
|
9
|
+
|
10
|
+
test 'fonts are served' do
|
11
|
+
get '/assets/weathericons-regular-webfont.eot'
|
12
|
+
assert_response :success
|
13
|
+
get '/assets/weathericons-regular-webfont.woff2'
|
14
|
+
assert_response :success
|
15
|
+
get '/assets/weathericons-regular-webfont.woff'
|
16
|
+
assert_response :success
|
17
|
+
get '/assets/weathericons-regular-webfont.ttf'
|
18
|
+
assert_response :success
|
19
|
+
get '/assets/weathericons-regular-webfont.svg'
|
20
|
+
assert_response :success
|
21
|
+
end
|
22
|
+
|
23
|
+
test 'stylesheets are served' do
|
24
|
+
get '/assets/weather-icons.css'
|
25
|
+
assert_weather_icons(response)
|
26
|
+
get '/assets/weather-icons-wind.css'
|
27
|
+
assert_weather_icons(response)
|
28
|
+
end
|
29
|
+
|
30
|
+
test 'stylesheets contain asset pipeline references to fonts' do
|
31
|
+
get '/assets/weather-icons.css'
|
32
|
+
v = WeatherIconsFor::Rails::WI_VERSION
|
33
|
+
assert_match(
|
34
|
+
"/assets/weathericons-regular-webfont.eot?v=#{v}", response.body)
|
35
|
+
assert_match(
|
36
|
+
"/assets/weathericons-regular-webfont.eot?#iefix&v=#{v}", response.body)
|
37
|
+
assert_match(
|
38
|
+
"/assets/weathericons-regular-webfont.woff2?v=#{v}", response.body)
|
39
|
+
assert_match(
|
40
|
+
"/assets/weathericons-regular-webfont.woff?v=#{v}", response.body)
|
41
|
+
assert_match(
|
42
|
+
"/assets/weathericons-regular-webfont.ttf?v=#{v}", response.body)
|
43
|
+
assert_match(
|
44
|
+
"/assets/weathericons-regular-webfont.svg?v=#{v}#weather_iconsregular",
|
45
|
+
response.body)
|
46
|
+
|
47
|
+
get '/assets/weather-icons-wind.css'
|
48
|
+
v = WeatherIconsFor::Rails::WI_VERSION
|
49
|
+
assert_match(
|
50
|
+
"/assets/weathericons-regular-webfont.eot?v=#{v}", response.body)
|
51
|
+
assert_match(
|
52
|
+
"/assets/weathericons-regular-webfont.eot?#iefix&v=#{v}", response.body)
|
53
|
+
assert_match(
|
54
|
+
"/assets/weathericons-regular-webfont.woff2?v=#{v}", response.body)
|
55
|
+
assert_match(
|
56
|
+
"/assets/weathericons-regular-webfont.woff?v=#{v}", response.body)
|
57
|
+
assert_match(
|
58
|
+
"/assets/weathericons-regular-webfont.ttf?v=#{v}", response.body)
|
59
|
+
assert_match(
|
60
|
+
"/assets/weathericons-regular-webfont.svg?v=#{v}#weather_iconsregular",
|
61
|
+
response.body)
|
62
|
+
end
|
63
|
+
|
64
|
+
test 'stylesheet is available in a css sprockets require' do
|
65
|
+
get '/assets/sprockets-require.css'
|
66
|
+
assert_weather_icons(response)
|
67
|
+
end
|
68
|
+
|
69
|
+
test 'stylesheet is available in a sass import' do
|
70
|
+
get '/assets/sass-import.css'
|
71
|
+
assert_weather_icons(response)
|
72
|
+
end
|
73
|
+
|
74
|
+
test 'stylesheet is available in a scss import' do
|
75
|
+
get '/assets/scss-import.css'
|
76
|
+
assert_weather_icons(response)
|
77
|
+
end
|
78
|
+
|
79
|
+
private
|
80
|
+
|
81
|
+
def clean_sprockets_cache
|
82
|
+
FileUtils.rm_rf File.expand_path('../dummy/tmp', __FILE__)
|
83
|
+
end
|
84
|
+
|
85
|
+
def assert_weather_icons(response)
|
86
|
+
assert_response :success
|
87
|
+
assert_match(/font-family:\s*'weathericons';/, response.body)
|
88
|
+
end
|
89
|
+
end
|
metadata
ADDED
@@ -0,0 +1,134 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: weather-icons-for-rails
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- lekealem
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2015-10-24 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: railties
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '4.1'
|
20
|
+
- - "<"
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: '5.0'
|
23
|
+
type: :runtime
|
24
|
+
prerelease: false
|
25
|
+
version_requirements: !ruby/object:Gem::Requirement
|
26
|
+
requirements:
|
27
|
+
- - ">="
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '4.1'
|
30
|
+
- - "<"
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '5.0'
|
33
|
+
- !ruby/object:Gem::Dependency
|
34
|
+
name: activesupport
|
35
|
+
requirement: !ruby/object:Gem::Requirement
|
36
|
+
requirements:
|
37
|
+
- - ">="
|
38
|
+
- !ruby/object:Gem::Version
|
39
|
+
version: '4.1'
|
40
|
+
type: :development
|
41
|
+
prerelease: false
|
42
|
+
version_requirements: !ruby/object:Gem::Requirement
|
43
|
+
requirements:
|
44
|
+
- - ">="
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: '4.1'
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
name: sass-rails
|
49
|
+
requirement: !ruby/object:Gem::Requirement
|
50
|
+
requirements:
|
51
|
+
- - ">="
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '0'
|
54
|
+
type: :development
|
55
|
+
prerelease: false
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
requirements:
|
58
|
+
- - ">="
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
version: '0'
|
61
|
+
description: I like weather-icons and I like rails.
|
62
|
+
email:
|
63
|
+
- lekealemasong@yahoo.de
|
64
|
+
executables: []
|
65
|
+
extensions: []
|
66
|
+
extra_rdoc_files: []
|
67
|
+
files:
|
68
|
+
- LICENSE
|
69
|
+
- README.md
|
70
|
+
- Rakefile
|
71
|
+
- app/assets/font/weathericons-regular-webfont.eot
|
72
|
+
- app/assets/font/weathericons-regular-webfont.svg
|
73
|
+
- app/assets/font/weathericons-regular-webfont.ttf
|
74
|
+
- app/assets/font/weathericons-regular-webfont.woff
|
75
|
+
- app/assets/font/weathericons-regular-webfont.woff2
|
76
|
+
- app/assets/stylesheets/weather-icons-wind.css.erb
|
77
|
+
- app/assets/stylesheets/weather-icons.css.erb
|
78
|
+
- lib/weather-icons-for-rails.rb
|
79
|
+
- lib/weather-icons-for-rails/engine.rb
|
80
|
+
- lib/weather-icons-for-rails/version.rb
|
81
|
+
- test/dummy/app/assets/stylesheets/sass-import.css.sass
|
82
|
+
- test/dummy/app/assets/stylesheets/scss-import.css.scss
|
83
|
+
- test/dummy/app/assets/stylesheets/sprockets-require.css
|
84
|
+
- test/dummy/app/controllers/pages_controller.rb
|
85
|
+
- test/dummy/app/views/pages/icons.html.erb
|
86
|
+
- test/dummy/config.ru
|
87
|
+
- test/dummy/config/application.rb
|
88
|
+
- test/dummy/config/boot.rb
|
89
|
+
- test/dummy/config/environment.rb
|
90
|
+
- test/dummy/config/initializers/secret_token.rb
|
91
|
+
- test/dummy/config/routes.rb
|
92
|
+
- test/dummy/log/test.log
|
93
|
+
- test/test_helper.rb
|
94
|
+
- test/weather_icons_for_rails_test.rb
|
95
|
+
homepage: https://github.com/lasong/weather-icons-for-rails
|
96
|
+
licenses:
|
97
|
+
- MIT
|
98
|
+
- SIL Open Font License
|
99
|
+
metadata: {}
|
100
|
+
post_install_message:
|
101
|
+
rdoc_options: []
|
102
|
+
require_paths:
|
103
|
+
- lib
|
104
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
105
|
+
requirements:
|
106
|
+
- - ">="
|
107
|
+
- !ruby/object:Gem::Version
|
108
|
+
version: 1.9.3
|
109
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
110
|
+
requirements:
|
111
|
+
- - ">="
|
112
|
+
- !ruby/object:Gem::Version
|
113
|
+
version: '0'
|
114
|
+
requirements: []
|
115
|
+
rubyforge_project:
|
116
|
+
rubygems_version: 2.4.5.1
|
117
|
+
signing_key:
|
118
|
+
specification_version: 4
|
119
|
+
summary: an asset gemification of the weather-icons icon font library
|
120
|
+
test_files:
|
121
|
+
- test/dummy/app/assets/stylesheets/sass-import.css.sass
|
122
|
+
- test/dummy/app/assets/stylesheets/scss-import.css.scss
|
123
|
+
- test/dummy/app/assets/stylesheets/sprockets-require.css
|
124
|
+
- test/dummy/app/controllers/pages_controller.rb
|
125
|
+
- test/dummy/app/views/pages/icons.html.erb
|
126
|
+
- test/dummy/config/application.rb
|
127
|
+
- test/dummy/config/boot.rb
|
128
|
+
- test/dummy/config/environment.rb
|
129
|
+
- test/dummy/config/initializers/secret_token.rb
|
130
|
+
- test/dummy/config/routes.rb
|
131
|
+
- test/dummy/config.ru
|
132
|
+
- test/dummy/log/test.log
|
133
|
+
- test/test_helper.rb
|
134
|
+
- test/weather_icons_for_rails_test.rb
|