yakuake_controller 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +4 -0
- data/README.md +9 -2
- data/lib/yakuake_controller/dbus_client.rb +1 -1
- data/lib/yakuake_controller/version.rb +1 -1
- data/test/lib/yakuake_controller/dbus_client_test.rb +10 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cb06743a9a37898ba04bb20acd3dba6ef49bd987
|
4
|
+
data.tar.gz: 9a57cfffddcfdd3f83cb5dfb88be6f8cd35aa834
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0ca96695770277ccaf8c5b60f3e3a26d2e5cb1f59f60515290246d2ad69431440106c717f3ba0a621083506963ae164e05f4bdcd7241db00f326d11f35a205a3
|
7
|
+
data.tar.gz: 15afe5bb29256e4566f54d2d28a92936b61030bef069866b05bdb8287c0ab0cec9f9a3178a8a9d082c1f122192347c9ac95c195024da4eb303043d10b49f973a
|
data/.travis.yml
ADDED
data/README.md
CHANGED
@@ -1,5 +1,8 @@
|
|
1
1
|
# YakuakeController
|
2
2
|
|
3
|
+
[![Gem Version](https://badge.fury.io/rb/yakuake_controller.svg)](https://badge.fury.io/rb/yakuake_controller)
|
4
|
+
[![Build Status](https://travis-ci.org/tadamic/yakuake_controller.svg?branch=development)](https://travis-ci.org/tadamic/yakuake_controller)
|
5
|
+
|
3
6
|
Ruby gem to interact with [Yakuake] through DBus.
|
4
7
|
|
5
8
|
## Installation
|
@@ -18,11 +21,15 @@ Or install it yourself as:
|
|
18
21
|
|
19
22
|
## Usage
|
20
23
|
|
21
|
-
|
24
|
+
~~~ruby
|
25
|
+
require 'yakuake_controller'
|
26
|
+
client = YakuakeController::DBusClient.new
|
27
|
+
client.set_tab_title new_title: 'Foo', tab_index: 0
|
28
|
+
~~~
|
22
29
|
|
23
30
|
## Contributing
|
24
31
|
|
25
|
-
1. Fork it ( https://github.com/
|
32
|
+
1. Fork it ( https://github.com/tadamic/yakuake_controller/fork )
|
26
33
|
2. Create your feature branch (`git checkout -b my-new-feature`)
|
27
34
|
3. Commit your changes (`git commit -am 'Add some feature'`)
|
28
35
|
4. Push to the branch (`git push origin my-new-feature`)
|
@@ -1,9 +1,18 @@
|
|
1
1
|
require 'test_helper'
|
2
2
|
|
3
|
+
class YakuakeDbusMock
|
4
|
+
attr_reader :sessions_interface, :tabs_interface
|
5
|
+
|
6
|
+
def initialize
|
7
|
+
@sessions_interface = ""
|
8
|
+
@tabs_interface = ""
|
9
|
+
end
|
10
|
+
end
|
11
|
+
|
3
12
|
describe YakuakeController::DBusClient do
|
4
13
|
|
5
14
|
before do
|
6
|
-
@dbus =
|
15
|
+
@dbus = YakuakeDbusMock.new
|
7
16
|
@client = YakuakeController::DBusClient.new(dbus: @dbus)
|
8
17
|
|
9
18
|
@tab_index = 1
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: yakuake_controller
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tomislav Adamic
|
@@ -158,6 +158,7 @@ extensions: []
|
|
158
158
|
extra_rdoc_files: []
|
159
159
|
files:
|
160
160
|
- ".gitignore"
|
161
|
+
- ".travis.yml"
|
161
162
|
- Gemfile
|
162
163
|
- LICENSE.txt
|
163
164
|
- README.md
|