contextio-lite 0.0.2 → 0.0.3
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 +2 -2
- data/contextio-lite.gemspec +4 -2
- data/lib/contextio.rb +9 -1
- data/lib/contextio/lite.rb +0 -5
- metadata +33 -19
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 02509ec6a85f3cae0d1628b455559e43d7a069d1
|
4
|
+
data.tar.gz: c10419b478b93fbdd800dd1429c190180b8c031b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 33f8a43a554942501da00896ce3780d94649e5e38b4e3e76ec32402c55a2e337c3ec3f768c3cd1353be17f7242c81bf63f066129bb8492cdaee5cf86d6457b4c
|
7
|
+
data.tar.gz: 94554fb04f8aea5a68fd6fbc7b37f8558b365fef88048201822fec0973108234cffad21964706ebb7600c31c36df9a72e22e93b0d7d595a59cd8688c08ed0ba6
|
data/README.md
CHANGED
@@ -24,7 +24,7 @@ Or install it yourself as:
|
|
24
24
|
### Get a client
|
25
25
|
|
26
26
|
```ruby
|
27
|
-
require 'contextio
|
27
|
+
require 'contextio'
|
28
28
|
|
29
29
|
client = ContextIO::Lite.new(API_KEY, API_SECRET)
|
30
30
|
```
|
@@ -111,4 +111,4 @@ So it will call the callback_url every time there is a new message on the user I
|
|
111
111
|
|
112
112
|
## Copyright
|
113
113
|
|
114
|
-
This gem is distributed under the MIT License. See LICENSE.md for details.
|
114
|
+
This gem is distributed under the MIT License. See LICENSE.md for details.
|
data/contextio-lite.gemspec
CHANGED
@@ -18,10 +18,12 @@ Gem::Specification.new do |spec|
|
|
18
18
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
19
|
spec.require_paths = ['lib']
|
20
20
|
|
21
|
+
spec.add_dependency 'faraday', '~> 0.9.1'
|
22
|
+
spec.add_dependency 'faraday_middleware', '~> 0.9.1'
|
23
|
+
spec.add_dependency 'simple_oauth', '~> 0.2.0'
|
24
|
+
|
21
25
|
spec.add_development_dependency 'bundler', '~> 1.7'
|
22
26
|
spec.add_development_dependency 'rake', '~> 10.0'
|
23
27
|
spec.add_development_dependency 'debase', '~> 0'
|
24
|
-
spec.add_development_dependency 'faraday', '~> 0.9.1'
|
25
|
-
spec.add_development_dependency 'faraday_middleware', '~> 0.9.1'
|
26
28
|
|
27
29
|
end
|
data/lib/contextio.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
module ContextIO
|
2
|
-
VERSION = '0.0.
|
2
|
+
VERSION = '0.0.3'
|
3
3
|
|
4
4
|
# @private
|
5
5
|
# Handle for the `API` instance. For internal use only.
|
@@ -9,6 +9,14 @@ module ContextIO
|
|
9
9
|
VERSION
|
10
10
|
end
|
11
11
|
|
12
|
+
def self.lite(key,secret,options={})
|
13
|
+
ContextIO::Lite.new(key,secret,options)
|
14
|
+
end
|
15
|
+
|
12
16
|
end
|
13
17
|
|
18
|
+
require_relative 'contextio/api/association_helpers'
|
19
|
+
require_relative 'contextio/api/resource'
|
20
|
+
require_relative 'contextio/api/resource_collection'
|
21
|
+
|
14
22
|
require_relative 'contextio/lite'
|
data/lib/contextio/lite.rb
CHANGED
@@ -2,7 +2,6 @@ module ContextIO
|
|
2
2
|
class Lite
|
3
3
|
include ContextIO
|
4
4
|
|
5
|
-
|
6
5
|
# Creates a new `ContextIO` instance and makes a new handle for the API.
|
7
6
|
# This is your entry point to your Context.IO account. For a web app, you
|
8
7
|
# probably want to instantiate this in some kind of initializer and keep it
|
@@ -26,10 +25,6 @@ module ContextIO
|
|
26
25
|
end
|
27
26
|
end
|
28
27
|
|
29
|
-
require_relative 'api/association_helpers'
|
30
|
-
require_relative 'api/resource'
|
31
|
-
require_relative 'api/resource_collection'
|
32
|
-
|
33
28
|
require_relative 'lite/api'
|
34
29
|
require_relative 'lite/email_account'
|
35
30
|
require_relative 'lite/email_account_collection'
|
metadata
CHANGED
@@ -1,85 +1,99 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: contextio-lite
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Javier Juan
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-03-
|
11
|
+
date: 2015-03-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
14
|
+
name: faraday
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
20
|
-
type: :
|
19
|
+
version: 0.9.1
|
20
|
+
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: 0.9.1
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
28
|
+
name: faraday_middleware
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
34
|
-
type: :
|
33
|
+
version: 0.9.1
|
34
|
+
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
40
|
+
version: 0.9.1
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
|
-
name:
|
42
|
+
name: simple_oauth
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version:
|
47
|
+
version: 0.2.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.2.0
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: bundler
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '1.7'
|
48
62
|
type: :development
|
49
63
|
prerelease: false
|
50
64
|
version_requirements: !ruby/object:Gem::Requirement
|
51
65
|
requirements:
|
52
66
|
- - "~>"
|
53
67
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
68
|
+
version: '1.7'
|
55
69
|
- !ruby/object:Gem::Dependency
|
56
|
-
name:
|
70
|
+
name: rake
|
57
71
|
requirement: !ruby/object:Gem::Requirement
|
58
72
|
requirements:
|
59
73
|
- - "~>"
|
60
74
|
- !ruby/object:Gem::Version
|
61
|
-
version: 0
|
75
|
+
version: '10.0'
|
62
76
|
type: :development
|
63
77
|
prerelease: false
|
64
78
|
version_requirements: !ruby/object:Gem::Requirement
|
65
79
|
requirements:
|
66
80
|
- - "~>"
|
67
81
|
- !ruby/object:Gem::Version
|
68
|
-
version: 0
|
82
|
+
version: '10.0'
|
69
83
|
- !ruby/object:Gem::Dependency
|
70
|
-
name:
|
84
|
+
name: debase
|
71
85
|
requirement: !ruby/object:Gem::Requirement
|
72
86
|
requirements:
|
73
87
|
- - "~>"
|
74
88
|
- !ruby/object:Gem::Version
|
75
|
-
version: 0
|
89
|
+
version: '0'
|
76
90
|
type: :development
|
77
91
|
prerelease: false
|
78
92
|
version_requirements: !ruby/object:Gem::Requirement
|
79
93
|
requirements:
|
80
94
|
- - "~>"
|
81
95
|
- !ruby/object:Gem::Version
|
82
|
-
version: 0
|
96
|
+
version: '0'
|
83
97
|
description: Short implementation of a client rest API for the Context.IO Lite API
|
84
98
|
email:
|
85
99
|
- javier@promivia.com
|