icontact-api 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,6 @@
1
+ == 0.3.1 2012-08-24
2
+ * pull request #1: modified for 1.9 compatibility
3
+
1
4
  == 0.0.1 2009-01-16
2
5
 
3
6
  * 1 major enhancement:
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.0
1
+ 0.3.1
@@ -0,0 +1,57 @@
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
+ # -*- encoding: utf-8 -*-
5
+
6
+ Gem::Specification.new do |s|
7
+ s.name = "icontact-api"
8
+ s.version = "0.3.1"
9
+
10
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
+ s.authors = ["Kevin Olbrich"]
12
+ s.date = "2012-08-24"
13
+ s.email = ["kevin.olbrich+icontact-api@gmail.com"]
14
+ s.extra_rdoc_files = [
15
+ "README.rdoc"
16
+ ]
17
+ s.files = [
18
+ "Gemfile",
19
+ "History.txt",
20
+ "README.rdoc",
21
+ "Rakefile",
22
+ "VERSION",
23
+ "icontact-api.gemspec",
24
+ "lib/icontact-api.rb",
25
+ "lib/icontact/api.rb",
26
+ "script/console",
27
+ "script/destroy",
28
+ "script/generate",
29
+ "spec/api_spec.rb",
30
+ "spec/spec.opts",
31
+ "spec/spec_helper.rb",
32
+ "tasks/rspec.rake"
33
+ ]
34
+ s.homepage = "http://github.com/olbrich/IContact-API"
35
+ s.require_paths = ["lib"]
36
+ s.rubygems_version = "1.8.24"
37
+ s.summary = "A thin wrapper around the iContact API"
38
+
39
+ if s.respond_to? :specification_version then
40
+ s.specification_version = 3
41
+
42
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
43
+ s.add_runtime_dependency(%q<json>, [">= 0"])
44
+ s.add_development_dependency(%q<bundler>, ["~> 1.0"])
45
+ s.add_development_dependency(%q<jeweler>, [">= 0"])
46
+ else
47
+ s.add_dependency(%q<json>, [">= 0"])
48
+ s.add_dependency(%q<bundler>, ["~> 1.0"])
49
+ s.add_dependency(%q<jeweler>, [">= 0"])
50
+ end
51
+ else
52
+ s.add_dependency(%q<json>, [">= 0"])
53
+ s.add_dependency(%q<bundler>, ["~> 1.0"])
54
+ s.add_dependency(%q<jeweler>, [">= 0"])
55
+ end
56
+ end
57
+
@@ -28,9 +28,9 @@ class Icontact
28
28
  return nil if params.nil? || params.empty?
29
29
  massaged_params = params.map do |key, value|
30
30
  case value
31
- when Array:
31
+ when Array
32
32
  "#{key}=#{value.join(',')}"
33
- when Time:
33
+ when Time
34
34
  "#{key}=#{value.strftime("%Y-%m-%dT%H:%M:%S")}#{"%+0.2d:00" % (value.gmtoff / 3600)}"
35
35
  else
36
36
  "#{key}=#{value}"
metadata CHANGED
@@ -1,81 +1,78 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: icontact-api
3
- version: !ruby/object:Gem::Version
4
- hash: 19
5
- prerelease: false
6
- segments:
7
- - 0
8
- - 3
9
- - 0
10
- version: 0.3.0
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.3.1
5
+ prerelease:
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - Kevin Olbrich
14
9
  autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
-
18
- date: 2011-04-27 00:00:00 -04:00
19
- default_executable:
20
- dependencies:
21
- - !ruby/object:Gem::Dependency
22
- type: :runtime
23
- prerelease: false
12
+ date: 2012-08-24 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
24
15
  name: json
25
- version_requirements: &id001 !ruby/object:Gem::Requirement
16
+ requirement: !ruby/object:Gem::Requirement
26
17
  none: false
27
- requirements:
28
- - - ">="
29
- - !ruby/object:Gem::Version
30
- hash: 3
31
- segments:
32
- - 0
33
- version: "0"
34
- requirement: *id001
35
- - !ruby/object:Gem::Dependency
36
- type: :development
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
22
+ type: :runtime
37
23
  prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: '0'
30
+ - !ruby/object:Gem::Dependency
38
31
  name: bundler
39
- version_requirements: &id002 !ruby/object:Gem::Requirement
32
+ requirement: !ruby/object:Gem::Requirement
40
33
  none: false
41
- requirements:
34
+ requirements:
42
35
  - - ~>
43
- - !ruby/object:Gem::Version
44
- hash: 15
45
- segments:
46
- - 1
47
- - 0
48
- version: "1.0"
49
- requirement: *id002
50
- - !ruby/object:Gem::Dependency
36
+ - !ruby/object:Gem::Version
37
+ version: '1.0'
51
38
  type: :development
52
39
  prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ~>
44
+ - !ruby/object:Gem::Version
45
+ version: '1.0'
46
+ - !ruby/object:Gem::Dependency
53
47
  name: jeweler
54
- version_requirements: &id003 !ruby/object:Gem::Requirement
48
+ requirement: !ruby/object:Gem::Requirement
49
+ none: false
50
+ requirements:
51
+ - - ! '>='
52
+ - !ruby/object:Gem::Version
53
+ version: '0'
54
+ type: :development
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
55
57
  none: false
56
- requirements:
57
- - - ">="
58
- - !ruby/object:Gem::Version
59
- hash: 3
60
- segments:
61
- - 0
62
- version: "0"
63
- requirement: *id003
58
+ requirements:
59
+ - - ! '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
64
62
  description:
65
- email:
63
+ email:
66
64
  - kevin.olbrich+icontact-api@gmail.com
67
65
  executables: []
68
-
69
66
  extensions: []
70
-
71
- extra_rdoc_files:
67
+ extra_rdoc_files:
72
68
  - README.rdoc
73
- files:
69
+ files:
74
70
  - Gemfile
75
71
  - History.txt
76
72
  - README.rdoc
77
73
  - Rakefile
78
74
  - VERSION
75
+ - icontact-api.gemspec
79
76
  - lib/icontact-api.rb
80
77
  - lib/icontact/api.rb
81
78
  - script/console
@@ -85,40 +82,31 @@ files:
85
82
  - spec/spec.opts
86
83
  - spec/spec_helper.rb
87
84
  - tasks/rspec.rake
88
- has_rdoc: true
89
85
  homepage: http://github.com/olbrich/IContact-API
90
86
  licenses: []
91
-
92
87
  post_install_message:
93
88
  rdoc_options: []
94
-
95
- require_paths:
89
+ require_paths:
96
90
  - lib
97
- required_ruby_version: !ruby/object:Gem::Requirement
91
+ required_ruby_version: !ruby/object:Gem::Requirement
98
92
  none: false
99
- requirements:
100
- - - ">="
101
- - !ruby/object:Gem::Version
102
- hash: 3
103
- segments:
93
+ requirements:
94
+ - - ! '>='
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ segments:
104
98
  - 0
105
- version: "0"
106
- required_rubygems_version: !ruby/object:Gem::Requirement
99
+ hash: -3244768325799576389
100
+ required_rubygems_version: !ruby/object:Gem::Requirement
107
101
  none: false
108
- requirements:
109
- - - ">="
110
- - !ruby/object:Gem::Version
111
- hash: 3
112
- segments:
113
- - 0
114
- version: "0"
102
+ requirements:
103
+ - - ! '>='
104
+ - !ruby/object:Gem::Version
105
+ version: '0'
115
106
  requirements: []
116
-
117
107
  rubyforge_project:
118
- rubygems_version: 1.3.7
108
+ rubygems_version: 1.8.24
119
109
  signing_key:
120
110
  specification_version: 3
121
111
  summary: A thin wrapper around the iContact API
122
- test_files:
123
- - spec/api_spec.rb
124
- - spec/spec_helper.rb
112
+ test_files: []