array-formatter 1.0.2 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3a0c26f92c099a6b15e0450106bf4b5da11362de
4
- data.tar.gz: df94ab3f2a7191cd083a616ac33ee239b41e5763
3
+ metadata.gz: 1f425f92e125709cf78907cd802f408357da02cb
4
+ data.tar.gz: a242f81025fdbcd0ce635033c81aae8292d26eef
5
5
  SHA512:
6
- metadata.gz: c8a41e02bc22a6371314d43b3aca87d5a812d3dca35b5333f5feb217f3b0dd9c92dab41115e94d5cc48da3d66e4e34c64e54e256ef0a4d8c0644705be46cf852
7
- data.tar.gz: cf129546e5260206d19b9e08ac07390be4ce41c0526fd5fd7142770cc55a62a8622cfe4e4e74daf176d6e96098e628058c03b1caec762fcd96650c6f8d3e0e4a
6
+ metadata.gz: e6660d02fc2bed960dcb21ded688b3e4b57c8e6f4184b8a1015fd4db003dcce25c45ec2976f2ce54f881401fe0058b4260e74e2c742d3c72fff5da5c453a2765
7
+ data.tar.gz: 1ecd0884c2a48d2ae560b45ce5b1ae12f43559a4310263d2e19ce2586172a2b888cf0c0d8efdc340302e01aafdd56a79f5973fb205f1e8ad6f105516a7d6a99f
@@ -0,0 +1,5 @@
1
+ lib/**/*.rb
2
+ bin/*
3
+ -
4
+ features/**/*.feature
5
+ LICENSE.txt
data/.gitignore CHANGED
@@ -1,25 +1,49 @@
1
- # Because this is a gem, ignore Gemfile.lock:
1
+ # rcov generated
2
+ coverage
3
+ coverage.data
2
4
 
3
- Gemfile.lock
5
+ # rdoc generated
6
+ rdoc
4
7
 
5
- # And because this is Ruby, ignore the following
6
- # (source: https://github.com/github/gitignore/blob/master/Ruby.gitignore):
8
+ # yard generated
9
+ doc
10
+ .yardoc
7
11
 
8
- *.gem
9
- *.rbc
12
+ # bundler
10
13
  .bundle
11
- .config
12
- coverage
13
- InstalledFiles
14
- lib/bundler/man
14
+
15
+ # jeweler generated
15
16
  pkg
16
- rdoc
17
- spec/reports
18
- test/tmp
19
- test/version_tmp
20
- tmp
21
17
 
22
- # YARD artifacts
23
- .yardoc
24
- _yardoc
25
- doc/
18
+ # Have editor/IDE/OS specific files you need to ignore? Consider using a global gitignore:
19
+ #
20
+ # * Create a file at ~/.gitignore
21
+ # * Include files you want ignored
22
+ # * Run: git config --global core.excludesfile ~/.gitignore
23
+ #
24
+ # After doing this, these files will be ignored in all your git projects,
25
+ # saving you from having to 'pollute' every project you touch with them
26
+ #
27
+ # Not sure what to needs to be ignored for particular editors/OSes? Here's some ideas to get you started. (Remember, remove the leading # of the line)
28
+ #
29
+ # For MacOS:
30
+ #
31
+ #.DS_Store
32
+
33
+ # For TextMate
34
+ #*.tmproj
35
+ #tmtags
36
+
37
+ # For emacs:
38
+ #*~
39
+ #\#*
40
+ #.\#*
41
+
42
+ # For vim:
43
+ #*.swp
44
+
45
+ # For redcar:
46
+ #.redcar
47
+
48
+ # For rubinius:
49
+ #*.rbc
data/Gemfile CHANGED
@@ -1,3 +1,12 @@
1
- source "https://rubygems.org"
1
+ source "http://rubygems.org"
2
2
 
3
- gemspec
3
+ # only usees the 'cgi' library, which is built-in to ruby
4
+
5
+ group :development do
6
+ gem "minitest", "~> 5.3"
7
+ gem "rdoc", "~> 3.12"
8
+ gem "jeweler", "~> 2.0"
9
+ end
10
+
11
+ # TODO: See if this is better?
12
+ #gemspec
@@ -0,0 +1,56 @@
1
+ GEM
2
+ remote: http://rubygems.org/
3
+ specs:
4
+ addressable (2.3.5)
5
+ builder (3.2.2)
6
+ descendants_tracker (0.0.3)
7
+ faraday (0.9.0)
8
+ multipart-post (>= 1.2, < 3)
9
+ git (1.2.6)
10
+ github_api (0.11.3)
11
+ addressable (~> 2.3)
12
+ descendants_tracker (~> 0.0.1)
13
+ faraday (~> 0.8, < 0.10)
14
+ hashie (>= 1.2)
15
+ multi_json (>= 1.7.5, < 2.0)
16
+ nokogiri (~> 1.6.0)
17
+ oauth2
18
+ hashie (2.0.5)
19
+ highline (1.6.21)
20
+ jeweler (2.0.1)
21
+ builder
22
+ bundler (>= 1.0)
23
+ git (>= 1.2.5)
24
+ github_api
25
+ highline (>= 1.6.15)
26
+ nokogiri (>= 1.5.10)
27
+ rake
28
+ rdoc
29
+ json (1.8.1)
30
+ jwt (0.1.11)
31
+ multi_json (>= 1.5)
32
+ mini_portile (0.5.2)
33
+ minitest (5.3.0)
34
+ multi_json (1.8.4)
35
+ multi_xml (0.5.5)
36
+ multipart-post (2.0.0)
37
+ nokogiri (1.6.1)
38
+ mini_portile (~> 0.5.0)
39
+ oauth2 (0.9.3)
40
+ faraday (>= 0.8, < 0.10)
41
+ jwt (~> 0.1.8)
42
+ multi_json (~> 1.3)
43
+ multi_xml (~> 0.5)
44
+ rack (~> 1.2)
45
+ rack (1.5.2)
46
+ rake (10.1.1)
47
+ rdoc (3.12.2)
48
+ json (~> 1.4)
49
+
50
+ PLATFORMS
51
+ ruby
52
+
53
+ DEPENDENCIES
54
+ jeweler (~> 2.0)
55
+ minitest (~> 5.3)
56
+ rdoc (~> 3.12)
@@ -1,6 +1,4 @@
1
- Copyright (c) 2013 Alan K. Stebbens <aks@stebbens.org>
2
-
3
- MIT License
1
+ Copyright (c) 2014 Alan K. Stebbens <aks@stebbens.org>
4
2
 
5
3
  Permission is hereby granted, free of charge, to any person obtaining
6
4
  a copy of this software and associated documentation files (the
data/Rakefile CHANGED
@@ -1,12 +1,58 @@
1
- #require 'rake'
1
+ # encoding: utf-8
2
2
 
3
- require "bundler/gem_tasks"
4
- require 'rake/testtask'
3
+ require 'rubygems'
4
+ require 'bundler'
5
+ begin
6
+ Bundler.setup(:default, :development)
7
+ rescue Bundler::BundlerError => e
8
+ $stderr.puts e.message
9
+ $stderr.puts "Run `bundle install` to install missing gems"
10
+ exit e.status_code
11
+ end
12
+ require 'rake'
13
+
14
+ $LOAD_PATH.unshift './lib', '../lib'
15
+ require 'array/formatter/version'
5
16
 
6
- Rake::TestTask.new do |t|
7
- t.libs << 'lib'
8
- t.pattern = 'test/**/test[-_]*.rb'
9
- t.verbose = false
17
+ require 'jeweler'
18
+ Jeweler::Tasks.new do |gem|
19
+ # gem is a Gem::Specification... see http://guides.rubygems.org/specification-reference/ for more options
20
+ gem.name = "array-formatter"
21
+ gem.homepage = "https://bitbucket.org/aks_/array-formatter"
22
+ gem.license = "MIT"
23
+ gem.version = Array::Formatter::VERSION
24
+ gem.summary = %Q{Format an array of arrays in one of serveral string formats}
25
+ gem.description = <<-EOF
26
+ A simple gem to reformat an array of arrays into one of several string
27
+ formats: HTML table; CSV; ASCII table; YAML
28
+ EOF
29
+ gem.email = "aks@stebbens.org"
30
+ gem.authors = ["Alan K. Stebbens"]
31
+ gem.files = `git ls-files`.split($/)
32
+ gem.executables = gem.files.grep(%r{^bin/}) { |f| File.basename(f) }
33
+ gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
34
+ gem.require_paths = ["lib"]
35
+ gem.add_development_dependency "bundler", "~> 1.3"
36
+ gem.add_development_dependency "rake"
37
+ # dependencies defined in Gemfile
38
+ end
39
+ Jeweler::RubygemsDotOrgTasks.new
40
+
41
+ require 'rake/testtask'
42
+ Rake::TestTask.new(:test) do |test|
43
+ test.libs << 'lib' << 'test'
44
+ test.pattern = 'test/**/test[_-]*.rb'
45
+ test.verbose = true
10
46
  end
11
47
 
12
48
  task :default => :test
49
+
50
+ require 'rdoc/task'
51
+ Rake::RDocTask.new do |rdoc|
52
+ version = File.exist?('VERSION') ? File.read('VERSION') : ""
53
+
54
+ rdoc.rdoc_dir = 'rdoc'
55
+ rdoc.title = "array-formatter #{version}"
56
+ rdoc.rdoc_files.include('README*')
57
+ rdoc.rdoc_files.include('lib/**/*.rb')
58
+ end
@@ -1,26 +1,76 @@
1
- # coding: utf-8
2
- lib = File.expand_path('../lib', __FILE__)
3
- $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
- require 'array/formatter/version'
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
+ # -*- encoding: utf-8 -*-
5
+ # stub: array-formatter 1.0.3 ruby lib
5
6
 
6
- Gem::Specification.new do |spec|
7
- spec.name = "array-formatter"
8
- spec.version = Array::Formatter::VERSION
9
- spec.authors = ["Alan Stebbens"]
10
- spec.email = ["aks@stebbens.org"]
11
- spec.summary = "Format an array of arrays in one of serveral string formats"
12
- spec.description = <<-EOF
13
- A simple gem to reformat an array of arrays into one of several string
14
- formats: HTML table; CSV; ASCII table; YAML
15
- EOF
16
- spec.homepage = "https://gitlab.com/as/array-formatter"
17
- spec.license = "MIT"
7
+ Gem::Specification.new do |s|
8
+ s.name = "array-formatter"
9
+ s.version = "1.0.3"
18
10
 
19
- spec.files = `git ls-files`.split($/)
20
- spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
21
- spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
22
- spec.require_paths = ["lib"]
11
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
+ s.require_paths = ["lib"]
13
+ s.authors = ["Alan K. Stebbens"]
14
+ s.date = "2014-03-03"
15
+ s.description = " A simple gem to reformat an array of arrays into one of several string\n formats: HTML table; CSV; ASCII table; YAML\n"
16
+ s.email = "aks@stebbens.org"
17
+ s.extra_rdoc_files = [
18
+ "LICENSE.txt",
19
+ "README.md"
20
+ ]
21
+ s.files = [
22
+ ".document",
23
+ ".gitignore",
24
+ "Gemfile",
25
+ "Gemfile.lock",
26
+ "LICENSE.txt",
27
+ "README.md",
28
+ "Rakefile",
29
+ "array-formatter.gemspec",
30
+ "lib/array/formatter.rb",
31
+ "lib/array/formatter/version.rb",
32
+ "test/helper.rb",
33
+ "test/ref/a-ascii.txt",
34
+ "test/ref/a-csv.txt",
35
+ "test/ref/a-html.txt",
36
+ "test/ref/a-unicode.txt",
37
+ "test/ref/a-unicode_single.txt",
38
+ "test/ref/b-ascii.txt",
39
+ "test/ref/b-csv.txt",
40
+ "test/ref/b-html.txt",
41
+ "test/ref/b-unicode.txt",
42
+ "test/ref/b-unicode_double.txt",
43
+ "test/ref/b-unicode_mixed.txt",
44
+ "test/test-array-formatter.rb"
45
+ ]
46
+ s.homepage = "https://bitbucket.org/aks_/array-formatter"
47
+ s.licenses = ["MIT"]
48
+ s.rubygems_version = "2.2.2"
49
+ s.summary = "Format an array of arrays in one of serveral string formats"
50
+ s.test_files = ["test/helper.rb", "test/ref/a-ascii.txt", "test/ref/a-csv.txt", "test/ref/a-html.txt", "test/ref/a-unicode.txt", "test/ref/a-unicode_single.txt", "test/ref/b-ascii.txt", "test/ref/b-csv.txt", "test/ref/b-html.txt", "test/ref/b-unicode.txt", "test/ref/b-unicode_double.txt", "test/ref/b-unicode_mixed.txt", "test/test-array-formatter.rb"]
23
51
 
24
- spec.add_development_dependency "bundler", "~> 1.3"
25
- spec.add_development_dependency "rake"
52
+ if s.respond_to? :specification_version then
53
+ s.specification_version = 4
54
+
55
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
56
+ s.add_development_dependency(%q<minitest>, ["~> 5.3"])
57
+ s.add_development_dependency(%q<rdoc>, ["~> 3.12"])
58
+ s.add_development_dependency(%q<jeweler>, ["~> 2.0"])
59
+ s.add_development_dependency(%q<bundler>, ["~> 1.3"])
60
+ s.add_development_dependency(%q<rake>, [">= 0"])
61
+ else
62
+ s.add_dependency(%q<minitest>, ["~> 5.3"])
63
+ s.add_dependency(%q<rdoc>, ["~> 3.12"])
64
+ s.add_dependency(%q<jeweler>, ["~> 2.0"])
65
+ s.add_dependency(%q<bundler>, ["~> 1.3"])
66
+ s.add_dependency(%q<rake>, [">= 0"])
67
+ end
68
+ else
69
+ s.add_dependency(%q<minitest>, ["~> 5.3"])
70
+ s.add_dependency(%q<rdoc>, ["~> 3.12"])
71
+ s.add_dependency(%q<jeweler>, ["~> 2.0"])
72
+ s.add_dependency(%q<bundler>, ["~> 1.3"])
73
+ s.add_dependency(%q<rake>, [">= 0"])
74
+ end
26
75
  end
76
+
@@ -1,3 +1,3 @@
1
1
  class Array::Formatter
2
- VERSION = "1.0.2"
2
+ VERSION = "1.0.3"
3
3
  end
@@ -0,0 +1,20 @@
1
+ require 'rubygems'
2
+ require 'bundler'
3
+ begin
4
+ Bundler.setup(:default, :development)
5
+ rescue Bundler::BundlerError => e
6
+ $stderr.puts e.message
7
+ $stderr.puts "Run `bundle install` to install missing gems"
8
+ exit e.status_code
9
+ end
10
+ require 'minitest/autorun'
11
+
12
+ $LOAD_PATH.unshift(File.dirname(__FILE__))
13
+ $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
14
+
15
+ require 'array/formatter'
16
+
17
+ class MiniTest::Unit::TestCase
18
+ end
19
+
20
+ MiniTest::Unit.autorun
@@ -4,11 +4,11 @@ $LOAD_PATH.unshift '.', './test', './lib'
4
4
 
5
5
  $refdir = 'test/ref' # where the test reference output lives
6
6
 
7
- # if 'save' anywhere as an argument, the outputs are saved as reference
7
+ # if 'save' anywhere as an argument, the outputs are saved as reference
8
8
  # test output.
9
9
 
10
10
  $verbose = $save = nil
11
- ARGV.each_with_index do |arg, x|
11
+ ARGV.each_with_index do |arg, x|
12
12
  case arg
13
13
  when 'save'
14
14
  $save = true
@@ -18,8 +18,8 @@ ARGV.each_with_index do |arg, x|
18
18
  end
19
19
  end
20
20
 
21
- require 'array/formatter'
22
- require 'test-helper'
21
+ require 'helper'
22
+ #require 'array/formatter'
23
23
 
24
24
  class Test_Array_Formatter < MiniTest::Unit::TestCase
25
25
 
@@ -39,7 +39,7 @@ class Test_Array_Formatter < MiniTest::Unit::TestCase
39
39
  def write_ref name, kind, out
40
40
  filename = ref_filename(name, kind)
41
41
  unless Dir.exist?($refdir)
42
- Dir.mkdir $refdir
42
+ Dir.mkdir $refdir
43
43
  puts "Created #{$refdir}" if $verbose
44
44
  end
45
45
  File.open(filename, 'w+') { |file| file.write out }
@@ -49,7 +49,7 @@ class Test_Array_Formatter < MiniTest::Unit::TestCase
49
49
  def check actual, name, kind
50
50
  if $verbose
51
51
  puts ""
52
- puts actual
52
+ puts actual
53
53
  end
54
54
  unless $save
55
55
  expected = read_ref(name, kind)
metadata CHANGED
@@ -1,60 +1,106 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: array-formatter
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
- - Alan Stebbens
7
+ - Alan K. Stebbens
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-09-20 00:00:00.000000000 Z
11
+ date: 2014-03-03 00:00:00.000000000 Z
12
12
  dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: minitest
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '5.3'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '5.3'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rdoc
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '3.12'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '3.12'
41
+ - !ruby/object:Gem::Dependency
42
+ name: jeweler
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '2.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '2.0'
13
55
  - !ruby/object:Gem::Dependency
14
56
  name: bundler
15
57
  requirement: !ruby/object:Gem::Requirement
16
58
  requirements:
17
- - - ~>
59
+ - - "~>"
18
60
  - !ruby/object:Gem::Version
19
61
  version: '1.3'
20
62
  type: :development
21
63
  prerelease: false
22
64
  version_requirements: !ruby/object:Gem::Requirement
23
65
  requirements:
24
- - - ~>
66
+ - - "~>"
25
67
  - !ruby/object:Gem::Version
26
68
  version: '1.3'
27
69
  - !ruby/object:Gem::Dependency
28
70
  name: rake
29
71
  requirement: !ruby/object:Gem::Requirement
30
72
  requirements:
31
- - - '>='
73
+ - - ">="
32
74
  - !ruby/object:Gem::Version
33
75
  version: '0'
34
76
  type: :development
35
77
  prerelease: false
36
78
  version_requirements: !ruby/object:Gem::Requirement
37
79
  requirements:
38
- - - '>='
80
+ - - ">="
39
81
  - !ruby/object:Gem::Version
40
82
  version: '0'
41
83
  description: |2
42
84
  A simple gem to reformat an array of arrays into one of several string
43
85
  formats: HTML table; CSV; ASCII table; YAML
44
- email:
45
- - aks@stebbens.org
86
+ email: aks@stebbens.org
46
87
  executables: []
47
88
  extensions: []
48
- extra_rdoc_files: []
89
+ extra_rdoc_files:
90
+ - LICENSE.txt
91
+ - README.md
49
92
  files:
50
- - .gitignore
93
+ - ".document"
94
+ - ".gitignore"
51
95
  - Gemfile
96
+ - Gemfile.lock
52
97
  - LICENSE.txt
53
98
  - README.md
54
99
  - Rakefile
55
100
  - array-formatter.gemspec
56
101
  - lib/array/formatter.rb
57
102
  - lib/array/formatter/version.rb
103
+ - test/helper.rb
58
104
  - test/ref/a-ascii.txt
59
105
  - test/ref/a-csv.txt
60
106
  - test/ref/a-html.txt
@@ -67,8 +113,7 @@ files:
67
113
  - test/ref/b-unicode_double.txt
68
114
  - test/ref/b-unicode_mixed.txt
69
115
  - test/test-array-formatter.rb
70
- - test/test-helper.rb
71
- homepage: https://gitlab.com/as/array-formatter
116
+ homepage: https://bitbucket.org/aks_/array-formatter
72
117
  licenses:
73
118
  - MIT
74
119
  metadata: {}
@@ -78,21 +123,22 @@ require_paths:
78
123
  - lib
79
124
  required_ruby_version: !ruby/object:Gem::Requirement
80
125
  requirements:
81
- - - '>='
126
+ - - ">="
82
127
  - !ruby/object:Gem::Version
83
128
  version: '0'
84
129
  required_rubygems_version: !ruby/object:Gem::Requirement
85
130
  requirements:
86
- - - '>='
131
+ - - ">="
87
132
  - !ruby/object:Gem::Version
88
133
  version: '0'
89
134
  requirements: []
90
135
  rubyforge_project:
91
- rubygems_version: 2.0.7
136
+ rubygems_version: 2.2.2
92
137
  signing_key:
93
138
  specification_version: 4
94
139
  summary: Format an array of arrays in one of serveral string formats
95
140
  test_files:
141
+ - test/helper.rb
96
142
  - test/ref/a-ascii.txt
97
143
  - test/ref/a-csv.txt
98
144
  - test/ref/a-html.txt
@@ -105,4 +151,3 @@ test_files:
105
151
  - test/ref/b-unicode_double.txt
106
152
  - test/ref/b-unicode_mixed.txt
107
153
  - test/test-array-formatter.rb
108
- - test/test-helper.rb
@@ -1,4 +0,0 @@
1
- require 'rubygems'
2
- require 'bundler/setup'
3
- require 'minitest/autorun'
4
- require 'array/formatter'