komagire 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 0e351a5e68de41e09b1cdb304cdbfce54a3b1777
4
+ data.tar.gz: 94dcd9f96ea09b5607b0bfa5d9ab83fef37a98b7
5
+ SHA512:
6
+ metadata.gz: fa4a9aae8c9ac0edb42ac19e9a8cfea252b2ba4bb892b1db18707159e4d7e9e34a60d4e515180cbb6423f27e21a731a2e1c43cf163a9f7fbd4da8f6d6c918faa
7
+ data.tar.gz: df54c1845237d09c47fbd82f5542f2ed5d204b65c717a4bc72e5fd846b54433400092c97541ca6407bbbccfd08854a683ebab583fa546e19a0837bf905fb9ef1
@@ -0,0 +1,9 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
data/.rspec ADDED
@@ -0,0 +1,2 @@
1
+ --format documentation
2
+ --color
@@ -0,0 +1,9 @@
1
+ language: ruby
2
+ rvm:
3
+ - 2.0.0
4
+ - 2.1
5
+ - 2.2
6
+ before_install: gem install bundler -v 1.10.5
7
+ script:
8
+ - bundle install
9
+ - bundle exec rake spec
@@ -0,0 +1,13 @@
1
+ # Contributor Code of Conduct
2
+
3
+ As contributors and maintainers of this project, we pledge to respect all people who contribute through reporting issues, posting feature requests, updating documentation, submitting pull requests or patches, and other activities.
4
+
5
+ We are committed to making participation in this project a harassment-free experience for everyone, regardless of level of experience, gender, gender identity and expression, sexual orientation, disability, personal appearance, body size, race, ethnicity, age, or religion.
6
+
7
+ Examples of unacceptable behavior by participants include the use of sexual language or imagery, derogatory comments or personal attacks, trolling, public or private harassment, insults, or other unprofessional conduct.
8
+
9
+ Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct. Project maintainers who do not follow the Code of Conduct may be removed from the project team.
10
+
11
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by opening an issue or contacting one or more of the project maintainers.
12
+
13
+ This Code of Conduct is adapted from the [Contributor Covenant](http://contributor-covenant.org), version 1.0.0, available at [http://contributor-covenant.org/version/1/0/0/](http://contributor-covenant.org/version/1/0/0/)
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in komagire.gemspec
4
+ gemspec
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2015 Takumi IINO
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
@@ -0,0 +1,91 @@
1
+ # Komagire
2
+
3
+ [![Gem Version](https://badge.fury.io/rb/komagire.svg)](http://badge.fury.io/rb/komagire)
4
+ [![Build Status](https://travis-ci.org/troter/komagire.svg?branch=master)](https://travis-ci.org/troter/komagire)
5
+ [![Coverage Status](https://coveralls.io/repos/troter/komagire/badge.svg)](https://coveralls.io/r/troter/komagire)
6
+ [![Code Climate](https://codeclimate.com/github/troter/komagire/badges/gpa.svg)](https://codeclimate.com/github/troter/komagire)
7
+
8
+ Compose an object from comma separated keys.
9
+
10
+ ## Installation
11
+
12
+ Add this line to your application's Gemfile:
13
+
14
+ ```ruby
15
+ gem 'komagire'
16
+ ```
17
+
18
+ And then execute:
19
+
20
+ $ bundle
21
+
22
+ Or install it yourself as:
23
+
24
+ $ gem install komagire
25
+
26
+ ## Usage
27
+
28
+ Compose an object from `|` separated keys.
29
+
30
+ ```ruby
31
+ class Tag < ActiveRecord::Base
32
+ end
33
+
34
+ Tag.create(id: 1, name: 'ruby')
35
+ Tag.create(id: 2, name: 'perl')
36
+ Tag.create(id: 3, name: 'java')
37
+
38
+ class Post < ActiveRecord::Base
39
+ composed_of_komagire_key_list :tags, :tag_names, 'Tag', :name, komagire: {delimiter: '|'}
40
+ end
41
+
42
+ post = Post.new
43
+ post.tags = 'ruby|java'
44
+ post.tags.class # => Komagire::KeyList
45
+ post.tags # => [#<Tag:0x007f8fea2e46c8 id: 1, name: "ruby">,#<Tag:0x007f8fea2e44c0 id: 3, name: "java">]
46
+ post.save
47
+ post.tag_names # => '|java|ruby|'
48
+ ```
49
+
50
+ Compose an object from comma separated ids.
51
+
52
+ ```ruby
53
+ class Post < ActiveRecord::Base
54
+ composed_of_komagire_id_list :tags, :tag_ids, 'Tag'
55
+ end
56
+
57
+ post = Post.new
58
+ post.tags = '1,2'
59
+ post.tags.class # => Komagire::IdList
60
+ post.tags # => [#<Tag:0x007f8fea2e46c8 id: 1, name: "ruby">,#<Tag:0x007f8fea2e44c0 id: 3, name: "java">]
61
+ post.save
62
+ post.tag_ids # => ',1,2,'
63
+ ```
64
+
65
+ Convertion option.
66
+
67
+ ```ruby
68
+ # comma separated ids
69
+ post.tags = '1,2' # string
70
+ post.tags = %w[1 2] # array of string
71
+ post.tags = [1, 2] # array of integer(id)
72
+ post.tags = [Tag.find(1), Tag.find(2)] # array of Tag
73
+ post.tags = Tag.where(id: [1, 2]) # ActiveRecord::Relation
74
+ post.tags = Komagire::IdList.new('Tag', '1,2') # same object
75
+ ```
76
+
77
+ ## Development
78
+
79
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake rspec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
80
+
81
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
82
+
83
+ ## Contributing
84
+
85
+ Bug reports and pull requests are welcome on GitHub at https://github.com/troter/komagire. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](contributor-covenant.org) code of conduct.
86
+
87
+
88
+ ## License
89
+
90
+ The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
91
+
@@ -0,0 +1,6 @@
1
+ require 'bundler/gem_tasks'
2
+ require 'rspec/core/rake_task'
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+
6
+ task default: :spec
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "komagire"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "irb"
14
+ IRB.start
@@ -0,0 +1,7 @@
1
+ #!/bin/bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+
5
+ bundle install
6
+
7
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,34 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'komagire/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "komagire"
8
+ spec.version = Komagire::VERSION
9
+ spec.authors = ["Takumi IINO"]
10
+ spec.email = ["trot.thunder@gmail.com"]
11
+
12
+ spec.summary = %q{Compose an object from comma separated keys.}
13
+ spec.description = %q{Compose an object from comma separated keys.}
14
+ spec.homepage = "https://github.com/troter/komagire"
15
+ spec.license = "MIT"
16
+
17
+ spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
18
+ spec.bindir = "exe"
19
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
20
+ spec.require_paths = ["lib"]
21
+
22
+ spec.required_ruby_version = '>= 2.0.0'
23
+
24
+ spec.add_runtime_dependency "activesupport", "~> 4.0"
25
+ spec.add_runtime_dependency "activerecord", "~> 4.0"
26
+ spec.add_development_dependency "active_hash"
27
+
28
+ spec.add_development_dependency "bundler", "~> 1.10"
29
+ spec.add_development_dependency "rake", "~> 10.0"
30
+ spec.add_development_dependency "rspec"
31
+ spec.add_development_dependency "sqlite3"
32
+
33
+ spec.add_development_dependency 'coveralls'
34
+ end
@@ -0,0 +1,22 @@
1
+ require 'komagire/version'
2
+ require 'komagire/key_list'
3
+ require 'komagire/id_list'
4
+ require 'komagire/active_record_extension'
5
+
6
+ module Komagire
7
+ end
8
+
9
+ begin
10
+ require 'rails'
11
+ rescue LoadError
12
+ # ignore
13
+ end
14
+
15
+ if defined? Rails
16
+ require 'komagire/railtie'
17
+ else
18
+ require 'active_support'
19
+ ActiveSupport.on_load :active_record do
20
+ extend Komagire::ActiveRecordExtension
21
+ end
22
+ end
@@ -0,0 +1,46 @@
1
+ module Komagire
2
+ module ActiveRecordExtension
3
+ # @param [Symbol] part_id
4
+ # @param [Symbol] attribute
5
+ # @param [String] content_class_name
6
+ # @param [Symbol] content_class_attribute
7
+ # @param [Hash] options
8
+ # @option options [Hash] :komagire ({}) options that are passed to the Komagire::KeyList
9
+ def composed_of_komagire_key_list(part_id, attribute, content_class_name, content_class_attribute, options={})
10
+ komagire_options = options.delete(:komagire) || {}
11
+ options = {
12
+ class_name: 'Komagire::KeyList',
13
+ mapping: [[attribute.to_s, 'cskeys']],
14
+ allow_nil: false,
15
+ constructor: lambda { |cskeys|
16
+ Komagire::KeyList.new(content_class_name, content_class_attribute, cskeys, komagire_options)
17
+ },
18
+ converter: lambda { |value|
19
+ Komagire::KeyList.new(content_class_name, content_class_attribute, value, komagire_options)
20
+ },
21
+ }.merge(options)
22
+ composed_of part_id, options
23
+ end
24
+
25
+ # @param [Symbol] part_id
26
+ # @param [Symbol] attribute
27
+ # @param [String] content_class_name
28
+ # @param [Hash] options
29
+ # @option options [Hash] :komagire ({}) options that are passed to the Komagire::KeyList
30
+ def composed_of_komagire_id_list(part_id, attribute, content_class_name, options={})
31
+ komagire_options = options.delete(:komagire) || {}
32
+ options = {
33
+ class_name: 'Komagire::IdList',
34
+ mapping: [[attribute.to_s, 'csids']],
35
+ allow_nil: false,
36
+ constructor: lambda { |cskeys|
37
+ Komagire::IdList.new(content_class_name, cskeys, komagire_options)
38
+ },
39
+ converter: lambda { |value|
40
+ Komagire::IdList.new(content_class_name, value, komagire_options)
41
+ },
42
+ }.merge(options)
43
+ composed_of part_id, options
44
+ end
45
+ end
46
+ end
@@ -0,0 +1,54 @@
1
+ module Komagire
2
+ class IdList < KeyList
3
+ # @param [String] content_class_name
4
+ # @param [String] cskeys comma separated keys
5
+ # @param [Hash] options
6
+ # @option options [Symbol] :primary_Key
7
+ # @option options [String] :delimiter (Komagire::DEFAULT_DELIMITER)
8
+ def initialize(content_class_name, cskeys, options = {})
9
+ key = options.delete(:primary_key) || :id
10
+ super(content_class_name, key, cskeys, options)
11
+ end
12
+
13
+ # comma separated ids
14
+ #
15
+ # @return [String]
16
+ def csids
17
+ cskeys
18
+ end
19
+
20
+ private
21
+
22
+ def _convert(cskeys)
23
+ Converter.new(@content_class_name, @attribute, @delimiter).convert(cskeys)
24
+ end
25
+
26
+ def _keys
27
+ super.map(&:to_i)
28
+ end
29
+
30
+ def _find_by_cskeys
31
+ ancestors = content_class_name.constantize.ancestors.map(&:to_s)
32
+ if ancestors.include?('ActiveHash::Base')
33
+ _keys.map { |id| content_class_name.constantize.find_by_id(id) }.compact
34
+ else
35
+ super
36
+ end
37
+ end
38
+
39
+ class Converter < KeyList::Converter
40
+ def convert_to_cskeys_from_array(values)
41
+ case
42
+ when values.all? { |v| v.is_a?(String) }
43
+ values.join(delimiter)
44
+ when values.all? { |v| v.is_a?(Integer) }
45
+ values.join(delimiter)
46
+ when values.all? { |v| v.is_a?(content_class_name.constantize) }
47
+ values.map(&attribute).join(delimiter)
48
+ else
49
+ fail DifferentContentClass
50
+ end
51
+ end
52
+ end
53
+ end
54
+ end
@@ -0,0 +1,100 @@
1
+ require 'delegate'
2
+
3
+ module Komagire
4
+ DEFAULT_DELIMITER = ','
5
+
6
+ DifferentContentClass = Class.new(StandardError)
7
+
8
+ class KeyList < SimpleDelegator
9
+ attr_reader :content_class_name, :attribute
10
+
11
+ # @param [String] content_class_name
12
+ # @param [Symbol] attribute
13
+ # @param [String] cskeys comma separated keys
14
+ # @param [Hash] options
15
+ # @option options [String] :delimiter (Komagire::DEFAULT_DELIMITER)
16
+ def initialize(content_class_name, attribute, cskeys, options = {})
17
+ @content_class_name = content_class_name
18
+ @attribute = attribute
19
+ @delimiter = options[:delimiter] || Komagire::DEFAULT_DELIMITER
20
+ @cskeys = _convert(cskeys)
21
+ super(_find_by_cskeys)
22
+ end
23
+
24
+ # comma separated keys
25
+ #
26
+ # @return [String]
27
+ def cskeys
28
+ ([''] + map(&@attribute).sort.uniq + ['']).join(@delimiter)
29
+ end
30
+
31
+ def freeze
32
+ case __getobj__
33
+ when ActiveRecord::Relation
34
+ # avoid ActiveRecord::Relation is frozen
35
+ else
36
+ super
37
+ end
38
+ end
39
+
40
+ private
41
+
42
+ def _convert(cskeys)
43
+ Converter.new(@content_class_name, @attribute, @delimiter).convert(cskeys)
44
+ end
45
+
46
+ def _keys
47
+ @cskeys.split(@delimiter).sort.uniq
48
+ end
49
+
50
+ def _find_by_cskeys
51
+ content_class_name.constantize.where(@attribute => _keys)
52
+ end
53
+
54
+ class Converter
55
+ attr_reader :content_class_name, :attribute, :delimiter
56
+
57
+ def initialize(content_class_name, attribute, delimiter)
58
+ @content_class_name = content_class_name
59
+ @attribute = attribute
60
+ @delimiter = delimiter
61
+ end
62
+
63
+ def convert(value)
64
+ convert_to_cskeys(value) || ''
65
+ end
66
+
67
+ def convert_to_cskeys(value)
68
+ case value
69
+ when String
70
+ value
71
+ when Komagire::KeyList
72
+ if value.content_class_name == content_class_name && value.attribute == attribute
73
+ return value.cskeys
74
+ end
75
+ fail DifferentContentClass
76
+ else
77
+ values = case
78
+ when value.is_a?(Array) then value
79
+ when value.respond_to?(:to_a) then value.to_a
80
+ when value.respond_to?(:to_ary) then value.to_ary
81
+ else
82
+ fail ArgumentError
83
+ end
84
+ convert_to_cskeys_from_array(values.compact)
85
+ end
86
+ end
87
+
88
+ def convert_to_cskeys_from_array(values)
89
+ case
90
+ when values.all? { |v| v.is_a?(String) }
91
+ values.join(delimiter)
92
+ when values.all? { |v| v.is_a?(content_class_name.constantize) }
93
+ values.map(&attribute).join(delimiter)
94
+ else
95
+ fail ArgumentError
96
+ end
97
+ end
98
+ end
99
+ end
100
+ end
@@ -0,0 +1,9 @@
1
+ module Komagire
2
+ class Railtie < Rails::Railtie
3
+ initializer 'komagire' do
4
+ ActiveSupport.on_load :active_record do
5
+ extend Komagire::ActiveRecordExtension
6
+ end
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,3 @@
1
+ module Komagire
2
+ VERSION = '0.1.0'
3
+ end
metadata ADDED
@@ -0,0 +1,174 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: komagire
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Takumi IINO
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2015-07-27 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: activesupport
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '4.0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '4.0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: activerecord
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '4.0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '4.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: active_hash
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: bundler
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '1.10'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '1.10'
69
+ - !ruby/object:Gem::Dependency
70
+ name: rake
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '10.0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '10.0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: rspec
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: sqlite3
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: coveralls
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
125
+ description: Compose an object from comma separated keys.
126
+ email:
127
+ - trot.thunder@gmail.com
128
+ executables: []
129
+ extensions: []
130
+ extra_rdoc_files: []
131
+ files:
132
+ - ".gitignore"
133
+ - ".rspec"
134
+ - ".travis.yml"
135
+ - CODE_OF_CONDUCT.md
136
+ - Gemfile
137
+ - LICENSE.txt
138
+ - README.md
139
+ - Rakefile
140
+ - bin/console
141
+ - bin/setup
142
+ - komagire.gemspec
143
+ - lib/komagire.rb
144
+ - lib/komagire/active_record_extension.rb
145
+ - lib/komagire/id_list.rb
146
+ - lib/komagire/key_list.rb
147
+ - lib/komagire/railtie.rb
148
+ - lib/komagire/version.rb
149
+ homepage: https://github.com/troter/komagire
150
+ licenses:
151
+ - MIT
152
+ metadata: {}
153
+ post_install_message:
154
+ rdoc_options: []
155
+ require_paths:
156
+ - lib
157
+ required_ruby_version: !ruby/object:Gem::Requirement
158
+ requirements:
159
+ - - ">="
160
+ - !ruby/object:Gem::Version
161
+ version: 2.0.0
162
+ required_rubygems_version: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - ">="
165
+ - !ruby/object:Gem::Version
166
+ version: '0'
167
+ requirements: []
168
+ rubyforge_project:
169
+ rubygems_version: 2.4.5
170
+ signing_key:
171
+ specification_version: 4
172
+ summary: Compose an object from comma separated keys.
173
+ test_files: []
174
+ has_rdoc: