movie_searcher 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore CHANGED
@@ -4,4 +4,5 @@ coverage
4
4
  rdoc
5
5
  pkg/*
6
6
  *.gem
7
- .bundle
7
+ .bundle
8
+ Gemfile.lock
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- movie_searcher (0.1.2)
4
+ movie_searcher (0.1.3)
5
5
  httparty
6
6
  levenshteinish
7
7
  mimer_plus
@@ -207,11 +207,11 @@ module HTTParty #:nodoc:
207
207
  end
208
208
  def set(key, value)
209
209
  Cache.logger.info("Cache: set (#{key})")
210
- File.open( @path.join(key), 'w' ) { |file| file << Marshal.dump(value) }
210
+ File.open( @path.join(key), 'w' ) { |file| Marshal.dump(value, file) }
211
211
  true
212
212
  end
213
213
  def get(key)
214
- data = Marshal.load(File.read( @path.join(key)))
214
+ data = Marshal.load(File.new(@path.join(key)))
215
215
  Cache.logger.info("Cache: #{data.nil? ? "miss" : "hit"} (#{key})")
216
216
  data
217
217
  end
@@ -3,7 +3,7 @@ $:.push File.expand_path("../lib", __FILE__)
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "movie_searcher"
6
- s.version = "0.1.3"
6
+ s.version = "0.1.4"
7
7
  s.platform = Gem::Platform::RUBY
8
8
  s.authors = ["Linus Oleander", "Jon Maddox"]
9
9
  s.email = ["linus@oleander.nu", "jon@mustacheinc.com"]
metadata CHANGED
@@ -1,12 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: movie_searcher
3
3
  version: !ruby/object:Gem::Version
4
- prerelease: false
5
- segments:
6
- - 0
7
- - 1
8
- - 3
9
- version: 0.1.3
4
+ prerelease:
5
+ version: 0.1.4
10
6
  platform: ruby
11
7
  authors:
12
8
  - Linus Oleander
@@ -15,7 +11,7 @@ autorequire:
15
11
  bindir: bin
16
12
  cert_chain: []
17
13
 
18
- date: 2011-02-03 00:00:00 +01:00
14
+ date: 2011-02-14 00:00:00 +01:00
19
15
  default_executable:
20
16
  dependencies:
21
17
  - !ruby/object:Gem::Dependency
@@ -26,8 +22,6 @@ dependencies:
26
22
  requirements:
27
23
  - - ">="
28
24
  - !ruby/object:Gem::Version
29
- segments:
30
- - 0
31
25
  version: "0"
32
26
  type: :runtime
33
27
  version_requirements: *id001
@@ -39,8 +33,6 @@ dependencies:
39
33
  requirements:
40
34
  - - ">="
41
35
  - !ruby/object:Gem::Version
42
- segments:
43
- - 0
44
36
  version: "0"
45
37
  type: :runtime
46
38
  version_requirements: *id002
@@ -52,8 +44,6 @@ dependencies:
52
44
  requirements:
53
45
  - - ">="
54
46
  - !ruby/object:Gem::Version
55
- segments:
56
- - 0
57
47
  version: "0"
58
48
  type: :runtime
59
49
  version_requirements: *id003
@@ -65,8 +55,6 @@ dependencies:
65
55
  requirements:
66
56
  - - ">="
67
57
  - !ruby/object:Gem::Version
68
- segments:
69
- - 0
70
58
  version: "0"
71
59
  type: :development
72
60
  version_requirements: *id004
@@ -78,8 +66,6 @@ dependencies:
78
66
  requirements:
79
67
  - - ">="
80
68
  - !ruby/object:Gem::Version
81
- segments:
82
- - 0
83
69
  version: "0"
84
70
  type: :development
85
71
  version_requirements: *id005
@@ -91,8 +77,6 @@ dependencies:
91
77
  requirements:
92
78
  - - ">="
93
79
  - !ruby/object:Gem::Version
94
- segments:
95
- - 0
96
80
  version: "0"
97
81
  type: :development
98
82
  version_requirements: *id006
@@ -104,8 +88,6 @@ dependencies:
104
88
  requirements:
105
89
  - - ">="
106
90
  - !ruby/object:Gem::Version
107
- segments:
108
- - 0
109
91
  version: "0"
110
92
  type: :development
111
93
  version_requirements: *id007
@@ -117,8 +99,6 @@ dependencies:
117
99
  requirements:
118
100
  - - ">="
119
101
  - !ruby/object:Gem::Version
120
- segments:
121
- - 0
122
102
  version: "0"
123
103
  type: :development
124
104
  version_requirements: *id008
@@ -187,21 +167,17 @@ required_ruby_version: !ruby/object:Gem::Requirement
187
167
  requirements:
188
168
  - - ">="
189
169
  - !ruby/object:Gem::Version
190
- segments:
191
- - 0
192
170
  version: "0"
193
171
  required_rubygems_version: !ruby/object:Gem::Requirement
194
172
  none: false
195
173
  requirements:
196
174
  - - ">="
197
175
  - !ruby/object:Gem::Version
198
- segments:
199
- - 0
200
176
  version: "0"
201
177
  requirements: []
202
178
 
203
179
  rubyforge_project:
204
- rubygems_version: 1.3.7
180
+ rubygems_version: 1.5.0
205
181
  signing_key:
206
182
  specification_version: 3
207
183
  summary: IMDB client using the IMDB API that their iPhone app uses