pius-ruby-satisfaction 0.3.0 → 0.4.0
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/CONTRIBUTORS.txt +1 -1
- data/Rakefile +7 -2
- data/VERSION.yml +4 -0
- data/lib/satisfaction/resource.rb +2 -2
- data/lib/satisfaction.rb +3 -1
- data/ruby-satisfaction.gemspec +78 -0
- metadata +36 -8
- data/.gemified +0 -12
- data/VERSION +0 -1
- data/lib/satisfaction/version.rb +0 -9
data/CONTRIBUTORS.txt
CHANGED
data/Rakefile
CHANGED
@@ -5,10 +5,15 @@ begin
|
|
5
5
|
gemspec.summary = "Ruby interface to Get Satisfaction"
|
6
6
|
gemspec.description = "Ruby interface to Get Satisfaction"
|
7
7
|
gemspec.email = "scott@getsatisfaction.com"
|
8
|
-
gemspec.homepage = "http://github.com/
|
8
|
+
gemspec.homepage = "http://github.com/nullstyle/ruby-satisfaction"
|
9
9
|
gemspec.authors = ["Scott Fleckenstein", "Josh Nichols", "Pius Uzamere"]
|
10
|
-
|
10
|
+
gemspec.rubyforge_project = "satisfaction"
|
11
|
+
gemspec.add_dependency('memcache-client', '>= 1.5.0')
|
12
|
+
gemspec.add_dependency('oauth', '>= 0.3.5')
|
13
|
+
gemspec.add_dependency('activesupport', '>= 2.3.2')
|
11
14
|
end
|
15
|
+
|
16
|
+
Jeweler::RubyforgeTasks.new
|
12
17
|
rescue LoadError
|
13
18
|
puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
|
14
19
|
end
|
data/VERSION.yml
ADDED
@@ -39,7 +39,7 @@ class Sfn::Resource < Sfn::HasSatisfaction
|
|
39
39
|
end
|
40
40
|
|
41
41
|
def put(attrs)
|
42
|
-
params = requestify(attrs, self.class.name.underscore)
|
42
|
+
params = requestify(attrs, self.class.name.demodulize.underscore)
|
43
43
|
result = satisfaction.put("#{path}.json", params)
|
44
44
|
|
45
45
|
if result.first == :ok
|
@@ -88,7 +88,7 @@ class Sfn::ResourceCollection < Sfn::HasSatisfaction
|
|
88
88
|
end
|
89
89
|
|
90
90
|
def post(attrs)
|
91
|
-
params = requestify(attrs, klass.name.underscore)
|
91
|
+
params = requestify(attrs, klass.name.demodulize.underscore)
|
92
92
|
result = satisfaction.post("#{path}.json", params)
|
93
93
|
|
94
94
|
if result.first == :ok
|
data/lib/satisfaction.rb
CHANGED
@@ -114,7 +114,9 @@ class Satisfaction
|
|
114
114
|
|
115
115
|
def url(path, query_string={})
|
116
116
|
qs = query_string.map{|kv| URI.escape(kv.first.to_s) + "=" + URI.escape(kv.last.to_s)}.join("&")
|
117
|
-
|
117
|
+
uri_string = "#{@options[:root]}#{path}"
|
118
|
+
uri_string += "?#{qs}" unless qs.blank?
|
119
|
+
URI.parse(uri_string)
|
118
120
|
end
|
119
121
|
|
120
122
|
def get(path, query_string={})
|
@@ -0,0 +1,78 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
|
3
|
+
Gem::Specification.new do |s|
|
4
|
+
s.name = %q{ruby-satisfaction}
|
5
|
+
s.version = "0.4.0"
|
6
|
+
|
7
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
8
|
+
s.authors = ["Scott Fleckenstein", "Josh Nichols", "Pius Uzamere"]
|
9
|
+
s.date = %q{2009-07-10}
|
10
|
+
s.description = %q{Ruby interface to Get Satisfaction}
|
11
|
+
s.email = %q{scott@getsatisfaction.com}
|
12
|
+
s.extra_rdoc_files = [
|
13
|
+
"README.txt"
|
14
|
+
]
|
15
|
+
s.files = [
|
16
|
+
".gitignore",
|
17
|
+
"CONTRIBUTORS.txt",
|
18
|
+
"License.txt",
|
19
|
+
"README.txt",
|
20
|
+
"Rakefile",
|
21
|
+
"VERSION.yml",
|
22
|
+
"init.rb",
|
23
|
+
"lib/satisfaction.rb",
|
24
|
+
"lib/satisfaction/associations.rb",
|
25
|
+
"lib/satisfaction/cache/hash.rb",
|
26
|
+
"lib/satisfaction/cache/memcache.rb",
|
27
|
+
"lib/satisfaction/company.rb",
|
28
|
+
"lib/satisfaction/external_dependencies.rb",
|
29
|
+
"lib/satisfaction/has_satisfaction.rb",
|
30
|
+
"lib/satisfaction/identity_map.rb",
|
31
|
+
"lib/satisfaction/loader.rb",
|
32
|
+
"lib/satisfaction/person.rb",
|
33
|
+
"lib/satisfaction/product.rb",
|
34
|
+
"lib/satisfaction/reply.rb",
|
35
|
+
"lib/satisfaction/resource.rb",
|
36
|
+
"lib/satisfaction/resource/attributes.rb",
|
37
|
+
"lib/satisfaction/search.rb",
|
38
|
+
"lib/satisfaction/tag.rb",
|
39
|
+
"lib/satisfaction/topic.rb",
|
40
|
+
"lib/satisfaction/util.rb",
|
41
|
+
"ruby-satisfaction.gemspec",
|
42
|
+
"spec/company_spec.rb",
|
43
|
+
"spec/identity_map_spec.rb",
|
44
|
+
"spec/search_spec.rb",
|
45
|
+
"spec/spec_helper.rb"
|
46
|
+
]
|
47
|
+
s.homepage = %q{http://github.com/nullstyle/ruby-satisfaction}
|
48
|
+
s.rdoc_options = ["--charset=UTF-8"]
|
49
|
+
s.require_paths = ["lib"]
|
50
|
+
s.rubyforge_project = %q{satisfaction}
|
51
|
+
s.rubygems_version = %q{1.3.4}
|
52
|
+
s.summary = %q{Ruby interface to Get Satisfaction}
|
53
|
+
s.test_files = [
|
54
|
+
"spec/company_spec.rb",
|
55
|
+
"spec/identity_map_spec.rb",
|
56
|
+
"spec/search_spec.rb",
|
57
|
+
"spec/spec_helper.rb"
|
58
|
+
]
|
59
|
+
|
60
|
+
if s.respond_to? :specification_version then
|
61
|
+
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
62
|
+
s.specification_version = 3
|
63
|
+
|
64
|
+
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
65
|
+
s.add_runtime_dependency(%q<memcache-client>, [">= 1.5.0"])
|
66
|
+
s.add_runtime_dependency(%q<oauth>, [">= 0.3.5"])
|
67
|
+
s.add_runtime_dependency(%q<activesupport>, [">= 2.3.2"])
|
68
|
+
else
|
69
|
+
s.add_dependency(%q<memcache-client>, [">= 1.5.0"])
|
70
|
+
s.add_dependency(%q<oauth>, [">= 0.3.5"])
|
71
|
+
s.add_dependency(%q<activesupport>, [">= 2.3.2"])
|
72
|
+
end
|
73
|
+
else
|
74
|
+
s.add_dependency(%q<memcache-client>, [">= 1.5.0"])
|
75
|
+
s.add_dependency(%q<oauth>, [">= 0.3.5"])
|
76
|
+
s.add_dependency(%q<activesupport>, [">= 2.3.2"])
|
77
|
+
end
|
78
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pius-ruby-satisfaction
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Scott Fleckenstein
|
@@ -13,8 +13,37 @@ cert_chain: []
|
|
13
13
|
|
14
14
|
date: 2009-07-10 00:00:00 -07:00
|
15
15
|
default_executable:
|
16
|
-
dependencies:
|
17
|
-
|
16
|
+
dependencies:
|
17
|
+
- !ruby/object:Gem::Dependency
|
18
|
+
name: memcache-client
|
19
|
+
type: :runtime
|
20
|
+
version_requirement:
|
21
|
+
version_requirements: !ruby/object:Gem::Requirement
|
22
|
+
requirements:
|
23
|
+
- - ">="
|
24
|
+
- !ruby/object:Gem::Version
|
25
|
+
version: 1.5.0
|
26
|
+
version:
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: oauth
|
29
|
+
type: :runtime
|
30
|
+
version_requirement:
|
31
|
+
version_requirements: !ruby/object:Gem::Requirement
|
32
|
+
requirements:
|
33
|
+
- - ">="
|
34
|
+
- !ruby/object:Gem::Version
|
35
|
+
version: 0.3.5
|
36
|
+
version:
|
37
|
+
- !ruby/object:Gem::Dependency
|
38
|
+
name: activesupport
|
39
|
+
type: :runtime
|
40
|
+
version_requirement:
|
41
|
+
version_requirements: !ruby/object:Gem::Requirement
|
42
|
+
requirements:
|
43
|
+
- - ">="
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: 2.3.2
|
46
|
+
version:
|
18
47
|
description: Ruby interface to Get Satisfaction
|
19
48
|
email: scott@getsatisfaction.com
|
20
49
|
executables: []
|
@@ -24,13 +53,12 @@ extensions: []
|
|
24
53
|
extra_rdoc_files:
|
25
54
|
- README.txt
|
26
55
|
files:
|
27
|
-
- .gemified
|
28
56
|
- .gitignore
|
29
57
|
- CONTRIBUTORS.txt
|
30
58
|
- License.txt
|
31
59
|
- README.txt
|
32
60
|
- Rakefile
|
33
|
-
- VERSION
|
61
|
+
- VERSION.yml
|
34
62
|
- init.rb
|
35
63
|
- lib/satisfaction.rb
|
36
64
|
- lib/satisfaction/associations.rb
|
@@ -50,13 +78,13 @@ files:
|
|
50
78
|
- lib/satisfaction/tag.rb
|
51
79
|
- lib/satisfaction/topic.rb
|
52
80
|
- lib/satisfaction/util.rb
|
53
|
-
-
|
81
|
+
- ruby-satisfaction.gemspec
|
54
82
|
- spec/company_spec.rb
|
55
83
|
- spec/identity_map_spec.rb
|
56
84
|
- spec/search_spec.rb
|
57
85
|
- spec/spec_helper.rb
|
58
86
|
has_rdoc: false
|
59
|
-
homepage: http://github.com/
|
87
|
+
homepage: http://github.com/nullstyle/ruby-satisfaction
|
60
88
|
post_install_message:
|
61
89
|
rdoc_options:
|
62
90
|
- --charset=UTF-8
|
@@ -76,7 +104,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
76
104
|
version:
|
77
105
|
requirements: []
|
78
106
|
|
79
|
-
rubyforge_project:
|
107
|
+
rubyforge_project: satisfaction
|
80
108
|
rubygems_version: 1.2.0
|
81
109
|
signing_key:
|
82
110
|
specification_version: 3
|
data/.gemified
DELETED
@@ -1,12 +0,0 @@
|
|
1
|
-
---
|
2
|
-
:author: Scott Fleckenstein
|
3
|
-
:dependencies:
|
4
|
-
- rspec
|
5
|
-
- oauth
|
6
|
-
- memcache-client
|
7
|
-
- "activesupport"
|
8
|
-
:version: 0.2.0
|
9
|
-
:name: ruby-satisfaction
|
10
|
-
:summary: Helper gem for the getsatisfaction.com API
|
11
|
-
:email: nullstyle@gmail.com
|
12
|
-
:homepage: http://nullstyle.com
|
data/VERSION
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
0.0.0
|