wxyz 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 (4) hide show
  1. data/.gemspec +1 -1
  2. data/Rakefile +1 -0
  3. data/lib/wxyz.rb +7 -6
  4. metadata +2 -2
data/.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  GemSpec = Gem::Specification.new do |gem|
4
4
  gem.name = 'wxyz'
5
- gem.version = '0.0.1'
5
+ gem.version = '0.0.2'
6
6
  gem.license = 'MIT'
7
7
  gem.required_ruby_version = '>= 1.9.1'
8
8
 
data/Rakefile CHANGED
@@ -24,6 +24,7 @@ CLEAN.include GemDir, GemFile, 'data.tar.gz', 'metadata.gz'
24
24
 
25
25
  desc 'Run the tests'
26
26
  task :test do
27
+ load '.env' if File.exists? '.env'
27
28
  Rake::TestTask.new do |t|
28
29
  t.verbose = true
29
30
  t.test_files = ENV['DEV_TEST_FILES'] &&
@@ -1,29 +1,30 @@
1
1
  def WWW *args
2
2
  require 'yaml'
3
3
  STDERR.puts YAML.dump_stream *args
4
- STDERR.puts caller[0]
5
- return args[0]
4
+ STDERR.puts ' WWW from: ' + caller.first
5
+ return args.first
6
6
  end
7
7
 
8
8
  def XXX *args
9
9
  require 'yaml'
10
10
  STDERR.puts YAML.dump_stream *args
11
- STDERR.puts caller[0]
11
+ STDERR.puts ' XXX from: ' + caller.first
12
12
  exit
13
13
  end
14
14
 
15
15
  def YYY *args
16
16
  require 'yaml'
17
17
  STDOUT.puts YAML.dump_stream *args
18
- STDOUT.puts caller[0]
19
- return args[0]
18
+ STDOUT.puts ' YYY from: ' + caller.first
19
+ return args.first
20
20
  end
21
21
 
22
22
  def ZZZ *args
23
23
  require 'yaml'
24
24
  dump = ''
25
25
  STDERR.puts YAML.dump_stream *args
26
- STDERR.puts YAML.dump caller
26
+ STDERR.puts ' ZZZ from:'
27
+ caller.each_with_index {|c, i| STDERR.puts "#{i}) #{c}"}
27
28
  exit
28
29
  end
29
30
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wxyz
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:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-04-01 00:00:00.000000000 Z
12
+ date: 2013-04-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: testml