smappy 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/smappy.rb +1 -1
- data/lib/smappy/static_map.rb +2 -2
- data/markers/information_marker.png +0 -0
- data/spec/fixtures/cassettes/StaticMap_to_image.yml +3495 -0
- data/spec/fixtures/cassettes/Tile_to_image.yml +228 -0
- data/spec/smappy/location_spec.rb +38 -0
- data/spec/smappy/marker_spec.rb +40 -0
- data/spec/smappy/static_map_spec.rb +127 -0
- data/spec/smappy/tile_spec.rb +99 -0
- data/spec/spec_helper.rb +19 -0
- metadata +14 -6
data/spec/spec_helper.rb
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
require File.expand_path('../../lib/smappy', __FILE__)
|
|
2
|
+
require 'rspec'
|
|
3
|
+
require 'vcr'
|
|
4
|
+
|
|
5
|
+
VCR.config do |c|
|
|
6
|
+
c.cassette_library_dir = 'spec/fixtures/cassettes'
|
|
7
|
+
c.stub_with :fakeweb
|
|
8
|
+
end
|
|
9
|
+
|
|
10
|
+
RSpec.configure do |config|
|
|
11
|
+
# Remove this line if you don't want RSpec's should and should_not
|
|
12
|
+
# methods or matchers
|
|
13
|
+
require 'rspec/expectations'
|
|
14
|
+
config.include RSpec::Matchers
|
|
15
|
+
config.extend VCR::RSpec::Macros
|
|
16
|
+
|
|
17
|
+
# == Mock Framework
|
|
18
|
+
config.mock_with :rspec
|
|
19
|
+
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: smappy
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.2
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -9,11 +9,11 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2011-12-
|
|
12
|
+
date: 2011-12-27 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: rmagick
|
|
16
|
-
requirement: &
|
|
16
|
+
requirement: &70193770877180 !ruby/object:Gem::Requirement
|
|
17
17
|
none: false
|
|
18
18
|
requirements:
|
|
19
19
|
- - ! '>='
|
|
@@ -21,9 +21,9 @@ dependencies:
|
|
|
21
21
|
version: '0'
|
|
22
22
|
type: :runtime
|
|
23
23
|
prerelease: false
|
|
24
|
-
version_requirements: *
|
|
24
|
+
version_requirements: *70193770877180
|
|
25
25
|
description: Generate static maps of map tiles.
|
|
26
|
-
email:
|
|
26
|
+
email: tomeric@eet.nu
|
|
27
27
|
executables: []
|
|
28
28
|
extensions: []
|
|
29
29
|
extra_rdoc_files: []
|
|
@@ -33,11 +33,19 @@ files:
|
|
|
33
33
|
- lib/smappy/static_map.rb
|
|
34
34
|
- lib/smappy/tile.rb
|
|
35
35
|
- lib/smappy.rb
|
|
36
|
+
- markers/information_marker.png
|
|
37
|
+
- spec/fixtures/cassettes/StaticMap_to_image.yml
|
|
38
|
+
- spec/fixtures/cassettes/Tile_to_image.yml
|
|
39
|
+
- spec/smappy/location_spec.rb
|
|
40
|
+
- spec/smappy/marker_spec.rb
|
|
41
|
+
- spec/smappy/static_map_spec.rb
|
|
42
|
+
- spec/smappy/tile_spec.rb
|
|
43
|
+
- spec/spec_helper.rb
|
|
36
44
|
- LICENSE
|
|
37
45
|
- Rakefile
|
|
38
46
|
- Gemfile
|
|
39
47
|
- README.md
|
|
40
|
-
homepage:
|
|
48
|
+
homepage: http://github.com/eet-nu/smappy
|
|
41
49
|
licenses: []
|
|
42
50
|
post_install_message:
|
|
43
51
|
rdoc_options: []
|