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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 759b0ff1cab2ec03f748370b5cf7914ba85fffd7
4
- data.tar.gz: 05aa1789b0a44fac0e98a7e3f1be9dc9bd77e726
3
+ metadata.gz: a2b59628ebd1a97ba3e209f2fcca75eb09bc1364
4
+ data.tar.gz: 884168d18ee0ab113b03cdbe407a100d87e36035
5
5
  SHA512:
6
- metadata.gz: 6ce6a5309f0d05cfc049bc2ad4264465e05a41320863257e318a15895a3f7e33608e90d2c479305d05120073e351446404130c9989d6f870f9f0f64de99e4b81
7
- data.tar.gz: 458aa7e250fc6e902e6943fd6d74cd5a49ffe3ef84b334f62022fb3d8b19750b0393109f6fa4ad28a29ffa8018ee30750c9a2012d4f1170b3e8899bb955a2326
6
+ metadata.gz: 55766a8280d39a64fab8cefbc0dd0e0fafc48bd11e9c3126803a7bae649334f20c04c588c923b33a58cb51dc7eaf3ca5b6a83741712221ccb7f7f609ebb61686
7
+ data.tar.gz: c74d4dcd445f18e12fec108c2e2deb60ab4dc957861fd7835de04246d6484c3f7513a35b02fd5467940825d7213f25ac0f7e36e035cb49949546f01ac6c43570
data/lib/y_support/all.rb CHANGED
@@ -9,6 +9,7 @@ require 'y_support/null_object'
9
9
  require 'y_support/inert_recorder'
10
10
  require 'y_support/local_object'
11
11
  require 'y_support/abstract_algebra'
12
+ require 'y_support/kde'
12
13
  require 'y_support/misc'
13
14
 
14
15
 
@@ -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
@@ -1,3 +1,3 @@
1
1
  module YSupport
2
- VERSION = "2.0.0"
2
+ VERSION = "2.0.1"
3
3
  end
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.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-01 00:00:00.000000000 Z
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