mountain_view 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +11 -1
- data/app/assets/javascripts/mountain_view.js.erb +1 -1
- data/app/assets/stylesheets/mountain_view.css.erb +1 -1
- data/lib/mountain_view/version.rb +1 -1
- data/test/dummy/log/test.log +72 -0
- metadata +1 -15
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6560f4d39d31e2e4d03782a0113f24cd27bbc1dd
|
4
|
+
data.tar.gz: 3f184bf80b977d91db928998f70fe8130c413d11
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c607e2ff9d82faad4b4453cc5f9258eec5bb35953d6573170cf4249afc1c2d3eb02b0a933c7440fec09c8333cb1081c4e444a5555a219b1c04d4971faf79222f
|
7
|
+
data.tar.gz: 4d77b6d9afe2add7e091538b83fad3bf2e5c01a3a89fd459a0b004fec8d6634e3c1eb99eef8387388447434e03da1ca120b5d87d01bfcfa816fa4ea0cfca9a27
|
data/README.md
CHANGED
@@ -16,7 +16,7 @@ Then execute:
|
|
16
16
|
## Usage
|
17
17
|
|
18
18
|
### Directory Structure
|
19
|
-
Create components following this directory structure
|
19
|
+
Create components following this directory structure:
|
20
20
|
|
21
21
|
```
|
22
22
|
app/
|
@@ -28,6 +28,16 @@ app/
|
|
28
28
|
header.yml
|
29
29
|
```
|
30
30
|
|
31
|
+
You can use the built-in generator, to automate the behavior:
|
32
|
+
|
33
|
+
```
|
34
|
+
rails generate mountain_view:component header
|
35
|
+
```
|
36
|
+
|
37
|
+
Keep in mind that you can also use `scss`, `coffeescript`, `haml`, or any other
|
38
|
+
preprocessors that your app is currently using.
|
39
|
+
|
40
|
+
|
31
41
|
### Component Example
|
32
42
|
You can write your own templates on erb, haml or any other templating language.
|
33
43
|
Same goes with stylesheets and javascripts. You can use scss, sass or
|
@@ -1,4 +1,4 @@
|
|
1
|
-
<% depend_on Rails.root.join('app', 'components') %>
|
1
|
+
<% depend_on Rails.root.join('app', 'components').to_s %>
|
2
2
|
<% Dir.glob(Rails.root.join('app', 'components', '*')) do |component_dir|
|
3
3
|
component = File.basename component_dir
|
4
4
|
require_asset "#{component}/#{component}"
|
@@ -1,4 +1,4 @@
|
|
1
|
-
<% depend_on Rails.root.join('app', 'components') %>
|
1
|
+
<% depend_on Rails.root.join('app', 'components').to_s %>
|
2
2
|
<% Dir.glob(Rails.root.join('app', 'components', '*')).each do |component_dir|
|
3
3
|
component = File.basename component_dir
|
4
4
|
require_asset "#{component}/#{component}"
|
data/test/dummy/log/test.log
CHANGED
@@ -1437,3 +1437,75 @@ MountainView::ComponentHelperTest: test_renders_the_proper_component
|
|
1437
1437
|
------------------------------------------------------------------
|
1438
1438
|
ComponentGeneratorTest: test_Assert_all_files_are_properly_created
|
1439
1439
|
------------------------------------------------------------------
|
1440
|
+
------------------------------------------------------------------
|
1441
|
+
ComponentGeneratorTest: test_Assert_all_files_are_properly_created
|
1442
|
+
------------------------------------------------------------------
|
1443
|
+
--------------------------------------------------------------------
|
1444
|
+
MountainView::ComponentHelperTest: test_renders_the_proper_component
|
1445
|
+
--------------------------------------------------------------------
|
1446
|
+
Rendered app/components/header/_header.html.erb (1.5ms)
|
1447
|
+
---------------------------------------
|
1448
|
+
MountainViewTest: test_engine_is_loaded
|
1449
|
+
---------------------------------------
|
1450
|
+
------------------------------------------------------
|
1451
|
+
MountainViewTest: test_javascripts_are_properly_served
|
1452
|
+
------------------------------------------------------
|
1453
|
+
Started GET "/assets/mountain_view.js" for 127.0.0.1 at 2015-04-13 17:10:19 -0400
|
1454
|
+
------------------------------------------------------
|
1455
|
+
MountainViewTest: test_stylesheets_are_properly_served
|
1456
|
+
------------------------------------------------------
|
1457
|
+
Started GET "/assets/mountain_view.css" for 127.0.0.1 at 2015-04-13 17:10:19 -0400
|
1458
|
+
---------------------------------------
|
1459
|
+
MountainViewTest: test_engine_is_loaded
|
1460
|
+
---------------------------------------
|
1461
|
+
------------------------------------------------------
|
1462
|
+
MountainViewTest: test_javascripts_are_properly_served
|
1463
|
+
------------------------------------------------------
|
1464
|
+
Started GET "/assets/mountain_view.js" for 127.0.0.1 at 2015-04-13 17:11:49 -0400
|
1465
|
+
------------------------------------------------------
|
1466
|
+
MountainViewTest: test_stylesheets_are_properly_served
|
1467
|
+
------------------------------------------------------
|
1468
|
+
Started GET "/assets/mountain_view.css" for 127.0.0.1 at 2015-04-13 17:11:49 -0400
|
1469
|
+
--------------------------------------------------------------------
|
1470
|
+
MountainView::ComponentHelperTest: test_renders_the_proper_component
|
1471
|
+
--------------------------------------------------------------------
|
1472
|
+
Rendered app/components/header/_header.html.erb (1.1ms)
|
1473
|
+
------------------------------------------------------------------
|
1474
|
+
ComponentGeneratorTest: test_Assert_all_files_are_properly_created
|
1475
|
+
------------------------------------------------------------------
|
1476
|
+
------------------------------------------------------------------
|
1477
|
+
ComponentGeneratorTest: test_Assert_all_files_are_properly_created
|
1478
|
+
------------------------------------------------------------------
|
1479
|
+
--------------------------------------------------------------------
|
1480
|
+
MountainView::ComponentHelperTest: test_renders_the_proper_component
|
1481
|
+
--------------------------------------------------------------------
|
1482
|
+
Rendered app/components/header/_header.html.erb (1.1ms)
|
1483
|
+
---------------------------------------
|
1484
|
+
MountainViewTest: test_engine_is_loaded
|
1485
|
+
---------------------------------------
|
1486
|
+
------------------------------------------------------
|
1487
|
+
MountainViewTest: test_stylesheets_are_properly_served
|
1488
|
+
------------------------------------------------------
|
1489
|
+
Started GET "/assets/mountain_view.css" for 127.0.0.1 at 2015-04-13 17:12:04 -0400
|
1490
|
+
------------------------------------------------------
|
1491
|
+
MountainViewTest: test_javascripts_are_properly_served
|
1492
|
+
------------------------------------------------------
|
1493
|
+
Started GET "/assets/mountain_view.js" for 127.0.0.1 at 2015-04-13 17:12:04 -0400
|
1494
|
+
------------------------------------------------------
|
1495
|
+
MountainViewTest: test_stylesheets_are_properly_served
|
1496
|
+
------------------------------------------------------
|
1497
|
+
Started GET "/assets/mountain_view.css" for 127.0.0.1 at 2015-04-13 17:12:27 -0400
|
1498
|
+
------------------------------------------------------
|
1499
|
+
MountainViewTest: test_javascripts_are_properly_served
|
1500
|
+
------------------------------------------------------
|
1501
|
+
Started GET "/assets/mountain_view.js" for 127.0.0.1 at 2015-04-13 17:12:27 -0400
|
1502
|
+
---------------------------------------
|
1503
|
+
MountainViewTest: test_engine_is_loaded
|
1504
|
+
---------------------------------------
|
1505
|
+
--------------------------------------------------------------------
|
1506
|
+
MountainView::ComponentHelperTest: test_renders_the_proper_component
|
1507
|
+
--------------------------------------------------------------------
|
1508
|
+
Rendered app/components/header/_header.html.erb (1.4ms)
|
1509
|
+
------------------------------------------------------------------
|
1510
|
+
ComponentGeneratorTest: test_Assert_all_files_are_properly_created
|
1511
|
+
------------------------------------------------------------------
|
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.3.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ignacio Gutierrez
|
@@ -25,20 +25,6 @@ dependencies:
|
|
25
25
|
- - ">="
|
26
26
|
- !ruby/object:Gem::Version
|
27
27
|
version: 3.2.0
|
28
|
-
- !ruby/object:Gem::Dependency
|
29
|
-
name: sprockets
|
30
|
-
requirement: !ruby/object:Gem::Requirement
|
31
|
-
requirements:
|
32
|
-
- - "<"
|
33
|
-
- !ruby/object:Gem::Version
|
34
|
-
version: 3.0.0
|
35
|
-
type: :runtime
|
36
|
-
prerelease: false
|
37
|
-
version_requirements: !ruby/object:Gem::Requirement
|
38
|
-
requirements:
|
39
|
-
- - "<"
|
40
|
-
- !ruby/object:Gem::Version
|
41
|
-
version: 3.0.0
|
42
28
|
- !ruby/object:Gem::Dependency
|
43
29
|
name: sqlite3
|
44
30
|
requirement: !ruby/object:Gem::Requirement
|