wxyz 0.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.
- data/.gemspec +20 -0
- data/Gemfile +2 -0
- data/LICENSE +21 -0
- data/Rakefile +72 -0
- data/lib/wxyz.rb +29 -0
- metadata +68 -0
data/.gemspec
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
|
3
|
+
GemSpec = Gem::Specification.new do |gem|
|
4
|
+
gem.name = 'wxyz'
|
5
|
+
gem.version = '0.0.1'
|
6
|
+
gem.license = 'MIT'
|
7
|
+
gem.required_ruby_version = '>= 1.9.1'
|
8
|
+
|
9
|
+
gem.authors << 'Ingy döt Net'
|
10
|
+
gem.email = 'ingy@ingy.net'
|
11
|
+
gem.summary = 'See Your Data in the Nude'
|
12
|
+
gem.description = <<-'.'
|
13
|
+
XXX lets you see your data in the nude.
|
14
|
+
.
|
15
|
+
gem.homepage = 'http://search.cpan.org/dist/XXX/lib/XXX.pm'
|
16
|
+
|
17
|
+
gem.files = `git ls-files`.lines.map{|l|l.chomp}
|
18
|
+
|
19
|
+
gem.add_development_dependency 'testml', '>= 0.0.1'
|
20
|
+
end
|
data/Gemfile
ADDED
data/LICENSE
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
(The MIT License)
|
2
|
+
|
3
|
+
Copyright © 2013 Ingy döt Net
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
6
|
+
this software and associated documentation files (the ‘Software’), to deal in
|
7
|
+
the Software without restriction, including without limitation the rights to
|
8
|
+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
|
9
|
+
of the Software, and to permit persons to whom the Software is furnished to do
|
10
|
+
so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED ‘AS IS’, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
+
SOFTWARE.
|
data/Rakefile
ADDED
@@ -0,0 +1,72 @@
|
|
1
|
+
# Load Gem constants from the gemspec
|
2
|
+
GemSpecFile = '.gemspec'
|
3
|
+
load GemSpecFile
|
4
|
+
GemName = GemSpec.name
|
5
|
+
GemVersion = GemSpec.version
|
6
|
+
GemDir = "#{GemName}-#{GemVersion}"
|
7
|
+
GemFile = "#{GemDir}.gem"
|
8
|
+
DevNull = '2>/dev/null'
|
9
|
+
|
10
|
+
# Require the Rake libraries
|
11
|
+
require 'rake'
|
12
|
+
require 'rake/testtask'
|
13
|
+
require 'rake/clean'
|
14
|
+
if File.exists? 'test/testml.yaml'
|
15
|
+
if File.exists? 'lib/rake/testml.rb'
|
16
|
+
$:.unshift "#{Dir.getwd}/lib"
|
17
|
+
end
|
18
|
+
require 'rake/testml'
|
19
|
+
end
|
20
|
+
|
21
|
+
task :default => 'help'
|
22
|
+
|
23
|
+
CLEAN.include GemDir, GemFile, 'data.tar.gz', 'metadata.gz'
|
24
|
+
|
25
|
+
desc 'Run the tests'
|
26
|
+
task :test do
|
27
|
+
Rake::TestTask.new do |t|
|
28
|
+
t.verbose = true
|
29
|
+
t.test_files = ENV['DEV_TEST_FILES'] &&
|
30
|
+
FileList[ENV['DEV_TEST_FILES'].split] ||
|
31
|
+
FileList['test/**/*.rb'].sort
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
desc 'Build the gem'
|
36
|
+
task :build => [:clean, :test] do
|
37
|
+
sh "gem build #{GemSpecFile}"
|
38
|
+
end
|
39
|
+
|
40
|
+
desc 'Install the gem'
|
41
|
+
task :install => [:build] do
|
42
|
+
sh "gem install #{GemFile}"
|
43
|
+
end
|
44
|
+
|
45
|
+
desc 'Build, unpack and inspect the gem'
|
46
|
+
task :distdir => [:build] do
|
47
|
+
sh "tar xf #{GemFile} #{DevNull}"
|
48
|
+
Dir.mkdir GemDir
|
49
|
+
Dir.chdir GemDir
|
50
|
+
sh "tar xzf ../data.tar.gz #{DevNull}"
|
51
|
+
puts "\n>>> Entering sub-shell for #{GemDir}..."
|
52
|
+
system ENV['SHELL']
|
53
|
+
end
|
54
|
+
|
55
|
+
desc 'Build and push the gem'
|
56
|
+
task :release => [:build] do
|
57
|
+
sh "gem push #{GemFile}"
|
58
|
+
end
|
59
|
+
|
60
|
+
desc 'Print a description of the gem'
|
61
|
+
task :desc do
|
62
|
+
puts "Gem: '#{GemName}' (version #{GemVersion})"
|
63
|
+
puts
|
64
|
+
puts GemSpec.description.gsub /^/, ' '
|
65
|
+
end
|
66
|
+
|
67
|
+
desc 'List the Rakefile tasks'
|
68
|
+
task :help do
|
69
|
+
puts 'The following rake tasks are available:'
|
70
|
+
puts
|
71
|
+
puts `rake -T`.gsub /^/, ' '
|
72
|
+
end
|
data/lib/wxyz.rb
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
def WWW *args
|
2
|
+
require 'yaml'
|
3
|
+
STDERR.puts YAML.dump_stream *args
|
4
|
+
STDERR.puts caller[0]
|
5
|
+
return args[0]
|
6
|
+
end
|
7
|
+
|
8
|
+
def XXX *args
|
9
|
+
require 'yaml'
|
10
|
+
STDERR.puts YAML.dump_stream *args
|
11
|
+
STDERR.puts caller[0]
|
12
|
+
exit
|
13
|
+
end
|
14
|
+
|
15
|
+
def YYY *args
|
16
|
+
require 'yaml'
|
17
|
+
STDOUT.puts YAML.dump_stream *args
|
18
|
+
STDOUT.puts caller[0]
|
19
|
+
return args[0]
|
20
|
+
end
|
21
|
+
|
22
|
+
def ZZZ *args
|
23
|
+
require 'yaml'
|
24
|
+
dump = ''
|
25
|
+
STDERR.puts YAML.dump_stream *args
|
26
|
+
STDERR.puts YAML.dump caller
|
27
|
+
exit
|
28
|
+
end
|
29
|
+
|
metadata
ADDED
@@ -0,0 +1,68 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: wxyz
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Ingy döt Net
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2013-04-01 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: testml
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: 0.0.1
|
22
|
+
type: :development
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ! '>='
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: 0.0.1
|
30
|
+
description: ! 'XXX lets you see your data in the nude.
|
31
|
+
|
32
|
+
'
|
33
|
+
email: ingy@ingy.net
|
34
|
+
executables: []
|
35
|
+
extensions: []
|
36
|
+
extra_rdoc_files: []
|
37
|
+
files:
|
38
|
+
- .gemspec
|
39
|
+
- Gemfile
|
40
|
+
- LICENSE
|
41
|
+
- Rakefile
|
42
|
+
- lib/wxyz.rb
|
43
|
+
homepage: http://search.cpan.org/dist/XXX/lib/XXX.pm
|
44
|
+
licenses:
|
45
|
+
- MIT
|
46
|
+
post_install_message:
|
47
|
+
rdoc_options: []
|
48
|
+
require_paths:
|
49
|
+
- lib
|
50
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
51
|
+
none: false
|
52
|
+
requirements:
|
53
|
+
- - ! '>='
|
54
|
+
- !ruby/object:Gem::Version
|
55
|
+
version: 1.9.1
|
56
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
58
|
+
requirements:
|
59
|
+
- - ! '>='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
requirements: []
|
63
|
+
rubyforge_project:
|
64
|
+
rubygems_version: 1.8.23
|
65
|
+
signing_key:
|
66
|
+
specification_version: 3
|
67
|
+
summary: See Your Data in the Nude
|
68
|
+
test_files: []
|