pushpin 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,15 @@
1
+ ---
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ OWVkNjFjYWQwODczZTE4ZmI4MDRiNmE3OGM5MGI4MjRkNmI3OGFlMg==
5
+ data.tar.gz: !binary |-
6
+ YTNmNTRjMjc5MWNhOGE1OWI0YWZkN2QxMzM4M2EyYTRlNDE0NTIwNw==
7
+ SHA512:
8
+ metadata.gz: !binary |-
9
+ MjU0MDdmZWU4N2M3NWU4NTY0MWM4MDRjMGFhODM0N2NlMzM3ZGRhNmQwY2Y1
10
+ MDk4MDU2YmQ5ZWE1ZTBiNzU2MmEyYjYzNzRkMzFmNjM5MzIzNGVhNTAxYWE2
11
+ MGFmMTg3NzVlMzg4ZmE2OWFlYTg1NGQwYjgyZTYwMWVjYjY0MGI=
12
+ data.tar.gz: !binary |-
13
+ ZTVlNmExMTRhNDY3NzQxOGYxYjEyYjg3OTQ4ZDhiMjE2NTRmNjM2ZTAzODAx
14
+ YmE5NTIwZTYzZTdmYmFkMTRlNjY2ZjgyZmU0MDdiNmNjYjRhZDNhMTQzM2Qx
15
+ MjQwYWQ1NmU3MzkyOTE5YmMxZjRkZGVkNjAyMjkzZTljZjU0N2M=
@@ -0,0 +1,17 @@
1
+ *.gem
2
+ *.rbc
3
+ .bundle
4
+ .config
5
+ .yardoc
6
+ Gemfile.lock
7
+ InstalledFiles
8
+ _yardoc
9
+ coverage
10
+ doc/
11
+ lib/bundler/man
12
+ pkg
13
+ rdoc
14
+ spec/reports
15
+ test/tmp
16
+ test/version_tmp
17
+ tmp
data/Gemfile ADDED
@@ -0,0 +1,8 @@
1
+ source 'https://rubygems.org'
2
+ gemspec
3
+
4
+ gem 'rake'
5
+
6
+ group :development, :test do
7
+ gem 'rspec', '>= 2.11'
8
+ end
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2014 Mark Gangl
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,33 @@
1
+ # Pushpin
2
+
3
+ An object to indicate geographic position
4
+
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ gem 'pushpin'
10
+
11
+ And then execute:
12
+
13
+ $ bundle
14
+
15
+ Or install it yourself as:
16
+
17
+ $ gem install pushpin
18
+
19
+ ## Contributing
20
+
21
+ 1. Fork it
22
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
23
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
24
+ 4. Push to the branch (`git push origin my-new-feature`)
25
+ 5. Create new Pull Request
26
+
27
+ ## Links
28
+
29
+ * repo: http://github.com/attack/pushpin
30
+
31
+ ## Copyright
32
+
33
+ Copyright (c) 2014 Mark Gangl. See LICENSE for details.
@@ -0,0 +1,11 @@
1
+ require 'rake'
2
+
3
+ require 'bundler/gem_tasks'
4
+ require 'rspec/core/rake_task'
5
+
6
+ RSpec::Core::RakeTask.new(:spec) do |spec|
7
+ spec.pattern = 'spec/**/*_spec.rb'
8
+ spec.rspec_opts = ['--color']
9
+ end
10
+
11
+ task default: :spec
@@ -0,0 +1,11 @@
1
+ require 'pushpin/version'
2
+
3
+ class Pushpin
4
+ def initialize(location)
5
+ @location = location
6
+ end
7
+
8
+ def to_s
9
+ @location.to_s
10
+ end
11
+ end
@@ -0,0 +1,3 @@
1
+ class Pushpin
2
+ VERSION = '0.0.1'
3
+ end
@@ -0,0 +1,23 @@
1
+ # coding: utf-8
2
+ $:.push File.expand_path('../lib', __FILE__)
3
+ require 'pushpin/version'
4
+
5
+ Gem::Specification.new do |spec|
6
+ spec.name = 'pushpin'
7
+ spec.version = Pushpin::VERSION
8
+ spec.authors = ['Mark Gangl']
9
+ spec.email = ['mark@attackcorp.com']
10
+ spec.description = 'An object to indicate geographic position'
11
+ spec.summary = spec.description
12
+ spec.homepage = 'http://github.com/attack/pushpin'
13
+ spec.license = 'MIT'
14
+
15
+ spec.platform = Gem::Platform::RUBY
16
+ spec.required_ruby_version = '>= 1.9.2'
17
+
18
+ spec.files = `git ls-files -z`.split("\x0")
19
+ spec.test_files = spec.files.grep(%r{^spec/})
20
+ spec.require_paths = ['lib']
21
+
22
+ spec.add_development_dependency 'bundler'
23
+ end
@@ -0,0 +1,9 @@
1
+ require 'spec_helper'
2
+
3
+ describe Pushpin do
4
+ describe '#to_s' do
5
+ it 'returns the initial value' do
6
+ expect( Pushpin.new('Paris').to_s ).to eq 'Paris'
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,3 @@
1
+ require 'rspec'
2
+
3
+ require_relative '../lib/pushpin'
metadata ADDED
@@ -0,0 +1,70 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: pushpin
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Mark Gangl
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2014-01-25 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ! '>='
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ! '>='
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ description: An object to indicate geographic position
28
+ email:
29
+ - mark@attackcorp.com
30
+ executables: []
31
+ extensions: []
32
+ extra_rdoc_files: []
33
+ files:
34
+ - .gitignore
35
+ - Gemfile
36
+ - LICENSE.txt
37
+ - README.md
38
+ - Rakefile
39
+ - lib/pushpin.rb
40
+ - lib/pushpin/version.rb
41
+ - pushpin.gemspec
42
+ - spec/pushpin_spec.rb
43
+ - spec/spec_helper.rb
44
+ homepage: http://github.com/attack/pushpin
45
+ licenses:
46
+ - MIT
47
+ metadata: {}
48
+ post_install_message:
49
+ rdoc_options: []
50
+ require_paths:
51
+ - lib
52
+ required_ruby_version: !ruby/object:Gem::Requirement
53
+ requirements:
54
+ - - ! '>='
55
+ - !ruby/object:Gem::Version
56
+ version: 1.9.2
57
+ required_rubygems_version: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ! '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ requirements: []
63
+ rubyforge_project:
64
+ rubygems_version: 2.2.0
65
+ signing_key:
66
+ specification_version: 4
67
+ summary: An object to indicate geographic position
68
+ test_files:
69
+ - spec/pushpin_spec.rb
70
+ - spec/spec_helper.rb