restspec-rails 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: 4a85c1e0b68677a1b53b1bb3da63ea42dc828e55
4
- data.tar.gz: 309dcbdc6369b47ed4e5b5b533658e63f60e8617
3
+ metadata.gz: d2debcd2f2f4290f67260b7e606dba0cf65e6f61
4
+ data.tar.gz: d8463886adbb664048dfb3fa94231a7ad79255cf
5
5
  SHA512:
6
- metadata.gz: 02c11867df4644f3624d3f160ef73c084fc52eebc623a690f914914d9aacdb3a80014efe2af9437ab43709f81c27df0f5cf12417050cb341c6f7d0050a3d885e
7
- data.tar.gz: cb976131e724f2224749050af70698acd74942815fcc247040bbeccc753696df4957782e15b30aaefdf4394c2ae8200e23e15e647e8e5610aea2defd9e7ade53
6
+ metadata.gz: aad3f8cb8e0c5d705046a2619a2c44ba0127ac52f8ca8f9833f16a6327213bde02968d6d469e379bea7342c3de3e275d8553d22def468b622eb75aeb7ea26f2b
7
+ data.tar.gz: c4ce628e2b4cf635783fadd22dc9e56ba1a061f9228f5e165ce9a1cbe7fbd067813034e47da8fa887840cd26d8d1e1fe946cb9f5a050fb2ae403c1d081d5f6b1
@@ -1,9 +1,8 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- restspec-rails (0.0.1)
4
+ restspec-rails (0.0.2)
5
5
  rails (>= 4)
6
- restspec (~> 0.1)
7
6
 
8
7
  GEM
9
8
  remote: https://rubygems.org/
@@ -48,14 +47,9 @@ GEM
48
47
  coderay (1.1.0)
49
48
  diff-lcs (1.2.5)
50
49
  erubis (2.7.0)
51
- faker (1.4.3)
52
- i18n (~> 0.5)
53
50
  globalid (0.3.0)
54
51
  activesupport (>= 4.1.0)
55
- hashie (3.3.2)
56
- httparty (0.13.3)
57
- json (~> 1.8)
58
- multi_xml (>= 0.5.2)
52
+ hike (1.2.3)
59
53
  i18n (0.7.0)
60
54
  json (1.8.1)
61
55
  loofah (2.0.1)
@@ -66,7 +60,7 @@ GEM
66
60
  mime-types (2.4.3)
67
61
  mini_portile (0.6.1)
68
62
  minitest (5.5.0)
69
- multi_xml (0.5.5)
63
+ multi_json (1.10.1)
70
64
  nokogiri (1.6.5)
71
65
  mini_portile (~> 0.6.0)
72
66
  pry (0.10.1)
@@ -101,31 +95,11 @@ GEM
101
95
  rake (>= 0.8.7)
102
96
  thor (>= 0.18.1, < 2.0)
103
97
  rake (10.4.2)
104
- restspec (0.1)
105
- activesupport (~> 4.0)
106
- faker (~> 1.4)
107
- hashie (~> 3.3)
108
- httparty (~> 0.13)
109
- rack (~> 1.0)
110
- rspec (~> 3.0)
111
- rspec-collection_matchers (~> 1.0)
112
- rspec-its (~> 1.0)
113
- thor (~> 0.19)
114
- tilt (~> 2.0)
115
- rspec (3.1.0)
116
- rspec-core (~> 3.1.0)
117
- rspec-expectations (~> 3.1.0)
118
- rspec-mocks (~> 3.1.0)
119
- rspec-collection_matchers (1.1.2)
120
- rspec-expectations (>= 2.99.0.beta1)
121
98
  rspec-core (3.1.7)
122
99
  rspec-support (~> 3.1.0)
123
100
  rspec-expectations (3.1.2)
124
101
  diff-lcs (>= 1.2.0, < 2.0)
125
102
  rspec-support (~> 3.1.0)
126
- rspec-its (1.1.0)
127
- rspec-core (>= 3.0.0)
128
- rspec-expectations (>= 3.0.0)
129
103
  rspec-mocks (3.1.3)
130
104
  rspec-support (~> 3.1.0)
131
105
  rspec-rails (3.1.0)
@@ -138,13 +112,19 @@ GEM
138
112
  rspec-support (~> 3.1.0)
139
113
  rspec-support (3.1.2)
140
114
  slop (3.6.0)
141
- sprockets (1.0.2)
142
- sprockets-rails (0.0.1)
143
- sprockets (>= 1.0.2)
115
+ sprockets (2.12.3)
116
+ hike (~> 1.2)
117
+ multi_json (~> 1.0)
118
+ rack (~> 1.0)
119
+ tilt (~> 1.1, != 1.3.0)
120
+ sprockets-rails (2.2.2)
121
+ actionpack (>= 3.0)
122
+ activesupport (>= 3.0)
123
+ sprockets (>= 2.8, < 4.0)
144
124
  sqlite3 (1.3.10)
145
125
  thor (0.19.1)
146
126
  thread_safe (0.3.4)
147
- tilt (2.0.0)
127
+ tilt (1.4.1)
148
128
  tzinfo (1.2.2)
149
129
  thread_safe (~> 0.1)
150
130
 
data/README.md CHANGED
@@ -7,6 +7,7 @@ Integrates [Restspec](https://github.com/platanus/restspec) inside a Rails appli
7
7
  Add it to your `Gemfile`:
8
8
 
9
9
  ```ruby
10
+ gem 'restspec'
10
11
  gem 'restspec-rails'
11
12
  ```
12
13
 
@@ -45,4 +46,3 @@ config.generators do |g|
45
46
  g.controller_specs false
46
47
  end
47
48
  ```
48
-
@@ -1,4 +1,5 @@
1
1
  require 'rails'
2
+ require 'restspec'
2
3
 
3
4
  require_relative './generators/restspec/install_generator'
4
5
  require_relative './restspec/rails/network_adapter'
@@ -8,10 +8,10 @@ module Restspec
8
8
  end
9
9
 
10
10
  def request(request_object)
11
- send request_object.method,
12
- request_object.url,
13
- request_object.payload,
14
- request_object.headers
11
+ public_send request_object.method,
12
+ request_object.url,
13
+ request_object.raw_payload,
14
+ request_object.headers
15
15
 
16
16
  [response.code.to_i, response.headers, response.body]
17
17
  end
@@ -1,5 +1,5 @@
1
1
  module Restspec
2
2
  module Rails
3
- VERSION = '0.0.1'
3
+ VERSION = '0.0.2'
4
4
  end
5
5
  end
@@ -19,7 +19,6 @@ Gem::Specification.new do |spec|
19
19
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
20
20
  spec.require_paths = ["lib"]
21
21
 
22
- spec.add_dependency "restspec", "~> 0.1"
23
22
  spec.add_dependency "rails", [">= 4"]
24
23
 
25
24
  spec.add_development_dependency "sqlite3"
metadata CHANGED
@@ -1,29 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: restspec-rails
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
  - juliogarciag
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-12-28 00:00:00.000000000 Z
11
+ date: 2015-01-08 00:00:00.000000000 Z
12
12
  dependencies:
13
- - !ruby/object:Gem::Dependency
14
- name: restspec
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - ~>
18
- - !ruby/object:Gem::Version
19
- version: '0.1'
20
- type: :runtime
21
- prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - ~>
25
- - !ruby/object:Gem::Version
26
- version: '0.1'
27
13
  - !ruby/object:Gem::Dependency
28
14
  name: rails
29
15
  requirement: !ruby/object:Gem::Requirement
@@ -149,13 +135,9 @@ files:
149
135
  - dummy/spec/spec_helper.rb
150
136
  - dummy/vendor/assets/javascripts/.keep
151
137
  - dummy/vendor/assets/stylesheets/.keep
152
- - lib/.DS_Store
153
- - lib/generators/.DS_Store
154
- - lib/generators/restspec/.DS_Store
155
138
  - lib/generators/restspec/install_generator.rb
156
139
  - lib/generators/restspec/templates/restspec_config.rb
157
140
  - lib/restspec-rails.rb
158
- - lib/restspec/.DS_Store
159
141
  - lib/restspec/rails/network_adapter.rb
160
142
  - lib/restspec/rails/version.rb
161
143
  - restspec-rails.gemspec