mountain_view 0.5.0 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/stylesheets/mountain_view.css.erb +3 -1
- data/lib/mountain_view/configuration.rb +9 -0
- data/lib/mountain_view/version.rb +1 -1
- data/lib/mountain_view.rb +8 -0
- data/test/dummy/app/assets/stylesheets/global.css +11 -0
- data/test/dummy/app/components/card/card.css +0 -2
- data/test/dummy/app/components/header/header.css +0 -2
- data/test/dummy/config/initializers/mountain_view.rb +3 -0
- data/test/dummy/log/development.log +4503 -1350
- data/test/dummy/log/test.log +1563 -2338
- data/test/mountain_view/configuration_test.rb +14 -0
- data/test/mountain_view_test.rb +7 -0
- metadata +10 -7
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/db/test.sqlite3 +0 -0
@@ -0,0 +1,14 @@
|
|
1
|
+
require "test_helper"
|
2
|
+
|
3
|
+
class MountainViewConfigurationTest < ActiveSupport::TestCase
|
4
|
+
test "default value for included_stylesheets is an empty array" do
|
5
|
+
assert_equal MountainView::Configuration.new.included_stylesheets, []
|
6
|
+
end
|
7
|
+
|
8
|
+
test "set custom included_stylesheets" do
|
9
|
+
config = MountainView::Configuration.new
|
10
|
+
config.included_stylesheets = ["global", "fonts"]
|
11
|
+
|
12
|
+
assert_equal config.included_stylesheets, ["global", "fonts"]
|
13
|
+
end
|
14
|
+
end
|
data/test/mountain_view_test.rb
CHANGED
@@ -7,6 +7,13 @@ class MountainViewTest < ActionDispatch::IntegrationTest
|
|
7
7
|
assert_equal ::Rails::Engine, MountainView::Engine.superclass
|
8
8
|
end
|
9
9
|
|
10
|
+
test "global stylesheets are properly served" do
|
11
|
+
get "/assets/mountain_view.css"
|
12
|
+
|
13
|
+
assert_response :success
|
14
|
+
assert_match(/Global Stylesheet Beginning/, response.body)
|
15
|
+
end
|
16
|
+
|
10
17
|
test "stylesheets are properly served" do
|
11
18
|
get "/assets/mountain_view.css"
|
12
19
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mountain_view
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ignacio Gutierrez
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-05-
|
12
|
+
date: 2015-05-26 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
@@ -67,6 +67,7 @@ files:
|
|
67
67
|
- lib/generators/mountain_view/component_generator.rb
|
68
68
|
- lib/mountain_view.rb
|
69
69
|
- lib/mountain_view/component.rb
|
70
|
+
- lib/mountain_view/configuration.rb
|
70
71
|
- lib/mountain_view/engine.rb
|
71
72
|
- lib/mountain_view/version.rb
|
72
73
|
- lib/tasks/mountain_view_tasks.rake
|
@@ -74,6 +75,7 @@ files:
|
|
74
75
|
- test/dummy/Rakefile
|
75
76
|
- test/dummy/app/assets/javascripts/application.js
|
76
77
|
- test/dummy/app/assets/stylesheets/application.css
|
78
|
+
- test/dummy/app/assets/stylesheets/global.css
|
77
79
|
- test/dummy/app/components/breadcrumbs/_breadcrumbs.html.erb
|
78
80
|
- test/dummy/app/components/breadcrumbs/breadcrumbs.css
|
79
81
|
- test/dummy/app/components/breadcrumbs/breadcrumbs.js
|
@@ -109,14 +111,13 @@ files:
|
|
109
111
|
- test/dummy/config/initializers/filter_parameter_logging.rb
|
110
112
|
- test/dummy/config/initializers/inflections.rb
|
111
113
|
- test/dummy/config/initializers/mime_types.rb
|
114
|
+
- test/dummy/config/initializers/mountain_view.rb
|
112
115
|
- test/dummy/config/initializers/secret_token.rb
|
113
116
|
- test/dummy/config/initializers/session_store.rb
|
114
117
|
- test/dummy/config/initializers/wrap_parameters.rb
|
115
118
|
- test/dummy/config/locales/en.yml
|
116
119
|
- test/dummy/config/routes.rb
|
117
120
|
- test/dummy/config/secrets.yml
|
118
|
-
- test/dummy/db/development.sqlite3
|
119
|
-
- test/dummy/db/test.sqlite3
|
120
121
|
- test/dummy/log/development.log
|
121
122
|
- test/dummy/log/test.log
|
122
123
|
- test/dummy/public/404.html
|
@@ -126,6 +127,7 @@ files:
|
|
126
127
|
- test/generators/component_generator_test.rb
|
127
128
|
- test/helpers/mountain_view/component_helper_test.rb
|
128
129
|
- test/mountain_view/component_test.rb
|
130
|
+
- test/mountain_view/configuration_test.rb
|
129
131
|
- test/mountain_view_test.rb
|
130
132
|
- test/test_helper.rb
|
131
133
|
- test/tmp/app/components/widget/_widget.html.haml
|
@@ -152,13 +154,14 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
152
154
|
version: '0'
|
153
155
|
requirements: []
|
154
156
|
rubyforge_project:
|
155
|
-
rubygems_version: 2.
|
157
|
+
rubygems_version: 2.2.2
|
156
158
|
signing_key:
|
157
159
|
specification_version: 4
|
158
160
|
summary: Mountain View helps you create reusable visual components on your Rails Application.
|
159
161
|
test_files:
|
160
162
|
- test/dummy/app/assets/javascripts/application.js
|
161
163
|
- test/dummy/app/assets/stylesheets/application.css
|
164
|
+
- test/dummy/app/assets/stylesheets/global.css
|
162
165
|
- test/dummy/app/components/breadcrumbs/_breadcrumbs.html.erb
|
163
166
|
- test/dummy/app/components/breadcrumbs/breadcrumbs.css
|
164
167
|
- test/dummy/app/components/breadcrumbs/breadcrumbs.js
|
@@ -193,6 +196,7 @@ test_files:
|
|
193
196
|
- test/dummy/config/initializers/filter_parameter_logging.rb
|
194
197
|
- test/dummy/config/initializers/inflections.rb
|
195
198
|
- test/dummy/config/initializers/mime_types.rb
|
199
|
+
- test/dummy/config/initializers/mountain_view.rb
|
196
200
|
- test/dummy/config/initializers/secret_token.rb
|
197
201
|
- test/dummy/config/initializers/session_store.rb
|
198
202
|
- test/dummy/config/initializers/wrap_parameters.rb
|
@@ -200,8 +204,6 @@ test_files:
|
|
200
204
|
- test/dummy/config/routes.rb
|
201
205
|
- test/dummy/config/secrets.yml
|
202
206
|
- test/dummy/config.ru
|
203
|
-
- test/dummy/db/development.sqlite3
|
204
|
-
- test/dummy/db/test.sqlite3
|
205
207
|
- test/dummy/log/development.log
|
206
208
|
- test/dummy/log/test.log
|
207
209
|
- test/dummy/public/404.html
|
@@ -213,6 +215,7 @@ test_files:
|
|
213
215
|
- test/generators/component_generator_test.rb
|
214
216
|
- test/helpers/mountain_view/component_helper_test.rb
|
215
217
|
- test/mountain_view/component_test.rb
|
218
|
+
- test/mountain_view/configuration_test.rb
|
216
219
|
- test/mountain_view_test.rb
|
217
220
|
- test/test_helper.rb
|
218
221
|
- test/tmp/app/components/widget/_widget.html.haml
|
File without changes
|
data/test/dummy/db/test.sqlite3
DELETED
File without changes
|