in_array 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- ZjAzNTlhMDA4YjY2Y2UxNWM1NTAxMjUyMmY1MjE2ODQ2ZTFiMmRiMw==
5
- data.tar.gz: !binary |-
6
- OGNiZTYyZTE3Njg0YWZjNWY1M2UxYzA0YjIyNDNmZWYzNjViODA2Yw==
2
+ SHA1:
3
+ metadata.gz: 56fbd9784a0391640e694ebad710d6a8c5f532d5
4
+ data.tar.gz: bd5283bf27cbe715ad63d6f5a6e40d230fa66c9d
7
5
  SHA512:
8
- metadata.gz: !binary |-
9
- ZGY5NmUyYjBlNzY3ZjM5MTcwZWI2OTg4NDcxYzJjMDlkZTVmMWZhMDY1ODlh
10
- N2Y3NjZlYWI1YjA0ZjNiNjFhMmYzYjMyMzE4NGE5YzA4YTlkZDdmNWM2MGU2
11
- NTY1ZjcwNmVmMzlhOWEzMDg5YjEwZmI4ODQ3MDdkZTY4ZmMzYzg=
12
- data.tar.gz: !binary |-
13
- Y2ZiNGU3MTc0NzQ3ZDI0ZDNjZDhiNWY5MDQ3NzQzMjQ2ZThiZmI1YWE5NTFm
14
- MzE2Njg5MTAzM2U4YmNhNzIxZmI0Y2Q0YjgyYTllZjE3ZTk2ZWRjYTg1N2U4
15
- ZDA2NTAyMTkyMjg1OWU3YTUzNWVkYzliNGU5ZmM2ZGIyYWNkNTg=
6
+ metadata.gz: 1876848dbefc29438ecd6e4dfd601041b6ee8bc30cad24df54e6f52af510536727d4e2d5213b95e07863e12856dafe5281a79417df8be054959ce9be73e1705d
7
+ data.tar.gz: 78dc1d785c9218e842709d929b751e713b94d434d28358774ec6ef785d2773ccf7e2df9aeda6a1eee1f1ce274e5417553eda45933096668883d6f859377e2460
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in in_array.gemspec
4
+ gemspec
data/Gemfile.lock ADDED
@@ -0,0 +1,36 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ in_array (0.1.2)
5
+
6
+ GEM
7
+ remote: https://rubygems.org/
8
+ specs:
9
+ json (1.8.1)
10
+ minitest (4.7.5)
11
+ rainbow (2.0.0)
12
+ rake (10.3.2)
13
+ rdoc (4.0.1)
14
+ json (~> 1.4)
15
+ reek (1.3.8)
16
+ rainbow (>= 1.99, < 3.0)
17
+ ruby2ruby (>= 2.0.8, < 3.0)
18
+ ruby_parser (~> 3.3)
19
+ sexp_processor
20
+ ruby2ruby (2.1.3)
21
+ ruby_parser (~> 3.1)
22
+ sexp_processor (~> 4.0)
23
+ ruby_parser (3.6.3)
24
+ sexp_processor (~> 4.1)
25
+ sexp_processor (4.4.4)
26
+
27
+ PLATFORMS
28
+ x86-mingw32
29
+
30
+ DEPENDENCIES
31
+ bundler (~> 1.3)
32
+ in_array!
33
+ minitest (~> 4.7.5)
34
+ rake
35
+ rdoc (~> 4.0.1)
36
+ reek (~> 1.3.8)
data/README.md CHANGED
@@ -4,10 +4,10 @@ This project contains the Ruby in_array gem. This is perhaps the tiniest gem
4
4
  ever created. It allows all objects to respond to the :in_array method that
5
5
  encapsulates the object in an array unless it is already an array. So
6
6
 
7
- 'Hello'.in_array ====> ['Hello']
8
- ['Hello'].in_array ====> ['Hello']
9
- my_object.in_array ====> [my_object]
10
- [1,2,3].in_array ====> [1,2,3]
7
+ 'Hello'.in_array ====> ['Hello']
8
+ ['Hello'].in_array ====> ['Hello']
9
+ my_object.in_array ====> [my_object]
10
+ [1,2,3].in_array ====> [1,2,3]
11
11
 
12
12
  While not a terribly useful gem, it does demonstrate the use of inheritance
13
13
  and true as opposed to simulated polymorphism.
data/in_array.gemspec CHANGED
@@ -17,6 +17,7 @@ Gem::Specification.new do |s|
17
17
  s.platform = Gem::Platform::RUBY
18
18
  s.required_ruby_version = '>=1.9.3'
19
19
 
20
+ s.add_development_dependency 'minitest_visible', ">= 0.1.0"
20
21
  s.add_development_dependency "bundler", "~> 1.3"
21
22
  s.add_development_dependency 'rake'
22
23
  s.add_development_dependency 'reek', "~> 1.3.8"
@@ -0,0 +1,7 @@
1
+ # coding: utf-8
2
+
3
+ #* version.rb - The version string for flex array.
4
+ module InArray
5
+ #The version string for flex array.
6
+ VERSION = "0.1.3"
7
+ end
@@ -1,19 +1,12 @@
1
1
  require_relative '../lib/in_array'
2
+ gem 'minitest'
2
3
  require 'minitest/autorun'
4
+ require 'minitest_visible'
5
+
6
+ class InArrayTester < Minitest::Test
7
+ #Track mini-test progress.
8
+ include MinitestVisible
3
9
 
4
- class InArrayTester < MiniTest::Unit::TestCase
5
- $do_this_only_one_time = "" unless defined? $do_this_only_one_time
6
-
7
- def initialize(*all)
8
- if $do_this_only_one_time != __FILE__
9
- puts
10
- puts "Running test file: #{File.split(__FILE__)[1]}"
11
- $do_this_only_one_time = __FILE__
12
- end
13
-
14
- super(*all)
15
- end
16
-
17
10
  def test_that_it_encapsulates_in_arrays
18
11
  assert_equal(nil.in_array, [nil])
19
12
  assert_equal('Hello'.in_array, ['Hello'])
metadata CHANGED
@@ -1,96 +1,113 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: in_array
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Camilleri
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-11-04 00:00:00.000000000 Z
11
+ date: 2016-02-27 00:00:00.000000000 Z
12
12
  dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: minitest_visible
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: 0.1.0
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: 0.1.0
13
27
  - !ruby/object:Gem::Dependency
14
28
  name: bundler
15
29
  requirement: !ruby/object:Gem::Requirement
16
30
  requirements:
17
- - - ~>
31
+ - - "~>"
18
32
  - !ruby/object:Gem::Version
19
33
  version: '1.3'
20
34
  type: :development
21
35
  prerelease: false
22
36
  version_requirements: !ruby/object:Gem::Requirement
23
37
  requirements:
24
- - - ~>
38
+ - - "~>"
25
39
  - !ruby/object:Gem::Version
26
40
  version: '1.3'
27
41
  - !ruby/object:Gem::Dependency
28
42
  name: rake
29
43
  requirement: !ruby/object:Gem::Requirement
30
44
  requirements:
31
- - - ! '>='
45
+ - - ">="
32
46
  - !ruby/object:Gem::Version
33
47
  version: '0'
34
48
  type: :development
35
49
  prerelease: false
36
50
  version_requirements: !ruby/object:Gem::Requirement
37
51
  requirements:
38
- - - ! '>='
52
+ - - ">="
39
53
  - !ruby/object:Gem::Version
40
54
  version: '0'
41
55
  - !ruby/object:Gem::Dependency
42
56
  name: reek
43
57
  requirement: !ruby/object:Gem::Requirement
44
58
  requirements:
45
- - - ~>
59
+ - - "~>"
46
60
  - !ruby/object:Gem::Version
47
61
  version: 1.3.8
48
62
  type: :development
49
63
  prerelease: false
50
64
  version_requirements: !ruby/object:Gem::Requirement
51
65
  requirements:
52
- - - ~>
66
+ - - "~>"
53
67
  - !ruby/object:Gem::Version
54
68
  version: 1.3.8
55
69
  - !ruby/object:Gem::Dependency
56
70
  name: minitest
57
71
  requirement: !ruby/object:Gem::Requirement
58
72
  requirements:
59
- - - ~>
73
+ - - "~>"
60
74
  - !ruby/object:Gem::Version
61
75
  version: 4.7.5
62
76
  type: :development
63
77
  prerelease: false
64
78
  version_requirements: !ruby/object:Gem::Requirement
65
79
  requirements:
66
- - - ~>
80
+ - - "~>"
67
81
  - !ruby/object:Gem::Version
68
82
  version: 4.7.5
69
83
  - !ruby/object:Gem::Dependency
70
84
  name: rdoc
71
85
  requirement: !ruby/object:Gem::Requirement
72
86
  requirements:
73
- - - ~>
87
+ - - "~>"
74
88
  - !ruby/object:Gem::Version
75
89
  version: 4.0.1
76
90
  type: :development
77
91
  prerelease: false
78
92
  version_requirements: !ruby/object:Gem::Requirement
79
93
  requirements:
80
- - - ~>
94
+ - - "~>"
81
95
  - !ruby/object:Gem::Version
82
96
  version: 4.0.1
83
- description: ! 'Encapsulate data in an array unless it''s already in one. '
97
+ description: 'Encapsulate data in an array unless it''s already in one. '
84
98
  email: peter.c.camilleri@gmail.com
85
99
  executables: []
86
100
  extensions: []
87
101
  extra_rdoc_files:
88
102
  - license.txt
89
103
  files:
90
- - .gitignore
104
+ - ".gitignore"
105
+ - Gemfile
106
+ - Gemfile.lock
91
107
  - README.md
92
108
  - in_array.gemspec
93
109
  - lib/in_array.rb
110
+ - lib/in_array/version.rb
94
111
  - license.txt
95
112
  - rakefile.rb
96
113
  - reek.txt
@@ -105,17 +122,17 @@ require_paths:
105
122
  - lib
106
123
  required_ruby_version: !ruby/object:Gem::Requirement
107
124
  requirements:
108
- - - ! '>='
125
+ - - ">="
109
126
  - !ruby/object:Gem::Version
110
127
  version: 1.9.3
111
128
  required_rubygems_version: !ruby/object:Gem::Requirement
112
129
  requirements:
113
- - - ! '>='
130
+ - - ">="
114
131
  - !ruby/object:Gem::Version
115
132
  version: '0'
116
133
  requirements: []
117
134
  rubyforge_project:
118
- rubygems_version: 2.1.4
135
+ rubygems_version: 2.2.2
119
136
  signing_key:
120
137
  specification_version: 4
121
138
  summary: Encapsulate data in an array.