ero_getter 1.3.8 → 1.3.9

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,21 +1,38 @@
1
- $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
2
- $LOAD_PATH.unshift(File.dirname(__FILE__))
3
- require 'rspec'
4
- require 'ero_getter'
5
- require 'webmock/rspec'
1
+ require 'rubygems'
2
+ require 'spork'
3
+ #uncomment the following line to use spork with the debugger
4
+ #require 'spork/ext/ruby-debug'
6
5
 
7
- # Requires supporting files with custom matchers and macros, etc,
8
- # in ./support/ and its subdirectories.
9
- Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f}
6
+ Spork.prefork do
7
+ # Loading more in this block will cause your tests to run faster. However,
8
+ # if you change any configuration or code from libraries loaded here, you'll
9
+ # need to restart spork for it take effect.
10
10
 
11
- RSpec.configure do |config|
11
+ $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
12
+ $LOAD_PATH.unshift(File.dirname(__FILE__))
13
+ require 'rspec'
14
+ require 'ero_getter'
15
+ require 'webmock/rspec'
12
16
 
13
- end
17
+ # Requires supporting files with custom matchers and macros, etc,
18
+ # in ./support/ and its subdirectories.
19
+ Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f}
20
+
21
+ RSpec.configure do |config|
22
+
23
+ # FileUtils.stub(:mkdir_p).and_return(true)
24
+ end
25
+
26
+ def fake(method, url, file)
27
+ stub_request(method, url).to_return(:body => File.read(sample_path(file)))
28
+ end
29
+
30
+ def sample_path(file)
31
+ File.join(File.dirname(__FILE__), 'samples', file)
32
+ end
14
33
 
15
- def fake(method, url, file)
16
- stub_request(method, url).to_return(:body => File.read(sample_path(file)))
17
34
  end
18
35
 
19
- def sample_path(file)
20
- File.join(File.dirname(__FILE__), 'samples', file)
36
+ Spork.each_run do
37
+
21
38
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ero_getter
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.8
4
+ version: 1.3.9
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-07-26 00:00:00.000000000 Z
12
+ date: 2012-09-16 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport
@@ -107,6 +107,38 @@ dependencies:
107
107
  - - ! '>='
108
108
  - !ruby/object:Gem::Version
109
109
  version: '0'
110
+ - !ruby/object:Gem::Dependency
111
+ name: spork
112
+ requirement: !ruby/object:Gem::Requirement
113
+ none: false
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
+ none: false
122
+ requirements:
123
+ - - ! '>='
124
+ - !ruby/object:Gem::Version
125
+ version: '0'
126
+ - !ruby/object:Gem::Dependency
127
+ name: guard-spork
128
+ requirement: !ruby/object:Gem::Requirement
129
+ none: false
130
+ requirements:
131
+ - - ! '>='
132
+ - !ruby/object:Gem::Version
133
+ version: '0'
134
+ type: :development
135
+ prerelease: false
136
+ version_requirements: !ruby/object:Gem::Requirement
137
+ none: false
138
+ requirements:
139
+ - - ! '>='
140
+ - !ruby/object:Gem::Version
141
+ version: '0'
110
142
  - !ruby/object:Gem::Dependency
111
143
  name: bundler
112
144
  requirement: !ruby/object:Gem::Requirement
@@ -163,15 +195,16 @@ files:
163
195
  - lib/downloader/mink_channel.rb
164
196
  - lib/downloader/nijigazou_sokuhou.rb
165
197
  - lib/downloader/pm_style.rb
198
+ - lib/downloader/shimo_soku.rb
166
199
  - lib/downloader/wakuteka_sokuhou.rb
167
200
  - lib/ero_getter.rb
168
201
  - lib/ero_getter/base.rb
169
- - lib/ero_getter/utils.rb
170
202
  - spec/downloader/elog_bakufu_spec.rb
171
203
  - spec/downloader/gazou_sokuhou_spec.rb
172
204
  - spec/downloader/mink_channel_spec.rb
173
205
  - spec/downloader/nijigazou_sokuhou_spec.rb
174
206
  - spec/downloader/pm_style_spec.rb
207
+ - spec/downloader/shimo_soku_spec.rb
175
208
  - spec/downloader/wakuteka_sokuhou_spec.rb
176
209
  - spec/ero_getter/base_spec.rb
177
210
  - spec/ero_getter_spec.rb
@@ -184,6 +217,7 @@ files:
184
217
  - spec/samples/nijigazou_sokuhou/middle.html
185
218
  - spec/samples/pm_style/test.html
186
219
  - spec/samples/sample.html
220
+ - spec/samples/shimo_soku/sample.html
187
221
  - spec/samples/wakuteka_sokuhou/sample.html
188
222
  - spec/spec_helper.rb
189
223
  homepage: http://github.com/masarakki/ero_getter
@@ -201,7 +235,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
201
235
  version: '0'
202
236
  segments:
203
237
  - 0
204
- hash: -4146611102112775715
238
+ hash: 1588994846028462914
205
239
  required_rubygems_version: !ruby/object:Gem::Requirement
206
240
  none: false
207
241
  requirements:
@@ -1,11 +0,0 @@
1
- class EroGetter::Utils
2
- class << self
3
- def mkdir(path)
4
- unless File.exists?(path)
5
- basedir = File.dirname(path)
6
- mkdir(basedir) unless File.exists?(basedir)
7
- Dir.mkdir(path)
8
- end
9
- end
10
- end
11
- end