confluence4r 0.1.1 → 0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 61f86da723a5985507763fa6fabe57062c13bcde
4
- data.tar.gz: 35b15ce3d49acb74d07d0992d91031d18763973f
3
+ metadata.gz: 43b1c2ce95ecdf3ca333cc54a72c714b3c4057ba
4
+ data.tar.gz: c19aaa8f91399f58c43b0250d5f36d53b6bc6c49
5
5
  SHA512:
6
- metadata.gz: 6117ff0f84d7bf2a5f959f5cbf88df1cfa87c533457881e90d5fa9524c1e7f40e6f691a42b32bb42f60312d95471a1db29ef12b728b07286817ff653298cb3a0
7
- data.tar.gz: 736406a8aaa27df9f8ae62258f159ff769e34af1bbca642975ab86422f3816c2a8b22bef0493784d295cadbf0e183d6bc364307cb3e781a46b18bf88de4ce2fe
6
+ metadata.gz: 0fe65df620ce019d650b88e38f7925754afb85839765ac85aa73af5e07be57253bc19b80a78c4a33bf20e4d0d73a71d28b1eddd29c7122e8fc754c2822e4da34
7
+ data.tar.gz: 0af5147e9b9a0475ddd9bdd4580bde035ed4140a6a6b367dde9eb8ecf00cb1fc416e01b6d28cb7642e351baa83971565935e06866d1664a928101322b64c624c
@@ -1,6 +1,6 @@
1
1
  require 'yaml'
2
2
 
3
- require 'confluence/confluence_rpc'
3
+ require 'confluence/rpc'
4
4
 
5
5
  class Confluence::Connector
6
6
 
@@ -1,4 +1,4 @@
1
- require 'confluence/confluence_remote_data_object'
1
+ require 'confluence/remote_data_object'
2
2
 
3
3
  # Exposes a vaguely ActiveRecord-like interface for dealing with Confluence::Pages
4
4
  # in Confluence.
@@ -1,5 +1,5 @@
1
- require 'active_support'
2
- require 'confluence/confluence_connector'
1
+ require 'active_support/core_ext/class/attribute'
2
+ require 'confluence/connector'
3
3
 
4
4
  # Abstract object representing some piece of data in Confluence.
5
5
  # This must be overridden by a child class that defines values
@@ -8,8 +8,8 @@ require 'confluence/confluence_connector'
8
8
  class Confluence::RemoteDataObject
9
9
  # include Reloadable
10
10
 
11
- class_inheritable_accessor :attr_conversions, :readonly_attrs
12
- class_inheritable_accessor :save_method, :get_method, :destroy_method
11
+ class_attribute :attr_conversions, :readonly_attrs
12
+ class_attribute :save_method, :get_method, :destroy_method
13
13
 
14
14
  attr_accessor :attributes
15
15
 
@@ -184,4 +184,4 @@ class Confluence::RemoteDataObject
184
184
  obj = confluence.send(self.send(:get_method), id.to_s)
185
185
  return obj
186
186
  end
187
- end
187
+ end
@@ -24,7 +24,7 @@ module Confluence
24
24
  @conf = server.proxy(proxy)
25
25
  @token = "12345"
26
26
 
27
- @log = Logger.new "#{RAILS_ROOT}/log/confluence4r.log"
27
+ @log = Logger.new(STDOUT)# "#{RAILS_ROOT}/log/confluence4r.log"
28
28
  end
29
29
 
30
30
  def login(username, password)
@@ -80,4 +80,4 @@ module Confluence
80
80
 
81
81
  class RemoteAuthenticationException < RemoteException
82
82
  end
83
- end
83
+ end
@@ -1,4 +1,4 @@
1
- require 'confluence/confluence_remote_data_object'
1
+ require 'confluence/remote_data_object'
2
2
 
3
3
  class Confluence::User < Confluence::RemoteDataObject
4
4
 
data/lib/confluence4r.rb CHANGED
@@ -1 +1,3 @@
1
- require 'confluence/confluence_remote_data_object'
1
+ module Confluence; end
2
+
3
+ require 'confluence/remote_data_object'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: confluence4r
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: '0.2'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Atlassian and Alagu
@@ -10,6 +10,20 @@ bindir: bin
10
10
  cert_chain: []
11
11
  date: 2014-06-25 00:00:00.000000000 Z
12
12
  dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: activesupport
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
13
27
  - !ruby/object:Gem::Dependency
14
28
  name: rake
15
29
  requirement: !ruby/object:Gem::Requirement
@@ -30,11 +44,11 @@ executables: []
30
44
  extensions: []
31
45
  extra_rdoc_files: []
32
46
  files:
33
- - lib/confluence/confluence_connector.rb
34
- - lib/confluence/confluence_remote_data_object.rb
35
- - lib/confluence/confluence_rpc.rb
47
+ - lib/confluence/connector.rb
36
48
  - lib/confluence/metadata.rb
37
49
  - lib/confluence/page.rb
50
+ - lib/confluence/remote_data_object.rb
51
+ - lib/confluence/rpc.rb
38
52
  - lib/confluence/user.rb
39
53
  - lib/confluence4r.rb
40
54
  homepage: http://confluence.atlassian.com/display/DISC/Confluence4r