wordpress_resource 0.0.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/Gemfile +3 -0
- data/Gemfile.lock +87 -0
- data/README.rdoc +25 -0
- data/lib/wordpress_resource.rb +14 -0
- data/wordpress_resource.gemspec +18 -0
- metadata +65 -0
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
GEM
|
|
2
|
+
remote: http://rubygems.org/
|
|
3
|
+
specs:
|
|
4
|
+
actionmailer (3.2.3)
|
|
5
|
+
actionpack (= 3.2.3)
|
|
6
|
+
mail (~> 2.4.4)
|
|
7
|
+
actionpack (3.2.3)
|
|
8
|
+
activemodel (= 3.2.3)
|
|
9
|
+
activesupport (= 3.2.3)
|
|
10
|
+
builder (~> 3.0.0)
|
|
11
|
+
erubis (~> 2.7.0)
|
|
12
|
+
journey (~> 1.0.1)
|
|
13
|
+
rack (~> 1.4.0)
|
|
14
|
+
rack-cache (~> 1.2)
|
|
15
|
+
rack-test (~> 0.6.1)
|
|
16
|
+
sprockets (~> 2.1.2)
|
|
17
|
+
activemodel (3.2.3)
|
|
18
|
+
activesupport (= 3.2.3)
|
|
19
|
+
builder (~> 3.0.0)
|
|
20
|
+
activerecord (3.2.3)
|
|
21
|
+
activemodel (= 3.2.3)
|
|
22
|
+
activesupport (= 3.2.3)
|
|
23
|
+
arel (~> 3.0.2)
|
|
24
|
+
tzinfo (~> 0.3.29)
|
|
25
|
+
activeresource (3.2.3)
|
|
26
|
+
activemodel (= 3.2.3)
|
|
27
|
+
activesupport (= 3.2.3)
|
|
28
|
+
activesupport (3.2.3)
|
|
29
|
+
i18n (~> 0.6)
|
|
30
|
+
multi_json (~> 1.0)
|
|
31
|
+
arel (3.0.2)
|
|
32
|
+
builder (3.0.0)
|
|
33
|
+
erubis (2.7.0)
|
|
34
|
+
hike (1.2.1)
|
|
35
|
+
i18n (0.6.0)
|
|
36
|
+
journey (1.0.3)
|
|
37
|
+
json (1.7.0)
|
|
38
|
+
mail (2.4.4)
|
|
39
|
+
i18n (>= 0.4.0)
|
|
40
|
+
mime-types (~> 1.16)
|
|
41
|
+
treetop (~> 1.4.8)
|
|
42
|
+
mime-types (1.18)
|
|
43
|
+
multi_json (1.3.4)
|
|
44
|
+
oauth-activeresource (0.0.1)
|
|
45
|
+
rails (~> 3.2.1)
|
|
46
|
+
polyglot (0.3.3)
|
|
47
|
+
rack (1.4.1)
|
|
48
|
+
rack-cache (1.2)
|
|
49
|
+
rack (>= 0.4)
|
|
50
|
+
rack-ssl (1.3.2)
|
|
51
|
+
rack
|
|
52
|
+
rack-test (0.6.1)
|
|
53
|
+
rack (>= 1.0)
|
|
54
|
+
rails (3.2.3)
|
|
55
|
+
actionmailer (= 3.2.3)
|
|
56
|
+
actionpack (= 3.2.3)
|
|
57
|
+
activerecord (= 3.2.3)
|
|
58
|
+
activeresource (= 3.2.3)
|
|
59
|
+
activesupport (= 3.2.3)
|
|
60
|
+
bundler (~> 1.0)
|
|
61
|
+
railties (= 3.2.3)
|
|
62
|
+
railties (3.2.3)
|
|
63
|
+
actionpack (= 3.2.3)
|
|
64
|
+
activesupport (= 3.2.3)
|
|
65
|
+
rack-ssl (~> 1.3.2)
|
|
66
|
+
rake (>= 0.8.7)
|
|
67
|
+
rdoc (~> 3.4)
|
|
68
|
+
thor (~> 0.14.6)
|
|
69
|
+
rake (0.9.2.2)
|
|
70
|
+
rdoc (3.12)
|
|
71
|
+
json (~> 1.4)
|
|
72
|
+
sprockets (2.1.3)
|
|
73
|
+
hike (~> 1.2)
|
|
74
|
+
rack (~> 1.0)
|
|
75
|
+
tilt (~> 1.1, != 1.3.0)
|
|
76
|
+
thor (0.14.6)
|
|
77
|
+
tilt (1.3.3)
|
|
78
|
+
treetop (1.4.10)
|
|
79
|
+
polyglot
|
|
80
|
+
polyglot (>= 0.3.1)
|
|
81
|
+
tzinfo (0.3.33)
|
|
82
|
+
|
|
83
|
+
PLATFORMS
|
|
84
|
+
ruby
|
|
85
|
+
|
|
86
|
+
DEPENDENCIES
|
|
87
|
+
oauth-activeresource
|
data/README.rdoc
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
= WordpressResource
|
|
2
|
+
|
|
3
|
+
WordpressResource is an adapter for ActiveResource that uses OAuth authentication.
|
|
4
|
+
|
|
5
|
+
== Getting Started
|
|
6
|
+
|
|
7
|
+
After installing the gem, you should require it:
|
|
8
|
+
|
|
9
|
+
require 'wordpress_resource'
|
|
10
|
+
|
|
11
|
+
Configuring it should be simple:
|
|
12
|
+
|
|
13
|
+
WordpressResource::Base.site = "http://site.com/basepath"
|
|
14
|
+
WordpressResource::Base.oauth_connection = @oauth_token
|
|
15
|
+
|
|
16
|
+
== Other Notes
|
|
17
|
+
|
|
18
|
+
This gem is meant to used in conjunction with the Wordpress plugin oauth-rest[http://wordpress.org/extend/plugins/oauthrest/].
|
|
19
|
+
oauth-rest also depends on oauth-provider[http://wordpress.org/extend/plugins/oauth-provider/].
|
|
20
|
+
|
|
21
|
+
This gem does not handle the OAuth authentication process, simply access to the API once an access token has been obtained.
|
|
22
|
+
|
|
23
|
+
== Contributing
|
|
24
|
+
|
|
25
|
+
If you would like to contribute to this gem, please fork and send me a pull request.
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
|
|
2
|
+
Gem::Specification.new do |s|
|
|
3
|
+
s.name = "wordpress_resource"
|
|
4
|
+
s.version = "0.0.1"
|
|
5
|
+
s.platform = Gem::Platform::RUBY
|
|
6
|
+
s.authors = ["Jeff Ching"]
|
|
7
|
+
s.email = ["ching.jeff@gmail.com"]
|
|
8
|
+
s.homepage = "http://chingr.com"
|
|
9
|
+
s.summary = "WordpressResource interfaces with a Wordpress instance REST interface provided by the oauth-rest plugin"
|
|
10
|
+
s.description = "WordpressResource interfaces with a Wordpress instance REST interface provided by the oauth-rest plugin"
|
|
11
|
+
|
|
12
|
+
# dependencies
|
|
13
|
+
s.add_dependency "oauth-activeresource"
|
|
14
|
+
|
|
15
|
+
s.files = `git ls-files`.split("\n")
|
|
16
|
+
s.executables = `git ls-files`.split("\n").map{|f| f =~ /^bin\/(.*)/ ? $1 : nil}.compact
|
|
17
|
+
s.require_path = "lib"
|
|
18
|
+
end
|
metadata
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: wordpress_resource
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 0.0.1
|
|
5
|
+
prerelease:
|
|
6
|
+
platform: ruby
|
|
7
|
+
authors:
|
|
8
|
+
- Jeff Ching
|
|
9
|
+
autorequire:
|
|
10
|
+
bindir: bin
|
|
11
|
+
cert_chain: []
|
|
12
|
+
date: 2012-05-03 00:00:00.000000000 -07:00
|
|
13
|
+
default_executable:
|
|
14
|
+
dependencies:
|
|
15
|
+
- !ruby/object:Gem::Dependency
|
|
16
|
+
name: oauth-activeresource
|
|
17
|
+
requirement: &89173610 !ruby/object:Gem::Requirement
|
|
18
|
+
none: false
|
|
19
|
+
requirements:
|
|
20
|
+
- - ! '>='
|
|
21
|
+
- !ruby/object:Gem::Version
|
|
22
|
+
version: '0'
|
|
23
|
+
type: :runtime
|
|
24
|
+
prerelease: false
|
|
25
|
+
version_requirements: *89173610
|
|
26
|
+
description: WordpressResource interfaces with a Wordpress instance REST interface
|
|
27
|
+
provided by the oauth-rest plugin
|
|
28
|
+
email:
|
|
29
|
+
- ching.jeff@gmail.com
|
|
30
|
+
executables: []
|
|
31
|
+
extensions: []
|
|
32
|
+
extra_rdoc_files: []
|
|
33
|
+
files:
|
|
34
|
+
- Gemfile
|
|
35
|
+
- Gemfile.lock
|
|
36
|
+
- README.rdoc
|
|
37
|
+
- lib/wordpress_resource.rb
|
|
38
|
+
- wordpress_resource.gemspec
|
|
39
|
+
has_rdoc: true
|
|
40
|
+
homepage: http://chingr.com
|
|
41
|
+
licenses: []
|
|
42
|
+
post_install_message:
|
|
43
|
+
rdoc_options: []
|
|
44
|
+
require_paths:
|
|
45
|
+
- lib
|
|
46
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
47
|
+
none: false
|
|
48
|
+
requirements:
|
|
49
|
+
- - ! '>='
|
|
50
|
+
- !ruby/object:Gem::Version
|
|
51
|
+
version: '0'
|
|
52
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
53
|
+
none: false
|
|
54
|
+
requirements:
|
|
55
|
+
- - ! '>='
|
|
56
|
+
- !ruby/object:Gem::Version
|
|
57
|
+
version: '0'
|
|
58
|
+
requirements: []
|
|
59
|
+
rubyforge_project:
|
|
60
|
+
rubygems_version: 1.6.2
|
|
61
|
+
signing_key:
|
|
62
|
+
specification_version: 3
|
|
63
|
+
summary: WordpressResource interfaces with a Wordpress instance REST interface provided
|
|
64
|
+
by the oauth-rest plugin
|
|
65
|
+
test_files: []
|