Sha256: 37df3e6213a7884d1544979d3f04c4836b420ea5629bf4414297dfd5cc607b58

Contents?: true

Size: 1.42 KB

Versions: 3

Compression:

Stored size: 1.42 KB

Contents

# -*- encoding: utf-8 -*-

require './lib/recursive_open_struct/version'

Gem::Specification.new do |s|
  s.name = "recursive-open-struct"
  s.version = RecursiveOpenStruct::VERSION
  s.authors = ["William (B.J.) Snow Orvis"]
  s.email = "aetherknight@gmail.com"
  s.date = Time.now.utc.strftime("%Y-%m-%d")
  s.homepage = "https://github.com/aetherknight/recursive-open-struct"
  s.licenses = ["MIT"]

  s.summary = "OpenStruct subclass that returns nested hash attributes as RecursiveOpenStructs"
  s.description = <<-QUOTE .gsub(/^    /,'')
    RecursiveOpenStruct is a subclass of OpenStruct. It differs from
    OpenStruct in that it allows nested hashes to be treated in a recursive
    fashion. For example:

        ros = RecursiveOpenStruct.new({ :a => { :b => 'c' } })
        ros.a.b # 'c'

    Also, nested hashes can still be accessed as hashes:

        ros.a_as_a_hash # { :b => 'c' }
    QUOTE

  s.files = `git ls-files`.split("\n")
  s.test_files = `git ls-files spec`.split("\n")
  s.require_paths = ["lib"]
  s.extra_rdoc_files = [
    "CHANGELOG.md",
    "LICENSE.txt",
    "README.md"
  ]

  s.add_development_dependency('bundler', [">= 0"])
  s.add_development_dependency('pry', [">= 0"])
  s.add_development_dependency('rake', [">= 0"])
  s.add_development_dependency('rdoc', [">= 0"])
  s.add_development_dependency('rspec', "~> 3.2")
  s.add_development_dependency('simplecov', [">= 0"])

  s.add_dependency('ostruct')
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
recursive-open-struct-2.0.0 recursive-open-struct.gemspec
recursive-open-struct-1.3.1 recursive-open-struct.gemspec
recursive-open-struct-1.3.0 recursive-open-struct.gemspec