nextcloud-ruby 0.1.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.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: a22f9f1b974c7252556f00302d266771b75bbb4a
4
+ data.tar.gz: f130865af39bf9a42d9ba871ba5e743111d4ed91
5
+ SHA512:
6
+ metadata.gz: e1064bb3d8800266049138b110df3e5da2b50e613cb891cc501d4fd822f690dcb3f4919a62a1909f3819d6f3b23defe46ad9a2b58f59a54bf364683d82b2116e
7
+ data.tar.gz: 6096ad3d4954e79b0e960167f39222076933debfa4304594525e68f588083dc9bcd4578fcfbcd821982b7b0ae5907101d72c4d660d1407775ac1aa0cb34d56b9
@@ -0,0 +1,12 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
10
+
11
+ # rspec failure tracking
12
+ .rspec_status
@@ -0,0 +1,8 @@
1
+ #PreCommit:
2
+ RuboCop:
3
+ enabled: true
4
+ on_warn: fail # Treat all warnings as failures
5
+
6
+ TrailingWhitespace:
7
+ enabled: true
8
+
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
@@ -0,0 +1,20 @@
1
+ AllCops:
2
+ Exclude:
3
+ - 'nextcloud-ruby.gemspec'
4
+ TargetRubyVersion: 2.3
5
+
6
+ Style/FrozenStringLiteralComment:
7
+ Enabled: false
8
+
9
+ Metrics/LineLength:
10
+ Max: 89
11
+
12
+ Documentation:
13
+ Enabled: false
14
+
15
+ Style/FileName:
16
+ Enabled: false
17
+
18
+ Metrics/BlockLength:
19
+ Exclude:
20
+ - 'spec/**/*'
@@ -0,0 +1 @@
1
+ nextcloud-ruby
@@ -0,0 +1 @@
1
+ 2.3.1
@@ -0,0 +1,6 @@
1
+ sudo: false
2
+ language: ruby
3
+ rvm:
4
+ - 2.3.1
5
+ before_install: gem install bundler -v 1.15.4
6
+ script: bundle exec rspec
@@ -0,0 +1,74 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ In the interest of fostering an open and welcoming environment, we as
6
+ contributors and maintainers pledge to making participation in our project and
7
+ our community a harassment-free experience for everyone, regardless of age, body
8
+ size, disability, ethnicity, gender identity and expression, level of experience,
9
+ nationality, personal appearance, race, religion, or sexual identity and
10
+ orientation.
11
+
12
+ ## Our Standards
13
+
14
+ Examples of behavior that contributes to creating a positive environment
15
+ include:
16
+
17
+ * Using welcoming and inclusive language
18
+ * Being respectful of differing viewpoints and experiences
19
+ * Gracefully accepting constructive criticism
20
+ * Focusing on what is best for the community
21
+ * Showing empathy towards other community members
22
+
23
+ Examples of unacceptable behavior by participants include:
24
+
25
+ * The use of sexualized language or imagery and unwelcome sexual attention or
26
+ advances
27
+ * Trolling, insulting/derogatory comments, and personal or political attacks
28
+ * Public or private harassment
29
+ * Publishing others' private information, such as a physical or electronic
30
+ address, without explicit permission
31
+ * Other conduct which could reasonably be considered inappropriate in a
32
+ professional setting
33
+
34
+ ## Our Responsibilities
35
+
36
+ Project maintainers are responsible for clarifying the standards of acceptable
37
+ behavior and are expected to take appropriate and fair corrective action in
38
+ response to any instances of unacceptable behavior.
39
+
40
+ Project maintainers have the right and responsibility to remove, edit, or
41
+ reject comments, commits, code, wiki edits, issues, and other contributions
42
+ that are not aligned to this Code of Conduct, or to ban temporarily or
43
+ permanently any contributor for other behaviors that they deem inappropriate,
44
+ threatening, offensive, or harmful.
45
+
46
+ ## Scope
47
+
48
+ This Code of Conduct applies both within project spaces and in public spaces
49
+ when an individual is representing the project or its community. Examples of
50
+ representing a project or community include using an official project e-mail
51
+ address, posting via an official social media account, or acting as an appointed
52
+ representative at an online or offline event. Representation of a project may be
53
+ further defined and clarified by project maintainers.
54
+
55
+ ## Enforcement
56
+
57
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
+ reported by contacting the project team at andrej@antas.cz. All
59
+ complaints will be reviewed and investigated and will result in a response that
60
+ is deemed necessary and appropriate to the circumstances. The project team is
61
+ obligated to maintain confidentiality with regard to the reporter of an incident.
62
+ Further details of specific enforcement policies may be posted separately.
63
+
64
+ Project maintainers who do not follow or enforce the Code of Conduct in good
65
+ faith may face temporary or permanent repercussions as determined by other
66
+ members of the project's leadership.
67
+
68
+ ## Attribution
69
+
70
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
+ available at [http://contributor-covenant.org/version/1/4][version]
72
+
73
+ [homepage]: http://contributor-covenant.org
74
+ [version]: http://contributor-covenant.org/version/1/4/
data/Gemfile ADDED
@@ -0,0 +1,6 @@
1
+ source 'https://rubygems.org'
2
+
3
+ git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }
4
+
5
+ # Specify your gem's dependencies in nextcloud-ruby.gemspec
6
+ gemspec
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2017 Andrej Antas
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
@@ -0,0 +1,85 @@
1
+ # Nextcloud::Ruby
2
+
3
+ Simple wrapper for Nextcloud API
4
+
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ ```ruby
10
+ gem 'nextcloud-ruby'
11
+ ```
12
+
13
+ And then execute:
14
+
15
+ $ bundle
16
+
17
+ Or install it yourself as:
18
+
19
+ $ gem install nextcloud-ruby
20
+
21
+ ## Usage
22
+
23
+ Before you start using nextcloud-ruby you have to configure it.
24
+
25
+ ```ruby
26
+ Nextcloud::Ruby.configure do |config|
27
+ config.dav_url = 'https://yournextcloudserver.com/remote.php/dav/'
28
+ config.username = 'your nextcloud username'
29
+ config.password = 'your nextcloud password'
30
+ end
31
+ ```
32
+ And enjoy its features.
33
+
34
+ ### Directory
35
+
36
+ #### Create a directory
37
+
38
+ ```ruby
39
+ Nextcloud::Ruby::Directory.create('relative/path/to/your/new/directory')
40
+ ```
41
+ #### Delete a directory
42
+
43
+ ```ruby
44
+ Nextcloud::Ruby::Directory.delete('relative/path/to/your/directory')
45
+ ```
46
+ #### Find a directory
47
+
48
+ ```ruby
49
+ Nextcloud::Ruby::Directory.find('relative/path/to/your/directory')
50
+ ```
51
+ #### Set a directory tag
52
+
53
+ ```ruby
54
+ Nextcloud::Ruby::Directory.set_tag(directory,tag)
55
+ ```
56
+ ### Tag
57
+
58
+ #### Find tag
59
+
60
+ ```ruby
61
+ Nextcloud::Ruby::Tag.find(id)
62
+ ```
63
+ #### All tags
64
+
65
+ ```ruby
66
+ Nextcloud::Ruby::Tag.all
67
+ ```
68
+
69
+ ## Development
70
+
71
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
72
+
73
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
74
+
75
+ ## Contributing
76
+
77
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/nextcloud-ruby. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
78
+
79
+ ## License
80
+
81
+ The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
82
+
83
+ ## Code of Conduct
84
+
85
+ Everyone interacting in the Nextcloud::Ruby project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/nextcloud-ruby/blob/master/CODE_OF_CONDUCT.md).
@@ -0,0 +1,6 @@
1
+ require 'bundler/gem_tasks'
2
+ require 'rspec/core/rake_task'
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+
6
+ task default: :spec
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'bundler/setup'
4
+ require 'nextcloud-ruby'
5
+ require 'pry'
6
+
7
+ # You can add fixtures and/or initialization code here to make experimenting
8
+ # with your gem easier. You can also use a different console, if you like.
9
+
10
+ # (If you use this, don't forget to add pry to your Gemfile!)
11
+
12
+ # require 'irb'
13
+ # IRB.start(__FILE__)
14
+ Pry.start
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -0,0 +1 @@
1
+ require 'nextcloud/ruby'
@@ -0,0 +1,47 @@
1
+ ##
2
+ # External dependencies
3
+ #
4
+ require 'net/https'
5
+ require 'nokogiri'
6
+ require 'addressable'
7
+
8
+ ##
9
+ # Classes from this gem
10
+ #
11
+ require 'nextcloud/ruby/version'
12
+ require 'nextcloud/ruby/utils/errors'
13
+
14
+ require 'nextcloud/ruby/configuration'
15
+ require 'nextcloud/ruby/api'
16
+ require 'nextcloud/ruby/response'
17
+ require 'nextcloud/ruby/directory'
18
+ require 'nextcloud/ruby/tag'
19
+
20
+ require 'nextcloud/ruby/models/directory'
21
+ require 'nextcloud/ruby/models/tag'
22
+
23
+ ##
24
+ #
25
+ # Main module of Nextcloud API wrapper
26
+ #
27
+ # See 'nextcloud/ruby/configuration.rb' for more explanation how to set configuration
28
+ #
29
+ module Nextcloud
30
+ module Ruby
31
+ class << self
32
+ attr_accessor :configuration
33
+ end
34
+
35
+ def self.configuration
36
+ @configuration ||= Configuration.new
37
+ end
38
+
39
+ def self.reset
40
+ @configuration = Configuration.new
41
+ end
42
+
43
+ def self.configure
44
+ yield(configuration)
45
+ end
46
+ end
47
+ end
@@ -0,0 +1,40 @@
1
+ module Nextcloud
2
+ module Ruby
3
+ class Api
4
+ def initialize(method, path, payload = nil)
5
+ @method = method
6
+ @payload = payload
7
+ @path = Addressable::URI
8
+ .join(Nextcloud::Ruby.configuration.dav_url.to_s, path)
9
+ @uri = Nextcloud::Ruby.configuration.dav_url
10
+ @username = Nextcloud::Ruby.configuration.username
11
+ @password = Nextcloud::Ruby.configuration.password
12
+ init_request
13
+ end
14
+
15
+ def self.request(method, path, payload = nil)
16
+ new(method, path, payload).request
17
+ end
18
+
19
+ def request
20
+ response = Net::HTTP.start(@uri.host, @uri.port,
21
+ use_ssl: @uri.scheme == 'https') do |http|
22
+ http.request(@request)
23
+ end
24
+ Response.new(response.body, response.code.to_i)
25
+ end
26
+
27
+ private
28
+
29
+ def init_request
30
+ @request = net_http_class.new(@path)
31
+ @request.body = @payload if @payload
32
+ @request.basic_auth @username, @password
33
+ end
34
+
35
+ def net_http_class
36
+ Kernel.const_get("Net::HTTP::#{@method.capitalize}")
37
+ end
38
+ end
39
+ end
40
+ end
@@ -0,0 +1,64 @@
1
+ ##
2
+ #
3
+ # This is configuration class that allows you to set your config like so:
4
+ #
5
+ # Nextcloud::Ruby.configure do |config|
6
+ # config.dav_url = 'https://mydav.com/x.php'
7
+ # config.username = 'jon'
8
+ # config.password = 'SuperSecret'
9
+ # config.directories = [
10
+ # 'root/folder/name',
11
+ # 'any/other/folder/name',
12
+ # 'some/more'
13
+ # ]
14
+ # end
15
+ #
16
+ # or
17
+ #
18
+ # by simply assigning params by themself:
19
+ #
20
+ # config = Nextcloud::Ruby::Configuration.new
21
+ # config.dav_url = 'https://mydav.com/x.php'
22
+ # config.username = 'jon'
23
+ # config.password = 'SuperSecret'
24
+ # config.directories = [
25
+ # 'root/folder/name',
26
+ # 'any/other/folder/name',
27
+ # 'some/more'
28
+ # ]
29
+ # Nextcloud::Ruby.configuration = config
30
+ #
31
+ module Nextcloud
32
+ module Ruby
33
+ class Configuration
34
+ attr_writer :dav_url, :username, :password, :directories
35
+
36
+ def initialize
37
+ @dav_url = nil
38
+ @username = nil
39
+ @password = nil
40
+ @directories = nil
41
+ end
42
+
43
+ def dav_url
44
+ raise Errors::ConfigNotSet, 'dav_url' unless @dav_url
45
+ URI(@dav_url)
46
+ end
47
+
48
+ def username
49
+ raise Errors::ConfigNotSet, 'username' unless @username
50
+ @username
51
+ end
52
+
53
+ def password
54
+ raise Errors::ConfigNotSet, 'password' unless @password
55
+ @password
56
+ end
57
+
58
+ def directories
59
+ raise Errors::ConfigNotSet, 'directories' unless @directories
60
+ @directories
61
+ end
62
+ end
63
+ end
64
+ end
@@ -0,0 +1,51 @@
1
+ module Nextcloud
2
+ module Ruby
3
+ class Directory
4
+ FIND_XML = '<?xml version="1.0"?>
5
+ <d:propfind
6
+ xmlns:d="DAV:"
7
+ xmlns:oc="http://owncloud.org/ns"
8
+ xmlns:nc="http://nextcloud.org/ns">
9
+ <d:prop>
10
+ <oc:fileid />
11
+ </d:prop>
12
+ </d:propfind>'.freeze
13
+
14
+ class << self
15
+ def create(path)
16
+ uri = Addressable::URI
17
+ .parse("files/#{Nextcloud::Ruby.configuration.username}/#{path}")
18
+ Api.request(:mkcol, uri)
19
+ end
20
+
21
+ def delete(path)
22
+ uri = Addressable::URI
23
+ .parse("files/#{Nextcloud::Ruby.configuration.username}/#{path}")
24
+ Api.request(:delete, uri)
25
+ end
26
+
27
+ def find(path)
28
+ uri = Addressable::URI
29
+ .parse("files/#{Nextcloud::Ruby.configuration.username}/#{path}")
30
+ response = Api.request(:propfind, uri, FIND_XML)
31
+ response.ok? ? parse_directory(response, path) : nil
32
+ end
33
+
34
+ def set_tag(directory, tag)
35
+ return Response.new('', 400) unless directory && tag
36
+ uri = Addressable::URI
37
+ .join(Nextcloud::Ruby.configuration.dav_url.path.to_s,
38
+ "systemtags-relations/files/#{directory.id}/#{tag.id}")
39
+ Api.request(:put, uri)
40
+ end
41
+
42
+ private
43
+
44
+ def parse_directory(response, path)
45
+ id = response.body.xpath('//oc:fileid').text.to_i
46
+ Nextcloud::Ruby::Models::Directory.new(id, path)
47
+ end
48
+ end
49
+ end
50
+ end
51
+ end
@@ -0,0 +1,14 @@
1
+ module Nextcloud
2
+ module Ruby
3
+ module Models
4
+ class Directory
5
+ attr_reader :id, :path
6
+
7
+ def initialize(id, path)
8
+ @id = id
9
+ @path = path
10
+ end
11
+ end
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,14 @@
1
+ module Nextcloud
2
+ module Ruby
3
+ module Models
4
+ class Tag
5
+ attr_reader :id, :name
6
+
7
+ def initialize(id, name)
8
+ @id = id
9
+ @name = name
10
+ end
11
+ end
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,23 @@
1
+ module Nextcloud
2
+ module Ruby
3
+ class Response
4
+ SUCCESS_CODES = [201, 204, 207].freeze
5
+ attr_accessor :body, :status_code
6
+
7
+ def initialize(body, status_code)
8
+ @body = to_xml(body)
9
+ @status_code = status_code
10
+ end
11
+
12
+ def ok?
13
+ SUCCESS_CODES.include?(@status_code)
14
+ end
15
+
16
+ private
17
+
18
+ def to_xml(body)
19
+ Nokogiri::XML.parse(body)
20
+ end
21
+ end
22
+ end
23
+ end
@@ -0,0 +1,46 @@
1
+ module Nextcloud
2
+ module Ruby
3
+ class Tag
4
+ ALL_XML = '<?xml version="1.0"?>
5
+ <d:propfind
6
+ xmlns:d="DAV:"
7
+ xmlns:oc="http://owncloud.org/ns"
8
+ xmlns:nc="http://nextcloud.org/ns">
9
+ <d:prop>
10
+ <oc:display-name />
11
+ <oc:id />
12
+ </d:prop>
13
+ </d:propfind>'.freeze
14
+
15
+ class << self
16
+ def find(id)
17
+ uri = Addressable::URI
18
+ .parse("systemtags/#{id}")
19
+ response = Api.request(:propfind, uri, ALL_XML)
20
+ response.ok? ? parse_tag(response.body.xpath('//d:prop')) : nil
21
+ end
22
+
23
+ def all
24
+ response = Api.request(:propfind, 'systemtags', ALL_XML)
25
+ response.ok? ? parse_all(response) : nil
26
+ end
27
+
28
+ private
29
+
30
+ def parse_tag(response)
31
+ id = response.xpath('./oc:id').text.to_i
32
+ name = response.xpath('./oc:display-name').text
33
+ Nextcloud::Ruby::Models::Tag.new(id, name) unless id.zero?
34
+ end
35
+
36
+ def parse_all(response)
37
+ [].tap do |tags|
38
+ response.body.xpath('//d:prop').each do |prop|
39
+ tags << parse_tag(prop) unless parse_tag(prop).nil?
40
+ end
41
+ end
42
+ end
43
+ end
44
+ end
45
+ end
46
+ end
@@ -0,0 +1,22 @@
1
+ ##
2
+ #
3
+ # Collection of errors used in this library
4
+ #
5
+ # Every time you want to raise one of these, you just go ahead and do:
6
+ #
7
+ # raise Nextcloud::Ruby::ConfigNotSet, 'Your param'
8
+ #
9
+ module Nextcloud
10
+ module Ruby
11
+ module Errors
12
+ class Error < StandardError; end
13
+
14
+ class ConfigNotSet < Error
15
+ def initialize(param)
16
+ msg = "Please check if you set #{param}, seems it is missing."
17
+ super(msg)
18
+ end
19
+ end
20
+ end
21
+ end
22
+ end
@@ -0,0 +1,5 @@
1
+ module Nextcloud
2
+ module Ruby
3
+ VERSION = '0.1.1'.freeze
4
+ end
5
+ end
@@ -0,0 +1,44 @@
1
+ # coding: utf-8
2
+
3
+ lib = File.expand_path('../lib', __FILE__)
4
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
+ require 'nextcloud/ruby/version'
6
+
7
+ Gem::Specification.new do |spec|
8
+ spec.name = 'nextcloud-ruby'
9
+ spec.version = Nextcloud::Ruby::VERSION
10
+ spec.authors = ['Andrej Antas', 'Ondrej Bina']
11
+ spec.email = ['andrej@antas.cz', 'binao@seznam.cz']
12
+
13
+ spec.summary = 'Wrapper for nextcloud XML API'
14
+ spec.description = 'Wrapper for nextcloud XML API - folder structure creation, etc...'
15
+ spec.homepage = 'https://github.com/ucetnictvi-on-line/nextcloud-ruby'
16
+ spec.license = 'MIT'
17
+
18
+ if spec.respond_to?(:metadata)
19
+ spec.metadata['allowed_push_host'] = 'https://rubygems.org'
20
+ else
21
+ raise 'RubyGems 2.0 or newer is required to protect against ' \
22
+ 'public gem pushes.'
23
+ end
24
+
25
+ spec.files = `git ls-files -z`.split("\x0").reject do |f|
26
+ f.match(%r{^(test|spec|features)/})
27
+ end
28
+ spec.bindir = 'exe'
29
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
30
+ spec.require_paths = ['lib']
31
+
32
+ spec.add_runtime_dependency 'nokogiri', '~> 1.8'
33
+ spec.add_runtime_dependency 'addressable', '~> 2.5'
34
+
35
+ spec.add_development_dependency 'bundler', '~> 1.15'
36
+ spec.add_development_dependency 'rake', '~> 10.0'
37
+ spec.add_development_dependency 'rspec', '~> 3.0'
38
+ spec.add_development_dependency 'pry', '~> 0.10'
39
+ spec.add_development_dependency 'rubocop', '~> 0.49'
40
+ spec.add_development_dependency 'vcr', '~> 3.0'
41
+ spec.add_development_dependency 'webmock', '~> 3.0'
42
+ spec.add_development_dependency 'simplecov', '~> 0.14'
43
+ spec.add_development_dependency 'overcommit', '~> 0.40'
44
+ end
metadata ADDED
@@ -0,0 +1,227 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: nextcloud-ruby
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.1
5
+ platform: ruby
6
+ authors:
7
+ - Andrej Antas
8
+ - Ondrej Bina
9
+ autorequire:
10
+ bindir: exe
11
+ cert_chain: []
12
+ date: 2017-09-07 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: nokogiri
16
+ requirement: !ruby/object:Gem::Requirement
17
+ requirements:
18
+ - - "~>"
19
+ - !ruby/object:Gem::Version
20
+ version: '1.8'
21
+ type: :runtime
22
+ prerelease: false
23
+ version_requirements: !ruby/object:Gem::Requirement
24
+ requirements:
25
+ - - "~>"
26
+ - !ruby/object:Gem::Version
27
+ version: '1.8'
28
+ - !ruby/object:Gem::Dependency
29
+ name: addressable
30
+ requirement: !ruby/object:Gem::Requirement
31
+ requirements:
32
+ - - "~>"
33
+ - !ruby/object:Gem::Version
34
+ version: '2.5'
35
+ type: :runtime
36
+ prerelease: false
37
+ version_requirements: !ruby/object:Gem::Requirement
38
+ requirements:
39
+ - - "~>"
40
+ - !ruby/object:Gem::Version
41
+ version: '2.5'
42
+ - !ruby/object:Gem::Dependency
43
+ name: bundler
44
+ requirement: !ruby/object:Gem::Requirement
45
+ requirements:
46
+ - - "~>"
47
+ - !ruby/object:Gem::Version
48
+ version: '1.15'
49
+ type: :development
50
+ prerelease: false
51
+ version_requirements: !ruby/object:Gem::Requirement
52
+ requirements:
53
+ - - "~>"
54
+ - !ruby/object:Gem::Version
55
+ version: '1.15'
56
+ - !ruby/object:Gem::Dependency
57
+ name: rake
58
+ requirement: !ruby/object:Gem::Requirement
59
+ requirements:
60
+ - - "~>"
61
+ - !ruby/object:Gem::Version
62
+ version: '10.0'
63
+ type: :development
64
+ prerelease: false
65
+ version_requirements: !ruby/object:Gem::Requirement
66
+ requirements:
67
+ - - "~>"
68
+ - !ruby/object:Gem::Version
69
+ version: '10.0'
70
+ - !ruby/object:Gem::Dependency
71
+ name: rspec
72
+ requirement: !ruby/object:Gem::Requirement
73
+ requirements:
74
+ - - "~>"
75
+ - !ruby/object:Gem::Version
76
+ version: '3.0'
77
+ type: :development
78
+ prerelease: false
79
+ version_requirements: !ruby/object:Gem::Requirement
80
+ requirements:
81
+ - - "~>"
82
+ - !ruby/object:Gem::Version
83
+ version: '3.0'
84
+ - !ruby/object:Gem::Dependency
85
+ name: pry
86
+ requirement: !ruby/object:Gem::Requirement
87
+ requirements:
88
+ - - "~>"
89
+ - !ruby/object:Gem::Version
90
+ version: '0.10'
91
+ type: :development
92
+ prerelease: false
93
+ version_requirements: !ruby/object:Gem::Requirement
94
+ requirements:
95
+ - - "~>"
96
+ - !ruby/object:Gem::Version
97
+ version: '0.10'
98
+ - !ruby/object:Gem::Dependency
99
+ name: rubocop
100
+ requirement: !ruby/object:Gem::Requirement
101
+ requirements:
102
+ - - "~>"
103
+ - !ruby/object:Gem::Version
104
+ version: '0.49'
105
+ type: :development
106
+ prerelease: false
107
+ version_requirements: !ruby/object:Gem::Requirement
108
+ requirements:
109
+ - - "~>"
110
+ - !ruby/object:Gem::Version
111
+ version: '0.49'
112
+ - !ruby/object:Gem::Dependency
113
+ name: vcr
114
+ requirement: !ruby/object:Gem::Requirement
115
+ requirements:
116
+ - - "~>"
117
+ - !ruby/object:Gem::Version
118
+ version: '3.0'
119
+ type: :development
120
+ prerelease: false
121
+ version_requirements: !ruby/object:Gem::Requirement
122
+ requirements:
123
+ - - "~>"
124
+ - !ruby/object:Gem::Version
125
+ version: '3.0'
126
+ - !ruby/object:Gem::Dependency
127
+ name: webmock
128
+ requirement: !ruby/object:Gem::Requirement
129
+ requirements:
130
+ - - "~>"
131
+ - !ruby/object:Gem::Version
132
+ version: '3.0'
133
+ type: :development
134
+ prerelease: false
135
+ version_requirements: !ruby/object:Gem::Requirement
136
+ requirements:
137
+ - - "~>"
138
+ - !ruby/object:Gem::Version
139
+ version: '3.0'
140
+ - !ruby/object:Gem::Dependency
141
+ name: simplecov
142
+ requirement: !ruby/object:Gem::Requirement
143
+ requirements:
144
+ - - "~>"
145
+ - !ruby/object:Gem::Version
146
+ version: '0.14'
147
+ type: :development
148
+ prerelease: false
149
+ version_requirements: !ruby/object:Gem::Requirement
150
+ requirements:
151
+ - - "~>"
152
+ - !ruby/object:Gem::Version
153
+ version: '0.14'
154
+ - !ruby/object:Gem::Dependency
155
+ name: overcommit
156
+ requirement: !ruby/object:Gem::Requirement
157
+ requirements:
158
+ - - "~>"
159
+ - !ruby/object:Gem::Version
160
+ version: '0.40'
161
+ type: :development
162
+ prerelease: false
163
+ version_requirements: !ruby/object:Gem::Requirement
164
+ requirements:
165
+ - - "~>"
166
+ - !ruby/object:Gem::Version
167
+ version: '0.40'
168
+ description: Wrapper for nextcloud XML API - folder structure creation, etc...
169
+ email:
170
+ - andrej@antas.cz
171
+ - binao@seznam.cz
172
+ executables: []
173
+ extensions: []
174
+ extra_rdoc_files: []
175
+ files:
176
+ - ".gitignore"
177
+ - ".overcommit.yml"
178
+ - ".rspec"
179
+ - ".rubocop.yml"
180
+ - ".ruby-gemset"
181
+ - ".ruby-version"
182
+ - ".travis.yml"
183
+ - CODE_OF_CONDUCT.md
184
+ - Gemfile
185
+ - LICENSE.txt
186
+ - README.md
187
+ - Rakefile
188
+ - bin/console
189
+ - bin/setup
190
+ - lib/nextcloud-ruby.rb
191
+ - lib/nextcloud/ruby.rb
192
+ - lib/nextcloud/ruby/api.rb
193
+ - lib/nextcloud/ruby/configuration.rb
194
+ - lib/nextcloud/ruby/directory.rb
195
+ - lib/nextcloud/ruby/models/directory.rb
196
+ - lib/nextcloud/ruby/models/tag.rb
197
+ - lib/nextcloud/ruby/response.rb
198
+ - lib/nextcloud/ruby/tag.rb
199
+ - lib/nextcloud/ruby/utils/errors.rb
200
+ - lib/nextcloud/ruby/version.rb
201
+ - nextcloud-ruby.gemspec
202
+ homepage: https://github.com/ucetnictvi-on-line/nextcloud-ruby
203
+ licenses:
204
+ - MIT
205
+ metadata:
206
+ allowed_push_host: https://rubygems.org
207
+ post_install_message:
208
+ rdoc_options: []
209
+ require_paths:
210
+ - lib
211
+ required_ruby_version: !ruby/object:Gem::Requirement
212
+ requirements:
213
+ - - ">="
214
+ - !ruby/object:Gem::Version
215
+ version: '0'
216
+ required_rubygems_version: !ruby/object:Gem::Requirement
217
+ requirements:
218
+ - - ">="
219
+ - !ruby/object:Gem::Version
220
+ version: '0'
221
+ requirements: []
222
+ rubyforge_project:
223
+ rubygems_version: 2.5.1
224
+ signing_key:
225
+ specification_version: 4
226
+ summary: Wrapper for nextcloud XML API
227
+ test_files: []