smalruby-editor 0.0.10 → 0.0.11

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of smalruby-editor might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 189408a2cf40edcd1f529d43790cc1c65023d61f
4
- data.tar.gz: 7be212709cd78cb3392e4eaddac00314267af3df
3
+ metadata.gz: c69e2a88e97ff7653534ce1a531162647e698b2a
4
+ data.tar.gz: b452e1815cc8320ec63e761b6cda8edeb1db1b57
5
5
  SHA512:
6
- metadata.gz: 6c61235ba04057a33bf65b19ca94eeefc0ea78ac0ec72dad9a164507a59a5367facd2bb94fa7180ebfb1599c7d4321ea94d448a51017888f9ff21239effbe8ab
7
- data.tar.gz: 83f3ced4daa0b687af98b7645e5d922905cafda68b3fd9287fd27fb07b8e6f9e935446bbf21bb97cd0af87900476b66cdd1648362e1872b2fb2151913fd20463
6
+ metadata.gz: a964c4d0563850e93a14b96a7a345682ce19daeeca42b53eb6a47f017c3df279aabb255936b08ca0dc0b6074869a92e28267f13df345b25a32c094951445ca38
7
+ data.tar.gz: 9f1535ed24a5ecd35a2f0a9dda7bb2779e023cd04476dd52227c4823dd69c0afe6b1fc118dc0bcc156c03d1af6a1227bd7a33a1c6e7213146deb36b305a75dfb
@@ -19,9 +19,7 @@ errorMessage = (msg, selector = '#messages') ->
19
19
  .append('<h4><i class="icon-exclamation-sign"></i>エラー</h4>')
20
20
  .append(msg)
21
21
  $(selector).append(html)
22
- html.fadeIn('slow')
23
- .delay(10000)
24
- .fadeOut('slow')
22
+ html.fadeIn('fast')
25
23
 
26
24
  $ ->
27
25
  saving = false
data/bin/smalruby-editor CHANGED
@@ -46,11 +46,6 @@ module Rails
46
46
  end
47
47
  end
48
48
 
49
- uri = "http://localhost:#{options[:Port]}"
50
- launchy = Launchy.open(uri) do |exception|
51
- puts "Attempted to open #{uri} and failed because #{exception}"
52
- end
53
-
54
49
  super
55
50
  ensure
56
51
  # The '-h' option calls exit before @options is set.
@@ -69,6 +64,20 @@ module Rails
69
64
  config: File.expand_path("config.ru")
70
65
  })
71
66
  end
67
+
68
+ private
69
+
70
+ def parse_options_with_start_callback(args)
71
+ options = parse_options_without_start_callback(args)
72
+ options[:StartCallback] = -> {
73
+ uri = "http://localhost:#{options[:Port]}"
74
+ launchy = Launchy.open(uri) do |exception|
75
+ puts "Attempted to open #{uri} and failed because #{exception}"
76
+ end
77
+ }
78
+ options
79
+ end
80
+ alias_method_chain :parse_options, :start_callback
72
81
  end
73
82
  end
74
83
 
@@ -1,3 +1,3 @@
1
1
  module SmalrubyEditor
2
- VERSION = '0.0.10'
2
+ VERSION = '0.0.11'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: smalruby-editor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.10
4
+ version: 0.0.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kouji Takao
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-01-13 00:00:00.000000000 Z
11
+ date: 2014-01-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -361,8 +361,8 @@ files:
361
361
  - spec/turnip_helper.rb
362
362
  - vendor/assets/javascripts/.keep
363
363
  - vendor/assets/stylesheets/.keep
364
- - public/assets/application-a50281f6a3e2eef79882cacb6d107c26.js
365
- - public/assets/application-a50281f6a3e2eef79882cacb6d107c26.js.gz
364
+ - public/assets/application-eff4fb09a71dae23dc9b3962bcd44fa8.js
365
+ - public/assets/application-eff4fb09a71dae23dc9b3962bcd44fa8.js.gz
366
366
  - public/assets/application-f51ea0e777d97f12a8ce84308f31eb57.css
367
367
  - public/assets/application-f51ea0e777d97f12a8ce84308f31eb57.css.gz
368
368
  - public/assets/favicon-c7ae857bb9d06de8742ae2d337157e83.ico