RubyApp 0.7.2 → 0.7.3
Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile
CHANGED
@@ -45,11 +45,13 @@ namespace :ruby_app do
|
|
45
45
|
desc 'Start the server'
|
46
46
|
task :start, [:daemonize] => ['ruby_app:cache:destroy'] do |task, arguments|
|
47
47
|
daemonize = arguments.daemonize ? arguments.daemonize.to_b : true
|
48
|
+
puts "Starting ..."
|
48
49
|
system("cd ./lib/ruby_app; mkdir -p ./process/thin/log ./process/thin/pid; bundle exec thin --rackup configuration.ru --port 8000 --log ./process/thin/log/thin.log --pid ./process/thin/pid/thin.pid #{daemonize ? '--daemonize' : nil} start")
|
49
50
|
end
|
50
51
|
|
51
52
|
desc 'Stop the server'
|
52
53
|
task :stop do |task|
|
54
|
+
puts "Stopping ..."
|
53
55
|
system('cd ./lib/ruby_app; for pid in ./process/thin/pid/*.pid; do bundle exec thin --pid $pid stop; done')
|
54
56
|
end
|
55
57
|
|
data/lib/ruby_app/element.rb
CHANGED
@@ -127,7 +127,11 @@ module RubyApp
|
|
127
127
|
|
128
128
|
def update_text(selector, value)
|
129
129
|
_selector = ".ui-page-active #{selector}"
|
130
|
-
self.
|
130
|
+
self.update_document_text(_selector, value)
|
131
|
+
end
|
132
|
+
|
133
|
+
def update_document_text(selector, value)
|
134
|
+
self.execute("RubyApp.updateText(#{selector.to_json}, #{value.to_json});")
|
131
135
|
end
|
132
136
|
|
133
137
|
def update_value(selector, value, change = true)
|
@@ -3,6 +3,9 @@
|
|
3
3
|
String.prototype.blank_if = function(value) {
|
4
4
|
return this == value ? '' : this;
|
5
5
|
};
|
6
|
+
Date.prototype.tomorrow = function() {
|
7
|
+
return new Date(Date.now() + 24 * 60 * 60 * 1000);
|
8
|
+
};
|
6
9
|
var RubyApp = new function() {
|
7
10
|
var queue = [];
|
8
11
|
this.enQueue = function(_function) {
|
@@ -16,11 +16,13 @@ namespace :_APPLICATION_DOWNCODE_ do
|
|
16
16
|
desc 'Start the server'
|
17
17
|
task :start, [:daemonize] => ['_APPLICATION_DOWNCODE_:cache:destroy'] do |task, arguments|
|
18
18
|
daemonize = arguments.daemonize ? arguments.daemonize.to_b : true
|
19
|
+
puts "Starting ..."
|
19
20
|
system("mkdir -p ./process/thin/log ./process/thin/pid; bundle exec thin --rackup configuration.ru --port 8000 --log ./process/thin/log/thin.log --pid ./process/thin/pid/thin.pid #{daemonize ? '--daemonize' : nil} start")
|
20
21
|
end
|
21
22
|
|
22
23
|
desc 'Stop the server'
|
23
24
|
task :stop do |task|
|
25
|
+
puts "Stopping ..."
|
24
26
|
system('for pid in ./process/thin/pid/*.pid; do bundle exec thin --pid $pid stop; done')
|
25
27
|
end
|
26
28
|
|
data/lib/ruby_app/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: RubyApp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-03-
|
12
|
+
date: 2013-03-09 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bluecloth
|
@@ -1545,7 +1545,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
1545
1545
|
version: '0'
|
1546
1546
|
segments:
|
1547
1547
|
- 0
|
1548
|
-
hash:
|
1548
|
+
hash: 3510020064292693250
|
1549
1549
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
1550
1550
|
none: false
|
1551
1551
|
requirements:
|
@@ -1554,7 +1554,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
1554
1554
|
version: '0'
|
1555
1555
|
segments:
|
1556
1556
|
- 0
|
1557
|
-
hash:
|
1557
|
+
hash: 3510020064292693250
|
1558
1558
|
requirements: []
|
1559
1559
|
rubyforge_project:
|
1560
1560
|
rubygems_version: 1.8.25
|