motorhead 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 246da5136e75d7169d3ec087b9eae348b6bee1c5
4
- data.tar.gz: b2ba78b7defc6ad3cfee28339cab1a054279c59d
3
+ metadata.gz: a0c0c94f844debf837a5389ea18d1285e3b8adbe
4
+ data.tar.gz: 43bad5d4081dee744373c0f419b6768fa48e1769
5
5
  SHA512:
6
- metadata.gz: 933ed54450abf427c2bc8a11b12586b930f399eb395eec12562224a1ecbadd1dcbdfe7aa3107c54ebe6138abaa438a16b0663886ec80850cdb3f75bbc6f93d56
7
- data.tar.gz: 1bdf2fb57cdde93a48fa81e22d0bc160256217dc7a8eaa08597eb60405b8e47aa1f8310179b745f5a316a0c501c0e7039d998f66112d36e0dd68760ed2280930
6
+ metadata.gz: 3a7e7dd1a34542643643e209813e21bbf78631ac937ea217a46737e35a9b6bc24a34f1563232382d34a97790e3c18a52a84c055e9cd3571100321046bb8b645f
7
+ data.tar.gz: e8d874d0917f6ae92ecbed484954dc03e3a1ea214ba414ebb092564234c313eb998e0fa20a1d3ef06390711f137206d81d3d00b84ae08c943ef4444ad67375f4
@@ -1,11 +1,10 @@
1
- <%= link_to '㊙️', road_crew.engine_settings_path, id: 'road_crew_button', class: 'closed', remote: true %>
1
+ <% label ||= '㊙️' %>
2
+ <%= link_to label, road_crew.engine_settings_path, id: 'road_crew_button', class: 'closed', remote: true %>
2
3
  <div id="road_crew_container" style="position:fixed; bottom: 0px; right: 0px"></div>
3
4
  <script type="text/javascript">
4
- (function() {
5
- $(function() {
6
- $("#road_crew_button").on("ajax:success", function(e, data, status, xhr) {
7
- $("#road_crew_container").html(xhr.responseText);
8
- })
9
- });
10
- }).call(this);
5
+ window.onload = function() {
6
+ $("#road_crew_button").on("ajax:success", function(e, data, status, xhr) {
7
+ $("#road_crew_container").html(xhr.responseText);
8
+ })
9
+ };
11
10
  </script>
@@ -1,3 +1,3 @@
1
1
  module Motorhead
2
- VERSION = '0.3.0'.freeze
2
+ VERSION = '0.3.1'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: motorhead
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Akira Matsuda
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-11-11 00:00:00.000000000 Z
11
+ date: 2015-11-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -134,9 +134,7 @@ files:
134
134
  - lib/motorhead/engine.rb
135
135
  - lib/motorhead/road_crew.rb
136
136
  - lib/motorhead/road_crew/app/assets/javascripts/road_crew/application.js
137
- - lib/motorhead/road_crew/app/assets/javascripts/road_crew/engine_settings.js
138
137
  - lib/motorhead/road_crew/app/assets/stylesheets/road_crew/application.css
139
- - lib/motorhead/road_crew/app/assets/stylesheets/road_crew/engine_settings.scss
140
138
  - lib/motorhead/road_crew/app/controllers/road_crew/engine_settings_controller.rb
141
139
  - lib/motorhead/road_crew/app/views/road_crew/_button.html.erb
142
140
  - lib/motorhead/road_crew/app/views/road_crew/engine_settings/index.html.erb
@@ -1,2 +0,0 @@
1
- // Place all the behaviors and hooks related to the matching controller here.
2
- // All this logic will automatically be available in application.js.
@@ -1,3 +0,0 @@
1
- // Place all the styles related to the road_crew/engine_settings controller here.
2
- // They will automatically be included in application.css.
3
- // You can use Sass (SCSS) here: http://sass-lang.com/