alman 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: 01e914cb37b2e9dac560acb9ed5dc39b55eb5ace
4
- data.tar.gz: 5913e8b2d5ede9e2d6a5dc2b386a92b8a98dfb00
3
+ metadata.gz: 2db54a836c73fec904fa4ea2967a9e3087ff1521
4
+ data.tar.gz: 58bef82c281f11418474386db1c9c89a4138f60a
5
5
  SHA512:
6
- metadata.gz: 6223e1fbf869c47d18c7ce6f0115d043be7ca2ff220a8cf4423e8e6f3fb9aade4545302135135cc6d19f1ce86a154911303ba2f4abdda6a9f02492fab2ddffab
7
- data.tar.gz: 2e18722a1195ce2f6ca9ab5ead648da353abca7defd619050508c85c6059f035803f5916b4f452fba159cfaa61a3b6d3debf6fc00459827a89abdcd03220bea3
6
+ metadata.gz: c49e06a9f1213551c6dd8e9dbc7973892f66eb9e816030dbc8c91734492f41487cb738d50d9df88fdcbee57f0d5e051675c33b4f8363fe62f3d1da5c80fec277
7
+ data.tar.gz: dfbd277f8f691f4c9c55c75da4353e540522e88a37875bead7f560c47385e5f9dd855d4b69f337ef727abdcf0d77660415be7f829826246a2c026f8fc03875bb
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Alman Ruby Bindings
1
+ # Alman Ruby Bindings ![Travis CI Status](https://travis-ci.org/almanapi/alman-ruby.svg?branch=master) [![Code Climate](https://codeclimate.com/github/almanapi/alman-ruby/badges/gpa.svg)](https://codeclimate.com/github/almanapi/alman-ruby)
2
2
 
3
3
  [![API Library via Apibits.com](http://apibits.com/assets/images/apibits-badge.png)](http://apibits.com)
4
4
 
@@ -16,12 +16,12 @@ If you want to build & install the gem from source:
16
16
 
17
17
  ```bash
18
18
  gem build alman.gemspec
19
- gem install alman-0.0.1.gem
19
+ gem install alman-0.0.2.gem
20
20
  ```
21
21
 
22
22
  ## Documentation
23
23
 
24
- Full documentation is available at [http://almanapi.com/docs](http://almanapi.com/docs).
24
+ Full documentation is available at [http://docs.almanapi.com](http://docs.almanapi.com).
25
25
 
26
26
 
27
27
  ## Requirements
@@ -52,7 +52,7 @@ gem 'alman'
52
52
 
53
53
  ## Using the library
54
54
 
55
- The following section covers some general info about this API library. If you are looking for documentation covering the entire API, check here: [http://almanapi.com/docs](http://almanapi.com/docs).
55
+ The following section covers some general info about this API library. If you are looking for documentation covering the entire API, check here: [http://docs.almanapi.com](http://docs.almanapi.com).
56
56
 
57
57
  ### Params and Headers
58
58
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.1
1
+ 0.0.2
@@ -6,7 +6,7 @@ spec = Gem::Specification.new do |s|
6
6
  s.name = 'alman'
7
7
  s.summary = 'Ruby bindings for Alman API'
8
8
  s.description = 'Alman is a calendar scheduling API.'
9
- s.homepage = 'http://almanapi.com/docs'
9
+ s.homepage = 'http://docs.almanapi.com'
10
10
  s.authors = ['Apibits.com']
11
11
  s.email = ['libraries@apibits.com']
12
12
  s.version = Alman::VERSION
@@ -1,5 +1,5 @@
1
1
  # Alman Ruby bindings
2
- # API Docs are located at http://almanapi.com/docs
2
+ # API Docs are located at http://docs.almanapi.com
3
3
  require 'cgi'
4
4
  require 'set'
5
5
  require 'openssl'
@@ -54,7 +54,7 @@ module Alman
54
54
  @api_staging = ""
55
55
  @api_version = "v0"
56
56
  @support_email = "support@almanapi.com"
57
- @docs_url = "http://almanapi.com/docs"
57
+ @docs_url = "http://docs.almanapi.com"
58
58
 
59
59
  class << self
60
60
  attr_accessor :api_base, :api_version
@@ -8,7 +8,7 @@ module Alman
8
8
  :method => method,
9
9
  :url => url,
10
10
  :headers => headers,
11
- :payload => params,
11
+ :payload => params || {},
12
12
 
13
13
  :verify_ssl => false,
14
14
  :open_timeout => 30,
@@ -35,7 +35,7 @@ module Alman
35
35
  end
36
36
 
37
37
  should 'not convert params to a query string if a file is in them' do
38
- expected = { file: File.new(__FILE__) }
38
+ expected = { :file => File.new(__FILE__) }
39
39
  url, params = Requester.prepare_params(@method, @url, expected)
40
40
  assert_equal(expected, params)
41
41
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: alman
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
  - Apibits.com
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-08-31 00:00:00.000000000 Z
11
+ date: 2015-09-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client
@@ -170,7 +170,7 @@ files:
170
170
  - test/alman/util_test.rb
171
171
  - test/test_data.rb
172
172
  - test/test_helper.rb
173
- homepage: http://almanapi.com/docs
173
+ homepage: http://docs.almanapi.com
174
174
  licenses:
175
175
  - MIT
176
176
  metadata: {}