cronofy 0.0.5 → 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 +4 -4
- data/README.md +59 -31
- data/cronofy.gemspec +15 -12
- data/lib/cronofy.rb +1 -2
- data/lib/cronofy/auth.rb +26 -42
- data/lib/cronofy/client.rb +394 -74
- data/lib/cronofy/errors.rb +31 -10
- data/lib/cronofy/response_parser.rb +28 -3
- data/lib/cronofy/types.rb +143 -0
- data/lib/cronofy/version.rb +1 -1
- data/spec/lib/cronofy/auth_spec.rb +123 -0
- data/spec/lib/cronofy/client_spec.rb +519 -0
- data/spec/response_parser_spec.rb +1 -1
- data/spec/spec_helper.rb +2 -0
- metadata +55 -23
- data/.gitignore +0 -14
- data/.travis.yml +0 -16
- data/script/ci +0 -7
@@ -4,6 +4,6 @@ describe Cronofy::ResponseParser do
|
|
4
4
|
it 'should return hash from a given response' do
|
5
5
|
response = OpenStruct.new(body: '{"a": 1, "b": 2}')
|
6
6
|
response_parser = Cronofy::ResponseParser.new(response)
|
7
|
-
expect(response_parser.
|
7
|
+
expect(response_parser.json).to eq({'a' => 1, 'b' => 2})
|
8
8
|
end
|
9
9
|
end
|
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,80 +1,108 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cronofy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sergii Paryzhskyi
|
8
|
+
- Garry Shutler
|
8
9
|
autorequire:
|
9
10
|
bindir: bin
|
10
11
|
cert_chain: []
|
11
|
-
date: 2015-
|
12
|
+
date: 2015-04-11 00:00:00.000000000 Z
|
12
13
|
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: oauth2
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
requirements:
|
18
|
+
- - ~>
|
19
|
+
- !ruby/object:Gem::Version
|
20
|
+
version: '1.0'
|
21
|
+
type: :runtime
|
22
|
+
prerelease: false
|
23
|
+
version_requirements: !ruby/object:Gem::Requirement
|
24
|
+
requirements:
|
25
|
+
- - ~>
|
26
|
+
- !ruby/object:Gem::Version
|
27
|
+
version: '1.0'
|
28
|
+
- !ruby/object:Gem::Dependency
|
29
|
+
name: hashie
|
30
|
+
requirement: !ruby/object:Gem::Requirement
|
31
|
+
requirements:
|
32
|
+
- - ~>
|
33
|
+
- !ruby/object:Gem::Version
|
34
|
+
version: '3.0'
|
35
|
+
type: :runtime
|
36
|
+
prerelease: false
|
37
|
+
version_requirements: !ruby/object:Gem::Requirement
|
38
|
+
requirements:
|
39
|
+
- - ~>
|
40
|
+
- !ruby/object:Gem::Version
|
41
|
+
version: '3.0'
|
13
42
|
- !ruby/object:Gem::Dependency
|
14
43
|
name: bundler
|
15
44
|
requirement: !ruby/object:Gem::Requirement
|
16
45
|
requirements:
|
17
|
-
- -
|
46
|
+
- - ~>
|
18
47
|
- !ruby/object:Gem::Version
|
19
|
-
version: '1.
|
48
|
+
version: '1.6'
|
20
49
|
type: :development
|
21
50
|
prerelease: false
|
22
51
|
version_requirements: !ruby/object:Gem::Requirement
|
23
52
|
requirements:
|
24
|
-
- -
|
53
|
+
- - ~>
|
25
54
|
- !ruby/object:Gem::Version
|
26
|
-
version: '1.
|
55
|
+
version: '1.6'
|
27
56
|
- !ruby/object:Gem::Dependency
|
28
57
|
name: rake
|
29
58
|
requirement: !ruby/object:Gem::Requirement
|
30
59
|
requirements:
|
31
|
-
- -
|
60
|
+
- - ~>
|
32
61
|
- !ruby/object:Gem::Version
|
33
62
|
version: '10.0'
|
34
63
|
type: :development
|
35
64
|
prerelease: false
|
36
65
|
version_requirements: !ruby/object:Gem::Requirement
|
37
66
|
requirements:
|
38
|
-
- -
|
67
|
+
- - ~>
|
39
68
|
- !ruby/object:Gem::Version
|
40
69
|
version: '10.0'
|
41
70
|
- !ruby/object:Gem::Dependency
|
42
71
|
name: rspec
|
43
72
|
requirement: !ruby/object:Gem::Requirement
|
44
73
|
requirements:
|
45
|
-
- -
|
74
|
+
- - ~>
|
46
75
|
- !ruby/object:Gem::Version
|
47
76
|
version: '3.2'
|
48
77
|
type: :development
|
49
78
|
prerelease: false
|
50
79
|
version_requirements: !ruby/object:Gem::Requirement
|
51
80
|
requirements:
|
52
|
-
- -
|
81
|
+
- - ~>
|
53
82
|
- !ruby/object:Gem::Version
|
54
83
|
version: '3.2'
|
55
84
|
- !ruby/object:Gem::Dependency
|
56
|
-
name:
|
85
|
+
name: webmock
|
57
86
|
requirement: !ruby/object:Gem::Requirement
|
58
87
|
requirements:
|
59
|
-
- -
|
88
|
+
- - ~>
|
60
89
|
- !ruby/object:Gem::Version
|
61
|
-
version: '1.
|
62
|
-
type: :
|
90
|
+
version: '1.21'
|
91
|
+
type: :development
|
63
92
|
prerelease: false
|
64
93
|
version_requirements: !ruby/object:Gem::Requirement
|
65
94
|
requirements:
|
66
|
-
- -
|
95
|
+
- - ~>
|
67
96
|
- !ruby/object:Gem::Version
|
68
|
-
version: '1.
|
69
|
-
description:
|
97
|
+
version: '1.21'
|
98
|
+
description: Ruby wrapper for Cronofy's unified calendar API
|
70
99
|
email:
|
71
100
|
- parizhskiy@gmail.com
|
101
|
+
- garry@cronofy.com
|
72
102
|
executables: []
|
73
103
|
extensions: []
|
74
104
|
extra_rdoc_files: []
|
75
105
|
files:
|
76
|
-
- ".gitignore"
|
77
|
-
- ".travis.yml"
|
78
106
|
- Gemfile
|
79
107
|
- LICENSE.txt
|
80
108
|
- README.md
|
@@ -85,8 +113,10 @@ files:
|
|
85
113
|
- lib/cronofy/client.rb
|
86
114
|
- lib/cronofy/errors.rb
|
87
115
|
- lib/cronofy/response_parser.rb
|
116
|
+
- lib/cronofy/types.rb
|
88
117
|
- lib/cronofy/version.rb
|
89
|
-
-
|
118
|
+
- spec/lib/cronofy/auth_spec.rb
|
119
|
+
- spec/lib/cronofy/client_spec.rb
|
90
120
|
- spec/response_parser_spec.rb
|
91
121
|
- spec/spec_helper.rb
|
92
122
|
homepage: https://github.com/cronofy/cronofy-ruby
|
@@ -99,20 +129,22 @@ require_paths:
|
|
99
129
|
- lib
|
100
130
|
required_ruby_version: !ruby/object:Gem::Requirement
|
101
131
|
requirements:
|
102
|
-
- -
|
132
|
+
- - '>='
|
103
133
|
- !ruby/object:Gem::Version
|
104
134
|
version: '0'
|
105
135
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
106
136
|
requirements:
|
107
|
-
- -
|
137
|
+
- - '>='
|
108
138
|
- !ruby/object:Gem::Version
|
109
139
|
version: '0'
|
110
140
|
requirements: []
|
111
141
|
rubyforge_project:
|
112
|
-
rubygems_version: 2.
|
142
|
+
rubygems_version: 2.4.5
|
113
143
|
signing_key:
|
114
144
|
specification_version: 4
|
115
145
|
summary: Cronofy - one API for all the calendars
|
116
146
|
test_files:
|
147
|
+
- spec/lib/cronofy/auth_spec.rb
|
148
|
+
- spec/lib/cronofy/client_spec.rb
|
117
149
|
- spec/response_parser_spec.rb
|
118
150
|
- spec/spec_helper.rb
|
data/.gitignore
DELETED
data/.travis.yml
DELETED
@@ -1,16 +0,0 @@
|
|
1
|
-
language: ruby
|
2
|
-
script: 'script/ci'
|
3
|
-
rvm:
|
4
|
-
- 2.0
|
5
|
-
- 2.1
|
6
|
-
- 2.2
|
7
|
-
- jruby-head
|
8
|
-
- rbx-2
|
9
|
-
- ruby-head
|
10
|
-
notifications:
|
11
|
-
webhooks:
|
12
|
-
urls:
|
13
|
-
- https://webhooks.gitter.im/e/9ca8d56f4d3a17425b18
|
14
|
-
on_success: change # options: [always|never|change] default: always
|
15
|
-
on_failure: always # options: [always|never|change] default: always
|
16
|
-
on_start: false # default: false
|