semantic-rails-ui 0.0.8 → 0.0.9

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: 4d067b2fa1e23060011f603071d0064cf0f32bff
4
- data.tar.gz: 47f2252faa81dcea5c137a1161fa088026fd9a39
3
+ metadata.gz: e3b2dfcb1966a16ac0dae4c185ba588d0aab3f72
4
+ data.tar.gz: df4de4f6a6d550ddf3c7932adafe77545b34bfeb
5
5
  SHA512:
6
- metadata.gz: e1598fab2ec74381cac59f56241a1c07aca865585e2bda73bc2cb841fd88b5459243745513b865f70bf5a3675308a6ed6cb876ac414339de9ac7323ec0031cbc
7
- data.tar.gz: c44418ded1ccd04a151d8ffaca7b001a585b8d978d76e0fed49b637c3bb0e45fefe2e42d47286df2e7673923a7163bc01aa148670478266abc4187012784e002
6
+ metadata.gz: 06d5394ddd8d87618dd3bd20cbf1dc5d51fb125d9f1dc4a44890d07f3b0709c13cbc1a0ce860867cad8451c13cc469bf588a060135072b5031cf999981ef982e
7
+ data.tar.gz: 68cb8954d4697ba0b97117e6706d1ab50950ef933a930a32f1dc1b8f6990f490466646e6edece6eec09f476574f6ed41f5e2363519703f3d69efb7379d7807af
@@ -11,8 +11,6 @@
11
11
  // about supported directives.
12
12
  //
13
13
  //= require semantic-ui
14
- //= require handlebars.runtime
15
- //= require semantic-rails-ui/templates
16
14
  //= require semantic-rails-ui/menu
17
15
  //= require semantic-rails-ui/message
18
16
  //= require semantic-rails-ui/confirm
@@ -1,6 +1,20 @@
1
1
  jQuery ->
2
2
  $.rails.confirm = (message) ->
3
- $('body').append HandlebarsTemplates['templates/confirm'](message: message)
3
+ confirm_dialog = """
4
+ <div id="ui-confirm-dialog" class="ui small modal">
5
+ <div class="header">Confirmation dialog</div>
6
+ <div class="content">#{message}</div>
7
+ <div class="actions">
8
+ <div class="ui red basic cancel inverted button">
9
+ <i class="remove icon"></i>No
10
+ </div>
11
+ <div class="ui green ok inverted button">
12
+ <i class="checkmark icon"></i>Yes
13
+ </div>
14
+ </div>
15
+ </div>
16
+ """
17
+ $('body').append(confirm_dialog)
4
18
  $('ui-confirm-dialog').modal(
5
19
  'closable: false'
6
20
  onApprove: -> return true
@@ -1,3 +1,3 @@
1
1
  module SemanticRailsUi
2
- VERSION = '0.0.8'
2
+ VERSION = '0.0.9'
3
3
  end
@@ -27,5 +27,4 @@ Gem::Specification.new do |spec|
27
27
  spec.add_dependency "rails", "~> 4.2.6"
28
28
  spec.add_dependency "semantic-ui-sass", "~> 2.1.8"
29
29
  spec.add_dependency "simple_form", "~> 3.2.1"
30
- spec.add_dependency "handlebars_assets", "~> 0.20.2"
31
30
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: semantic-rails-ui
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Igor Jancev
@@ -164,20 +164,6 @@ dependencies:
164
164
  - - "~>"
165
165
  - !ruby/object:Gem::Version
166
166
  version: 3.2.1
167
- - !ruby/object:Gem::Dependency
168
- name: handlebars_assets
169
- requirement: !ruby/object:Gem::Requirement
170
- requirements:
171
- - - "~>"
172
- - !ruby/object:Gem::Version
173
- version: 0.20.2
174
- type: :runtime
175
- prerelease: false
176
- version_requirements: !ruby/object:Gem::Requirement
177
- requirements:
178
- - - "~>"
179
- - !ruby/object:Gem::Version
180
- version: 0.20.2
181
167
  description: Create beautiful hrml layouts with semantic-ui, simple_form and rails
182
168
  email:
183
169
  - igor@masterybits.com
@@ -199,7 +185,6 @@ files:
199
185
  - app/assets/javascripts/semantic-rails-ui/confirm.coffee
200
186
  - app/assets/javascripts/semantic-rails-ui/menu.coffee
201
187
  - app/assets/javascripts/semantic-rails-ui/message.coffee
202
- - app/assets/javascripts/semantic-rails-ui/templates/confirm.hbs
203
188
  - app/assets/stylesheets/semantic-rails-ui.sass
204
189
  - app/assets/stylesheets/semantic-rails-ui/.keep
205
190
  - app/helpers/semantic_rails_ui/ui_helper.rb
@@ -1,12 +0,0 @@
1
- <div id="ui-confirm-dialog" class="ui small modal">
2
- <div class="header">Confirmation dialog</div>
3
- <div class="content">{{ message }}</div>
4
- <div class="actions">
5
- <div class="ui red basic cancel inverted button">
6
- <i class="remove icon"></i>No
7
- </div>
8
- <div class="ui green ok inverted button">
9
- <i class="checkmark icon"></i>Yes
10
- </div>
11
- </div>
12
- </div>