arrayfields 4.9.0 → 4.9.2

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.
@@ -0,0 +1,15 @@
1
+ ---
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ YmIxMmM3OTk1NWY2NTlkYTEzZjY0MWE2MGFlN2I4MDkyZGU0ZGEwNA==
5
+ data.tar.gz: !binary |-
6
+ YTI0YjM1Y2FkYTBkZDRmMTYyMGExZWM0NmQyYjAwYjdhNmMzY2UwZQ==
7
+ !binary "U0hBNTEy":
8
+ metadata.gz: !binary |-
9
+ OTUyZDU5NThjMmU0MTdiZWQzMzRmZDMwN2I5NzgxODA4YTM3MzEzY2E1NWEw
10
+ ZDRhMzcwOWE1NzcxN2MxNzM2ZmI4MzhmNDQ2MjZkZGM2ZWY5MTljNGI3YTdj
11
+ NWM4MGRkMzA1NDFhYWM2ZjZlNTRhOWY5MTA3NThlODU2MTBlOTc=
12
+ data.tar.gz: !binary |-
13
+ YTYyNjFiMDk2MmVlMjIzZmE5Y2ExNWY5ZDlhZDMzNzQ1NDc4NTY2Y2RlZjJi
14
+ ZjVmN2QxODU4ZDk0Y2EyMjhmMDRhMTYxZDQ1MGQ0Mjc1MjE5Y2Y1MjA4NzBi
15
+ ZjM4ZTJlNzJhOGJkN2FlMzlmOGIyMzUxZWNhYjVkNzBhYzZjNTc=
data/Rakefile CHANGED
@@ -3,6 +3,9 @@ This.author = "Ara T. Howard"
3
3
  This.email = "ara.t.howard@gmail.com"
4
4
  This.homepage = "https://github.com/ahoward/#{ This.lib }"
5
5
 
6
+ task :license do
7
+ open('LICENSE', 'w'){|fd| fd.puts "same as ruby's"}
8
+ end
6
9
 
7
10
  task :default do
8
11
  puts((Rake::Task.tasks.map{|task| task.name.gsub(/::/,':')} - ['default']).sort)
@@ -29,7 +32,7 @@ def run_tests!(which = nil)
29
32
 
30
33
  test_rbs.each_with_index do |test_rb, index|
31
34
  testno = index + 1
32
- command = "#{ File.basename(This.ruby) } -I ./lib -I ./test/lib #{ test_rb }"
35
+ command = "#{ This.ruby } -w -I ./lib -I ./test/lib #{ test_rb }"
33
36
 
34
37
  puts
35
38
  say(div, :color => :cyan, :bold => true)
@@ -59,8 +62,8 @@ end
59
62
 
60
63
  task :gemspec do
61
64
  ignore_extensions = ['git', 'svn', 'tmp', /sw./, 'bak', 'gem']
62
- ignore_directories = ['pkg', 'db']
63
- ignore_files = ['test/log', 'test/db.yml', 'a.rb', 'b.rb'] + Dir['db/*'] + %w'db'
65
+ ignore_directories = ['pkg']
66
+ ignore_files = ['test/log']
64
67
 
65
68
  shiteless =
66
69
  lambda do |list|
@@ -87,9 +90,10 @@ task :gemspec do
87
90
  files = shiteless[Dir::glob("**/**")]
88
91
  executables = shiteless[Dir::glob("bin/*")].map{|exe| File.basename(exe)}
89
92
  #has_rdoc = true #File.exist?('doc')
90
- test_files = test(?e, "test/#{ lib }.rb") ? "test/#{ lib }.rb" : nil
93
+ test_files = "test/#{ lib }.rb" if File.file?("test/#{ lib }.rb")
91
94
  summary = object.respond_to?(:summary) ? object.summary : "summary: #{ lib } kicks the ass"
92
95
  description = object.respond_to?(:description) ? object.description : "description: #{ lib } kicks the ass"
96
+ license = object.respond_to?(:license) ? object.license : "same as ruby's"
93
97
 
94
98
  if This.extensions.nil?
95
99
  This.extensions = []
@@ -100,7 +104,6 @@ task :gemspec do
100
104
  end
101
105
  extensions = [extensions].flatten.compact
102
106
 
103
- # TODO
104
107
  if This.dependencies.nil?
105
108
  dependencies = []
106
109
  else
@@ -127,6 +130,7 @@ task :gemspec do
127
130
  spec.platform = Gem::Platform::RUBY
128
131
  spec.summary = <%= lib.inspect %>
129
132
  spec.description = <%= description.inspect %>
133
+ spec.license = <%= license.inspect %>
130
134
 
131
135
  spec.files =\n<%= files.sort.pretty_inspect %>
132
136
  spec.executables = <%= executables.inspect %>
@@ -188,8 +192,8 @@ task :readme do
188
192
  end
189
193
 
190
194
  template =
191
- if test(?e, 'readme.erb')
192
- Template{ IO.read('readme.erb') }
195
+ if test(?e, 'README.erb')
196
+ Template{ IO.read('README.erb') }
193
197
  else
194
198
  Template {
195
199
  <<-__
@@ -3,10 +3,11 @@
3
3
 
4
4
  Gem::Specification::new do |spec|
5
5
  spec.name = "arrayfields"
6
- spec.version = "4.9.0"
6
+ spec.version = "4.9.2"
7
7
  spec.platform = Gem::Platform::RUBY
8
8
  spec.summary = "arrayfields"
9
- spec.description = "description: arrayfields kicks the ass"
9
+ spec.description = "string/symbol keyword access to arrays"
10
+ spec.license = "same as ruby's"
10
11
 
11
12
  spec.files =
12
13
  ["LICENSE",
@@ -5,9 +5,13 @@
5
5
  # Array#fields= is called
6
6
  #
7
7
  module ArrayFields
8
- self::VERSION = '4.9.0' unless defined? self::VERSION
8
+ self::VERSION = '4.9.2' unless defined? self::VERSION
9
9
  def self.version() Arrayfields::VERSION end
10
10
 
11
+ def ArrayFields.description
12
+ 'string/symbol keyword access to arrays'
13
+ end
14
+
11
15
  class << self
12
16
  def index(list)
13
17
  index = list.dup
metadata CHANGED
@@ -1,17 +1,16 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: arrayfields
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.9.0
5
- prerelease:
4
+ version: 4.9.2
6
5
  platform: ruby
7
6
  authors:
8
7
  - Ara T. Howard
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-03-18 00:00:00.000000000 Z
11
+ date: 2014-02-22 00:00:00.000000000 Z
13
12
  dependencies: []
14
- description: ! 'description: arrayfields kicks the ass'
13
+ description: string/symbol keyword access to arrays
15
14
  email: ara.t.howard@gmail.com
16
15
  executables: []
17
16
  extensions: []
@@ -32,29 +31,28 @@ files:
32
31
  - test/arrayfields.rb
33
32
  - test/memtest.rb
34
33
  homepage: https://github.com/ahoward/arrayfields
35
- licenses: []
34
+ licenses:
35
+ - same as ruby's
36
+ metadata: {}
36
37
  post_install_message:
37
38
  rdoc_options: []
38
39
  require_paths:
39
40
  - lib
40
41
  required_ruby_version: !ruby/object:Gem::Requirement
41
- none: false
42
42
  requirements:
43
43
  - - ! '>='
44
44
  - !ruby/object:Gem::Version
45
45
  version: '0'
46
46
  required_rubygems_version: !ruby/object:Gem::Requirement
47
- none: false
48
47
  requirements:
49
48
  - - ! '>='
50
49
  - !ruby/object:Gem::Version
51
50
  version: '0'
52
51
  requirements: []
53
52
  rubyforge_project: codeforpeople
54
- rubygems_version: 1.8.23
53
+ rubygems_version: 2.0.3
55
54
  signing_key:
56
- specification_version: 3
55
+ specification_version: 4
57
56
  summary: arrayfields
58
57
  test_files:
59
58
  - test/arrayfields.rb
60
- has_rdoc: