bulmajs-rails 0.3.2 → 0.3.3

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
  SHA256:
3
- metadata.gz: 8cf8f832a508485147ff0eaf6a221d3203a433915c92ee9bcb4d8d59acbdc968
4
- data.tar.gz: 934a656391f56b0a1867cf2f3c4de012428023d53b5ff6a454972e3e0c5f318b
3
+ metadata.gz: b11bf104d0781da712b10dde84f50c6c974fb859bccad8985765baa63a7fb5ce
4
+ data.tar.gz: fb3f3c28add1cb29f83c550fb1fe6adbf499ea90e609fefa9527f4320dcb7153
5
5
  SHA512:
6
- metadata.gz: 6e2effa1fd1a895eea4a65b5a0ff9e94f090046d3469c69bafadef3d62fe658a12817468dd46908cb3ca5c1391ce6dfd5a50ec08478a2a00a17e412f968f4c4d
7
- data.tar.gz: aab29f95f67e430e76a5a9ff69c1cf439d8892b1e5c69cdbc528e7bb4d4f2a2c3a76e5d6b3fbeada1671263f240666ccdc6047af3960bf9bf899c491b4372c0e
6
+ metadata.gz: f79c83950eba8b072a8a58cb8ac0629a867ca071419c1b3abaa2bf3e12fe0c7fa61f4cf5f4dc0ce9fced47028d610ee891f60af469fd50813e9d13f6d3a6aa13
7
+ data.tar.gz: '0608e7c75655b32544a3854c3cae88b996bf6bfe9632c93cd0554d270068c5d1acb0871ecfaf43b503fc7b2481be3c60f893ec78c974a13ddb4262222836a74e'
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- bulmajs-rails (0.3.2)
4
+ bulmajs-rails (0.3.3)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/README.md CHANGED
@@ -30,6 +30,8 @@ Now you need to edit your `app/assets/javascripts/application.js` file and add t
30
30
  //= require bulma
31
31
  ```
32
32
 
33
+ ## Turbolinks is now required for this wrapper.
34
+
33
35
  ## Usage Examples
34
36
 
35
37
  ### Basic Tabs
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = "bulmajs-rails"
7
- spec.version = "0.3.2"
7
+ spec.version = "0.3.3"
8
8
  spec.authors = ["Douglas Harrington Muhone"]
9
9
  spec.email = ["theeomm@outlook.com"]
10
10
 
File without changes
@@ -145,7 +145,7 @@
145
145
  (function (module, __webpack_exports__, __webpack_require__) {
146
146
 
147
147
  "use strict";
148
- eval("__webpack_require__.r(__webpack_exports__);\nconst Bulma = {\n /**\n * Current BulmaJS version.\n * @type {String}\n */\n VERSION: '0.4.0',\n\n /**\n * Helper method to create a new plugin.\n * @param {String} key The plugin's key\n * @param {Object} options The options to be passed to the plugin\n * @return {Object} The newly created plugin instance\n */\n create(key, options) {\n if (!key || !Bulma.hasOwnProperty(key)) {\n throw new Error('[BulmaJS] A plugin with the key \\'' + key + '\\' has not been registered.');\n }\n\n return Bulma[key].create(options);\n },\n\n /**\n * Register a new plugin\n * @param {String} key The key to register the plugin under\n * @param {Object} plugin The plugin's main constructor\n * @return {undefined}\n */\n registerPlugin(key, plugin) {\n if (!key) {\n throw new Error('[BulmaJS] Key attribute is required.');\n }\n\n this[key] = plugin;\n },\n\n /**\n * Parse the HTML DOM searching for data-bulma attributes. We will then pass\n * each element to the appropriate plugin to handle the required processing.\n * \n * @return {undefined}\n */\n traverseDOM() {\n let elements = document.querySelectorAll('[data-bulma]');\n\n elements.forEach(function (element) {\n let plugin = element.getAttribute('data-bulma');\n\n if (!Bulma.hasOwnProperty(plugin)) {\n throw new Error('[BulmaJS] Plugin with the key \\'' + plugin + '\\' has not been registered.');\n }\n\n if (Bulma[plugin].hasOwnProperty('handleDomParsing')) {\n Bulma[element.getAttribute('data-bulma')].handleDomParsing(element);\n }\n });\n },\n\n /**\n * Create an element and assign classes\n * @param {string} name The name of the element to create\n * @param {array} classes An array of classes to add to the element\n * @return {HTMLElement} The newly created element\n */\n createElement(name, classes) {\n if (!classes) {\n classes = [];\n }\n\n if (typeof classes === 'string') {\n classes = [classes];\n }\n\n let elem = document.createElement(name);\n\n classes.forEach(className => {\n elem.classList.add(className);\n });\n\n return elem;\n }\n};\n\ndocument.addEventListener('DOMContentLoaded', () => {\n Bulma.traverseDOM();\n});\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (Bulma);\n\n//# sourceURL=webpack:///./src/core.js?");
148
+ eval("__webpack_require__.r(__webpack_exports__);\nconst Bulma = {\n /**\n * Current BulmaJS version.\n * @type {String}\n */\n VERSION: '0.4.0',\n\n /**\n * Helper method to create a new plugin.\n * @param {String} key The plugin's key\n * @param {Object} options The options to be passed to the plugin\n * @return {Object} The newly created plugin instance\n */\n create(key, options) {\n if (!key || !Bulma.hasOwnProperty(key)) {\n throw new Error('[BulmaJS] A plugin with the key \\'' + key + '\\' has not been registered.');\n }\n\n return Bulma[key].create(options);\n },\n\n /**\n * Register a new plugin\n * @param {String} key The key to register the plugin under\n * @param {Object} plugin The plugin's main constructor\n * @return {undefined}\n */\n registerPlugin(key, plugin) {\n if (!key) {\n throw new Error('[BulmaJS] Key attribute is required.');\n }\n\n this[key] = plugin;\n },\n\n /**\n * Parse the HTML DOM searching for data-bulma attributes. We will then pass\n * each element to the appropriate plugin to handle the required processing.\n * \n * @return {undefined}\n */\n traverseDOM() {\n let elements = document.querySelectorAll('[data-bulma]');\n\n elements.forEach(function (element) {\n let plugin = element.getAttribute('data-bulma');\n\n if (!Bulma.hasOwnProperty(plugin)) {\n throw new Error('[BulmaJS] Plugin with the key \\'' + plugin + '\\' has not been registered.');\n }\n\n if (Bulma[plugin].hasOwnProperty('handleDomParsing')) {\n Bulma[element.getAttribute('data-bulma')].handleDomParsing(element);\n }\n });\n },\n\n /**\n * Create an element and assign classes\n * @param {string} name The name of the element to create\n * @param {array} classes An array of classes to add to the element\n * @return {HTMLElement} The newly created element\n */\n createElement(name, classes) {\n if (!classes) {\n classes = [];\n }\n\n if (typeof classes === 'string') {\n classes = [classes];\n }\n\n let elem = document.createElement(name);\n\n classes.forEach(className => {\n elem.classList.add(className);\n });\n\n return elem;\n }\n};\n\ndocument.addEventListener('turbolinks:load', () => {\n Bulma.traverseDOM();\n});\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (Bulma);\n\n//# sourceURL=webpack:///./src/core.js?");
149
149
 
150
150
  /***/
151
151
  }),
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bulmajs-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Douglas Harrington Muhone
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-05-09 00:00:00.000000000 Z
11
+ date: 2018-05-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -68,12 +68,12 @@ files:
68
68
  - LICENSE.txt
69
69
  - README.md
70
70
  - Rakefile
71
- - app/assets/javascripts/.keep
72
- - app/assets/javascripts/bulma.js
73
71
  - bin/console
74
72
  - bin/setup
75
73
  - bulmajs-rails.gemspec
76
74
  - lib/bulmajs-rails.rb
75
+ - vendor/assets/javascripts/.keep
76
+ - vendor/assets/javascripts/bulma.js
77
77
  homepage: https://github.com/theeomm/bulmajs-rails
78
78
  licenses:
79
79
  - MIT