wally-client 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/bin/wally +10 -8
  2. data/lib/wally/client/version.rb +1 -1
  3. metadata +1 -1
data/bin/wally CHANGED
@@ -6,15 +6,17 @@ if ARGV.first == "push"
6
6
  require "json"
7
7
  require "wally/parses_features"
8
8
  features = []
9
- Dir.glob(File.join("#{ARGV[2]}", "**/*.feature")).each do |feature_path|
10
- begin
11
- gherkin = Wally::ParsesFeatures.new.parse(File.read(feature_path))
12
- rescue
13
- puts "Couldn't parse '#{feature_path}'"
14
- puts "Contents:"
15
- puts File.read(feature_path)
9
+ ARGV[2..-1].each do |arg|
10
+ Dir.glob(File.join("#{arg}", "**/*.feature")).each do |feature_path|
11
+ begin
12
+ gherkin = Wally::ParsesFeatures.new.parse(File.read(feature_path))
13
+ rescue
14
+ puts "Couldn't parse '#{feature_path}'"
15
+ puts "Contents:"
16
+ puts File.read(feature_path)
17
+ end
18
+ features << {:path => feature_path, :gherkin => gherkin}
16
19
  end
17
- features << {:path => feature_path, :gherkin => gherkin}
18
20
  end
19
21
  RestClient.put "#{ARGV[1]}/features/?authentication_code=#{File.read(".wally").strip}", features.to_json, {:content_type => :json, :accept => :json}
20
22
  elsif ARGV[0] == "destroy"
@@ -1,5 +1,5 @@
1
1
  module Wally
2
2
  module Client
3
- VERSION = "0.0.1"
3
+ VERSION = "0.0.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wally-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: