plasmoid 0.0.1 → 0.0.2
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 +1 -1
- data/lib/plasmoid/generator/options.rb +0 -5
- data/lib/plasmoid/generator/templates/contents/code/main.html +2 -19
- data/lib/plasmoid/tasks.rb +2 -1
- data/plasmoid.gemspec +2 -4
- metadata +4 -6
- data/lib/plasmoid/generator/templates/contents/code/page1.html +0 -11
- data/lib/plasmoid/generator/templates/contents/code/page2.html +0 -11
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.0.
|
|
1
|
+
0.0.2
|
|
@@ -26,11 +26,6 @@ module Plasmoid
|
|
|
26
26
|
self[:use_jquery] = true
|
|
27
27
|
end
|
|
28
28
|
|
|
29
|
-
o.on('--jquery-mobile', 'enable jquery mobile') do |o|
|
|
30
|
-
self[:use_jquery] = true
|
|
31
|
-
self[:use_jquery_mobile] = true
|
|
32
|
-
end
|
|
33
|
-
|
|
34
29
|
o.on('--jquery-ui', 'enable jquery ui') do |o|
|
|
35
30
|
self[:use_jquery_ui] = true
|
|
36
31
|
end
|
|
@@ -5,34 +5,17 @@
|
|
|
5
5
|
<title><%= options[:project_name] %></title>
|
|
6
6
|
|
|
7
7
|
<% if options[:use_jquery] %>
|
|
8
|
-
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script>
|
|
8
|
+
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script>
|
|
9
9
|
<% end %>
|
|
10
10
|
<% if options[:use_jquery_ui] %>
|
|
11
11
|
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script>
|
|
12
12
|
<link rel="stylesheet" type="text/css" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/ui-lightness/jquery-ui.css" />
|
|
13
13
|
<% end %>
|
|
14
14
|
|
|
15
|
-
<% if options[:use_jquery_mobile] %>
|
|
16
|
-
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.0a2/jquery.mobile-1.0a2.min.css" />
|
|
17
|
-
<script src="http://code.jquery.com/mobile/1.0a2/jquery.mobile-1.0a2.min.js"></script>
|
|
18
|
-
<% end %>
|
|
19
|
-
|
|
20
15
|
<script type="text/javascript" src="application.js"></script>
|
|
21
16
|
<link rel="stylesheet" type="text/css" href="style.css" />
|
|
22
17
|
</head>
|
|
23
18
|
<body>
|
|
24
|
-
|
|
25
|
-
<iframe height='400' src='http://plasma.kde.org/' width='100%'></iframe>
|
|
26
|
-
<% else %>
|
|
27
|
-
<div data-role="page" data-theme="b">
|
|
28
|
-
<div data-role="content">
|
|
29
|
-
<ul data-role="listview" data-theme="c" data-dividertheme="b">
|
|
30
|
-
<li data-role="list-divider">Pages</li>
|
|
31
|
-
<li><a href="page1.html">Page 1</a></li>
|
|
32
|
-
<li><a href="page2.html">Page 2</a></li>
|
|
33
|
-
</ul>
|
|
34
|
-
</div>
|
|
35
|
-
</div>
|
|
36
|
-
<% end %>
|
|
19
|
+
<iframe height='400' src='http://plasma.kde.org/' width='100%'></iframe>
|
|
37
20
|
</body>
|
|
38
21
|
</html>
|
data/lib/plasmoid/tasks.rb
CHANGED
|
@@ -31,10 +31,11 @@ end
|
|
|
31
31
|
desc "Installs the plasmoid"
|
|
32
32
|
task :install => [:_init, :pkg] do
|
|
33
33
|
Plasmoid::Package.new("#{@filename}.zip").install
|
|
34
|
+
sleep 2
|
|
34
35
|
end
|
|
35
36
|
|
|
36
37
|
desc "View plasmoid"
|
|
37
|
-
task :view => [:_init, :install] do
|
|
38
|
+
task :view => [:_init, :uninstall, :install] do
|
|
38
39
|
Plasmoid::Package.new("#{@filename}.zip").run
|
|
39
40
|
end
|
|
40
41
|
|
data/plasmoid.gemspec
CHANGED
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
|
|
6
6
|
Gem::Specification.new do |s|
|
|
7
7
|
s.name = %q{plasmoid}
|
|
8
|
-
s.version = "0.0.
|
|
8
|
+
s.version = "0.0.2"
|
|
9
9
|
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
|
11
11
|
s.authors = ["David A. Cuadrado"]
|
|
12
|
-
s.date = %q{2010-
|
|
12
|
+
s.date = %q{2010-12-01}
|
|
13
13
|
s.default_executable = %q{plasmoid}
|
|
14
14
|
s.description = %q{ruby gem to build and work with KDE plasmoids}
|
|
15
15
|
s.email = %q{krawek@gmail.com}
|
|
@@ -36,8 +36,6 @@ Gem::Specification.new do |s|
|
|
|
36
36
|
"lib/plasmoid/generator/templates/Rakefile",
|
|
37
37
|
"lib/plasmoid/generator/templates/contents/code/application.js",
|
|
38
38
|
"lib/plasmoid/generator/templates/contents/code/main.html",
|
|
39
|
-
"lib/plasmoid/generator/templates/contents/code/page1.html",
|
|
40
|
-
"lib/plasmoid/generator/templates/contents/code/page2.html",
|
|
41
39
|
"lib/plasmoid/generator/templates/contents/code/style.css",
|
|
42
40
|
"lib/plasmoid/generator/templates/metadata.desktop",
|
|
43
41
|
"lib/plasmoid/haml.rb",
|
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: plasmoid
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 27
|
|
5
5
|
prerelease: false
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 0
|
|
9
|
-
-
|
|
10
|
-
version: 0.0.
|
|
9
|
+
- 2
|
|
10
|
+
version: 0.0.2
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- David A. Cuadrado
|
|
@@ -15,7 +15,7 @@ autorequire:
|
|
|
15
15
|
bindir: bin
|
|
16
16
|
cert_chain: []
|
|
17
17
|
|
|
18
|
-
date: 2010-
|
|
18
|
+
date: 2010-12-01 00:00:00 -05:00
|
|
19
19
|
default_executable: plasmoid
|
|
20
20
|
dependencies:
|
|
21
21
|
- !ruby/object:Gem::Dependency
|
|
@@ -75,8 +75,6 @@ files:
|
|
|
75
75
|
- lib/plasmoid/generator/templates/Rakefile
|
|
76
76
|
- lib/plasmoid/generator/templates/contents/code/application.js
|
|
77
77
|
- lib/plasmoid/generator/templates/contents/code/main.html
|
|
78
|
-
- lib/plasmoid/generator/templates/contents/code/page1.html
|
|
79
|
-
- lib/plasmoid/generator/templates/contents/code/page2.html
|
|
80
78
|
- lib/plasmoid/generator/templates/contents/code/style.css
|
|
81
79
|
- lib/plasmoid/generator/templates/metadata.desktop
|
|
82
80
|
- lib/plasmoid/haml.rb
|