slainer68-highrise 0.6.1 → 0.6.2

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/lib/highrise.rb CHANGED
@@ -14,3 +14,4 @@ require File.dirname(__FILE__) + '/highrise/person'
14
14
  require File.dirname(__FILE__) + '/highrise/task'
15
15
  require File.dirname(__FILE__) + '/highrise/user'
16
16
  require File.dirname(__FILE__) + '/highrise/tag'
17
+ require File.dirname(__FILE__) + '/highrise/taggable'
@@ -1,6 +1,7 @@
1
1
  module Highrise
2
2
  class Company < Subject
3
3
  include Pagination
4
+ include Taggable
4
5
 
5
6
  def self.find_all_across_pages_since(time)
6
7
  find_all_across_pages(:params => { :since => time.to_s(:db).gsub(/[^\d]/, '') })
@@ -1,7 +1,8 @@
1
1
  module Highrise
2
2
  class Person < Subject
3
3
  include Pagination
4
-
4
+ include Taggable
5
+
5
6
  def self.find_all_across_pages_since(time)
6
7
  find_all_across_pages(:params => { :since => time.to_s(:db).gsub(/[^\d]/, '') })
7
8
  end
@@ -28,13 +29,6 @@ module Highrise
28
29
  end
29
30
  usertags
30
31
  end
31
-
32
- def tag!(tag_name)
33
- # thanks for the user Inka, http://forum.37signals.com/highrise/forums/15/topics/1312?page=2
34
- self.post(:tags, :name => tag_name) unless tag_name.blank?
35
- true
36
- end
37
-
38
32
  end
39
33
 
40
34
  end
@@ -0,0 +1,9 @@
1
+ module Highrise
2
+ module Taggable
3
+ def tag!(tag_name)
4
+ # thanks for the user Inka, http://forum.37signals.com/highrise/forums/15/topics/1312?page=2
5
+ self.post(:tags, :name => tag_name) unless tag_name.blank?
6
+ true
7
+ end
8
+ end
9
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: slainer68-highrise
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.1
4
+ version: 0.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - "Marcos Tapaj\xC3\xB3s"
@@ -39,6 +39,7 @@ files:
39
39
  - lib/highrise/task.rb
40
40
  - lib/highrise/user.rb
41
41
  - lib/highrise/tag.rb
42
+ - lib/highrise/taggable.rb
42
43
  - lib/highrise.rb
43
44
  - spec/highrise
44
45
  - spec/highrise/base_spec.rb