springnote_resources 0.5 → 0.5.1

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -1,3 +1,6 @@
1
+ == 0.5.1 / 2008-4-8
2
+ * protocol configuration added.
3
+
1
4
  == 0.5 / 2008-1-21
2
5
  * ImportFile module was inclueded by File and Attachment. You can use like following code:
3
6
 
@@ -1,5 +1,5 @@
1
1
  module Springnote
2
- VERSION = "0.5"
2
+ VERSION = "0.5.1"
3
3
 
4
4
  class Base < ActiveResource::Base
5
5
  extend ActiveResourceExtension
@@ -4,14 +4,17 @@ module Springnote
4
4
  class MissingConfiguration < RuntimeError; end
5
5
 
6
6
  class Configuration
7
- attr_writer :app_key, :user_key, :user_openid
7
+ attr_writer :app_key, :user_key, :user_openid, :protocol
8
8
  attr_reader :domain
9
9
 
10
- SERVER_PROTOCOL = 'https'
11
10
  SERVER_URL = "api.springnote.com"
11
+
12
+ def protocol
13
+ @protocol || 'https'
14
+ end
12
15
 
13
16
  def site
14
- "#{SERVER_PROTOCOL}://#{username}:#{password}@#{SERVER_URL}/"
17
+ "#{protocol}://#{username}:#{password}@#{SERVER_URL}/"
15
18
  end
16
19
 
17
20
  def load(file)
@@ -2,7 +2,7 @@ class Springnote::Page < Springnote::Base
2
2
  include Springnote::ImportFile
3
3
 
4
4
  def self.with_tags(tags, params = {})
5
- find(:all, :params => prarams.reverse_merge(:tags => tags))
5
+ find(:all, :params => params.reverse_merge(:tags => tags))
6
6
  end
7
7
 
8
8
  def self.search(query, params = {})
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: springnote_resources
3
3
  version: !ruby/object:Gem::Version
4
- version: "0.5"
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bryan Kang
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-01-21 00:00:00 +09:00
12
+ date: 2008-04-08 00:00:00 +09:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -19,7 +19,7 @@ dependencies:
19
19
  requirements:
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 1.4.0
22
+ version: 1.5.1
23
23
  version:
24
24
  description: "== DESCRIPTIONS: ActiveResource wrapper library for Springnote.com's REST API == REQUIREMENTS: * activesupport * activeresource"
25
25
  email: byblue@gmail.com