easy_basecamp 0.0.9 → 0.0.10
Sign up to get free protection for your applications and to get access to all the features.
- data/easy_basecamp.gemspec +1 -1
- data/lib/basecamp.rb +10 -19
- metadata +4 -4
data/easy_basecamp.gemspec
CHANGED
data/lib/basecamp.rb
CHANGED
@@ -2,17 +2,17 @@ require "rubygems"
|
|
2
2
|
require "active_resource"
|
3
3
|
|
4
4
|
module Basecamp
|
5
|
-
|
6
|
-
|
5
|
+
|
6
|
+
class Base < ActiveResource::Base
|
7
7
|
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
8
|
+
def self.establish_connection!(ssl, subdomain, user, password = 'X')
|
9
|
+
site = ssl ? "https://" : "http://"
|
10
|
+
self.site = [site, subdomain, ".basecamphq.com/"].join
|
11
|
+
self.user = user
|
12
|
+
self.password = password
|
13
|
+
self
|
14
14
|
end
|
15
|
-
|
15
|
+
end
|
16
16
|
|
17
17
|
end
|
18
18
|
|
@@ -26,13 +26,4 @@ require "basecamp/person.rb"
|
|
26
26
|
require "basecamp/project.rb"
|
27
27
|
require "basecamp/time_tracker.rb"
|
28
28
|
require "basecamp/todo_list.rb"
|
29
|
-
require "basecamp/todo_list_item.rb"
|
30
|
-
|
31
|
-
#https://mar6.basecamphq.com/projects/7584268-sendlater
|
32
|
-
Basecamp::Base.establish_connection!(true, "mar6", "gregory.marcilhacy", "gregochou")
|
33
|
-
Basecamp::Message.prefix = "/projects/:project_id/"
|
34
|
-
m = Basecamp::Message.new(:project_id => 7584268 )
|
35
|
-
m.title =" greg"
|
36
|
-
m.body = "gregory!!"
|
37
|
-
m.notify = [7714823]
|
38
|
-
m.save
|
29
|
+
require "basecamp/todo_list_item.rb"
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: easy_basecamp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 11
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 10
|
10
|
+
version: 0.0.10
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- "Gr\xC3\xA9gory Marcilhacy"
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-
|
18
|
+
date: 2011-08-06 00:00:00 +02:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|