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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2cd828dfa3e629e21a15397d2f5cbcec04104af0
4
- data.tar.gz: 0a59cd4fadd6acc99989c0c812af7f51c0a4cb8d
3
+ metadata.gz: cb06743a9a37898ba04bb20acd3dba6ef49bd987
4
+ data.tar.gz: 9a57cfffddcfdd3f83cb5dfb88be6f8cd35aa834
5
5
  SHA512:
6
- metadata.gz: d8af7efa8ffbf373a96fa3e1f2e5ab48918be4e1aa9d4c418dc999a54e0c2f8b3a24e029a3e8926cd5aa91540ac57959ef1af1e9c1a1a1d031fd236f3a2b09bd
7
- data.tar.gz: ae041f43909aeb50f0943df0a6e4b9215eb8ddfbefdc54ebaec1689b2861703590a91e25a9d9ad4e6b1327a13f99339aa65123ccd118c87dd07e01aa4eace7b7
6
+ metadata.gz: 0ca96695770277ccaf8c5b60f3e3a26d2e5cb1f59f60515290246d2ad69431440106c717f3ba0a621083506963ae164e05f4bdcd7241db00f326d11f35a205a3
7
+ data.tar.gz: 15afe5bb29256e4566f54d2d28a92936b61030bef069866b05bdb8287c0ab0cec9f9a3178a8a9d082c1f122192347c9ac95c195024da4eb303043d10b49f973a
data/.travis.yml ADDED
@@ -0,0 +1,4 @@
1
+ language: ruby
2
+ rvm:
3
+ - 2.2.1
4
+ before_install: gem install bundler -v 1.10.5
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
- TODO: Write usage instructions here
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/[my-github-username]/yakuake_controller/fork )
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`)
@@ -3,7 +3,7 @@ require_relative "./yakuake_dbus.rb"
3
3
  module YakuakeController
4
4
 
5
5
  class DBusClient
6
- def initialize(dbus: YakuakeDbus.new)
6
+ def initialize(dbus: YakuakeController::YakuakeDBus.new)
7
7
  @dbus = dbus
8
8
  end
9
9
 
@@ -1,3 +1,3 @@
1
1
  module YakuakeController
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
@@ -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 = YakuakeController::YakuakeDBus.new
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.0
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