taas 0.1.0 → 0.1.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.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.0
1
+ 0.1.1
@@ -1,4 +1,3 @@
1
- require 'pry'
2
1
  module TaaS
3
2
  class Contracts
4
3
 
@@ -6,6 +5,7 @@ module TaaS
6
5
 
7
6
  def self.load(absolute_path)
8
7
  raise "File path cant be nil or empty" if (absolute_path.nil? || absolute_path.empty?)
8
+ puts "Loading contracts file from #{absolute_path}"
9
9
  @@contract_hash = YAML.load_file(absolute_path)["contracts"] rescue {}
10
10
  end
11
11
 
data/lib/server.rb CHANGED
@@ -1,7 +1,6 @@
1
1
  require "sinatra"
2
2
 
3
-
4
- Dir.glob(File.join("#{$PROJECT_ROOT}", "lib","helper", "**", "*.rb")).each do |test_file|
3
+ Dir.glob(File.join("helper", "**", "*.rb")).each do |test_file|
5
4
  puts "requiring #{test_file}"
6
5
  require "#{test_file}"
7
6
  end
data/lib/taas.rb CHANGED
@@ -1,9 +1,10 @@
1
1
 
2
2
  require "taas_client"
3
- require File.join($PROJECT_ROOT,"lib","helper","command_executer")
3
+ require File.join("helper","command_executer")
4
4
 
5
5
  module TaaS
6
6
  def self.start_server(contract_file)
7
+ puts "Starting TaaS server with contract file: #{contract_file}"
7
8
  CommandExecuter.execute_command(File.dirname(__FILE__),"ruby server.rb #{contract_file}")
8
9
  end
9
10
 
data/lib/taas_client.rb CHANGED
@@ -2,7 +2,7 @@ require "rubygems"
2
2
  require 'uri'
3
3
  require 'net/http'
4
4
  require "json"
5
- require File.join($PROJECT_ROOT,"lib","helper","output_parser")
5
+ require File.join("helper","output_parser")
6
6
 
7
7
  module TaaS
8
8
  class TaaSClient
data/taas.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "taas"
8
- s.version = "0.1.0"
8
+ s.version = "0.1.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Anand Bagmar, Akash Mishra"]
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: taas
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 25
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 0
10
- version: 0.1.0
9
+ - 1
10
+ version: 0.1.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Anand Bagmar, Akash Mishra