i2x 0.0.7 → 0.1

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e5ed362050b735157e6bfa215d3fbdeba96332df
4
- data.tar.gz: 626512055732e79ff3bbf57b50cff7ab116d6361
3
+ metadata.gz: 0a71924ac020d0649bbcdd9ddc09b4ee345a9313
4
+ data.tar.gz: 538940b4ccf70ff5a2a6331647dcd42b2984b367
5
5
  SHA512:
6
- metadata.gz: 4cf8ef528e1cb50fc7bb8bb0dcb71504c67458e1bfeae36a17b80ae31415a220c1cc9d548dffd02a7e6d459958ddfedbace57b8c9d13179135bcd03f8a382ab0
7
- data.tar.gz: df2c439bf52eaedbb3ed67f270db3a57ba7ff76e799bef51aeec3fabe3e4fd688f42d4ca74681a6468b0279be0bc699e1f8d2a51e80b9791076416cf588e15e9
6
+ metadata.gz: 1175ec111851cf8dc55dcbb6da79acdeaafbdf085ea48330d5687179c7fdb1996f500ce61b72e781b48a00ca2bcffc0ef14d554aecff92613a2871c6b5b7a7b5
7
+ data.tar.gz: ed678f39051849336c0ed783c484b6bfbee5b6c6724556411f7853f365d8ede99a7e83106dbb91f7ce1a855b02124e0a0d34ebeaf82e9036884c24e74984b795
data/README.md CHANGED
@@ -1,8 +1,6 @@
1
- # I2X
1
+ # i2x gem
2
2
 
3
- ### Automated real-time integration
4
-
5
- Ruby gem for distributed client agents.
3
+ Ruby `gem` for distributed client agents. This enables launching custom **i2x** agents.
6
4
 
7
5
  ## Installation
8
6
 
@@ -20,7 +18,11 @@ Or install it yourself as:
20
18
 
21
19
  ## Usage
22
20
 
23
- TODO: Write usage instructions here
21
+ - Check **i2x**'s [client](http://github.com/pdrlps/i2x-client)
22
+
23
+ ## Changelog
24
+
25
+ - 2014-01-21: release 0.1
24
26
 
25
27
  ## Contributing
26
28
 
data/lib/i2x/client.rb CHANGED
@@ -9,9 +9,9 @@ module I2X
9
9
  def initialize config, log
10
10
  begin
11
11
  @config = config
12
- I2X::Config.token = config[:server][:api_key]
13
- I2X::Config.host = (config[:server][:host].end_with?('/') ? config[:server][:host] : config[:server][:host] << '/')
14
- I2X::Config.log = log
12
+ I2X::Config.set_access_token config[:server][:api_key]
13
+ I2X::Config.set_host config[:server][:host]
14
+ I2X::Config.set_log log
15
15
 
16
16
  I2X::Config.log.info(self.class.name) {'Configuration loaded successfully.'}
17
17
  rescue Exception => e
data/lib/i2x/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module I2X
2
- VERSION = "0.0.7"
2
+ VERSION = "0.1"
3
3
  end
data/lib/i2x.rb CHANGED
@@ -13,9 +13,7 @@ require 'i2x/client'
13
13
  module I2X
14
14
  class Config
15
15
 
16
- class << self
17
- attr_accessor :log, :host, :access_token
18
- end
16
+
19
17
 
20
18
  def self.set_log log
21
19
  @@log = log
@@ -29,5 +27,17 @@ module I2X
29
27
  def self.set_access_token api_key
30
28
  @@access_token = api_key
31
29
  end
30
+
31
+ def self.log
32
+ @@log
33
+ end
34
+
35
+ def self.host
36
+ @@host
37
+ end
38
+
39
+ def self.access_token
40
+ @@access_token
41
+ end
32
42
  end
33
43
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: i2x
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: '0.1'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pedro Lopes