blackbaud-client 0.1.2 → 0.1.3

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.
checksums.yaml CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- N2IwMmEyZGVlNmU4NWMwNWE2MTJiOWQxNjljOGNiZDgzMjVkY2MyZg==
5
- data.tar.gz: !binary |-
6
- NTQ1OGY0ZDU5OTc5YzkyMGViYWE3NzIzODUyNzk2NTE4MDUwYjRlMQ==
2
+ SHA1:
3
+ metadata.gz: 12695917de7f3915a96826ef491809d3ba093663
4
+ data.tar.gz: d0aa30063b6bd33b69527a387afb0bb3e7abecf8
7
5
  SHA512:
8
- metadata.gz: !binary |-
9
- NTJlNDViYWJiY2NmYjI2NDBiNjU3YzdkYWE1MjJlMmEyZmViYTEwZTg1ZjA5
10
- Mzc3ZGFkOTg2ZmQyNDBkODMzMzM1Yjc5Mjc4ODJiYTBkZTFiNmI2NDE1YzJm
11
- Yjc2ZDgyZTlhODg0YzAxMmQ3ODM4YjAyYWNhMjMxYTk2NmUzNTU=
12
- data.tar.gz: !binary |-
13
- Y2I3NjE2MjIwMjc1MzZlODM3OGFlMDhjYTMxMWU3ZjNiYTJkZTVkMTgyOTli
14
- NTNjOTM2OTNiNDlmODY1Y2Q3Y2FhYTg3ZTY0OWNiOThjZmI1ODk4MzkzOGYw
15
- NzQ5N2E5YmI3NTdkOGE2ZTI3MDkzZmM3YjZhZGU4NmQ4MTc2M2Q=
6
+ metadata.gz: c912dc1d2832264dcd09728959c7987716c72872fcee4e9d325b1d06b5a99244e370b6c813b6bdfd3480d8c1d6eb4aa55568ce995c7f3b4f56e2c66dc919d3a8
7
+ data.tar.gz: 69cc974311e518e237c6b061cf1944a41eb9abc5bf2074f5f72fc008840f29436c4d889fff6ac59b74ac917ef0fa281ffd55346169e73375e1501740d4d6aa25
data/README.md CHANGED
@@ -1,6 +1,5 @@
1
- # Clever::Ruby
2
-
3
- Ruby bindings to the Blackbaud API.
1
+ # Blackbaud Client
2
+ Ruby client for the Blackbaud API.
4
3
 
5
4
  ## Usage
6
5
 
@@ -14,4 +13,18 @@ Create a Blackbaud API Client
14
13
  :url => "https://blackbaud.api.url.example/key/"
15
14
  }
16
15
 
17
- @client = Blackbaud::Client.new(options)
16
+ @client = Blackbaud::Client.new(options)
17
+
18
+ ## Version History
19
+ ### 0.1.3
20
+ - Added emergency_contact attribute to Relation.
21
+ - Various fixes and cleanup.
22
+
23
+ ### 0.1.2
24
+ - Format JSON output for readability.
25
+
26
+ ### 0.1.1
27
+ - Option to store raw JSON response data
28
+
29
+ ### 0.1.0
30
+ - Initial Release
@@ -11,14 +11,14 @@ module Blackbaud
11
11
  end
12
12
 
13
13
  super(values)
14
+ end
14
15
 
15
- def connection_string
16
- "academic_years/#{self.ea7_academic_year_id}"
17
- end
16
+ def connection_string
17
+ "academic_years/#{self.ea7_academic_year_id}"
18
+ end
18
19
 
19
- def terms
20
- self.sessions.inject([]) {|r, s| r + s.terms}
21
- end
20
+ def terms
21
+ self.sessions.inject([]) {|r, s| r + s.terms}
22
22
  end
23
23
 
24
24
  end
@@ -3,9 +3,7 @@ module Blackbaud
3
3
 
4
4
  def initialize(values)
5
5
  values.each do |k,v|
6
- if respond_to?("#{k}=".intern)
7
- send("#{k}=".intern, v)
8
- end
6
+ send("#{k}=".intern, v) if respond_to?("#{k}=".intern)
9
7
  end
10
8
  end
11
9
 
@@ -1,15 +1,10 @@
1
1
  module Blackbaud
2
2
  class Relation < BlackbaudObject
3
- attr_accessor(:relationship_code_id, :relationship_code_value, :reciprocal_code_id, :reciprocal_code_value, :person)
3
+ attr_accessor(:relationship_code_id, :relationship_code_value, :reciprocal_code_id, :reciprocal_code_value, :person, :emergency_contact)
4
4
 
5
5
  def initialize(values)
6
- if values["person"]
7
- values["person"] = Blackbaud::Person.new(values["person"], Blackbaud::Person::USER_TYPE[:undefined])
8
- end
9
-
10
- values.each do |k,v|
11
- send("#{k}=".intern, v)
12
- end
6
+ values["person"] = Blackbaud::Person.new(values["person"], Blackbaud::Person::USER_TYPE[:undefined]) if values["person"]
7
+ super(values)
13
8
  end
14
9
 
15
10
  end
@@ -3,7 +3,7 @@ module Blackbaud
3
3
  class Version
4
4
  MAJOR = 0
5
5
  MINOR = 1
6
- PATCH = 2
6
+ PATCH = 3
7
7
  STRING = "#{MAJOR}.#{MINOR}.#{PATCH}"
8
8
 
9
9
  class << self
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: blackbaud-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex Dugger
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-08-27 00:00:00.000000000 Z
11
+ date: 2015-04-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ruby-hmac
@@ -72,17 +72,17 @@ require_paths:
72
72
  - lib
73
73
  required_ruby_version: !ruby/object:Gem::Requirement
74
74
  requirements:
75
- - - ! '>='
75
+ - - '>='
76
76
  - !ruby/object:Gem::Version
77
77
  version: '0'
78
78
  required_rubygems_version: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - ! '>='
80
+ - - '>='
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
83
  requirements: []
84
84
  rubyforge_project:
85
- rubygems_version: 2.2.2
85
+ rubygems_version: 2.0.14
86
86
  signing_key:
87
87
  specification_version: 4
88
88
  summary: A client for the Blackbaud API.