telegraph_api 0.1.0
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.
- checksums.yaml +7 -0
- data/.gitignore +14 -0
- data/.idea/vcs.xml +6 -0
- data/.rspec +2 -0
- data/.travis.yml +5 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +21 -0
- data/README.md +41 -0
- data/Rakefile +6 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/lib/telegraph/api/account.rb +29 -0
- data/lib/telegraph/api/core.rb +17 -0
- data/lib/telegraph/api/page.rb +42 -0
- data/lib/telegraph/api/version.rb +5 -0
- data/lib/telegraph/api.rb +3 -0
- data/lib/telegraph/types/account.rb +20 -0
- data/lib/telegraph/types/base.rb +7 -0
- data/lib/telegraph/types/node.rb +19 -0
- data/lib/telegraph/types/node_element.rb +9 -0
- data/lib/telegraph/types/page.rb +16 -0
- data/lib/telegraph/types/page_list.rb +8 -0
- data/lib/telegraph/types/page_views.rb +7 -0
- data/lib/telegraph/types.rb +7 -0
- data/lib/telegraph/validations/account.rb +31 -0
- data/lib/telegraph/validations/page.rb +39 -0
- data/lib/telegraph/validations.rb +2 -0
- data/lib/telegraph_api.rb +13 -0
- data/telegraph_api.gemspec +42 -0
- metadata +185 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: b61c1a5fd39393ce238a4b69829336826ed61e67
|
4
|
+
data.tar.gz: e34cdf83ef2fd93a71ed94ceca07b396c2d6ca68
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 2b9c155a09fe8870b47e8cc8102384a550f5635ef479fbabe08d5f0f462f1aa0b53a48358ab5c390b8d06335b139123aacf6be06b55ea744473cf5e3ed5b9ed0
|
7
|
+
data.tar.gz: 577505c5809ddb8dae6a2a2cecfb892f4ae699283b20c5dff01559be24b1e095fc0f6f9b4a66ea312f21f3ac109da872c96bc8461408ab3f251abec7a7d60d65
|
data/.gitignore
ADDED
data/.idea/vcs.xml
ADDED
data/.rspec
ADDED
data/.travis.yml
ADDED
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2017 Sergey Malenkov
|
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.
|
data/README.md
ADDED
@@ -0,0 +1,41 @@
|
|
1
|
+
# TelegraphApi
|
2
|
+
|
3
|
+
Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/telegraph_api`. To experiment with that code, run `bin/console` for an interactive prompt.
|
4
|
+
|
5
|
+
TODO: Delete this and the text above, and describe your gem
|
6
|
+
|
7
|
+
## Installation
|
8
|
+
|
9
|
+
Add this line to your application's Gemfile:
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
gem 'telegraph_api'
|
13
|
+
```
|
14
|
+
|
15
|
+
And then execute:
|
16
|
+
|
17
|
+
$ bundle
|
18
|
+
|
19
|
+
Or install it yourself as:
|
20
|
+
|
21
|
+
$ gem install telegraph_api
|
22
|
+
|
23
|
+
## Usage
|
24
|
+
|
25
|
+
TODO: Write usage instructions here
|
26
|
+
|
27
|
+
## Development
|
28
|
+
|
29
|
+
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.
|
30
|
+
|
31
|
+
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).
|
32
|
+
|
33
|
+
## Contributing
|
34
|
+
|
35
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/telegraph_api. 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.
|
36
|
+
|
37
|
+
|
38
|
+
## License
|
39
|
+
|
40
|
+
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
41
|
+
|
data/Rakefile
ADDED
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "telegraph_api"
|
5
|
+
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
8
|
+
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
+
# require "pry"
|
11
|
+
# Pry.start
|
12
|
+
|
13
|
+
require "irb"
|
14
|
+
IRB.start(__FILE__)
|
data/bin/setup
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
module Telegraph
|
2
|
+
module Account
|
3
|
+
def self.create(params)
|
4
|
+
return nil unless CreateAccountSchema.(params).success?
|
5
|
+
response = Telegraph::Core.request('createAccount', params)
|
6
|
+
Types::Account.new(Hashie.symbolize_keys response['result'])
|
7
|
+
end
|
8
|
+
|
9
|
+
def self.edit(params)
|
10
|
+
return nil unless EditAccountInfoSchema.(params).success?
|
11
|
+
response = Telegraph::Core.request('editAccountInfo', params)
|
12
|
+
Types::Account.new(Hashie.symbolize_keys response['result'])
|
13
|
+
end
|
14
|
+
|
15
|
+
def self.info(params)
|
16
|
+
return nil unless GetAccountInfoSchema.(params).success?
|
17
|
+
params[:fields] = params[:fields].to_s
|
18
|
+
response = Telegraph::Core.request('getAccountInfo', params)
|
19
|
+
Types::Account.new(Hashie.symbolize_keys response['result'])
|
20
|
+
end
|
21
|
+
|
22
|
+
def self.revoke_token(params)
|
23
|
+
return nil unless RevokeAccessTokenSchema.(params).success?
|
24
|
+
response = Telegraph::Core.request('revokeAccessToken', params)
|
25
|
+
return response['error'] if response['error']
|
26
|
+
Types::Account.new(Hashie.symbolize_keys response['result'])
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
require 'pp'
|
2
|
+
module Telegraph
|
3
|
+
module Core
|
4
|
+
def self.request(method, params = {})
|
5
|
+
conn = Faraday.new(
|
6
|
+
:url => 'https://api.telegra.ph',
|
7
|
+
request: { params_encoder: Faraday::FlatParamsEncoder }
|
8
|
+
)
|
9
|
+
conn.response :json
|
10
|
+
|
11
|
+
response = conn.get('/' + method) do |request|
|
12
|
+
request.params.merge!(params)
|
13
|
+
end
|
14
|
+
response.body
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
@@ -0,0 +1,42 @@
|
|
1
|
+
module Telegraph
|
2
|
+
module Page
|
3
|
+
def self.create(params)
|
4
|
+
return nil unless CreatePageSchema.(params).success?
|
5
|
+
response = Telegraph::Core.request('createPage', params)
|
6
|
+
if response.dig('result', 'content')
|
7
|
+
response['result']['content'] = Types::Page.new(Hashie.symbolize_keys response['result'])
|
8
|
+
end
|
9
|
+
response
|
10
|
+
end
|
11
|
+
|
12
|
+
def self.edit(params)
|
13
|
+
return nil unless EditPageSchema.(params).success?
|
14
|
+
path = params.delete(:path)
|
15
|
+
response = Telegraph::Core.request('editPage/' + path, params)
|
16
|
+
if response.dig('result', 'content')
|
17
|
+
response['result']['content'] = Types::Page.new(Hashie.symbolize_keys response['result'])
|
18
|
+
end
|
19
|
+
response
|
20
|
+
end
|
21
|
+
|
22
|
+
def self.get(params)
|
23
|
+
return nil unless GetPageSchema.(params).success?
|
24
|
+
path = params.delete(:path)
|
25
|
+
response = Telegraph::Core.request('getPage/' + path, params)
|
26
|
+
Types::Page.new(Hashie.symbolize_keys response['result'])
|
27
|
+
end
|
28
|
+
|
29
|
+
def self.list(params)
|
30
|
+
return nil unless GetPageListSchema.(params).success?
|
31
|
+
response = Telegraph::Core.request('getPageList', params)
|
32
|
+
Types::PageList.new(Hashie.symbolize_keys response['result'])
|
33
|
+
end
|
34
|
+
|
35
|
+
def self.views(params)
|
36
|
+
return nil unless GetViewsSchema.(params).success?
|
37
|
+
path = params.delete(:path)
|
38
|
+
response = Telegraph::Core.request('getViews/' + path, params)
|
39
|
+
Types::PageViews.new(Hashie.symbolize_keys response['result'])
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
@@ -0,0 +1,20 @@
|
|
1
|
+
module Telegraph
|
2
|
+
module Types
|
3
|
+
class Account < Base
|
4
|
+
attribute :short_name, String
|
5
|
+
attribute :author_name, String
|
6
|
+
attribute :author_url, String
|
7
|
+
attribute :access_token, String
|
8
|
+
attribute :auth_url, String
|
9
|
+
attribute :page_count, Integer
|
10
|
+
|
11
|
+
SHORT_NAME = 'short_name'
|
12
|
+
AUTHOR_NAME = 'author_name'
|
13
|
+
AUTHOR_URL = 'author_url'
|
14
|
+
AUTH_URL = 'auth_url'
|
15
|
+
PAGE_COUNT = 'page_count'
|
16
|
+
|
17
|
+
FIELDS = [SHORT_NAME, AUTHOR_NAME, AUTHOR_URL, AUTH_URL, PAGE_COUNT]
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
module Telegraph
|
2
|
+
module Types
|
3
|
+
class Node
|
4
|
+
include Virtus.model
|
5
|
+
attribute :tag, String
|
6
|
+
attribute :attr, String
|
7
|
+
attribute :children, Array[Node]
|
8
|
+
attribute :text, String
|
9
|
+
|
10
|
+
def initialize(node)
|
11
|
+
if node.is_a?(String)
|
12
|
+
@text = node
|
13
|
+
else
|
14
|
+
super
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
@@ -0,0 +1,16 @@
|
|
1
|
+
module Telegraph
|
2
|
+
module Types
|
3
|
+
class Page < Base
|
4
|
+
attribute :path, String
|
5
|
+
attribute :url, String
|
6
|
+
attribute :title, String
|
7
|
+
attribute :description, String
|
8
|
+
attribute :author_name, String
|
9
|
+
attribute :author_url, String
|
10
|
+
attribute :image_url, String
|
11
|
+
attribute :content, Array[Node]
|
12
|
+
attribute :views, Integer
|
13
|
+
attribute :can_edit, Axiom::Types::Boolean
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
@@ -0,0 +1,31 @@
|
|
1
|
+
module Telegraph
|
2
|
+
module Account
|
3
|
+
CreateAccountSchema = Dry::Validation.Schema do
|
4
|
+
required(:short_name) { str? & size?(1..32) }
|
5
|
+
optional(:author_name) { str? & size?(0..128) }
|
6
|
+
optional(:author_url) { str? & size?(0..512) }
|
7
|
+
end
|
8
|
+
|
9
|
+
EditAccountInfoSchema = Dry::Validation.Schema do
|
10
|
+
required(:access_token) { str? }
|
11
|
+
optional(:short_name) { str? & size?(1..32) }
|
12
|
+
optional(:author_name) { str? & size?(0..128) }
|
13
|
+
optional(:author_url) { str? & size?(0..512) }
|
14
|
+
end
|
15
|
+
|
16
|
+
GetAccountInfoSchema = Dry::Validation.Schema do
|
17
|
+
configure do
|
18
|
+
def valid_fields?(value)
|
19
|
+
(value - Telegraph::Types::Account::FIELDS).empty?
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
23
|
+
required(:access_token) { str? }
|
24
|
+
optional(:fields) { valid_fields? }
|
25
|
+
end
|
26
|
+
|
27
|
+
RevokeAccessTokenSchema = Dry::Validation.Schema do
|
28
|
+
required(:access_token) { str? }
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
@@ -0,0 +1,39 @@
|
|
1
|
+
module Telegraph
|
2
|
+
module Page
|
3
|
+
class CommonPageSchema < Dry::Validation::Schema
|
4
|
+
define! do
|
5
|
+
required(:access_token) { str? & filled? }
|
6
|
+
required(:title) { str? & min_size?(1) & max_size?(256) }
|
7
|
+
optional(:author_name) { str? & max_size?(128) }
|
8
|
+
optional(:author_url) { str? & max_size?(512) }
|
9
|
+
required(:content) { str? & filled? & max_size?(64 * 1024 * 1024) }
|
10
|
+
optional(:return_content) { bool? }
|
11
|
+
end
|
12
|
+
end
|
13
|
+
|
14
|
+
CreatePageSchema = Dry::Validation.Schema(CommonPageSchema)
|
15
|
+
|
16
|
+
EditPageSchema = Dry::Validation.Schema(CommonPageSchema) do
|
17
|
+
required(:path) { str? & filled? }
|
18
|
+
end
|
19
|
+
|
20
|
+
GetPageSchema = Dry::Validation.Schema do
|
21
|
+
required(:path) { str? & filled? }
|
22
|
+
optional(:return_content) { bool? }
|
23
|
+
end
|
24
|
+
|
25
|
+
GetPageListSchema = Dry::Validation.Schema do
|
26
|
+
required(:access_token) { str? & filled? }
|
27
|
+
optional(:offset) { int? }
|
28
|
+
optional(:limit) { int? & size?(0..200) }
|
29
|
+
end
|
30
|
+
|
31
|
+
GetViewsSchema = Dry::Validation.Schema do
|
32
|
+
required(:path) { str? & filled? }
|
33
|
+
required(:year) { int? & included_in?(2000..2100) }
|
34
|
+
required(:month) { int? & included_in?(1..12) }
|
35
|
+
optional(:day) { int? & included_in?(1..31) }
|
36
|
+
optional(:hour) { int? & included_in?(0..24) }
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
@@ -0,0 +1,13 @@
|
|
1
|
+
require 'virtus'
|
2
|
+
require 'faraday'
|
3
|
+
require 'faraday_middleware'
|
4
|
+
require 'dry-validation'
|
5
|
+
require 'hashie'
|
6
|
+
|
7
|
+
require 'telegraph/api/version'
|
8
|
+
require 'telegraph/api'
|
9
|
+
require 'telegraph/types'
|
10
|
+
require 'telegraph/validations'
|
11
|
+
|
12
|
+
module Telegraph
|
13
|
+
end
|
@@ -0,0 +1,42 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'telegraph/api/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "telegraph_api"
|
8
|
+
spec.version = Telegraph::Api::VERSION
|
9
|
+
spec.authors = ["Sergey Malenkov"]
|
10
|
+
spec.email = ["def.sergey@gmail.com"]
|
11
|
+
|
12
|
+
spec.summary = %q{Ruby wrapper for Telegra.ph API}
|
13
|
+
spec.description = %q{Gem for wrapping Telegraph API}
|
14
|
+
spec.homepage = "https://github.com/deff7/telegraph_api"
|
15
|
+
spec.license = "MIT"
|
16
|
+
|
17
|
+
# Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
|
18
|
+
# to allow pushing to a single host or delete this section to allow pushing to any host.
|
19
|
+
if spec.respond_to?(:metadata)
|
20
|
+
spec.metadata['allowed_push_host'] = "https://rubygems.org"
|
21
|
+
else
|
22
|
+
raise "RubyGems 2.0 or newer is required to protect against " \
|
23
|
+
"public gem pushes."
|
24
|
+
end
|
25
|
+
|
26
|
+
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
27
|
+
f.match(%r{^(test|spec|features)/})
|
28
|
+
end
|
29
|
+
spec.bindir = "exe"
|
30
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
31
|
+
spec.require_paths = ["lib"]
|
32
|
+
|
33
|
+
spec.add_dependency 'faraday'
|
34
|
+
spec.add_dependency 'faraday_middleware'
|
35
|
+
spec.add_dependency 'virtus'
|
36
|
+
spec.add_dependency 'dry-validation'
|
37
|
+
spec.add_dependency 'hashie'
|
38
|
+
|
39
|
+
spec.add_development_dependency "bundler", "~> 1.14"
|
40
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
41
|
+
spec.add_development_dependency "rspec", "~> 3.0"
|
42
|
+
end
|
metadata
ADDED
@@ -0,0 +1,185 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: telegraph_api
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Sergey Malenkov
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2017-06-16 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: faraday
|
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'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: faraday_middleware
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: virtus
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: dry-validation
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: hashie
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: bundler
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '1.14'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '1.14'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: rake
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - "~>"
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '10.0'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - "~>"
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '10.0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: rspec
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - "~>"
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '3.0'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - "~>"
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '3.0'
|
125
|
+
description: Gem for wrapping Telegraph API
|
126
|
+
email:
|
127
|
+
- def.sergey@gmail.com
|
128
|
+
executables: []
|
129
|
+
extensions: []
|
130
|
+
extra_rdoc_files: []
|
131
|
+
files:
|
132
|
+
- ".gitignore"
|
133
|
+
- ".idea/vcs.xml"
|
134
|
+
- ".rspec"
|
135
|
+
- ".travis.yml"
|
136
|
+
- Gemfile
|
137
|
+
- LICENSE.txt
|
138
|
+
- README.md
|
139
|
+
- Rakefile
|
140
|
+
- bin/console
|
141
|
+
- bin/setup
|
142
|
+
- lib/telegraph/api.rb
|
143
|
+
- lib/telegraph/api/account.rb
|
144
|
+
- lib/telegraph/api/core.rb
|
145
|
+
- lib/telegraph/api/page.rb
|
146
|
+
- lib/telegraph/api/version.rb
|
147
|
+
- lib/telegraph/types.rb
|
148
|
+
- lib/telegraph/types/account.rb
|
149
|
+
- lib/telegraph/types/base.rb
|
150
|
+
- lib/telegraph/types/node.rb
|
151
|
+
- lib/telegraph/types/node_element.rb
|
152
|
+
- lib/telegraph/types/page.rb
|
153
|
+
- lib/telegraph/types/page_list.rb
|
154
|
+
- lib/telegraph/types/page_views.rb
|
155
|
+
- lib/telegraph/validations.rb
|
156
|
+
- lib/telegraph/validations/account.rb
|
157
|
+
- lib/telegraph/validations/page.rb
|
158
|
+
- lib/telegraph_api.rb
|
159
|
+
- telegraph_api.gemspec
|
160
|
+
homepage: https://github.com/deff7/telegraph_api
|
161
|
+
licenses:
|
162
|
+
- MIT
|
163
|
+
metadata:
|
164
|
+
allowed_push_host: https://rubygems.org
|
165
|
+
post_install_message:
|
166
|
+
rdoc_options: []
|
167
|
+
require_paths:
|
168
|
+
- lib
|
169
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
170
|
+
requirements:
|
171
|
+
- - ">="
|
172
|
+
- !ruby/object:Gem::Version
|
173
|
+
version: '0'
|
174
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
175
|
+
requirements:
|
176
|
+
- - ">="
|
177
|
+
- !ruby/object:Gem::Version
|
178
|
+
version: '0'
|
179
|
+
requirements: []
|
180
|
+
rubyforge_project:
|
181
|
+
rubygems_version: 2.5.2
|
182
|
+
signing_key:
|
183
|
+
specification_version: 4
|
184
|
+
summary: Ruby wrapper for Telegra.ph API
|
185
|
+
test_files: []
|