datasift 1.3.0 → 1.3.1

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.
data/README.md CHANGED
@@ -52,6 +52,8 @@ more details.
52
52
  Changelog
53
53
  ---------
54
54
 
55
+ * v.1.3.1 Exposed compile failures when getting the stream hash (2012-04-20)
56
+
55
57
  * v.1.3.0 Improved error handling (2012-03-08)
56
58
 
57
59
  Added onError and onWarning events - see examples/consume-stream.rb for an
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.3.0
1
+ 1.3.1
data/config.yml CHANGED
@@ -1,2 +1,2 @@
1
- username: YOUR_USERNAME_HERE
2
- api_key: YOUR_API_KEY_HERE
1
+ username: 3ft9
2
+ api_key: 01af49102292e7cb67fef7eee30b81c2
@@ -60,11 +60,7 @@ module DataSift
60
60
  # compiled first.
61
61
  def hash
62
62
  if @hash == false
63
- begin
64
- compile()
65
- rescue DataSift::CompileFailedError
66
- # Ignore
67
- end
63
+ compile()
68
64
  end
69
65
 
70
66
  @hash
@@ -130,11 +130,11 @@ class TestDefinition < Test::Unit::TestCase
130
130
  assert_raise(DataSift::CompileFailedError) { @definition.compile() }
131
131
  end
132
132
 
133
- should "have a hash of false" do
133
+ should "fail to get the hash" do
134
134
  @user.api_client.setResponse(400, {
135
135
  'error' => 'The target interactin.content does not exist',
136
136
  }, 200, 150)
137
- assert_equal false, @definition.hash
137
+ assert_raise(DataSift::CompileFailedError) { @definition.hash }
138
138
  end
139
139
  end
140
140
 
@@ -48,9 +48,9 @@ class TestDefinitionLive < Test::Unit::TestCase
48
48
  assert_raise(DataSift::CompileFailedError) { @definition.compile() }
49
49
  end
50
50
 
51
- should "have a hash of false" do
51
+ should "fail to get the hash" do
52
52
  assert_raise(DataSift::CompileFailedError) { @definition.compile() }
53
- assert_equal false, @definition.hash
53
+ assert_raise(DataSift::CompileFailedError) { @definition.hash }
54
54
  end
55
55
  end
56
56
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: datasift
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 25
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 3
9
- - 0
10
- version: 1.3.0
9
+ - 1
10
+ version: 1.3.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - DataSift
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-03-08 00:00:00 Z
18
+ date: 2012-04-20 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: rest-client