cronofy 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4720b62138db700e8be2fd82e56db5057a50451f
4
- data.tar.gz: cd34dda9e376ccad7547377c0e9c5eaf0208996c
3
+ metadata.gz: b7af5ec983510f03b2d3ef8361becea185d8a0d1
4
+ data.tar.gz: 13a2b60a3c2b377c80b8ad9f41b6587c41c8c57e
5
5
  SHA512:
6
- metadata.gz: 59bc15cefa54bcd6526de3354877f8faddbc57cf57d3772b8394623a4ff0f631e7cd09d41cc7b04799b923848c8f5cda4c2b61f78cefe5698b0eef8b418c1c85
7
- data.tar.gz: e25078d609ad41124b6dee01cf6bb6cf7f1e1c0c621bbc85ab69fef9892e842e54b5fb13e76346ec40dd34dc8a8c53b19bdde3f889aafee6429b700cbf817c54
6
+ metadata.gz: 7a7872c4415fba00b2797cc0ce953b4cbdf0a9b6b36b09a065ffa2660334f00002e8a127e02a70edee7259c63bb520b117e06a97de3a1c8583950e3c443b0f59
7
+ data.tar.gz: f1f5875132b96a55ad8d22e2a9816585ee2bbb1efef786314f1850592496c0ef7c07f57149b1ba7c45a67c354ea8ba94a1cae8aa4e097a9234c53eb412829f6c
data/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # Cronofy
2
2
 
3
+ [![Join the chat at https://gitter.im/cronofy/cronofy-ruby](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/cronofy/cronofy-ruby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
4
+
3
5
  [Cronofy](http://www.cronofy.com) - one API for all the calendars (Google, Outlook, iCloud, Exchange). This gem is an interface for easy use of [Cronofy API](http://www.cronofy.com/developers/api) with Ruby.
4
6
 
5
7
  ## Installation
data/Rakefile CHANGED
@@ -1,2 +1,10 @@
1
- require "bundler/gem_tasks"
1
+ require 'rspec/core/rake_task'
2
+ require 'bundler/gem_tasks'
2
3
 
4
+ # Default directory to look in is `/spec`
5
+ # Run with `rake spec`
6
+ RSpec::Core::RakeTask.new(:spec) do |task|
7
+ task.rspec_opts = ['--color']
8
+ end
9
+
10
+ task :default => :spec
@@ -9,7 +9,7 @@ Gem::Specification.new do |spec|
9
9
  spec.authors = ["Sergii Paryzhskyi"]
10
10
  spec.email = ["parizhskiy@gmail.com"]
11
11
  spec.summary = %q{Cronofy - one API for all the calendars}
12
- spec.homepage = "https://github.com/HeeL/cronofy"
12
+ spec.homepage = "https://github.com/cronofy/cronofy-ruby"
13
13
  spec.license = "MIT"
14
14
 
15
15
  spec.files = `git ls-files -z`.split("\x0")
@@ -19,5 +19,6 @@ Gem::Specification.new do |spec|
19
19
 
20
20
  spec.add_development_dependency "bundler", "~> 1.7"
21
21
  spec.add_development_dependency "rake", "~> 10.0"
22
+ spec.add_development_dependency "rspec", "~> 3.2"
22
23
  spec.add_runtime_dependency "oauth2", "~> 1.0"
23
24
  end
@@ -1,3 +1,3 @@
1
1
  module Cronofy
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
@@ -0,0 +1,9 @@
1
+ require 'spec_helper'
2
+
3
+ describe Cronofy::ResponseParser do
4
+ it 'should return hash from a given response' do
5
+ response = OpenStruct.new(body: '{"a": 1, "b": 2}')
6
+ response_parser = Cronofy::ResponseParser.new(response)
7
+ expect(response_parser.parse_json).to eq({'a' => 1, 'b' => 2})
8
+ end
9
+ end
@@ -0,0 +1,2 @@
1
+ require 'ostruct'
2
+ require 'cronofy'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cronofy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sergii Paryzhskyi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-10 00:00:00.000000000 Z
11
+ date: 2015-02-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -38,6 +38,20 @@ dependencies:
38
38
  - - ~>
39
39
  - !ruby/object:Gem::Version
40
40
  version: '10.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rspec
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ~>
46
+ - !ruby/object:Gem::Version
47
+ version: '3.2'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ~>
53
+ - !ruby/object:Gem::Version
54
+ version: '3.2'
41
55
  - !ruby/object:Gem::Dependency
42
56
  name: oauth2
43
57
  requirement: !ruby/object:Gem::Requirement
@@ -69,7 +83,9 @@ files:
69
83
  - lib/cronofy/auth.rb
70
84
  - lib/cronofy/response_parser.rb
71
85
  - lib/cronofy/version.rb
72
- homepage: https://github.com/HeeL/cronofy
86
+ - spec/response_parser_spec.rb
87
+ - spec/spec_helper.rb
88
+ homepage: https://github.com/cronofy/cronofy-ruby
73
89
  licenses:
74
90
  - MIT
75
91
  metadata: {}
@@ -93,4 +109,6 @@ rubygems_version: 2.4.5
93
109
  signing_key:
94
110
  specification_version: 4
95
111
  summary: Cronofy - one API for all the calendars
96
- test_files: []
112
+ test_files:
113
+ - spec/response_parser_spec.rb
114
+ - spec/spec_helper.rb