kmayer-highrise 0.7.0 → 0.7.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/Rakefile +22 -45
- data/VERSION.yml +4 -0
- data/lib/highrise/version.rb +4 -3
- data/lib/highrise.rb +1 -0
- data/spec/highrise/version_spec.rb +19 -0
- metadata +38 -18
- data/MIT-LICENSE +0 -20
- data/spec.opts +0 -7
- data/spec_helper.rb +0 -20
data/Rakefile
CHANGED
@@ -10,52 +10,29 @@ require "rake/gempackagetask"
|
|
10
10
|
|
11
11
|
require File.join(File.dirname(__FILE__), 'lib', 'highrise', 'version')
|
12
12
|
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
s.authors = ["Marcos Tapajós", "Ken Mayer"]
|
34
|
-
s.email = "kmayer@bitwrangler.com"
|
35
|
-
s.homepage = "http://github.com/kmayer/highrise"
|
36
|
-
s.require_path = "lib"
|
37
|
-
s.autorequire = "highrise"
|
38
|
-
s.files = %w(README.mkdn Rakefile MIT-LICENSE spec.opts spec_helper.rb) + Dir.glob("{bin,lib,spec}/**/*")
|
39
|
-
end
|
40
|
-
|
41
|
-
Rake::GemPackageTask.new(highrise_gemspec) do |pkg|
|
42
|
-
pkg.gem_spec = highrise_gemspec
|
43
|
-
end
|
44
|
-
|
45
|
-
namespace :gem do
|
46
|
-
namespace :spec do
|
47
|
-
desc "Update highrise.gemspec"
|
48
|
-
task :generate do
|
49
|
-
File.open("highrise.gemspec", "w") do |f|
|
50
|
-
f.puts(highrise_gemspec.to_ruby)
|
51
|
-
end
|
52
|
-
end
|
13
|
+
begin
|
14
|
+
require 'jeweler'
|
15
|
+
Jeweler::Tasks.new do |gemspec|
|
16
|
+
gemspec.name = "highrise"
|
17
|
+
gemspec.summary = "Ruby wrapper around Highrise API"
|
18
|
+
gemspec.email = "kmayer@bitwrangler.com"
|
19
|
+
gemspec.homepage = "http://github.com/kmayer/highrise"
|
20
|
+
gemspec.description = %{
|
21
|
+
Based on the original API module from DHH, http://developer.37signals.com/highrise/, this
|
22
|
+
gem is a cleaned up, tested version of the same. Contributors have added support for tags
|
23
|
+
which are not supported by the API directly
|
24
|
+
|
25
|
+
Configure by adding the following:
|
26
|
+
|
27
|
+
require 'highrise'
|
28
|
+
Highrise::Base.site = 'http://your_site.highrisehq.com/'
|
29
|
+
Highrise::Base.user = 'your_api_auth_token'q
|
30
|
+
}
|
31
|
+
gemspec.authors = ["Marcos Tapajós", "Ken Mayer"]
|
32
|
+
gemspec.add_dependency('activeresource', '>=2.2.2')
|
53
33
|
end
|
54
|
-
|
55
|
-
|
56
|
-
desc "Instal gem"
|
57
|
-
task :install => :package do
|
58
|
-
sh %{sudo gem install --local pkg/highrise-#{VERSION}}
|
34
|
+
rescue LoadError
|
35
|
+
puts "Jeweler not available. Install it with: sudo gem install jeweler -s http://gems.github.com"
|
59
36
|
end
|
60
37
|
|
61
38
|
desc 'Default: run unit tests.'
|
data/VERSION.yml
ADDED
data/lib/highrise/version.rb
CHANGED
@@ -1,8 +1,9 @@
|
|
1
1
|
module Highrise
|
2
2
|
module VERSION #:nodoc:
|
3
|
-
|
4
|
-
|
5
|
-
|
3
|
+
version = YAML::load_file(File.expand_path(File.dirname(__FILE__)+"/../../VERSION.yml"))
|
4
|
+
MAJOR = version[:major]
|
5
|
+
MINOR = version[:minor]
|
6
|
+
TINY = version[:patch]
|
6
7
|
|
7
8
|
STRING = [MAJOR, MINOR, TINY].join('.')
|
8
9
|
end
|
data/lib/highrise.rb
CHANGED
@@ -0,0 +1,19 @@
|
|
1
|
+
require File.dirname(__FILE__) + '/../../spec_helper'
|
2
|
+
|
3
|
+
describe Highrise::VERSION do
|
4
|
+
it "should return a version string" do
|
5
|
+
Highrise::VERSION::STRING.should =~ /\d+\.\d+\.\d+/
|
6
|
+
end
|
7
|
+
|
8
|
+
it "should return a MAJOR version" do
|
9
|
+
Highrise::VERSION::MAJOR.class.should be(0.class)
|
10
|
+
end
|
11
|
+
|
12
|
+
it "should return a MINOR version" do
|
13
|
+
Highrise::VERSION::MINOR.class.should be(0.class)
|
14
|
+
end
|
15
|
+
|
16
|
+
it "should return a TINY version" do
|
17
|
+
Highrise::VERSION::TINY.class.should be(0.class)
|
18
|
+
end
|
19
|
+
end
|
metadata
CHANGED
@@ -1,20 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kmayer-highrise
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- "Marcos Tapaj\xC3\xB3s"
|
8
8
|
- Ken Mayer
|
9
|
-
autorequire:
|
9
|
+
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2009-04-
|
13
|
+
date: 2009-04-30 00:00:00 -07:00
|
14
14
|
default_executable:
|
15
|
-
dependencies:
|
16
|
-
|
17
|
-
|
15
|
+
dependencies:
|
16
|
+
- !ruby/object:Gem::Dependency
|
17
|
+
name: activeresource
|
18
|
+
type: :runtime
|
19
|
+
version_requirement:
|
20
|
+
version_requirements: !ruby/object:Gem::Requirement
|
21
|
+
requirements:
|
22
|
+
- - ">="
|
23
|
+
- !ruby/object:Gem::Version
|
24
|
+
version: 2.2.2
|
25
|
+
version:
|
26
|
+
description: "Based on the original API module from DHH, http://developer.37signals.com/highrise/, this gem is a cleaned up, tested version of the same. Contributors have added support for tags which are not supported by the API directly Configure by adding the following: require 'highrise' Highrise::Base.site = 'http://your_site.highrisehq.com/' Highrise::Base.user = 'your_api_auth_token'q"
|
18
27
|
email: kmayer@bitwrangler.com
|
19
28
|
executables: []
|
20
29
|
|
@@ -25,10 +34,8 @@ extra_rdoc_files:
|
|
25
34
|
files:
|
26
35
|
- README.mkdn
|
27
36
|
- Rakefile
|
28
|
-
-
|
29
|
-
-
|
30
|
-
- spec_helper.rb
|
31
|
-
- lib/highrise
|
37
|
+
- VERSION.yml
|
38
|
+
- lib/highrise.rb
|
32
39
|
- lib/highrise/base.rb
|
33
40
|
- lib/highrise/comment.rb
|
34
41
|
- lib/highrise/company.rb
|
@@ -47,11 +54,8 @@ files:
|
|
47
54
|
- lib/highrise/task.rb
|
48
55
|
- lib/highrise/user.rb
|
49
56
|
- lib/highrise/version.rb
|
50
|
-
- lib/highrise.rb
|
51
|
-
- spec/highrise
|
52
57
|
- spec/highrise/base_spec.rb
|
53
58
|
- spec/highrise/comment_spec.rb
|
54
|
-
- spec/highrise/companies
|
55
59
|
- spec/highrise/companies/16883216.html
|
56
60
|
- spec/highrise/company_spec.rb
|
57
61
|
- spec/highrise/curlhelper_spec.rb
|
@@ -62,18 +66,18 @@ files:
|
|
62
66
|
- spec/highrise/membership_spec.rb
|
63
67
|
- spec/highrise/note_spec.rb
|
64
68
|
- spec/highrise/pagination_spec.rb
|
65
|
-
- spec/highrise/people
|
66
69
|
- spec/highrise/people/16887003.html
|
67
70
|
- spec/highrise/person_spec.rb
|
68
71
|
- spec/highrise/subject_spec.rb
|
69
72
|
- spec/highrise/tag_spec.rb
|
70
73
|
- spec/highrise/task_spec.rb
|
71
74
|
- spec/highrise/user_spec.rb
|
75
|
+
- spec/highrise/version_spec.rb
|
72
76
|
has_rdoc: true
|
73
77
|
homepage: http://github.com/kmayer/highrise
|
74
78
|
post_install_message:
|
75
|
-
rdoc_options:
|
76
|
-
|
79
|
+
rdoc_options:
|
80
|
+
- --charset=UTF-8
|
77
81
|
require_paths:
|
78
82
|
- lib
|
79
83
|
required_ruby_version: !ruby/object:Gem::Requirement
|
@@ -95,5 +99,21 @@ rubygems_version: 1.2.0
|
|
95
99
|
signing_key:
|
96
100
|
specification_version: 3
|
97
101
|
summary: Ruby wrapper around Highrise API
|
98
|
-
test_files:
|
99
|
-
|
102
|
+
test_files:
|
103
|
+
- spec/highrise/base_spec.rb
|
104
|
+
- spec/highrise/comment_spec.rb
|
105
|
+
- spec/highrise/company_spec.rb
|
106
|
+
- spec/highrise/curlhelper_spec.rb
|
107
|
+
- spec/highrise/curly_spec.rb
|
108
|
+
- spec/highrise/email_spec.rb
|
109
|
+
- spec/highrise/group_spec.rb
|
110
|
+
- spec/highrise/kase_spec.rb
|
111
|
+
- spec/highrise/membership_spec.rb
|
112
|
+
- spec/highrise/note_spec.rb
|
113
|
+
- spec/highrise/pagination_spec.rb
|
114
|
+
- spec/highrise/person_spec.rb
|
115
|
+
- spec/highrise/subject_spec.rb
|
116
|
+
- spec/highrise/tag_spec.rb
|
117
|
+
- spec/highrise/task_spec.rb
|
118
|
+
- spec/highrise/user_spec.rb
|
119
|
+
- spec/highrise/version_spec.rb
|
data/MIT-LICENSE
DELETED
@@ -1,20 +0,0 @@
|
|
1
|
-
Copyright (c) 2009 [name of plugin creator]
|
2
|
-
|
3
|
-
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
-
a copy of this software and associated documentation files (the
|
5
|
-
"Software"), to deal in the Software without restriction, including
|
6
|
-
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
-
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
-
permit persons to whom the Software is furnished to do so, subject to
|
9
|
-
the following conditions:
|
10
|
-
|
11
|
-
The above copyright notice and this permission notice shall be
|
12
|
-
included in all copies or substantial portions of the Software.
|
13
|
-
|
14
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
-
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
-
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
-
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
-
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/spec.opts
DELETED
data/spec_helper.rb
DELETED
@@ -1,20 +0,0 @@
|
|
1
|
-
require File.dirname(__FILE__) + '/lib/highrise'
|
2
|
-
|
3
|
-
def turn_methods_public(classe, method_name = nil)
|
4
|
-
if method_name
|
5
|
-
classe.class_eval do
|
6
|
-
public method_name
|
7
|
-
end
|
8
|
-
else
|
9
|
-
turn_all_methods_public classe
|
10
|
-
end
|
11
|
-
end
|
12
|
-
|
13
|
-
def turn_all_methods_public(classe)
|
14
|
-
classe.class_eval do
|
15
|
-
private_instance_methods.each { |instance_method| public instance_method }
|
16
|
-
private_methods.each { |method| public_class_method method }
|
17
|
-
protected_instance_methods.each { |instance_method| public instance_method }
|
18
|
-
protected_methods.each { |method| public_class_method method }
|
19
|
-
end
|
20
|
-
end
|