ruby-station 0.1.4 → 0.1.5
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.
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.1.
|
|
1
|
+
0.1.5
|
data/ruby-station.gemspec
CHANGED
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
|
|
6
6
|
Gem::Specification.new do |s|
|
|
7
7
|
s.name = %q{ruby-station}
|
|
8
|
-
s.version = "0.1.
|
|
8
|
+
s.version = "0.1.5"
|
|
9
9
|
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
|
11
11
|
s.authors = ["Yutaka HARA"]
|
|
12
|
-
s.date = %q{2009-10-
|
|
12
|
+
s.date = %q{2009-10-24}
|
|
13
13
|
s.default_executable = %q{ruby-station}
|
|
14
14
|
s.description = %q{Create, Distribute, and Install Ruby applications easily}
|
|
15
15
|
s.email = %q{yutaka.hara/at/gmail.com}
|
|
@@ -67,10 +67,15 @@ When /I choose '(.*)'/ do |field|
|
|
|
67
67
|
$browser.radio(:id, find_label(field).for).set(true)
|
|
68
68
|
end
|
|
69
69
|
|
|
70
|
-
When /I visit the (.+) page
|
|
71
|
-
path = case
|
|
72
|
-
when 'index'
|
|
73
|
-
|
|
70
|
+
When /I visit the (.+) page(?: of '(.*) (.*)')?/ do |page, name, version|
|
|
71
|
+
path = case page
|
|
72
|
+
when 'index'
|
|
73
|
+
'/'
|
|
74
|
+
when 'uninstall'
|
|
75
|
+
id = Application.first(:name => name, :version => version).id
|
|
76
|
+
"/applications/uninstall/#{id}"
|
|
77
|
+
else
|
|
78
|
+
raise "unknown page name: #{page}"
|
|
74
79
|
end
|
|
75
80
|
$browser.goto "#{@host}#{path}"
|
|
76
81
|
assert_successful_response
|
|
@@ -3,10 +3,17 @@ Feature: Uninstall
|
|
|
3
3
|
As an application user
|
|
4
4
|
I want to uninstall an unused application
|
|
5
5
|
|
|
6
|
-
Scenario:
|
|
6
|
+
Scenario: Show uninstall page
|
|
7
7
|
Given I have 'hello-ruby-station 0.3.1' and its data
|
|
8
8
|
And I visit the index page
|
|
9
9
|
When I press the uninstall button of 'hello-ruby-station 0.3.1'
|
|
10
|
+
Then I should see 'Uninstall'
|
|
11
|
+
And I should see 'hello-ruby-station 0.3.1'
|
|
12
|
+
|
|
13
|
+
Scenario: Uninstall a gem
|
|
14
|
+
Given I have 'hello-ruby-station 0.3.1' and its data
|
|
15
|
+
And I visit the uninstall page of 'hello-ruby-station 0.3.1'
|
|
16
|
+
When I press 'ok'
|
|
10
17
|
And I wait while the spinner is shown
|
|
11
18
|
Then I should not have 'hello-ruby-station 0.3.1'
|
|
12
19
|
And data files of 'hello-ruby-station 0.3.1' should not exist
|
|
@@ -1,17 +1,26 @@
|
|
|
1
1
|
<div id="uninstall">
|
|
2
2
|
<h2>Uninstall</h2>
|
|
3
3
|
|
|
4
|
-
<
|
|
4
|
+
<div id="warning">
|
|
5
|
+
Really uninstall #{@app.name} #{@app.version}?<br>
|
|
6
|
+
<br>
|
|
7
|
+
Application data of #{@app.name} #{@app.version} will be deleted.
|
|
8
|
+
</div>
|
|
5
9
|
|
|
6
10
|
<pre id="result">
|
|
7
|
-
<
|
|
11
|
+
<input type='button' id='uninstall_btn' value='ok'></input>
|
|
12
|
+
<img id="spinner" src='/spinner.gif' style='display:none;'>
|
|
8
13
|
</pre>
|
|
9
14
|
|
|
10
|
-
<a href='/'>back</a>
|
|
15
|
+
<a href='/'>back(cancel)</a>
|
|
11
16
|
</div>
|
|
12
17
|
|
|
13
18
|
<script type="text/javascript">
|
|
14
|
-
|
|
19
|
+
$(function(){
|
|
20
|
+
$("#uninstall_btn").click(function(){
|
|
21
|
+
$("#uninstall_btn").hide();
|
|
22
|
+
$("#spinner").show();
|
|
15
23
|
$("#result").load("#{r(:_uninstall, @app.id)}");
|
|
16
24
|
});
|
|
25
|
+
});
|
|
17
26
|
</script>
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ruby-station
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Yutaka HARA
|
|
@@ -9,7 +9,7 @@ autorequire:
|
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
11
|
|
|
12
|
-
date: 2009-10-
|
|
12
|
+
date: 2009-10-24 00:00:00 +09:00
|
|
13
13
|
default_executable: ruby-station
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|