admincredible 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (55) hide show
  1. data/Gemfile +12 -0
  2. data/Gemfile.lock +86 -0
  3. data/Rakefile +24 -0
  4. data/Readme.md +121 -0
  5. data/TODOS +1 -0
  6. data/admincredible.gemspec +35 -0
  7. data/developer_notes/README.md +2 -0
  8. data/developer_notes/TODOS.md +0 -0
  9. data/lib/admincredible.rb +1 -0
  10. data/lib/admincredible/client.rb +60 -0
  11. data/lib/admincredible/configuration.rb +125 -0
  12. data/lib/admincredible/connection.rb +30 -0
  13. data/lib/admincredible/core_ext/string.rb +16 -0
  14. data/lib/admincredible/joomla_request.rb +22 -0
  15. data/lib/admincredible/middleware/logger.rb +51 -0
  16. data/lib/admincredible/middleware/step.rb +44 -0
  17. data/lib/admincredible/request.rb +47 -0
  18. data/lib/admincredible/resource.rb +20 -0
  19. data/lib/admincredible/resources/Backup.rb +34 -0
  20. data/lib/admincredible/resources/Compatibility.rb +13 -0
  21. data/lib/admincredible/resources/Extension.rb +37 -0
  22. data/lib/admincredible/resources/Oauth.rb +53 -0
  23. data/lib/admincredible/resources/Setting.rb +21 -0
  24. data/lib/admincredible/resources/Site.rb +9 -0
  25. data/lib/admincredible/resources/Upgrade.rb +64 -0
  26. data/spec/core/client_spec.rb +24 -0
  27. data/spec/core/resource_spec.rb +13 -0
  28. data/spec/fixtures/cassettes/backups/create.yml +73 -0
  29. data/spec/fixtures/cassettes/backups/start.yml +38 -0
  30. data/spec/fixtures/cassettes/backups/step.yml +38 -0
  31. data/spec/fixtures/cassettes/compatibility/added_exceptions.yml +38 -0
  32. data/spec/fixtures/cassettes/compatibility/status.yml +38 -0
  33. data/spec/fixtures/cassettes/extensions/all.yml +38 -0
  34. data/spec/fixtures/cassettes/extensions/update.yml +38 -0
  35. data/spec/fixtures/cassettes/settings/all.yml +38 -0
  36. data/spec/fixtures/cassettes/settings/created.yml +39 -0
  37. data/spec/fixtures/cassettes/settings/first.yml +38 -0
  38. data/spec/fixtures/cassettes/settings/updated.yml +39 -0
  39. data/spec/fixtures/cassettes/site/configuration.yml +41 -0
  40. data/spec/fixtures/cassettes/upgrade/cleanup.yml +38 -0
  41. data/spec/fixtures/cassettes/upgrade/create.yml +249 -0
  42. data/spec/fixtures/cassettes/upgrade/create_restoration_file.yml +38 -0
  43. data/spec/fixtures/cassettes/upgrade/download.yml +38 -0
  44. data/spec/fixtures/cassettes/upgrade/finalize.yml +38 -0
  45. data/spec/fixtures/cassettes/upgrade/info.yml +38 -0
  46. data/spec/fixtures/cassettes/upgrade/start.yml +39 -0
  47. data/spec/fixtures/cassettes/upgrade/step.yml +38 -0
  48. data/spec/resources/backups_spec.rb +36 -0
  49. data/spec/resources/compatibility_spec.rb +25 -0
  50. data/spec/resources/extensions_spec.rb +25 -0
  51. data/spec/resources/setting_spec.rb +47 -0
  52. data/spec/resources/site_spec.rb +14 -0
  53. data/spec/resources/upgrade_spec.rb +91 -0
  54. data/spec/spec_helper.rb +38 -0
  55. metadata +353 -0
@@ -0,0 +1,38 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://localhost/joomla_old_testsite_257/components/com_admincredible/direct.php?resource=upgrade&task=finalize
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept:
11
+ - application/json
12
+ User-Agent:
13
+ - Admincredible Ruby Gem
14
+ Accept-Encoding:
15
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ Date:
22
+ - Sun, 20 Jan 2013 00:15:45 GMT
23
+ Server:
24
+ - Apache/2.2.21 (Unix) mod_ssl/2.2.21 OpenSSL/0.9.8r DAV/2 PHP/5.3.6
25
+ X-Powered-By:
26
+ - PHP/5.3.6
27
+ Set-Cookie:
28
+ - c90b3f6e23ff46392a42cf27fea67ad4=6c6fa244db0daa8ac4546b9990a1514c; path=/
29
+ Content-Length:
30
+ - '43'
31
+ Content-Type:
32
+ - application/json;
33
+ body:
34
+ encoding: US-ASCII
35
+ string: ! '{"status":200,"message":"Finalized Update"}'
36
+ http_version:
37
+ recorded_at: Sun, 20 Jan 2013 00:15:51 GMT
38
+ recorded_with: VCR 2.4.0
@@ -0,0 +1,38 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://localhost/joomla_old_testsite_257/components/com_admincredible/direct.php?resource=upgrade&task=info
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept:
11
+ - application/json
12
+ User-Agent:
13
+ - Admincredible Ruby Gem
14
+ Accept-Encoding:
15
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ Date:
22
+ - Sat, 19 Jan 2013 23:59:28 GMT
23
+ Server:
24
+ - Apache/2.2.21 (Unix) mod_ssl/2.2.21 OpenSSL/0.9.8r DAV/2 PHP/5.3.6
25
+ X-Powered-By:
26
+ - PHP/5.3.6
27
+ Set-Cookie:
28
+ - c90b3f6e23ff46392a42cf27fea67ad4=4a3292bae7da2400173b0c9394788105; path=/
29
+ Content-Length:
30
+ - '823'
31
+ Content-Type:
32
+ - application/json;
33
+ body:
34
+ encoding: US-ASCII
35
+ string: ! '{"status":200,"data":{"installed":"2.5.7","latest":"2.5.8","object":{"xml_parser":null,"base":{"UPDATES":{"_data":"","UPDATE":{"_data":"","NAME":{"_data":""},"DESCRIPTION":{"_data":""},"ELEMENT":{"_data":""},"TYPE":{"_data":""},"VERSION":{"_data":""},"INFOURL":{"_data":""},"DOWNLOADS":{"_data":"","DOWNLOADURL":{"_data":""}},"TAGS":{"_data":"","TAG":{"_data":""}},"MAINTAINER":{"_data":""},"MAINTAINERURL":{"_data":""},"SECTION":{"_data":""},"TARGETPLATFORM":{"_data":""}}}},"update":{"_data":"\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t"},"downloadurl":{"_data":"http:\/\/joomlacode.org\/gf\/download\/frsrelease\/17716\/77265\/Joomla_2.5.x_to_2.5.8-Stable-Patch_Package.zip","type":"full","format":"zip"},"tag":{"_data":"stable"},"section":{"_data":"Testing"},"updates":{"_data":"\n"}}}}'
36
+ http_version:
37
+ recorded_at: Sun, 20 Jan 2013 00:00:09 GMT
38
+ recorded_with: VCR 2.4.0
@@ -0,0 +1,39 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://localhost/joomla_old_testsite_257/components/com_admincredible/direct.php?resource=upgrade&task=start
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept:
11
+ - application/json
12
+ User-Agent:
13
+ - Admincredible Ruby Gem
14
+ Accept-Encoding:
15
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
16
+ response:
17
+ status:
18
+ code: 302
19
+ message: Moved
20
+ headers:
21
+ Date:
22
+ - Sun, 20 Jan 2013 00:01:49 GMT
23
+ Server:
24
+ - Apache/2.2.21 (Unix) mod_ssl/2.2.21 OpenSSL/0.9.8r DAV/2 PHP/5.3.6
25
+ X-Powered-By:
26
+ - PHP/5.3.6
27
+ Set-Cookie:
28
+ - c90b3f6e23ff46392a42cf27fea67ad4=f1b6079c171a0a7310669723ac609263; path=/
29
+ Content-Length:
30
+ - '75'
31
+ Content-Type:
32
+ - application/json;
33
+ body:
34
+ encoding: US-ASCII
35
+ string: ! '{"status":302,"data":{"url":""},"message":"You can start your upgrade
36
+ now"}'
37
+ http_version:
38
+ recorded_at: Sun, 20 Jan 2013 00:01:52 GMT
39
+ recorded_with: VCR 2.4.0
@@ -0,0 +1,38 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://localhost/joomla_old_testsite_257/components/com_admincredible/direct.php?resource=upgrade&task=step
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept:
11
+ - application/json
12
+ User-Agent:
13
+ - Admincredible Ruby Gem
14
+ Accept-Encoding:
15
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ Date:
22
+ - Sun, 20 Jan 2013 00:01:49 GMT
23
+ Server:
24
+ - Apache/2.2.21 (Unix) mod_ssl/2.2.21 OpenSSL/0.9.8r DAV/2 PHP/5.3.6
25
+ X-Powered-By:
26
+ - PHP/5.3.6
27
+ Set-Cookie:
28
+ - c90b3f6e23ff46392a42cf27fea67ad4=f1b6079c171a0a7310669723ac609263; path=/
29
+ Content-Length:
30
+ - '196'
31
+ Content-Type:
32
+ - application/json;
33
+ body:
34
+ encoding: US-ASCII
35
+ string: ! "{\"status\":200,\"data\":{\"HasRun\":false,\"Domain\":\"\",\"Step\":\"\",\"Substep\":\"\",\"Error\":false,\"Warnings\":[],\"files\":0,\"bytesIn\":0,\"bytesOut\":0,\"status\":true,\"done\":true},\"message\":\"Site Update Completed\"}"
36
+ http_version:
37
+ recorded_at: Sun, 20 Jan 2013 00:01:52 GMT
38
+ recorded_with: VCR 2.4.0
@@ -0,0 +1,36 @@
1
+ require File.expand_path(File.dirname(__FILE__) + '/../spec_helper.rb')
2
+
3
+ describe Admincredible::Resources::Backup do
4
+ it 'should start a backup' do
5
+ client = Admincredible::Client.new do |config|
6
+ config.url = 'http://localhost/joomla_old_testsite_257'
7
+ end
8
+
9
+ VCR.use_cassette 'backups/start' do
10
+ response = client.backups.start
11
+ response['status'].should eq(302)
12
+ end
13
+ end
14
+
15
+ it 'should step a backup' do
16
+ client = Admincredible::Client.new do |config|
17
+ config.url = 'http://localhost/joomla_old_testsite_257'
18
+ end
19
+
20
+ VCR.use_cassette 'backups/step' do
21
+ response = client.backups.step
22
+ response['status'].should eq(200)
23
+ end
24
+ end
25
+
26
+ it 'should create a backup' do
27
+ client = Admincredible::Client.new do |config|
28
+ config.url = 'http://localhost/joomla_old_testsite_257'
29
+ end
30
+
31
+ VCR.use_cassette 'backups/create' do
32
+ response = client.backups.create
33
+ response['status'].should eq(200)
34
+ end
35
+ end
36
+ end
@@ -0,0 +1,25 @@
1
+ require File.expand_path(File.dirname(__FILE__) + '/../spec_helper.rb')
2
+
3
+ describe Admincredible::Resources::Compatibility do
4
+ it 'should return compatibility status' do
5
+ client = Admincredible::Client.new do |config|
6
+ config.url = 'http://localhost/joomla_old_testsite_257'
7
+ end
8
+
9
+ VCR.use_cassette 'compatibility/status' do
10
+ response = client.compatibility.status
11
+ response['compatible'].should be_true
12
+ end
13
+ end
14
+
15
+ it 'should add exceptions' do
16
+ client = Admincredible::Client.new do |config|
17
+ config.url = 'http://localhost/joomla_old_testsite_257'
18
+ end
19
+
20
+ VCR.use_cassette 'compatibility/added_exceptions' do
21
+ response = client.compatibility.add_exceptions
22
+ response['message'].should eq('Exceptions Added')
23
+ end
24
+ end
25
+ end
@@ -0,0 +1,25 @@
1
+ require File.expand_path(File.dirname(__FILE__) + '/../spec_helper.rb')
2
+
3
+ describe Admincredible::Resources::Extension do
4
+ it 'should return a list of extensions' do
5
+ client = Admincredible::Client.new do |config|
6
+ config.url = 'http://localhost/joomla_old_testsite_257'
7
+ end
8
+
9
+ VCR.use_cassette 'extensions/all' do
10
+ response = client.extensions.all
11
+ response.first['extension_id'].should_not be_nil
12
+ end
13
+ end
14
+
15
+ it 'should update' do
16
+ client = Admincredible::Client.new do |config|
17
+ config.url = 'http://localhost/joomla_old_testsite_257'
18
+ end
19
+
20
+ VCR.use_cassette 'extensions/update' do
21
+ response = client.extensions.update
22
+ response['status'].should eq(200)
23
+ end
24
+ end
25
+ end
@@ -0,0 +1,47 @@
1
+ require File.expand_path(File.dirname(__FILE__) + '/../spec_helper.rb')
2
+
3
+ describe Admincredible::Resources::Setting do
4
+ it 'should return all the settings' do
5
+ client = Admincredible::Client.new do |config|
6
+ config.url = 'http://localhost/joomla_old_testsite_257'
7
+ end
8
+
9
+ VCR.use_cassette 'settings/all' do
10
+ response = client.settings.all
11
+ response.first['authentication_method'].should_not be_nil
12
+ end
13
+ end
14
+
15
+ it 'should return the first setting' do
16
+ client = Admincredible::Client.new do |config|
17
+ config.url = 'http://localhost/joomla_old_testsite_257'
18
+ end
19
+
20
+ VCR.use_cassette 'settings/first' do
21
+ response = client.settings.first
22
+ response['authentication_method'].should_not be_nil
23
+ end
24
+ end
25
+
26
+ it 'should create a setting' do
27
+ client = Admincredible::Client.new do |config|
28
+ config.url = 'http://localhost/joomla_old_testsite_257'
29
+ end
30
+
31
+ VCR.use_cassette 'settings/created' do
32
+ response = client.settings.create :test_setting => 'cats'
33
+ response['test_setting'].should eq('cats')
34
+ end
35
+ end
36
+
37
+ it 'should update settings' do
38
+ client = Admincredible::Client.new do |config|
39
+ config.url = 'http://localhost/joomla_old_testsite_257'
40
+ end
41
+
42
+ VCR.use_cassette 'settings/updated' do
43
+ response = client.settings.create :test_setting => 'updated'
44
+ response['test_setting'].should eq('updated')
45
+ end
46
+ end
47
+ end
@@ -0,0 +1,14 @@
1
+ require File.expand_path(File.dirname(__FILE__) + '/../spec_helper.rb')
2
+
3
+ describe Admincredible::Resources::Site do
4
+ it 'should return the site configuration' do
5
+ client = Admincredible::Client.new do |config|
6
+ config.url = 'http://localhost/joomla_old_testsite_257'
7
+ end
8
+
9
+ VCR.use_cassette 'site/configuration' do
10
+ response = client.site.configuration
11
+ response['host'].should eq('localhost')
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,91 @@
1
+ require File.expand_path(File.dirname(__FILE__) + '/../spec_helper.rb')
2
+
3
+ describe Admincredible::Resources::Upgrade do
4
+ it 'should return upgrade info' do
5
+ client = Admincredible::Client.new do |config|
6
+ config.url = 'http://localhost/joomla_old_testsite_257'
7
+ end
8
+
9
+ VCR.use_cassette 'upgrade/info' do
10
+ response = client.upgrade.info
11
+ response['installed'].should_not be_nil
12
+ end
13
+ end
14
+
15
+ it 'should download upgrade file' do
16
+ client = Admincredible::Client.new do |config|
17
+ config.url = 'http://localhost/joomla_old_testsite_257'
18
+ end
19
+
20
+ VCR.use_cassette 'upgrade/download' do
21
+ response = client.upgrade.download
22
+ response['status'].should eq(200)
23
+ end
24
+ end
25
+
26
+ it 'should create the upgrade restoration file' do
27
+ client = Admincredible::Client.new do |config|
28
+ config.url = 'http://localhost/joomla_old_testsite_257'
29
+ end
30
+
31
+ VCR.use_cassette 'upgrade/create_restoration_file' do
32
+ response = client.upgrade.create_restoration_file
33
+ response['status'].should eq(200)
34
+ end
35
+ end
36
+
37
+ it 'should start the upgrade' do
38
+ client = Admincredible::Client.new do |config|
39
+ config.url = 'http://localhost/joomla_old_testsite_257'
40
+ end
41
+
42
+ VCR.use_cassette 'upgrade/start' do
43
+ response = client.upgrade.start
44
+ response['status'].should eq(302)
45
+ end
46
+ end
47
+
48
+ it 'should step the upgrade until finished' do
49
+ client = Admincredible::Client.new do |config|
50
+ config.url = 'http://localhost/joomla_old_testsite_257'
51
+ end
52
+
53
+ VCR.use_cassette 'upgrade/step' do
54
+ response = client.upgrade.step
55
+ response['status'].should eq(200)
56
+ end
57
+ end
58
+
59
+ it 'should finalize the upgrade' do
60
+ client = Admincredible::Client.new do |config|
61
+ config.url = 'http://localhost/joomla_old_testsite_257'
62
+ end
63
+
64
+ VCR.use_cassette 'upgrade/finalize' do
65
+ response = client.upgrade.finalize
66
+ response['status'].should eq(200)
67
+ end
68
+ end
69
+
70
+ it 'should cleanup the upgrade' do
71
+ client = Admincredible::Client.new do |config|
72
+ config.url = 'http://localhost/joomla_old_testsite_257'
73
+ end
74
+
75
+ VCR.use_cassette 'upgrade/cleanup' do
76
+ response = client.upgrade.cleanup
77
+ response['status'].should eq(200)
78
+ end
79
+ end
80
+
81
+ it 'should do an entire upgrade in one step' do
82
+ client = Admincredible::Client.new do |config|
83
+ config.url = 'http://localhost/joomla_old_testsite_257'
84
+ end
85
+
86
+ VCR.use_cassette 'upgrade/create' do
87
+ response = client.upgrade.create
88
+ response['status'].should eq(200)
89
+ end
90
+ end
91
+ end
@@ -0,0 +1,38 @@
1
+ require 'webmock'
2
+ require 'json'
3
+ require 'vcr'
4
+ require 'logger'
5
+ require 'admincredible'
6
+
7
+ module TestHelper
8
+ def stub_json_request(verb, path_matcher, body = json, options = {})
9
+ stub_request(verb, path_matcher).to_return(Hashie::Mash.new(
10
+ :body => body, :headers => { :content_type => "application/json" }
11
+ ).deep_merge(options))
12
+ end
13
+ end
14
+
15
+ module Admincredible
16
+ module Resources
17
+ class Fake < Resource
18
+ def faker
19
+ return 'fake resource'
20
+ end
21
+ end
22
+ end
23
+ end
24
+
25
+ RSpec.configure do |config|
26
+ config.before(:each) do
27
+ WebMock.reset!
28
+ end
29
+
30
+ config.extend VCR::RSpec::Macros
31
+ config.include WebMock::API
32
+ config.include TestHelper
33
+ end
34
+
35
+ VCR.configure do |config|
36
+ config.cassette_library_dir = File.join(File.dirname(__FILE__), 'fixtures', 'cassettes')
37
+ config.hook_into :webmock
38
+ end
metadata ADDED
@@ -0,0 +1,353 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: admincredible
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Ken Erickson"
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2013-01-19 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: active_support
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: '0'
30
+ - !ruby/object:Gem::Dependency
31
+ name: simple_oauth
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ! '>='
36
+ - !ruby/object:Gem::Version
37
+ version: '0'
38
+ type: :runtime
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: '0'
46
+ - !ruby/object:Gem::Dependency
47
+ name: faraday
48
+ requirement: !ruby/object:Gem::Requirement
49
+ none: false
50
+ requirements:
51
+ - - ! '>='
52
+ - !ruby/object:Gem::Version
53
+ version: 0.8.0
54
+ type: :runtime
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ! '>='
60
+ - !ruby/object:Gem::Version
61
+ version: 0.8.0
62
+ - !ruby/object:Gem::Dependency
63
+ name: faraday_middleware
64
+ requirement: !ruby/object:Gem::Requirement
65
+ none: false
66
+ requirements:
67
+ - - ! '>='
68
+ - !ruby/object:Gem::Version
69
+ version: 0.8.7
70
+ type: :runtime
71
+ prerelease: false
72
+ version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ! '>='
76
+ - !ruby/object:Gem::Version
77
+ version: 0.8.7
78
+ - !ruby/object:Gem::Dependency
79
+ name: hashie
80
+ requirement: !ruby/object:Gem::Requirement
81
+ none: false
82
+ requirements:
83
+ - - ! '>='
84
+ - !ruby/object:Gem::Version
85
+ version: '0'
86
+ type: :runtime
87
+ prerelease: false
88
+ version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
90
+ requirements:
91
+ - - ! '>='
92
+ - !ruby/object:Gem::Version
93
+ version: '0'
94
+ - !ruby/object:Gem::Dependency
95
+ name: inflection
96
+ requirement: !ruby/object:Gem::Requirement
97
+ none: false
98
+ requirements:
99
+ - - ! '>='
100
+ - !ruby/object:Gem::Version
101
+ version: '0'
102
+ type: :runtime
103
+ prerelease: false
104
+ version_requirements: !ruby/object:Gem::Requirement
105
+ none: false
106
+ requirements:
107
+ - - ! '>='
108
+ - !ruby/object:Gem::Version
109
+ version: '0'
110
+ - !ruby/object:Gem::Dependency
111
+ name: json
112
+ requirement: !ruby/object:Gem::Requirement
113
+ none: false
114
+ requirements:
115
+ - - ! '>='
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :runtime
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ none: false
122
+ requirements:
123
+ - - ! '>='
124
+ - !ruby/object:Gem::Version
125
+ version: '0'
126
+ - !ruby/object:Gem::Dependency
127
+ name: mime-types
128
+ requirement: !ruby/object:Gem::Requirement
129
+ none: false
130
+ requirements:
131
+ - - ! '>='
132
+ - !ruby/object:Gem::Version
133
+ version: '0'
134
+ type: :runtime
135
+ prerelease: false
136
+ version_requirements: !ruby/object:Gem::Requirement
137
+ none: false
138
+ requirements:
139
+ - - ! '>='
140
+ - !ruby/object:Gem::Version
141
+ version: '0'
142
+ - !ruby/object:Gem::Dependency
143
+ name: multipart-post
144
+ requirement: !ruby/object:Gem::Requirement
145
+ none: false
146
+ requirements:
147
+ - - ! '>='
148
+ - !ruby/object:Gem::Version
149
+ version: '0'
150
+ type: :runtime
151
+ prerelease: false
152
+ version_requirements: !ruby/object:Gem::Requirement
153
+ none: false
154
+ requirements:
155
+ - - ! '>='
156
+ - !ruby/object:Gem::Version
157
+ version: '0'
158
+ - !ruby/object:Gem::Dependency
159
+ name: rake
160
+ requirement: !ruby/object:Gem::Requirement
161
+ none: false
162
+ requirements:
163
+ - - ! '>='
164
+ - !ruby/object:Gem::Version
165
+ version: '0'
166
+ type: :development
167
+ prerelease: false
168
+ version_requirements: !ruby/object:Gem::Requirement
169
+ none: false
170
+ requirements:
171
+ - - ! '>='
172
+ - !ruby/object:Gem::Version
173
+ version: '0'
174
+ - !ruby/object:Gem::Dependency
175
+ name: vcr
176
+ requirement: !ruby/object:Gem::Requirement
177
+ none: false
178
+ requirements:
179
+ - - ! '>='
180
+ - !ruby/object:Gem::Version
181
+ version: '0'
182
+ type: :development
183
+ prerelease: false
184
+ version_requirements: !ruby/object:Gem::Requirement
185
+ none: false
186
+ requirements:
187
+ - - ! '>='
188
+ - !ruby/object:Gem::Version
189
+ version: '0'
190
+ - !ruby/object:Gem::Dependency
191
+ name: rspec
192
+ requirement: !ruby/object:Gem::Requirement
193
+ none: false
194
+ requirements:
195
+ - - ! '>='
196
+ - !ruby/object:Gem::Version
197
+ version: '0'
198
+ type: :development
199
+ prerelease: false
200
+ version_requirements: !ruby/object:Gem::Requirement
201
+ none: false
202
+ requirements:
203
+ - - ! '>='
204
+ - !ruby/object:Gem::Version
205
+ version: '0'
206
+ - !ruby/object:Gem::Dependency
207
+ name: mongo_mapper
208
+ requirement: !ruby/object:Gem::Requirement
209
+ none: false
210
+ requirements:
211
+ - - ! '>='
212
+ - !ruby/object:Gem::Version
213
+ version: '0'
214
+ type: :development
215
+ prerelease: false
216
+ version_requirements: !ruby/object:Gem::Requirement
217
+ none: false
218
+ requirements:
219
+ - - ! '>='
220
+ - !ruby/object:Gem::Version
221
+ version: '0'
222
+ - !ruby/object:Gem::Dependency
223
+ name: webmock
224
+ requirement: !ruby/object:Gem::Requirement
225
+ none: false
226
+ requirements:
227
+ - - ! '>='
228
+ - !ruby/object:Gem::Version
229
+ version: '0'
230
+ type: :development
231
+ prerelease: false
232
+ version_requirements: !ruby/object:Gem::Requirement
233
+ none: false
234
+ requirements:
235
+ - - ! '>='
236
+ - !ruby/object:Gem::Version
237
+ version: '0'
238
+ description: Communicates with com_admincredible, a Joomla! extension that adds REST
239
+ like APIs to Joomla installs
240
+ email: bookworm.productions@gmail.com
241
+ executables: []
242
+ extensions: []
243
+ extra_rdoc_files: []
244
+ files:
245
+ - Gemfile
246
+ - Gemfile.lock
247
+ - Rakefile
248
+ - Readme.md
249
+ - TODOS
250
+ - admincredible.gemspec
251
+ - developer_notes/README.md
252
+ - developer_notes/TODOS.md
253
+ - lib/admincredible.rb
254
+ - lib/admincredible/client.rb
255
+ - lib/admincredible/configuration.rb
256
+ - lib/admincredible/connection.rb
257
+ - lib/admincredible/core_ext/string.rb
258
+ - lib/admincredible/joomla_request.rb
259
+ - lib/admincredible/middleware/logger.rb
260
+ - lib/admincredible/middleware/step.rb
261
+ - lib/admincredible/request.rb
262
+ - lib/admincredible/resource.rb
263
+ - lib/admincredible/resources/Backup.rb
264
+ - lib/admincredible/resources/Compatibility.rb
265
+ - lib/admincredible/resources/Extension.rb
266
+ - lib/admincredible/resources/Oauth.rb
267
+ - lib/admincredible/resources/Setting.rb
268
+ - lib/admincredible/resources/Site.rb
269
+ - lib/admincredible/resources/Upgrade.rb
270
+ - spec/core/client_spec.rb
271
+ - spec/core/resource_spec.rb
272
+ - spec/fixtures/cassettes/backups/create.yml
273
+ - spec/fixtures/cassettes/backups/start.yml
274
+ - spec/fixtures/cassettes/backups/step.yml
275
+ - spec/fixtures/cassettes/compatibility/added_exceptions.yml
276
+ - spec/fixtures/cassettes/compatibility/status.yml
277
+ - spec/fixtures/cassettes/extensions/all.yml
278
+ - spec/fixtures/cassettes/extensions/update.yml
279
+ - spec/fixtures/cassettes/settings/all.yml
280
+ - spec/fixtures/cassettes/settings/created.yml
281
+ - spec/fixtures/cassettes/settings/first.yml
282
+ - spec/fixtures/cassettes/settings/updated.yml
283
+ - spec/fixtures/cassettes/site/configuration.yml
284
+ - spec/fixtures/cassettes/upgrade/cleanup.yml
285
+ - spec/fixtures/cassettes/upgrade/create.yml
286
+ - spec/fixtures/cassettes/upgrade/create_restoration_file.yml
287
+ - spec/fixtures/cassettes/upgrade/download.yml
288
+ - spec/fixtures/cassettes/upgrade/finalize.yml
289
+ - spec/fixtures/cassettes/upgrade/info.yml
290
+ - spec/fixtures/cassettes/upgrade/start.yml
291
+ - spec/fixtures/cassettes/upgrade/step.yml
292
+ - spec/resources/backups_spec.rb
293
+ - spec/resources/compatibility_spec.rb
294
+ - spec/resources/extensions_spec.rb
295
+ - spec/resources/setting_spec.rb
296
+ - spec/resources/site_spec.rb
297
+ - spec/resources/upgrade_spec.rb
298
+ - spec/spec_helper.rb
299
+ homepage: http://admincredible.com
300
+ licenses: []
301
+ post_install_message:
302
+ rdoc_options: []
303
+ require_paths:
304
+ - lib
305
+ required_ruby_version: !ruby/object:Gem::Requirement
306
+ none: false
307
+ requirements:
308
+ - - ! '>='
309
+ - !ruby/object:Gem::Version
310
+ version: 1.8.7
311
+ required_rubygems_version: !ruby/object:Gem::Requirement
312
+ none: false
313
+ requirements:
314
+ - - ! '>='
315
+ - !ruby/object:Gem::Version
316
+ version: 1.3.6
317
+ requirements: []
318
+ rubyforge_project:
319
+ rubygems_version: 1.8.24
320
+ signing_key:
321
+ specification_version: 3
322
+ summary: Communicates with com_admincredible, a Joomla! extension that adds REST like
323
+ APIs to Joomla installs
324
+ test_files:
325
+ - spec/core/client_spec.rb
326
+ - spec/core/resource_spec.rb
327
+ - spec/fixtures/cassettes/backups/create.yml
328
+ - spec/fixtures/cassettes/backups/start.yml
329
+ - spec/fixtures/cassettes/backups/step.yml
330
+ - spec/fixtures/cassettes/compatibility/added_exceptions.yml
331
+ - spec/fixtures/cassettes/compatibility/status.yml
332
+ - spec/fixtures/cassettes/extensions/all.yml
333
+ - spec/fixtures/cassettes/extensions/update.yml
334
+ - spec/fixtures/cassettes/settings/all.yml
335
+ - spec/fixtures/cassettes/settings/created.yml
336
+ - spec/fixtures/cassettes/settings/first.yml
337
+ - spec/fixtures/cassettes/settings/updated.yml
338
+ - spec/fixtures/cassettes/site/configuration.yml
339
+ - spec/fixtures/cassettes/upgrade/cleanup.yml
340
+ - spec/fixtures/cassettes/upgrade/create.yml
341
+ - spec/fixtures/cassettes/upgrade/create_restoration_file.yml
342
+ - spec/fixtures/cassettes/upgrade/download.yml
343
+ - spec/fixtures/cassettes/upgrade/finalize.yml
344
+ - spec/fixtures/cassettes/upgrade/info.yml
345
+ - spec/fixtures/cassettes/upgrade/start.yml
346
+ - spec/fixtures/cassettes/upgrade/step.yml
347
+ - spec/resources/backups_spec.rb
348
+ - spec/resources/compatibility_spec.rb
349
+ - spec/resources/extensions_spec.rb
350
+ - spec/resources/setting_spec.rb
351
+ - spec/resources/site_spec.rb
352
+ - spec/resources/upgrade_spec.rb
353
+ - spec/spec_helper.rb