volt-materialize 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +26 -3
- data/VERSION +1 -1
- data/volt-bootstrap.gemspec +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 64c3e082574a9ee464e69b4df81d9a078df6b522
|
4
|
+
data.tar.gz: c7f3f0ad3f20324fc9b85dfd49f86b7b52832c17
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4527c8fdff0bc85d09a48350beba490b06fb887dff827adfcfd55647f2e21211449b08223a469745b2c20038023d4bd783d3ff6cf5cee883bb2367770eb65bbb
|
7
|
+
data.tar.gz: 49aded51d5e85d9027a61bd3d50a6e8b40d59565e500737bede4f3c7a86eecd5359afb9180bb8dff51b65a61e30a95b3c49c5ffd43fd02722f5a9899c2866dbc
|
data/README.md
CHANGED
@@ -10,7 +10,7 @@ Add this line to your application's Gemfile:
|
|
10
10
|
|
11
11
|
Add the bootstrap component to your application's `app/main/config/dependencies.rb`:
|
12
12
|
|
13
|
-
|
13
|
+
component 'materialze'
|
14
14
|
|
15
15
|
And then execute:
|
16
16
|
|
@@ -20,9 +20,32 @@ And then execute:
|
|
20
20
|
|
21
21
|
Now you can use Materializecss in your application's views. For more information on how to use it visit http://materializecss.com/
|
22
22
|
|
23
|
+
### Javascript Components
|
24
|
+
|
25
|
+
Certain elements (for example the tooltip) need to be initialised since they are added dynamically in Volt. Since Volt uses Opal, this will need to be translated. This can be done inside of your controller:
|
26
|
+
|
27
|
+
`app/main/controllers/main_controller.rb`:
|
28
|
+
|
29
|
+
def index
|
30
|
+
# Add code for when the index view is loaded
|
31
|
+
Document.ready? do
|
32
|
+
if RUBY_PLATFORM == 'opal'
|
33
|
+
# run some JS code
|
34
|
+
`$('.tooltipped').tooltip({delay: 50});`
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
38
|
+
|
39
|
+
`app/main/views/main/index.html`:
|
40
|
+
|
41
|
+
<a class="btn tooltipped" data-position="bottom" data-delay="50" data-tooltip="I am tooltip">Hover me!</a>
|
42
|
+
|
43
|
+
This requires Volt -v '0.8.27.beta3' or higher.
|
44
|
+
|
23
45
|
## Changelog
|
24
46
|
|
25
|
-
0.0.
|
47
|
+
0.0.3 - Fixes fonts and icon loading issue
|
48
|
+
0.0.1 - Add materialize alpha release v0.95.3
|
26
49
|
|
27
50
|
## Contributing
|
28
51
|
|
@@ -30,4 +53,4 @@ Now you can use Materializecss in your application's views. For more information
|
|
30
53
|
2. Create your feature branch (`git checkout -b my-new-feature`)
|
31
54
|
3. Commit your changes (`git commit -am 'Add some feature'`)
|
32
55
|
4. Push to the branch (`git push origin my-new-feature`)
|
33
|
-
5. Create new Pull Request
|
56
|
+
5. Create new Pull Request
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.4
|
data/volt-bootstrap.gemspec
CHANGED
@@ -19,6 +19,6 @@ Gem::Specification.new do |spec|
|
|
19
19
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
20
20
|
spec.require_paths = ["lib"]
|
21
21
|
|
22
|
-
spec.add_development_dependency "volt"
|
22
|
+
spec.add_development_dependency "volt", '>= 0.8.27.beta3'
|
23
23
|
spec.add_development_dependency "rake"
|
24
24
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: volt-materialize
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adam Cooper
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 0.8.27.beta3
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: 0.8.27.beta3
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|