cfoundry 2.1.2.rc1 → 2.2.0.rc1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -8,5 +8,6 @@ module CFoundry::V2
8
8
  attribute :instance_index, :integer
9
9
  attribute :exit_status, :integer
10
10
  attribute :exit_description, :string, :default => ""
11
+ attribute :timestamp, :string
11
12
  end
12
13
  end
@@ -1,4 +1,4 @@
1
1
  module CFoundry # :nodoc:
2
2
  # CFoundry library version number.
3
- VERSION = "2.1.2.rc1".freeze
3
+ VERSION = "2.2.0.rc1".freeze
4
4
  end
@@ -77,6 +77,21 @@ module CFoundry
77
77
  end
78
78
  end
79
79
  end
80
+
81
+ describe "#timestamp" do
82
+ it "has a timestamp" do
83
+ app_event.timestamp = "2013-04-23 12:43:23 +0000"
84
+ expect(app_event.timestamp).to eq("2013-04-23 12:43:23 +0000")
85
+ end
86
+
87
+ context "when an invalid value is assigned" do
88
+ it "raises a Mismatch exception" do
89
+ expect {
90
+ app_event.timestamp = 42
91
+ }.to raise_error(Mismatch)
92
+ end
93
+ end
94
+ end
80
95
  end
81
96
  end
82
97
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cfoundry
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.2.rc1
4
+ version: 2.2.0.rc1
5
5
  prerelease: 6
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2013-06-20 00:00:00.000000000 Z
13
+ date: 2013-06-21 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: activemodel
@@ -429,7 +429,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
429
429
  version: '0'
430
430
  segments:
431
431
  - 0
432
- hash: -3448138284356233294
432
+ hash: 3546131754445164394
433
433
  required_rubygems_version: !ruby/object:Gem::Requirement
434
434
  none: false
435
435
  requirements: