conglomerate 0.13.0 → 0.14.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: 21eda82883baa92aa51c7c06efb36c93db21d7bc
4
- data.tar.gz: 8a87dcb2ae4cab923a71d36d358f4db41f5659cd
3
+ metadata.gz: 7e7f86dfe40e6fc92f0c38175855edca70ef07ae
4
+ data.tar.gz: 91f29ea288d44987d94e0538c88a6ad20e84767f
5
5
  SHA512:
6
- metadata.gz: a832f6a31cdcd9f317dcf03884618f84c69ef04eedd8d7af165ff9162449ae38b41ca27a4a02588617a9ab7b20ccee7d2c90d9255e98c51ad9d05ea3955e42a0
7
- data.tar.gz: 34b7ccdee95768b1b11714b0d510ff204e8e96c3aad12781ced3aa69592e8167ea8b5c0168b9d1b4cbd05dd5d2c35f71934a8c5ba7c69d9b6022b13d5da6546b
6
+ metadata.gz: ed8a22876ae473586c0c47f69c84b945b9537adbb93ca037d3b1ccaf9fafbd74d84efb9642afc9fdb2a888b0b8082365c72a55da7d70bac0327da609421f99c0
7
+ data.tar.gz: c92c82fe723c88ff6ba1d17d3e07525efd2f847e9b1f34eb17de17f3b53bfd04a9f8f365854877e4881b7beb2812242d29f6a76d71d1a1e313c7865a947092ba
@@ -5,6 +5,5 @@ module Conglomerate
5
5
  attribute :name, :type => String, :required => true
6
6
  attribute :value, :cull => false
7
7
  attribute :prompt, :type => String
8
- attribute :type, :type => String
9
8
  end
10
9
  end
@@ -21,6 +21,5 @@ module Conglomerate
21
21
  value :name
22
22
  value :value
23
23
  value :prompt
24
- value :type
25
24
  end
26
25
  end
@@ -0,0 +1,9 @@
1
+ module Conglomerate
2
+ class Datum
3
+ attribute :type, :type => String
4
+ end
5
+
6
+ module DatumBuilder
7
+ value :type
8
+ end
9
+ end
@@ -1,3 +1,3 @@
1
1
  module Conglomerate
2
- VERSION = "0.13.0"
2
+ VERSION = "0.14.0"
3
3
  end
data/spec/datum_spec.rb CHANGED
@@ -19,11 +19,5 @@ describe Conglomerate::Datum do
19
19
  expect(datum).to respond_to(:"prompt=")
20
20
  expect { datum.prompt = 3 }.to raise_error
21
21
  end
22
-
23
- specify "type" do
24
- datum = Conglomerate::Datum.new(:name => "name")
25
- expect(datum).to respond_to(:"type=")
26
- expect { datum.type = 3 }.to raise_error
27
- end
28
22
  end
29
23
  end
@@ -0,0 +1,13 @@
1
+ require_relative "spec_helper"
2
+ require_relative "../lib/conglomerate"
3
+ require_relative "../lib/conglomerate/ext/datum_type"
4
+
5
+ describe Conglomerate::Datum do
6
+ context "optional attributes" do
7
+ specify "type" do
8
+ datum = Conglomerate::Datum.new(:name => "name")
9
+ expect(datum).to respond_to(:"type=")
10
+ expect { datum.type = 3 }.to raise_error
11
+ end
12
+ end
13
+ end
@@ -1,5 +1,6 @@
1
1
  require_relative "spec_helper"
2
2
  require_relative "../lib/conglomerate"
3
+ require_relative "../lib/conglomerate/ext/datum_type"
3
4
 
4
5
  class ConglomerateTestParticleSerializer
5
6
  include Conglomerate::RootBuilder.serializer
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: conglomerate
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.13.0
4
+ version: 0.14.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shane Emmons
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-07-21 00:00:00.000000000 Z
12
+ date: 2014-07-26 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -77,6 +77,7 @@ files:
77
77
  - lib/conglomerate/datum_builder.rb
78
78
  - lib/conglomerate/error.rb
79
79
  - lib/conglomerate/ext/commands.rb
80
+ - lib/conglomerate/ext/datum_type.rb
80
81
  - lib/conglomerate/item.rb
81
82
  - lib/conglomerate/item_builder.rb
82
83
  - lib/conglomerate/link.rb
@@ -99,6 +100,7 @@ files:
99
100
  - spec/command_spec.rb
100
101
  - spec/conglomerate_spec.rb
101
102
  - spec/datum_spec.rb
103
+ - spec/datum_type_ext_spec.rb
102
104
  - spec/link_spec.rb
103
105
  - spec/particle_builder_spec.rb
104
106
  - spec/particle_spec.rb
@@ -135,6 +137,7 @@ test_files:
135
137
  - spec/command_spec.rb
136
138
  - spec/conglomerate_spec.rb
137
139
  - spec/datum_spec.rb
140
+ - spec/datum_type_ext_spec.rb
138
141
  - spec/link_spec.rb
139
142
  - spec/particle_builder_spec.rb
140
143
  - spec/particle_spec.rb