smalruby-editor 0.0.10 → 0.0.11
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 +4 -4
- data/app/assets/javascripts/editor.js.coffee.erb +1 -3
- data/bin/smalruby-editor +14 -5
- data/lib/smalruby_editor/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c69e2a88e97ff7653534ce1a531162647e698b2a
|
|
4
|
+
data.tar.gz: b452e1815cc8320ec63e761b6cda8edeb1db1b57
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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('
|
|
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
|
|
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.
|
|
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-
|
|
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-
|
|
365
|
-
- public/assets/application-
|
|
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
|