typed_array 1.0.1 → 1.0.2

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
- SHA256:
3
- metadata.gz: 51df2a5bdd1bf2ef18e2d930fded2af9434367b7bfc29312bd3538a3b8d5cf71
4
- data.tar.gz: 22dbcfe75d718da1528a19a388b41d7c7b03552737354931bf8a5575b874cfad
2
+ SHA1:
3
+ metadata.gz: 33aadcb67518723a84530be8c1ca9899eb7fce0c
4
+ data.tar.gz: d46f65323cdea674a20d4a7be0bc2f534f61c36d
5
5
  SHA512:
6
- metadata.gz: 851e90ba45588b231d456730308f504db1b7d135a58879873a305717599460c280234750847c9ed56cc366df209276926274599cc137b25281be828ba6367cd4
7
- data.tar.gz: 3568614e4cffe9eff314a31a25597c4fbd491fba7e700108ffd3b6863db41fca68f0cef1090911f95b79fa390b9b51e1881484e06faf176e724072c17a6ef1d8
6
+ metadata.gz: fd2b3455550c63b4f44d05b449a46f665152a9f14dcef267e7290f69eada3d59f730bb018f3a6e4eb172915a368a4f44e1296a42890d1610cafe1cf0bd3d3981
7
+ data.tar.gz: ef5ce7371328afc86da2fcd2629c5ab761310fb591da820251b09ce9a286b8a6d75dfc7834c46961724c044951b45ad109deda1f9d979b6a3ce0e4c8e655d2c4
@@ -0,0 +1 @@
1
+ since-tag=v1.0.1
data/.travis.yml CHANGED
@@ -2,4 +2,21 @@ sudo: false
2
2
  language: ruby
3
3
  rvm:
4
4
  - 2.2.8
5
- before_install: gem install bundler -v 1.16.1
5
+ - 2.2.9
6
+ - 2.2.10
7
+ - 2.3.0
8
+ - 2.3.1
9
+ - 2.3.2
10
+ - 2.3.3
11
+ - 2.3.4
12
+ - 2.3.5
13
+ - 2.3.6
14
+ - 2.3.7
15
+ - 2.4.0
16
+ - 2.4.1
17
+ - 2.4.2
18
+ - 2.4.3
19
+ - 2.4.4
20
+ - 2.5.0
21
+ - 2.5.1
22
+ before_install: gem install bundler -v 1.16.2
data/CHANGELOG.md ADDED
@@ -0,0 +1,5 @@
1
+ # Change Log
2
+
3
+
4
+
5
+ \* *This Change Log was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)*
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- typed_array (1.0.1)
4
+ typed_array (1.0.2)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -32,4 +32,4 @@ DEPENDENCIES
32
32
  typed_array!
33
33
 
34
34
  BUNDLED WITH
35
- 1.16.1
35
+ 1.16.2
data/README.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # TypedArray
2
2
 
3
+ [![Gem Version](https://badge.fury.io/rb/typed_array.svg)](https://badge.fury.io/rb/typed_array)
4
+ [![Build Status](https://travis-ci.com/akoltun/typed_array.svg?branch=master)](https://travis-ci.com/akoltun/typed_array)
5
+
3
6
  This gem provides new type `TypedArray` which is direct successor of ruby `Array` class.
4
7
  `TypedArray` requires to specify a type of its elements and allows to add only elements of this type.
5
8
 
data/bundle_install.sh ADDED
@@ -0,0 +1,26 @@
1
+ #!/usr/bin/env bash
2
+
3
+ set -e
4
+
5
+ rubies=()
6
+ versions=false
7
+ while read -r line; do
8
+ if [[ $line == "rvm:" ]]
9
+ then
10
+ versions=true
11
+ elif $versions && [[ $line == -* ]]
12
+ then
13
+ rubies+=(${line:2})
14
+ elif [[ ${line:0:1} != "#" ]]
15
+ then
16
+ versions=false
17
+ fi
18
+ done < ".travis.yml"
19
+
20
+ for i in "${rubies[@]}"
21
+ do
22
+ echo "====================================================="
23
+ echo "$i: Start bundle install"
24
+ echo "====================================================="
25
+ rvm $i exec bundle
26
+ done
@@ -0,0 +1,28 @@
1
+ #!/usr/bin/env bash
2
+
3
+ set -e
4
+
5
+ rubies=()
6
+ versions=false
7
+ while read -r line; do
8
+ if [[ $line == "rvm:" ]]
9
+ then
10
+ versions=true
11
+ elif $versions && [[ $line == -* ]]
12
+ then
13
+ rubies+=(${line:2})
14
+ elif [[ ${line:0:1} != "#" ]]
15
+ then
16
+ versions=false
17
+ fi
18
+ done < ".travis.yml"
19
+
20
+ for i in "${rubies[@]}"
21
+ do
22
+ echo "====================================================="
23
+ echo "Install Ruby $i"
24
+ echo "====================================================="
25
+ rvm install $i
26
+ done
27
+
28
+ rvm all do gem install bundler
data/lib/typed_array.rb CHANGED
@@ -12,6 +12,7 @@ class TypedArray < Array
12
12
 
13
13
  def initialize(item_class, *args)
14
14
  @item_class = item_class
15
+ validate_assigned_items(*args) if args.size > 0
15
16
  super(*args)
16
17
  end
17
18
 
@@ -1,3 +1,3 @@
1
1
  class TypedArray < Array
2
- VERSION = "1.0.1"
2
+ VERSION = "1.0.2"
3
3
  end
data/run_spec.sh ADDED
@@ -0,0 +1,29 @@
1
+ #!/usr/bin/env bash
2
+
3
+ set -e
4
+
5
+ rubies=()
6
+ versions=false
7
+ while read -r line; do
8
+ if [[ $line == "rvm:" ]]
9
+ then
10
+ versions=true
11
+ elif $versions && [[ $line == -* ]]
12
+ then
13
+ rubies+=(${line:2})
14
+ elif [[ ${line:0:1} != "#" ]]
15
+ then
16
+ versions=false
17
+ fi
18
+ done < ".travis.yml"
19
+
20
+ for i in "${rubies[@]}"
21
+ do
22
+ echo "====================================================="
23
+ echo "$i: Start Test"
24
+ echo "====================================================="
25
+ rvm $i exec bundle exec rspec spec
26
+ echo "====================================================="
27
+ echo "$i: End Test"
28
+ echo "====================================================="
29
+ done
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: typed_array
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Koltun
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-04-12 00:00:00.000000000 Z
11
+ date: 2018-06-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -59,9 +59,11 @@ executables: []
59
59
  extensions: []
60
60
  extra_rdoc_files: []
61
61
  files:
62
+ - ".github_changelog_generator"
62
63
  - ".gitignore"
63
64
  - ".rspec"
64
65
  - ".travis.yml"
66
+ - CHANGELOG.md
65
67
  - Gemfile
66
68
  - Gemfile.lock
67
69
  - LICENSE.txt
@@ -69,8 +71,11 @@ files:
69
71
  - Rakefile
70
72
  - bin/console
71
73
  - bin/setup
74
+ - bundle_install.sh
75
+ - install_rubies_and_bundler.sh
72
76
  - lib/typed_array.rb
73
77
  - lib/typed_array/version.rb
78
+ - run_spec.sh
74
79
  - typed_array.gemspec
75
80
  homepage: https://github.com/akoltun/typed_array
76
81
  licenses:
@@ -93,7 +98,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
93
98
  version: '0'
94
99
  requirements: []
95
100
  rubyforge_project:
96
- rubygems_version: 2.7.6
101
+ rubygems_version: 2.6.14
97
102
  signing_key:
98
103
  specification_version: 4
99
104
  summary: Array with element strict typing