y_support 2.0.0 → 2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/y_support/all.rb +1 -0
- data/lib/y_support/kde.rb +11 -0
- data/lib/y_support/version.rb +1 -1
- data/test/kde_test.rb +17 -0
- metadata +5 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a2b59628ebd1a97ba3e209f2fcca75eb09bc1364
|
4
|
+
data.tar.gz: 884168d18ee0ab113b03cdbe407a100d87e36035
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 55766a8280d39a64fab8cefbc0dd0e0fafc48bd11e9c3126803a7bae649334f20c04c588c923b33a58cb51dc7eaf3ca5b6a83741712221ccb7f7f609ebb61686
|
7
|
+
data.tar.gz: c74d4dcd445f18e12fec108c2e2deb60ab4dc957861fd7835de04246d6484c3f7513a35b02fd5467940825d7213f25ac0f7e36e035cb49949546f01ac6c43570
|
data/lib/y_support/all.rb
CHANGED
@@ -0,0 +1,11 @@
|
|
1
|
+
# -*- coding: utf-8 -*-
|
2
|
+
require 'y_support'
|
3
|
+
|
4
|
+
module YSupport::KDE
|
5
|
+
class << self
|
6
|
+
# display it with kioclient
|
7
|
+
def show_file_with_kioclient( fɴ_with_path )
|
8
|
+
system "sleep 0.2; kioclient exec 'file:%s'" % fɴ_with_path
|
9
|
+
end
|
10
|
+
end
|
11
|
+
end # module YSupport::KDE
|
data/lib/y_support/version.rb
CHANGED
data/test/kde_test.rb
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
#! /usr/bin/ruby
|
2
|
+
#encoding: utf-8
|
3
|
+
|
4
|
+
require 'test/unit'
|
5
|
+
require 'shoulda'
|
6
|
+
|
7
|
+
class KDETest < Test::Unit::TestCase
|
8
|
+
context "KDE" do
|
9
|
+
setup do
|
10
|
+
require 'y_support/kde'
|
11
|
+
end
|
12
|
+
|
13
|
+
should "have module method #show_file_with_kioclient" do
|
14
|
+
assert_respond_to YSupport::KDE, :show_file_with_kioclient
|
15
|
+
end
|
16
|
+
end # context KDE
|
17
|
+
end # class KDETest
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: y_support
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- boris
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-05-
|
11
|
+
date: 2013-05-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -71,6 +71,7 @@ files:
|
|
71
71
|
- lib/y_support/core_ext/symbol.rb
|
72
72
|
- lib/y_support/core_ext/symbol/misc.rb
|
73
73
|
- lib/y_support/inert_recorder.rb
|
74
|
+
- lib/y_support/kde.rb
|
74
75
|
- lib/y_support/local_object.rb
|
75
76
|
- lib/y_support/misc.rb
|
76
77
|
- lib/y_support/name_magic.rb
|
@@ -94,6 +95,7 @@ files:
|
|
94
95
|
- lib/y_support/version.rb
|
95
96
|
- test/abstract_algebra_test.rb
|
96
97
|
- test/inert_recorder_test.rb
|
98
|
+
- test/kde_test.rb
|
97
99
|
- test/local_object_test.rb
|
98
100
|
- test/misc_test.rb
|
99
101
|
- test/misc_test/test_module/fixture_class.rb
|
@@ -130,6 +132,7 @@ summary: LocalObject, RespondTo, InertRecorder, NullObject, NameMagic, core exte
|
|
130
132
|
test_files:
|
131
133
|
- test/abstract_algebra_test.rb
|
132
134
|
- test/inert_recorder_test.rb
|
135
|
+
- test/kde_test.rb
|
133
136
|
- test/local_object_test.rb
|
134
137
|
- test/misc_test.rb
|
135
138
|
- test/misc_test/test_module/fixture_class.rb
|