avocado-docs 3.0.2 → 3.0.3

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: ea393aa0cffae6e04b797584a713ed0272322993
4
- data.tar.gz: 1d4d5ccecb7a31628a59af65bfb0afd9f10f3d9f
3
+ metadata.gz: 9e17577dcc185b2fafb1cd6541a87786faa7c952
4
+ data.tar.gz: c5951ac8cdc378125d3864dff8937a749dfab2b7
5
5
  SHA512:
6
- metadata.gz: 492145eae722de43b99c17bb48e2c9b0094b3e1b67b66193f2ee280f84dedf1d2ff7a653de367f8710f8ddbc0cd1ab3fefef333a872efba088c915049b59bcda
7
- data.tar.gz: 5bee858272af096ce695c08df6645d8eb70b0eb39df796cd7bac72d3cb54a49453a4e5054719d1ad2746e91c4e17999ca27b8d0c43d19dd17c19cc9901f17a47
6
+ metadata.gz: 91692ba66fdbdec0bbc5b4a2ba674c309a81ee9aa5ee42fd97faaa2d5f8272e0f89daf2a726bb3477621710c9ed90ae47f909ddee05051c441070084906a5ad8
7
+ data.tar.gz: f2d670c5a0bc653b0c1b47eb598233f2e2800144d30e05d402a634ae3b424347c6af16103cabbbdab670cdc62e7b5ff118e23a7dfcacf181cf5aca9d479bfe7f
@@ -15,6 +15,7 @@ angular.module('avocado.controllers').
15
15
 
16
16
  $scope.switchResource = ->
17
17
  resourceName = $scope.selectedResource.replace(/\s+/g, "")
18
+
18
19
  if resourceName is 'All'
19
20
  $scope.endpoints = Endpoint.all()
20
21
  else
@@ -14,7 +14,7 @@ angular.module('avocado.services').factory 'Endpoint', ['Request', 'Response', '
14
14
 
15
15
  @findByResource: (resourceName) ->
16
16
  $.grep @all(), (endpoint) =>
17
- endpoint.resource.name == resourceName
17
+ endpoint.resource.name.replace(/\s+/g, "") == resourceName
18
18
 
19
19
  generateMD5Hash: (request, response) ->
20
20
  hashTarget = request.method + request.path + request.params + request.headers
@@ -2,7 +2,7 @@ module Avocado
2
2
  class AvocadoController < ActionController::Base
3
3
 
4
4
  def create
5
- File.open(json, 'w+') { |f| f.write params[:file].read }
5
+ File.open(json, 'wb+') { |f| f.write params[:file].read }
6
6
  head :ok
7
7
  end
8
8
 
@@ -1,3 +1,3 @@
1
1
  module Avocado
2
- VERSION = "3.0.2"
2
+ VERSION = "3.0.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: avocado-docs
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.2
4
+ version: 3.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Logan Serman
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-11-13 00:00:00.000000000 Z
11
+ date: 2015-01-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails