frameio-api 0.1.0 → 0.3.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 +4 -4
- data/README.md +4 -4
- data/lib/{frame_io → frameio_api}/account.rb +1 -1
- data/lib/frameio_api/active_record_extension.rb +8 -0
- data/lib/{frame_io → frameio_api}/asset.rb +1 -1
- data/lib/{frame_io → frameio_api}/client.rb +4 -4
- data/lib/{frame_io → frameio_api}/collaborator.rb +1 -1
- data/lib/{frame_io → frameio_api}/custom_action.rb +1 -1
- data/lib/{frame_io → frameio_api}/project.rb +1 -1
- data/lib/{frame_io → frameio_api}/railtie.rb +1 -1
- data/lib/{frame_io → frameio_api}/team.rb +1 -1
- data/lib/{frame_io → frameio_api}/user.rb +1 -1
- data/lib/frameio_api/version.rb +3 -0
- data/lib/{frame_io.rb → frameio_api.rb} +12 -12
- metadata +17 -17
- data/lib/frame_io/active_record_extension.rb +0 -8
- data/lib/frame_io/version.rb +0 -3
- /data/lib/tasks/{frame_io_tasks.rake → frameio_api_tasks.rake} +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 32d754e356ca37fe32054ba4597cb99794a05ac2a2d0aa6ec74b06b1e3faac01
|
4
|
+
data.tar.gz: 4d6c7fc619576154f9f369bb0e932f95837ee32eda5f8e4cdbc8232363792622
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7e432ec0ae00b4c47b8ef7f6b054ebd6ea6d988265c786dd15ed04b4c1f5198ddfd41e88073b7501e7d9e3be2d2bcca441dfabe207cd71d9e4fb5b0f1189964b
|
7
|
+
data.tar.gz: 5cf95c1f21fceebd6c588f458edea5a0434ec220923ba808aef1b3f981668f322695b59f7bbe3bb05ce3b6fbfe972e6c9f0ed5bbe65628999a5526460784e053
|
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
#
|
1
|
+
# Frameio-API
|
2
2
|
Very basic (and wip) Frame.io API wrapper
|
3
3
|
Only OAuth2 authentification available at the moment.
|
4
4
|
|
@@ -8,7 +8,7 @@ Only OAuth2 authentification available at the moment.
|
|
8
8
|
Add this line to your application's Gemfile:
|
9
9
|
|
10
10
|
```ruby
|
11
|
-
gem "
|
11
|
+
gem "frameio-api"
|
12
12
|
```
|
13
13
|
|
14
14
|
And then execute:
|
@@ -18,7 +18,7 @@ $ bundle
|
|
18
18
|
|
19
19
|
Or install it yourself as:
|
20
20
|
```bash
|
21
|
-
$ gem install
|
21
|
+
$ gem install frameio-api
|
22
22
|
```
|
23
23
|
|
24
24
|
|
@@ -61,7 +61,7 @@ end
|
|
61
61
|
That's all! You now have access to a frame.io client:
|
62
62
|
|
63
63
|
```ruby
|
64
|
-
current_user.frame_io #=>
|
64
|
+
current_user.frame_io #=> FrameioApi::Client
|
65
65
|
|
66
66
|
current_user.frame_io.accounts #=> All accounts for user frame.io account
|
67
67
|
```
|
@@ -1,4 +1,4 @@
|
|
1
|
-
module
|
1
|
+
module FrameioApi
|
2
2
|
class Client
|
3
3
|
attr_reader :user, :api_key
|
4
4
|
|
@@ -26,9 +26,9 @@ module FrameIo
|
|
26
26
|
OAuth2::AccessToken.from_hash(
|
27
27
|
oauth.client,
|
28
28
|
{
|
29
|
-
access_token: user.send(
|
30
|
-
refresh_token: user.send(
|
31
|
-
expires_at: user.send(
|
29
|
+
access_token: user.send(FrameioApi.access_token),
|
30
|
+
refresh_token: user.send(FrameioApi.refresh_token),
|
31
|
+
expires_at: user.send(FrameioApi.expires_at)
|
32
32
|
}
|
33
33
|
)
|
34
34
|
end
|
@@ -1,17 +1,17 @@
|
|
1
|
-
require "
|
2
|
-
require "
|
3
|
-
require '
|
4
|
-
require '
|
5
|
-
require '
|
6
|
-
require '
|
7
|
-
require '
|
8
|
-
require '
|
9
|
-
require '
|
10
|
-
require '
|
11
|
-
require '
|
1
|
+
require "frameio_api/version"
|
2
|
+
require "frameio_api/railtie"
|
3
|
+
require 'frameio_api/account'
|
4
|
+
require 'frameio_api/active_record_extension'
|
5
|
+
require 'frameio_api/asset'
|
6
|
+
require 'frameio_api/client'
|
7
|
+
require 'frameio_api/collaborator'
|
8
|
+
require 'frameio_api/custom_action'
|
9
|
+
require 'frameio_api/project'
|
10
|
+
require 'frameio_api/team'
|
11
|
+
require 'frameio_api/user'
|
12
12
|
require 'omniauth-frameio'
|
13
13
|
|
14
|
-
module
|
14
|
+
module FrameioApi
|
15
15
|
TokenError = Class.new(StandardError)
|
16
16
|
|
17
17
|
class << self
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: frameio-api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Victor Holl
|
@@ -49,25 +49,25 @@ files:
|
|
49
49
|
- MIT-LICENSE
|
50
50
|
- README.md
|
51
51
|
- Rakefile
|
52
|
-
- lib/
|
53
|
-
- lib/
|
54
|
-
- lib/
|
55
|
-
- lib/
|
56
|
-
- lib/
|
57
|
-
- lib/
|
58
|
-
- lib/
|
59
|
-
- lib/
|
60
|
-
- lib/
|
61
|
-
- lib/
|
62
|
-
- lib/
|
63
|
-
- lib/
|
64
|
-
- lib/tasks/
|
65
|
-
homepage: https://github.com/boxprod/
|
52
|
+
- lib/frameio_api.rb
|
53
|
+
- lib/frameio_api/account.rb
|
54
|
+
- lib/frameio_api/active_record_extension.rb
|
55
|
+
- lib/frameio_api/asset.rb
|
56
|
+
- lib/frameio_api/client.rb
|
57
|
+
- lib/frameio_api/collaborator.rb
|
58
|
+
- lib/frameio_api/custom_action.rb
|
59
|
+
- lib/frameio_api/project.rb
|
60
|
+
- lib/frameio_api/railtie.rb
|
61
|
+
- lib/frameio_api/team.rb
|
62
|
+
- lib/frameio_api/user.rb
|
63
|
+
- lib/frameio_api/version.rb
|
64
|
+
- lib/tasks/frameio_api_tasks.rake
|
65
|
+
homepage: https://github.com/boxprod/frameio-api
|
66
66
|
licenses:
|
67
67
|
- MIT
|
68
68
|
metadata:
|
69
|
-
homepage_uri: https://github.com/boxprod/
|
70
|
-
source_code_uri: https://github.com/boxprod/
|
69
|
+
homepage_uri: https://github.com/boxprod/frameio-api
|
70
|
+
source_code_uri: https://github.com/boxprod/frameio-api
|
71
71
|
post_install_message:
|
72
72
|
rdoc_options: []
|
73
73
|
require_paths:
|
data/lib/frame_io/version.rb
DELETED
File without changes
|