homeflow_api 0.17.15 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore ADDED
@@ -0,0 +1,48 @@
1
+ # rcov generated
2
+ coverage
3
+
4
+ # rdoc generated
5
+ rdoc
6
+
7
+ # yard generated
8
+ doc
9
+ .yardoc
10
+
11
+ # bundler
12
+ .bundle
13
+
14
+ # jeweler generated
15
+ pkg
16
+
17
+ # Have editor/IDE/OS specific files you need to ignore? Consider using a global gitignore:
18
+ #
19
+ # * Create a file at ~/.gitignore
20
+ # * Include files you want ignored
21
+ # * Run: git config --global core.excludesfile ~/.gitignore
22
+ #
23
+ # After doing this, these files will be ignored in all your git projects,
24
+ # saving you from having to 'pollute' every project you touch with them
25
+ #
26
+ # Not sure what to needs to be ignored for particular editors/OSes? Here's some ideas to get you started. (Remember, remove the leading # of the line)
27
+ #
28
+ # For MacOS:
29
+ #
30
+ #.DS_Store
31
+
32
+ # For TextMate
33
+ #*.tmproj
34
+ #tmtags
35
+
36
+ # For emacs:
37
+ #*~
38
+ #\#*
39
+ #.\#*
40
+
41
+ # For vim:
42
+ #*.swp
43
+
44
+ # For redcar:
45
+ #.redcar
46
+
47
+ # For rubinius:
48
+ #*.rbc
data/Gemfile CHANGED
@@ -5,7 +5,6 @@ source 'http://rubygems.org'
5
5
  group :development do
6
6
  gem "shoulda", ">= 0"
7
7
  gem "bundler"
8
- gem "jeweler", "~> 1.6.4"
9
8
  end
10
9
 
11
10
  gem "hashie"
data/Rakefile CHANGED
@@ -1,46 +1,2 @@
1
- # encoding: utf-8
2
-
3
- require 'rubygems'
4
1
  require 'bundler'
5
- begin
6
- Bundler.setup(:default, :development)
7
- rescue Bundler::BundlerError => e
8
- $stderr.puts e.message
9
- $stderr.puts "Run `bundle install` to install missing gems"
10
- exit e.status_code
11
- end
12
- require 'rake'
13
-
14
- require 'jeweler'
15
- Jeweler::Tasks.new do |gem|
16
- # gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
17
- gem.name = "homeflow_api"
18
- gem.homepage = "http://github.com/homeflow/Homeflow_Api"
19
- gem.license = "MIT"
20
- gem.summary = %Q{Homeflow API Gem}
21
- gem.description = %Q{A gem for dealing the homeflow api}
22
- gem.email = "daniel@homeflow.co.uk"
23
- gem.authors = ["Daniel Cooper"]
24
- # dependencies defined in Gemfile
25
- end
26
- Jeweler::RubygemsDotOrgTasks.new
27
-
28
- require 'rake/testtask'
29
- Rake::TestTask.new(:test) do |test|
30
- test.libs << 'lib' << 'test'
31
- test.pattern = 'test/**/test_*.rb'
32
- test.verbose = true
33
- end
34
-
35
-
36
- task :default => :test
37
-
38
- require 'rdoc/task'
39
- Rake::RDocTask.new do |rdoc|
40
- version = File.exist?('VERSION') ? File.read('VERSION') : ""
41
-
42
- rdoc.rdoc_dir = 'rdoc'
43
- rdoc.title = "homeflow_api #{version}"
44
- rdoc.rdoc_files.include('README*')
45
- rdoc.rdoc_files.include('lib/**/*.rb')
46
- end
2
+ Bundler::GemHelper.install_tasks
data/homeflow_api.gemspec CHANGED
@@ -1,102 +1,27 @@
1
- # Generated by jeweler
2
- # DO NOT EDIT THIS FILE DIRECTLY
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
1
+
4
2
  # -*- encoding: utf-8 -*-
3
+ $:.push File.expand_path("../lib", __FILE__)
4
+ require "homeflow/api"
5
5
 
6
6
  Gem::Specification.new do |s|
7
- s.name = "homeflow_api"
8
- s.version = "0.17.15"
9
-
10
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
- s.authors = ["Daniel Cooper"]
12
- s.date = "2013-08-06"
7
+ s.name = "homeflow_api"
8
+ s.version = Homeflow::API::VERSION
9
+ s.platform = Gem::Platform::RUBY
10
+ s.authors = ["Daniel Cooper"]
11
+ s.date = "2013-08-06"
12
+ s.summary = 'The Homeflow API'
13
13
  s.description = "A gem for dealing the homeflow api"
14
- s.email = "daniel@homeflow.co.uk"
15
- s.extra_rdoc_files = [
16
- "LICENSE.txt",
17
- "README.rdoc"
18
- ]
19
- s.files = [
20
- ".document",
21
- "Gemfile",
22
- "Gemfile.lock",
23
- "Guardfile",
24
- "LICENSE.txt",
25
- "README.rdoc",
26
- "Rakefile",
27
- "VERSION",
28
- "homeflow_api.gemspec",
29
- "lib/homeflow/api.rb",
30
- "lib/homeflow/api/agency.rb",
31
- "lib/homeflow/api/branch.rb",
32
- "lib/homeflow/api/collection.rb",
33
- "lib/homeflow/api/county.rb",
34
- "lib/homeflow/api/delete.rb",
35
- "lib/homeflow/api/exceptions.rb",
36
- "lib/homeflow/api/favourite_property.rb",
37
- "lib/homeflow/api/lead.rb",
38
- "lib/homeflow/api/location.rb",
39
- "lib/homeflow/api/message.rb",
40
- "lib/homeflow/api/password_reset.rb",
41
- "lib/homeflow/api/place.rb",
42
- "lib/homeflow/api/portal.rb",
43
- "lib/homeflow/api/post.rb",
44
- "lib/homeflow/api/postcode.rb",
45
- "lib/homeflow/api/property.rb",
46
- "lib/homeflow/api/put.rb",
47
- "lib/homeflow/api/query.rb",
48
- "lib/homeflow/api/queryable.rb",
49
- "lib/homeflow/api/request.rb",
50
- "lib/homeflow/api/request_specification.rb",
51
- "lib/homeflow/api/resource.rb",
52
- "lib/homeflow/api/resource_identifier.rb",
53
- "lib/homeflow/api/response.rb",
54
- "lib/homeflow/api/search.rb",
55
- "lib/homeflow/api/session.rb",
56
- "lib/homeflow/api/site.rb",
57
- "lib/homeflow/api/site_content_chunk.rb",
58
- "lib/homeflow/api/site_page.rb",
59
- "lib/homeflow/api/user.rb",
60
- "spec/data/example_search_response.json",
61
- "spec/data/invalid_api_key.json",
62
- "spec/data/property_details.json",
63
- "spec/data/with_alt_places.json",
64
- "spec/homeflow_api_spec.rb",
65
- "spec/query_spec.rb",
66
- "spec/response_spec.rb",
67
- "spec/spec_helper.rb"
68
- ]
69
- s.homepage = "http://github.com/homeflow/Homeflow_Api"
70
- s.licenses = ["MIT"]
71
- s.require_paths = ["lib"]
72
- s.rubygems_version = "1.8.24"
73
- s.summary = "Homeflow API Gem"
14
+ s.email = "daniel@homeflow.co.uk"
15
+ s.license = 'MIT'
74
16
 
75
- if s.respond_to? :specification_version then
76
- s.specification_version = 3
17
+ s.add_dependency(%q<hashie>, [">= 0"])
18
+ s.add_dependency(%q<json>, [">= 0"])
19
+ s.add_dependency(%q<httparty>, [">= 0"])
20
+ s.add_dependency(%q<shoulda>, [">= 0"])
21
+ s.add_dependency(%q<bundler>, [">= 0"])
22
+ s.add_dependency(%q<jeweler>, ["~> 1.6.4"])
77
23
 
78
- if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
79
- s.add_runtime_dependency(%q<hashie>, [">= 0"])
80
- s.add_runtime_dependency(%q<json>, [">= 0"])
81
- s.add_runtime_dependency(%q<httparty>, [">= 0"])
82
- s.add_development_dependency(%q<shoulda>, [">= 0"])
83
- s.add_development_dependency(%q<bundler>, [">= 0"])
84
- s.add_development_dependency(%q<jeweler>, ["~> 1.6.4"])
85
- else
86
- s.add_dependency(%q<hashie>, [">= 0"])
87
- s.add_dependency(%q<json>, [">= 0"])
88
- s.add_dependency(%q<httparty>, [">= 0"])
89
- s.add_dependency(%q<shoulda>, [">= 0"])
90
- s.add_dependency(%q<bundler>, [">= 0"])
91
- s.add_dependency(%q<jeweler>, ["~> 1.6.4"])
92
- end
93
- else
94
- s.add_dependency(%q<hashie>, [">= 0"])
95
- s.add_dependency(%q<json>, [">= 0"])
96
- s.add_dependency(%q<httparty>, [">= 0"])
97
- s.add_dependency(%q<shoulda>, [">= 0"])
98
- s.add_dependency(%q<bundler>, [">= 0"])
99
- s.add_dependency(%q<jeweler>, ["~> 1.6.4"])
100
- end
24
+ s.files = `git ls-files`.split("\n")
25
+ s.require_paths = ["lib"]
101
26
  end
102
27
 
data/lib/homeflow/api.rb CHANGED
@@ -40,6 +40,8 @@ require current_dir + "/api/response"
40
40
  module Homeflow
41
41
  module API
42
42
 
43
+ VERSION = "1.0.0"
44
+
43
45
  class << self
44
46
  attr_accessor :configuration
45
47
  end
metadata CHANGED
@@ -1,123 +1,95 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: homeflow_api
3
- version: !ruby/object:Gem::Version
4
- version: 0.17.15
3
+ version: !ruby/object:Gem::Version
5
4
  prerelease:
5
+ version: 1.0.0
6
6
  platform: ruby
7
- authors:
7
+ authors:
8
8
  - Daniel Cooper
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-08-06 00:00:00.000000000 Z
13
- dependencies:
14
- - !ruby/object:Gem::Dependency
12
+
13
+ date: 2013-08-06 00:00:00 Z
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
15
16
  name: hashie
16
- requirement: !ruby/object:Gem::Requirement
17
- none: false
18
- requirements:
19
- - - ! '>='
20
- - !ruby/object:Gem::Version
21
- version: '0'
22
- type: :runtime
23
17
  prerelease: false
24
- version_requirements: !ruby/object:Gem::Requirement
18
+ requirement: &id001 !ruby/object:Gem::Requirement
25
19
  none: false
26
- requirements:
27
- - - ! '>='
28
- - !ruby/object:Gem::Version
29
- version: '0'
30
- - !ruby/object:Gem::Dependency
31
- name: json
32
- requirement: !ruby/object:Gem::Requirement
33
- none: false
34
- requirements:
35
- - - ! '>='
36
- - !ruby/object:Gem::Version
37
- version: '0'
20
+ requirements:
21
+ - - ">="
22
+ - !ruby/object:Gem::Version
23
+ version: "0"
38
24
  type: :runtime
25
+ version_requirements: *id001
26
+ - !ruby/object:Gem::Dependency
27
+ name: json
39
28
  prerelease: false
40
- version_requirements: !ruby/object:Gem::Requirement
29
+ requirement: &id002 !ruby/object:Gem::Requirement
41
30
  none: false
42
- requirements:
43
- - - ! '>='
44
- - !ruby/object:Gem::Version
45
- version: '0'
46
- - !ruby/object:Gem::Dependency
47
- name: httparty
48
- requirement: !ruby/object:Gem::Requirement
49
- none: false
50
- requirements:
51
- - - ! '>='
52
- - !ruby/object:Gem::Version
53
- version: '0'
31
+ requirements:
32
+ - - ">="
33
+ - !ruby/object:Gem::Version
34
+ version: "0"
54
35
  type: :runtime
36
+ version_requirements: *id002
37
+ - !ruby/object:Gem::Dependency
38
+ name: httparty
55
39
  prerelease: false
56
- version_requirements: !ruby/object:Gem::Requirement
40
+ requirement: &id003 !ruby/object:Gem::Requirement
57
41
  none: false
58
- requirements:
59
- - - ! '>='
60
- - !ruby/object:Gem::Version
61
- version: '0'
62
- - !ruby/object:Gem::Dependency
42
+ requirements:
43
+ - - ">="
44
+ - !ruby/object:Gem::Version
45
+ version: "0"
46
+ type: :runtime
47
+ version_requirements: *id003
48
+ - !ruby/object:Gem::Dependency
63
49
  name: shoulda
64
- requirement: !ruby/object:Gem::Requirement
65
- none: false
66
- requirements:
67
- - - ! '>='
68
- - !ruby/object:Gem::Version
69
- version: '0'
70
- type: :development
71
50
  prerelease: false
72
- version_requirements: !ruby/object:Gem::Requirement
51
+ requirement: &id004 !ruby/object:Gem::Requirement
73
52
  none: false
74
- requirements:
75
- - - ! '>='
76
- - !ruby/object:Gem::Version
77
- version: '0'
78
- - !ruby/object:Gem::Dependency
53
+ requirements:
54
+ - - ">="
55
+ - !ruby/object:Gem::Version
56
+ version: "0"
57
+ type: :runtime
58
+ version_requirements: *id004
59
+ - !ruby/object:Gem::Dependency
79
60
  name: bundler
80
- requirement: !ruby/object:Gem::Requirement
81
- none: false
82
- requirements:
83
- - - ! '>='
84
- - !ruby/object:Gem::Version
85
- version: '0'
86
- type: :development
87
61
  prerelease: false
88
- version_requirements: !ruby/object:Gem::Requirement
62
+ requirement: &id005 !ruby/object:Gem::Requirement
89
63
  none: false
90
- requirements:
91
- - - ! '>='
92
- - !ruby/object:Gem::Version
93
- version: '0'
94
- - !ruby/object:Gem::Dependency
64
+ requirements:
65
+ - - ">="
66
+ - !ruby/object:Gem::Version
67
+ version: "0"
68
+ type: :runtime
69
+ version_requirements: *id005
70
+ - !ruby/object:Gem::Dependency
95
71
  name: jeweler
96
- requirement: !ruby/object:Gem::Requirement
97
- none: false
98
- requirements:
99
- - - ~>
100
- - !ruby/object:Gem::Version
101
- version: 1.6.4
102
- type: :development
103
72
  prerelease: false
104
- version_requirements: !ruby/object:Gem::Requirement
73
+ requirement: &id006 !ruby/object:Gem::Requirement
105
74
  none: false
106
- requirements:
75
+ requirements:
107
76
  - - ~>
108
- - !ruby/object:Gem::Version
77
+ - !ruby/object:Gem::Version
109
78
  version: 1.6.4
79
+ type: :runtime
80
+ version_requirements: *id006
110
81
  description: A gem for dealing the homeflow api
111
82
  email: daniel@homeflow.co.uk
112
83
  executables: []
84
+
113
85
  extensions: []
114
- extra_rdoc_files:
115
- - LICENSE.txt
116
- - README.rdoc
117
- files:
86
+
87
+ extra_rdoc_files: []
88
+
89
+ files:
118
90
  - .document
91
+ - .gitignore
119
92
  - Gemfile
120
- - Gemfile.lock
121
93
  - Guardfile
122
94
  - LICENSE.txt
123
95
  - README.rdoc
@@ -163,32 +135,32 @@ files:
163
135
  - spec/query_spec.rb
164
136
  - spec/response_spec.rb
165
137
  - spec/spec_helper.rb
166
- homepage: http://github.com/homeflow/Homeflow_Api
167
- licenses:
138
+ homepage:
139
+ licenses:
168
140
  - MIT
169
141
  post_install_message:
170
142
  rdoc_options: []
171
- require_paths:
143
+
144
+ require_paths:
172
145
  - lib
173
- required_ruby_version: !ruby/object:Gem::Requirement
146
+ required_ruby_version: !ruby/object:Gem::Requirement
174
147
  none: false
175
- requirements:
176
- - - ! '>='
177
- - !ruby/object:Gem::Version
178
- version: '0'
179
- segments:
180
- - 0
181
- hash: -1047818709259987954
182
- required_rubygems_version: !ruby/object:Gem::Requirement
148
+ requirements:
149
+ - - ">="
150
+ - !ruby/object:Gem::Version
151
+ version: "0"
152
+ required_rubygems_version: !ruby/object:Gem::Requirement
183
153
  none: false
184
- requirements:
185
- - - ! '>='
186
- - !ruby/object:Gem::Version
187
- version: '0'
154
+ requirements:
155
+ - - ">="
156
+ - !ruby/object:Gem::Version
157
+ version: "0"
188
158
  requirements: []
159
+
189
160
  rubyforge_project:
190
161
  rubygems_version: 1.8.24
191
162
  signing_key:
192
163
  specification_version: 3
193
- summary: Homeflow API Gem
164
+ summary: The Homeflow API
194
165
  test_files: []
166
+
data/Gemfile.lock DELETED
@@ -1,88 +0,0 @@
1
- GEM
2
- remote: http://rubygems.org/
3
- specs:
4
- activesupport (4.0.0)
5
- i18n (~> 0.6, >= 0.6.4)
6
- minitest (~> 4.2)
7
- multi_json (~> 1.3)
8
- thread_safe (~> 0.1)
9
- tzinfo (~> 0.3.37)
10
- atomic (1.1.10)
11
- coderay (1.0.9)
12
- diff-lcs (1.2.4)
13
- ffi (1.9.0)
14
- formatador (0.2.4)
15
- git (1.2.5)
16
- guard (1.8.1)
17
- formatador (>= 0.2.4)
18
- listen (>= 1.0.0)
19
- lumberjack (>= 1.0.2)
20
- pry (>= 0.9.10)
21
- thor (>= 0.14.6)
22
- guard-rspec (3.0.2)
23
- guard (>= 1.8)
24
- rspec (~> 2.13)
25
- hashie (2.0.5)
26
- httparty (0.11.0)
27
- multi_json (~> 1.0)
28
- multi_xml (>= 0.5.2)
29
- i18n (0.6.4)
30
- jeweler (1.6.4)
31
- bundler (~> 1.0)
32
- git (>= 1.2.5)
33
- rake
34
- json (1.8.0)
35
- listen (1.2.2)
36
- rb-fsevent (>= 0.9.3)
37
- rb-inotify (>= 0.9)
38
- rb-kqueue (>= 0.2)
39
- lumberjack (1.0.4)
40
- method_source (0.8.1)
41
- minitest (4.7.5)
42
- multi_json (1.7.7)
43
- multi_xml (0.5.4)
44
- pry (0.9.12.2)
45
- coderay (~> 1.0.5)
46
- method_source (~> 0.8)
47
- slop (~> 3.4)
48
- rake (10.1.0)
49
- rb-fsevent (0.9.3)
50
- rb-inotify (0.9.0)
51
- ffi (>= 0.5.0)
52
- rb-kqueue (0.2.0)
53
- ffi (>= 0.5.0)
54
- rspec (2.14.0)
55
- rspec-core (~> 2.14.0)
56
- rspec-expectations (~> 2.14.0)
57
- rspec-mocks (~> 2.14.0)
58
- rspec-core (2.14.1)
59
- rspec-expectations (2.14.0)
60
- diff-lcs (>= 1.1.3, < 2.0)
61
- rspec-mocks (2.14.1)
62
- shoulda (3.5.0)
63
- shoulda-context (~> 1.0, >= 1.0.1)
64
- shoulda-matchers (>= 1.4.1, < 3.0)
65
- shoulda-context (1.1.4)
66
- shoulda-matchers (2.2.0)
67
- activesupport (>= 3.0.0)
68
- slop (3.4.5)
69
- test-unit (2.5.5)
70
- thor (0.18.1)
71
- thread_safe (0.1.0)
72
- atomic
73
- tzinfo (0.3.37)
74
-
75
- PLATFORMS
76
- ruby
77
-
78
- DEPENDENCIES
79
- bundler
80
- guard
81
- guard-rspec
82
- hashie
83
- httparty
84
- jeweler (~> 1.6.4)
85
- json
86
- rspec
87
- shoulda
88
- test-unit