namedstruct 0.1.0 → 0.2.0

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: 14ac8dc41bad10f585eb404086cc4804928211b4
4
- data.tar.gz: 62343e3e0ab0278f4c3e51f136369d16bcfccd3b
3
+ metadata.gz: 9fe60e178034e3e007b82ea296c9f5bf4db96cc1
4
+ data.tar.gz: 1f72f3dbb676295a136a192c36f141261f3480f1
5
5
  SHA512:
6
- metadata.gz: 7147281c38e4e286eaaed8a5094348733117dac72c3f27cd7d6e05ece335f3b50595c211dd5cf549becee216650b5eac725c4f8d5f5df9d0c5bd060fa7aa9860
7
- data.tar.gz: d938550cf4356bb1c80ad3b20d36ca2193223ec093dfd0d587bf8cc2d7c377517053d07000e71a41de9cca065b9284894d633d62486c7436cb19d3b9aba9ee55
6
+ metadata.gz: c1be3021824abb5fa41333e99be44daa257762cb8668fb99f938afbe70c2da7e1dae9e5ae376c852e133592830003bea247e6b3a5fc0926d7f2f869dd309455c
7
+ data.tar.gz: 2c8f698aaa0acaa054e935b163621ec28022563ad5ea823b34c71f5ecabf8dc94aa34f018ef786d69224357a37bfd873c85cea198c448cfd57dc949cbd2a90bd
data/.travis.yml CHANGED
@@ -1,5 +1,11 @@
1
- sudo: false
2
1
  language: ruby
2
+ sudo: false
3
+ cache: bundler
4
+
3
5
  rvm:
4
6
  - 2.4.2
5
- before_install: gem install bundler -v 1.15.4
7
+ - 2.3.5
8
+ - 2.2.8
9
+ - 2.1.10
10
+ - 2.0.0
11
+ - ruby-head
data/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # NamedStruct
2
2
 
3
+ [![Travis](https://img.shields.io/travis/rohitpaulk/named_struct.svg)](https://travis-ci.org/rohitpaulk/named_struct) [![Gem](https://img.shields.io/gem/v/namedstruct.svg)](https://rubygems.org/gems/namedstruct)
4
+
3
5
  `NamedStruct` is a replacement for Ruby's built-in
4
6
  [`Struct`](https://ruby-doc.org/core-2.4.0/Struct.html) that accepts keyword
5
7
  arguments instead of positional arguments.
@@ -1,7 +1,5 @@
1
- require "named_struct/version"
2
-
3
1
  class NamedStruct < Struct
4
- VERSION = "0.1.0"
2
+ VERSION = "0.2.0"
5
3
 
6
4
  # Allow initialization via positional arguments.
7
5
  def initialize(**kwargs)
@@ -1,7 +1,7 @@
1
1
  # coding: utf-8
2
2
  lib = File.expand_path("../lib", __FILE__)
3
3
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
- require "named_struct"
4
+ require "namedstruct"
5
5
 
6
6
  Gem::Specification.new do |spec|
7
7
  spec.name = "namedstruct"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: namedstruct
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paul Kuruvilla
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-09-27 00:00:00.000000000 Z
11
+ date: 2017-10-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -69,9 +69,8 @@ files:
69
69
  - Rakefile
70
70
  - bin/console
71
71
  - bin/setup
72
- - lib/named_struct.rb
73
- - lib/named_struct/version.rb
74
- - named_struct.gemspec
72
+ - lib/namedstruct.rb
73
+ - namedstruct.gemspec
75
74
  homepage: https://github.com/rohitpaulk/named_struct
76
75
  licenses:
77
76
  - MIT
File without changes