orchestrate.io 0.1.5 → 0.1.6

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: 64d4dc3dcb7ee565eac14b038f92c43d21a774e3
4
- data.tar.gz: 46c4c37e165aa91732991565e81fb31d93526c01
3
+ metadata.gz: 02fd0d03ef8b24118a5b88d1c83d31e7ac321496
4
+ data.tar.gz: 4faeb5aad689e6ed953c2519295c6af4af7d5116
5
5
  SHA512:
6
- metadata.gz: baaa6949592a3d9976db9a8353015618da3c928b9eed997401f1e282dda17bf1b7c4014e299faf79d1dd35380652eea3c39b8f67497624af12c81356aa434378
7
- data.tar.gz: cf657f6f6024c72a3db4a0767d52cbde041edf276ea4eeb658039b47e417336c7b31e9ab641afeff97f831a2ab7bef7c469467870b6728175c346b9959785a74
6
+ metadata.gz: 066ea8e780343e41a30e223ff23bd1871774ec5034fa1f15c655fc03d03b3d671693ff11ac59bbae336110015a989f7134a277910cdd781440f73de78aec8053
7
+ data.tar.gz: e6b3aa903cfb82fee104e3d5043dd3767b22d453b7d05b068b5da4995453068b63f4977f9eeedd9c5cfdf6c8e4176b70794ce707099a5f1a8cfe2ee1c8afb27d
data/.gitignore CHANGED
@@ -1,5 +1,6 @@
1
1
  *.gem
2
2
  *.rbc
3
+ *.swp
3
4
  .bundle
4
5
  .config
5
6
  .yardoc
@@ -1,12 +1,9 @@
1
1
  language: ruby
2
2
  rvm:
3
+ - 2.1.0
3
4
  - 2.0.0
4
5
  - 1.9.3
5
6
 
6
7
  branches:
7
8
  only:
8
9
  - master
9
-
10
- addons:
11
- code_climate:
12
- repo_token: 4c822723535747ce3f984b634061775b98ed8cc49dc4537cf1a9e52149502657
data/Gemfile CHANGED
@@ -1,6 +1,17 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
- # Specify your gem's dependencies in orchestrate.io.gemspec
4
- gemspec
3
+ gem 'bundler', '~> 1.3'
4
+ gem 'rake'
5
+
6
+ group :test do
7
+ gem 'rspec', '>= 2.14'
8
+ gem 'simplecov', require: false
9
+ gem 'simplecov-rcov', require: false
10
+ gem 'webmock', '~> 1.16.0'
11
+ gem 'guard-rspec'
12
+ gem 'timecop'
13
+ gem 'sinatra'
14
+ gem 'rb-readline'
15
+ end
5
16
 
6
- gem "codeclimate-test-reporter", group: :test, require: nil
17
+ gemspec
data/README.md CHANGED
@@ -1,10 +1,10 @@
1
1
  # ruby-orchestrate.io
2
2
 
3
- A Ruby interface to the [Orchestrate.io](https://orchestrate.io/) API
4
-
5
3
  [![Gem Version](https://badge.fury.io/rb/orchestrate.io.png)](https://rubygems.org/gems/orchestrate.io)
6
- [![Build Status](https://travis-ci.org/azukiwasher/ruby-orchestrate.io.png?branch=master)](https://travis-ci.org/azukiwasher/ruby-orchestrate.io)
7
- [![Code Climate](https://codeclimate.com/repos/529e807189af7e6a3400abff/badges/57dc03031430402a1d74/gpa.png)](https://codeclimate.com/repos/529e807189af7e6a3400abff/feed)
4
+ [![Build Status](https://travis-ci.org/giraffi/ruby-orchestrate.io.png?branch=master)](https://travis-ci.org/giraffi/ruby-orchestrate.io)
5
+ [![CircleCI Status](https://circleci.com/gh/giraffi/ruby-orchestrate.io/tree/master.png?circle-token=f6bc8c6f0610f44abe0a5db8e6e95f86f1cb874c)](https://circleci.com/gh/giraffi/ruby-orchestrate.io)
6
+
7
+ A Ruby interface to the [Orchestrate.io](https://orchestrate.io/) API
8
8
 
9
9
  ## Installation
10
10
 
@@ -41,11 +41,11 @@ require 'json'
41
41
 
42
42
  ### Collections
43
43
 
44
+ `NOTE`: You can create a new collection by performing a Key/Value PUT to the collection.
45
+
44
46
  ##### DELETE
45
47
  Deletes an entire collection.
46
48
 
47
- > under development
48
-
49
49
  ```
50
50
  @io.collection :delete do
51
51
  collection "foo"
@@ -68,8 +68,6 @@ end.perform
68
68
  ##### PUT
69
69
  Creates or updates the value at the collection/key specified.
70
70
 
71
- `NOTE`: You can create a new collection by performing a Key/Value PUT to the collection.
72
-
73
71
  ```
74
72
  @io.key_value :put do
75
73
  collection "foo"
@@ -0,0 +1,6 @@
1
+ dependencies:
2
+ pre:
3
+ - case $CIRCLE_NODE_INDEX in 0) rvm use 2.0.0 --default ;; 1) rvm use 1.9.3 --default ;; esac
4
+ test:
5
+ override:
6
+ - ruby -v ; bundle exec rspec: {parallel: true}
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
2
 
3
3
  module OrchestrateIo
4
- Version = VERSION = "0.1.5"
4
+ Version = VERSION = "0.1.6"
5
5
  end
@@ -4,30 +4,20 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
  require 'orchestrate.io/version'
5
5
 
6
6
  Gem::Specification.new do |spec|
7
- spec.name = "orchestrate.io"
7
+ spec.name = 'orchestrate.io'
8
8
  spec.version = OrchestrateIo::VERSION
9
- spec.authors = ["azukiwasher"]
10
- spec.email = ["azukiwasher@higanworks.com"]
9
+ spec.authors = ['azukiwasher']
10
+ spec.email = ['azukiwasher@higanworks.com']
11
11
  spec.description = %q{A Ruby wrapper for the Orchestrate.io API}
12
12
  spec.summary = %q{A Ruby wrapper for the Orchestrate.io API.}
13
- spec.homepage = "https://github.com/azukiwasher/ruby-orchestrate.io"
14
- spec.license = "MIT"
13
+ spec.homepage = 'https://github.com/giraffi/ruby-orchestrate.io'
14
+ spec.license = 'MIT'
15
15
 
16
16
  spec.files = `git ls-files`.split($/)
17
17
  spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
18
18
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
- spec.require_paths = ["lib"]
19
+ spec.require_paths = ['lib']
20
20
 
21
- spec.add_runtime_dependency "httparty", "~> 0.12.0"
22
-
23
- spec.add_development_dependency "bundler", "~> 1.3"
24
- spec.add_development_dependency "rake"
25
- spec.add_development_dependency "rspec"
26
- spec.add_development_dependency 'simplecov'
27
- spec.add_development_dependency 'simplecov-rcov'
28
- spec.add_development_dependency 'webmock'
29
- spec.add_development_dependency 'guard-rspec'
30
- spec.add_development_dependency 'timecop'
31
- spec.add_development_dependency 'sinatra'
32
- spec.add_development_dependency 'rb-readline'
21
+ spec.add_runtime_dependency 'httparty', '< 0.12.0'
22
+ spec.add_runtime_dependency 'json', '< 1.8.0'
33
23
  end
@@ -43,7 +43,11 @@ describe OrchestrateIo::Client do
43
43
  end
44
44
 
45
45
  describe "#request" do
46
- pending "TODO: A lesson for Fujiwara san"
46
+ it 'receives get method with correct options' do
47
+ OrchestrateIo::Client.should_receive(:get).with('/v0/films/the_godfather', {basic_auth: { username: "abc", password: "" } })
48
+ client = OrchestrateIo.new(api_key: 'abc')
49
+ client.request(:get, '/v0/films/the_godfather')
50
+ end
47
51
  end
48
52
 
49
53
  describe "#method_missing" do
@@ -8,10 +8,17 @@
8
8
  # See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
9
9
 
10
10
  # Connect code quality with test coverage
11
- unless ENV['CI']
11
+
12
+ unless ENV['TRAVIS']
12
13
  require 'simplecov'
13
14
  require 'simplecov-rcov'
14
15
 
16
+ if ENV['CIRCLE_ARTIFACTS']
17
+ require 'simplecov'
18
+ dir = File.join("..", "..", "..", ENV['CIRCLE_ARTIFACTS'], "coverage")
19
+ SimpleCov.coverage_dir(dir)
20
+ end
21
+
15
22
  SimpleCov.formatter = SimpleCov::Formatter::RcovFormatter
16
23
  SimpleCov.start do
17
24
  add_filter 'spec'
@@ -25,11 +32,9 @@ require 'rspec'
25
32
  require 'webmock/rspec'
26
33
  require 'json'
27
34
  require 'timecop'
28
- require "codeclimate-test-reporter"
29
35
 
30
36
  # Keep the client from external requests.
31
37
  WebMock.disable_net_connect!(allow_localhost: true, allow: /codeclimate.com/)
32
- CodeClimate::TestReporter.start
33
38
 
34
39
  # Use Webmock to route all requests to our Sinatra application `PseudoOrchestrateIo`.
35
40
  require_relative 'support/pseudo_orchestrate.io'
metadata CHANGED
@@ -1,169 +1,43 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: orchestrate.io
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - azukiwasher
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-12-12 00:00:00.000000000 Z
11
+ date: 2014-01-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - <
18
18
  - !ruby/object:Gem::Version
19
19
  version: 0.12.0
20
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
26
  version: 0.12.0
27
27
  - !ruby/object:Gem::Dependency
28
- name: bundler
28
+ name: json
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ~>
31
+ - - <
32
32
  - !ruby/object:Gem::Version
33
- version: '1.3'
34
- type: :development
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - ~>
39
- - !ruby/object:Gem::Version
40
- version: '1.3'
41
- - !ruby/object:Gem::Dependency
42
- name: rake
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - '>='
46
- - !ruby/object:Gem::Version
47
- version: '0'
48
- type: :development
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: rspec
57
- requirement: !ruby/object:Gem::Requirement
58
- requirements:
59
- - - '>='
60
- - !ruby/object:Gem::Version
61
- version: '0'
62
- type: :development
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: simplecov
71
- requirement: !ruby/object:Gem::Requirement
72
- requirements:
73
- - - '>='
74
- - !ruby/object:Gem::Version
75
- version: '0'
76
- type: :development
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: simplecov-rcov
85
- requirement: !ruby/object:Gem::Requirement
86
- requirements:
87
- - - '>='
88
- - !ruby/object:Gem::Version
89
- version: '0'
90
- type: :development
91
- prerelease: false
92
- version_requirements: !ruby/object:Gem::Requirement
93
- requirements:
94
- - - '>='
95
- - !ruby/object:Gem::Version
96
- version: '0'
97
- - !ruby/object:Gem::Dependency
98
- name: webmock
99
- requirement: !ruby/object:Gem::Requirement
100
- requirements:
101
- - - '>='
102
- - !ruby/object:Gem::Version
103
- version: '0'
104
- type: :development
105
- prerelease: false
106
- version_requirements: !ruby/object:Gem::Requirement
107
- requirements:
108
- - - '>='
109
- - !ruby/object:Gem::Version
110
- version: '0'
111
- - !ruby/object:Gem::Dependency
112
- name: guard-rspec
113
- requirement: !ruby/object:Gem::Requirement
114
- requirements:
115
- - - '>='
116
- - !ruby/object:Gem::Version
117
- version: '0'
118
- type: :development
119
- prerelease: false
120
- version_requirements: !ruby/object:Gem::Requirement
121
- requirements:
122
- - - '>='
123
- - !ruby/object:Gem::Version
124
- version: '0'
125
- - !ruby/object:Gem::Dependency
126
- name: timecop
127
- requirement: !ruby/object:Gem::Requirement
128
- requirements:
129
- - - '>='
130
- - !ruby/object:Gem::Version
131
- version: '0'
132
- type: :development
133
- prerelease: false
134
- version_requirements: !ruby/object:Gem::Requirement
135
- requirements:
136
- - - '>='
137
- - !ruby/object:Gem::Version
138
- version: '0'
139
- - !ruby/object:Gem::Dependency
140
- name: sinatra
141
- requirement: !ruby/object:Gem::Requirement
142
- requirements:
143
- - - '>='
144
- - !ruby/object:Gem::Version
145
- version: '0'
146
- type: :development
147
- prerelease: false
148
- version_requirements: !ruby/object:Gem::Requirement
149
- requirements:
150
- - - '>='
151
- - !ruby/object:Gem::Version
152
- version: '0'
153
- - !ruby/object:Gem::Dependency
154
- name: rb-readline
155
- requirement: !ruby/object:Gem::Requirement
156
- requirements:
157
- - - '>='
158
- - !ruby/object:Gem::Version
159
- version: '0'
160
- type: :development
33
+ version: 1.8.0
34
+ type: :runtime
161
35
  prerelease: false
162
36
  version_requirements: !ruby/object:Gem::Requirement
163
37
  requirements:
164
- - - '>='
38
+ - - <
165
39
  - !ruby/object:Gem::Version
166
- version: '0'
40
+ version: 1.8.0
167
41
  description: A Ruby wrapper for the Orchestrate.io API
168
42
  email:
169
43
  - azukiwasher@higanworks.com
@@ -182,6 +56,7 @@ files:
182
56
  - README.md
183
57
  - Rakefile
184
58
  - bin/orchestrate.io
59
+ - circle.yml
185
60
  - lib/orchestrate.io.rb
186
61
  - lib/orchestrate.io/client.rb
187
62
  - lib/orchestrate.io/collection.rb
@@ -209,11 +84,10 @@ files:
209
84
  - spec/spec_helper.rb
210
85
  - spec/support/fixtures/get_events_by_key.json
211
86
  - spec/support/fixtures/get_graph.json
212
- - spec/support/fixtures/get_value_by_key.json
213
87
  - spec/support/fixtures/get_values_by_key.json
214
88
  - spec/support/fixtures/search_collection.json
215
89
  - spec/support/pseudo_orchestrate.io.rb
216
- homepage: https://github.com/azukiwasher/ruby-orchestrate.io
90
+ homepage: https://github.com/giraffi/ruby-orchestrate.io
217
91
  licenses:
218
92
  - MIT
219
93
  metadata: {}
@@ -233,7 +107,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
233
107
  version: '0'
234
108
  requirements: []
235
109
  rubyforge_project:
236
- rubygems_version: 2.0.14
110
+ rubygems_version: 2.2.0
237
111
  signing_key:
238
112
  specification_version: 4
239
113
  summary: A Ruby wrapper for the Orchestrate.io API.
@@ -250,7 +124,6 @@ test_files:
250
124
  - spec/spec_helper.rb
251
125
  - spec/support/fixtures/get_events_by_key.json
252
126
  - spec/support/fixtures/get_graph.json
253
- - spec/support/fixtures/get_value_by_key.json
254
127
  - spec/support/fixtures/get_values_by_key.json
255
128
  - spec/support/fixtures/search_collection.json
256
129
  - spec/support/pseudo_orchestrate.io.rb
@@ -1,18 +0,0 @@
1
- {
2
- "Title": "Rashomon",
3
- "Year": "1950",
4
- "Rated": "Unrated",
5
- "Released": "26 Dec 1951",
6
- "Runtime": "1 h 28 min",
7
- "Genre": "Crime, Drama",
8
- "Director": "Akira Kurosawa",
9
- "Writer": "Ryûnosuke Akutagawa, Akira Kurosawa",
10
- "Actors": "Toshirô Mifune, Machiko Kyô, Masayuki Mori, Takashi Shimura",
11
- "Plot": "A heinous crime and its aftermath are recalled from differing points of view.",
12
- "Poster": "http://ia.media-imdb.com/images/M/MV5BMjEzMzA4NDE2OF5BMl5BanBnXkFtZTcwNTc5MDI2NQ@@._V1_SX300.jpg",
13
- "imdbRating": "8.4",
14
- "imdbVotes": "69,263",
15
- "imdbID": "tt0042876",
16
- "Type": "movie",
17
- "Response": "True"
18
- }