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 +3 -0
- data/lib/springnote/base.rb +1 -1
- data/lib/springnote/configuration.rb +6 -3
- data/lib/springnote/page.rb +1 -1
- metadata +3 -3
data/History.txt
CHANGED
data/lib/springnote/base.rb
CHANGED
@@ -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
|
-
"#{
|
17
|
+
"#{protocol}://#{username}:#{password}@#{SERVER_URL}/"
|
15
18
|
end
|
16
19
|
|
17
20
|
def load(file)
|
data/lib/springnote/page.rb
CHANGED
@@ -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 =>
|
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:
|
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-
|
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.
|
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
|