<commit_before># ocman
Ruby gem for file managment and sharing in owncloud

## Installation
### Rails

Add this line to your application's Gemfile:

``` ruby
gem "ocman", :git => '<EMAIL>:tt-laboratories/ocman.git'
```


## Configuration

Initialize Ocman with your access credentials somewhere during startup. In a rails application that may be an initializer like `.../initializers/ocman.rb`.

```ruby
Ocman.configure do |config|
  config.base_url = 'https://example.org'
  config.user_name = ''
  config.password = ''
end
```

## Usage

### Sharing

#### Share a folder or a file

```ruby
>> Ocman.share("path/to/folder", "evel.knievel")
=> #<Hashie::Mash data=nil meta=#<Hashie::Mash message=nil status="ok" statuscode="100">>
```

#### Delete a share for a folder or a file

```ruby
# delete a share
>> Ocman.delete_share("path/to/folder", "evel.knievel")
=> #<Hashie::Mash data=nil meta=#<Hashie::Mash message=nil status="ok" statuscode="100">>
```

### Filemanagement

#### List directory

```ruby
>> Ocman.list('path/to/folder')
=> #Hashie::Mash path=/example.txt type=file size=123
```

#### Create directory

```ruby
>> Ocman.create('path/to/folder')
```

## Contact
Web: [https://www.toptranslation.com](https://www.toptranslation.com)

Github: [https://www.github.com/tt-laboratories](https://www.github.com/tt-laboratories)

Twitter: [@tt_developers](http://www.twitter.com/tt_developers), [@toptranslation](http://www.twitter.com/toptranslation) 

Mail: <EMAIL><commit_msg>sticking to convention in README<commit_after># ocman
Ruby gem for file managment and sharing in owncloud

## Installation
### Rails

Add this line to your application's Gemfile:

``` ruby
gem "ocman", :git => '<EMAIL>:tt-laboratories/ocman.git'
```


## Configuration

Initialize Ocman with your access credentials somewhere during startup. In a rails application that may be an initializer like `.../initializers/ocman.rb`.

```ruby
Ocman.configure do |config|
  config.base_url = 'https://example.org'
  config.user_name = ''
  config.password = ''
end
```

## Usage

### Sharing

#### Share a folder or a file

```ruby
>> Ocman.share('path/to/folder', 'user_name')
=> #<Hashie::Mash data=nil meta=#<Hashie::Mash message=nil status='ok' statuscode='100'>>
```

#### Delete a share for a folder or a file

```ruby
# delete a share
>> Ocman.delete_share('path/to/folder', 'user_name')
=> #<Hashie::Mash data=nil meta=#<Hashie::Mash message=nil status='ok' statuscode='100'>>
```

### Filemanagement

#### List folder

```ruby
>> Ocman.list('path/to/folder')
=> #Hashie::Mash path=/example.txt type=file size=123
```

#### Create folder

```ruby
>> Ocman.create('path/to/folder')
```

## Contact
Web: [https://www.toptranslation.com](https://www.toptranslation.com)

Github: [https://www.github.com/tt-laboratories](https://www.github.com/tt-laboratories)

Twitter: [@tt_developers](http://www.twitter.com/tt_developers), [@toptranslation](http://www.twitter.com/toptranslation) 

Mail: <EMAIL>
{'fraction_non_alphanumeric': 0.18450184501845018, 'fraction_numerical': 0.0060382422006038244, 'mean_word_length': 5.173913043478261, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 39, 'https://': 10, 'lorem ipsum': 0, 'www.': 12, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2029789', 'n_tokens_mistral': 1082, 'n_tokens_neox': 1003, 'n_words': 235}